summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/rules23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8975253
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+%:
+ dh ${@}
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ --with-gnutls
+
+execute_after_dh_prep:
+ chrpath -d examples/gtlsserver
+ chrpath -d examples/gtlsclient
+
+execute_before_dh_install:
+ mkdir -p debian/tmp/usr/sbin debian/tmp/usr/bin debian/tmp/usr/share/ngtcp2d/html
+ mv examples/gtlsserver debian/tmp/usr/sbin
+ mv examples/gtlsclient debian/tmp/usr/bin
+
+execute_after_dh_install:
+ rm -f debian/tmp/usr/lib/*/*.la
+
+override_dh_installsystemd:
+ dh_installsystemd --no-restart-after-upgrade --no-stop-on-upgrade --no-start --name ngtcp2d