releasing package iodine version 0.6.0~rc1-18
[debian/iodine.git] / debian / rules
index d5b344397f3ae67858ea2e5c371c91efbe1339e5..ecfef8db20268747d5fcfcda7ba86a43d551e1a6 100755 (executable)
@@ -1,17 +1,30 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
+export DEB_BUILD_MAINT_OPTIONS := hardening=+pie,+bindnow
+
 %:
-       dh --with quilt $@
+       dh $@
 
 override_dh_auto_clean:
        debconf-updatepo
        dh_auto_clean
 
-override_dh_auto_install:
-       dh_auto_install -- DESTDIR=$(CURDIR)/debian/iodine prefix=/usr
+override_dh_auto_build:
+       dh_auto_build
+       [ -x $(CURDIR)/debian/iodine-client-start ] || chmod +x $(CURDIR)/debian/iodine-client-start
+       help2man --output=$(CURDIR)/debian/iodine-client-start.8 \
+               --no-info --section=8 --name="start an iodine IPv4-over-DNS tunnel" \
+               $(CURDIR)/debian/iodine-client-start
 
-override_dh_compress:
-       dh_compress -Xiodine-jigger
+override_dh_auto_install:
+       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