remove boilerplate comments from debian/watch
[debian/iodine.git] / debian / rules
index 8e517b2bdeddce0375712b91794e4d4f9b7dd9fa..5735e0e34cffef471e84c83754d108e75b97632a 100755 (executable)
@@ -1,12 +1,12 @@
 #!/usr/bin/make -f
 
-include /usr/share/hardening-includes/hardening.make
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
-export CFLAGS += $(HARDENING_CFLAGS)
-export LDFLAGS += $(HARDENING_LDFLAGS)
+export DEB_BUILD_MAINT_OPTIONS := hardening=+pie,+bindnow
 
 %:
-       dh $@
+       dh $@ --with systemd
 
 override_dh_auto_clean:
        debconf-updatepo
@@ -20,7 +20,11 @@ override_dh_auto_build:
                $(CURDIR)/debian/iodine-client-start
 
 override_dh_auto_install:
-       dh_auto_install -- DESTDIR=$(CURDIR)/debian/iodine prefix=/usr
+       dh_auto_install -- DESTDIR=$(TMP) prefix=/usr
 
 override_dh_installinit:
        dh_installinit --name=iodined
+
+override_dh_installlogcheck:
+       dh_installlogcheck
+       mv $(TMP)/etc/logcheck/ignore.d.server/iodine $(TMP)/etc/logcheck/ignore.d.server/iodined