update changelog
[debian/iodine.git] / debian / rules
1 #!/usr/bin/make -f
2
3 PACKAGE = $(shell dh_listpackages)
4 TMP     = $(CURDIR)/debian/$(PACKAGE)
5
6 export DEB_BUILD_MAINT_OPTIONS := hardening=+pie,+bindnow
7
8 %:
9         dh $@
10
11 override_dh_auto_clean:
12         debconf-updatepo
13         dh_auto_clean
14
15 override_dh_auto_build:
16         dh_auto_build
17         [ -x $(CURDIR)/debian/iodine-client-start ] || chmod +x $(CURDIR)/debian/iodine-client-start
18         help2man --output=$(CURDIR)/debian/iodine-client-start.8 \
19                 --no-info --section=8 --name="start an iodine IPv4-over-DNS tunnel" \
20                 $(CURDIR)/debian/iodine-client-start
21
22 override_dh_auto_install:
23         dh_auto_install -- DESTDIR=$(TMP) prefix=/usr
24
25 override_dh_installinit:
26         dh_installinit --name=iodined
27
28 override_dh_installlogcheck:
29         dh_installlogcheck
30         mv $(TMP)/etc/logcheck/ignore.d.server/iodine $(TMP)/etc/logcheck/ignore.d.server/iodined