releasing package iodine version 0.7.0-10 into distribution unstable
[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 # needs dpkg-dev 1.19.0
8 -include /usr/share/dpkg/buildtools.mk
9 export PKG_CONFIG ?= pkg-config
10
11 %:
12         dh $@
13
14 override_dh_auto_clean:
15         debconf-updatepo
16         dh_auto_clean
17
18 override_dh_auto_build:
19         dh_auto_build
20         [ -x $(CURDIR)/debian/iodine-client-start ] || chmod +x $(CURDIR)/debian/iodine-client-start
21         help2man --output=$(CURDIR)/debian/iodine-client-start.8 \
22                 --no-info --section=8 --name="start an iodine IPv4-over-DNS tunnel" \
23                 $(CURDIR)/debian/iodine-client-start
24
25 override_dh_auto_install:
26         dh_auto_install -- DESTDIR=$(TMP) prefix=/usr
27
28 override_dh_installinit:
29         dh_installinit --name=iodined
30
31 override_dh_installtmpfiles:
32         dh_installtmpfiles --name=iodined
33
34 override_dh_installsystemd:
35         dh_installsystemd --name=iodined
36
37 override_dh_installlogcheck:
38         dh_installlogcheck --name=iodined