Revert "update changelog"
[debian/iodine.git] / debian / rules
index 7d941a462a88689bdc73ac488c68b82419524ee1..ecfef8db20268747d5fcfcda7ba86a43d551e1a6 100755 (executable)
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
 export DEB_BUILD_MAINT_OPTIONS := hardening=+pie,+bindnow
 
 %:
@@ -17,9 +20,11 @@ override_dh_auto_build:
                $(CURDIR)/debian/iodine-client-start
 
 override_dh_auto_install:
-       dh_auto_install -- prefix=/usr
+       dh_auto_install -- DESTDIR=$(TMP) prefix=/usr
+
+override_dh_installinit:
+       dh_installinit --name=iodined
 
-override_dh_install:
-       dh_install
-       mv -v $(CURDIR)/debian/iodined/usr/share/man/man8/iodine.8 \
-               $(CURDIR)/debian/iodined/usr/share/man/man8/iodined.8
+override_dh_installlogcheck:
+       dh_installlogcheck
+       mv $(TMP)/etc/logcheck/ignore.d.server/iodine $(TMP)/etc/logcheck/ignore.d.server/iodined