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