summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d3b1b16
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+VERSION = $(shell head -n1 debian/changelog | sed -e 's/.*(//;s/-.*).*//;s/\+/\-/')
+
+%:
+ dh $@ --with systemd,autoreconf
+
+override_dh_auto_build-indep:
+ dh_auto_build
+ make -C doc doxygen-doc
+
+override_dh_installdocs-indep:
+ cp -r $(CURDIR)/doc/doxygen/html/* $(CURDIR)/debian/bitz-server-doc/usr/share/doc/bitz-server-doc/docs/
+ dh_installdocs
+
+override_dh_strip:
+ dh_strip -pbitz-server --dbg-package=bitz-server-dbg
+ dh_strip -plibicap0 --dbg-package=libicap0-dbg
+
+override_dh_makeshlibs:
+ dh_makeshlibs
+ dpkg-gensymbols -v$(VERSION) -plibicap0
+
+override_dh_systemd_enable:
+ dh_systemd_enable -pbitz-server --no-enable bitz-server.service