Revert "update changelog"
[debian/iodine.git] / debian / rules
index 70ba42cb00117abab8ea950006ead7af3a94528d..ecfef8db20268747d5fcfcda7ba86a43d551e1a6 100755 (executable)
@@ -1,31 +1,30 @@
 #!/usr/bin/make -f
 
-include /usr/share/quilt/quilt.make
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
-build: build-stamp
-build-stamp: $(QUILT_STAMPFN)
-       dh build
-       touch build-stamp
+export DEB_BUILD_MAINT_OPTIONS := hardening=+pie,+bindnow
 
-clean: unpatch
+%:
+       dh $@
+
+override_dh_auto_clean:
        debconf-updatepo
-       dh clean
-
-install: build install-stamp
-install-stamp:
-       dh install --before dh_auto_install
-       $(MAKE) install DESTDIR=$(CURDIR)/debian/iodine prefix=/usr
-       dh install --after dh_auto_install --before dh_compress
-       dh_compress -Xiodine-jigger
-       dh install --after dh_compress --before dh_installinit
-       dh_installinit --name=iodined
-       dh install --after dh_installinit
-       touch install-stamp
+       dh_auto_clean
 
-binary-arch: install
-       dh binary-arch
+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
 
-binary-indep: install
-       dh binary-indep
+override_dh_auto_install:
+       dh_auto_install -- DESTDIR=$(TMP) prefix=/usr
+
+override_dh_installinit:
+       dh_installinit --name=iodined
 
-binary: binary-arch binary-indep
+override_dh_installlogcheck:
+       dh_installlogcheck
+       mv $(TMP)/etc/logcheck/ignore.d.server/iodine $(TMP)/etc/logcheck/ignore.d.server/iodined