aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..42e657a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+export PYBUILD_DISABLE=test
+
+%:
+ dh $@ --with=python3,systemd --buildsystem=pybuild
+
+override_dh_systemd_enable:
+ dh_systemd_enable prometheus-haproxy-log-exporter.service
+
+override_dh_systemd_start:
+ dh_systemd_start --restart-after-upgrade prometheus-haproxy-log-exporter.service