summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/rules18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..894f2b6
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
+
+%:
+ dh $@
+
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+CONFFLAGS = -Dsystemd=true -Dsystemd_journal=true -Dsystemd_session=default
+else
+CONFFLAGS = -Dsystemd=false -Dsystemd_journal=false -Dsystemd_session=disable
+endif
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ -Dman=true \
+ $(CONFFLAGS)