rules 998 Bytes
Newer Older
1
2
#!/usr/bin/make -f

3
export DH_VERBOSE=1
4
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5
6
# used by iptables extensions/ makefile to be verbose:
export V=1
7

8
9
10
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIB_DIR := /usr/lib/$(DEB_HOST_MULTIARCH)

11
%:
12
	dh $@ --with autoreconf
13
14

override_dh_auto_configure:
15
16
	dh_auto_configure -- --disable-libipq --enable-devel \
			--libdir=$(LIB_DIR) --with-xtlibdir=$(LIB_DIR)/xtables
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

override_dh_auto_install:
	dh_auto_install
	# leave room for paths links managed by update-alternatives
	rm debian/tmp/usr/sbin/iptables
	rm debian/tmp/usr/sbin/ip6tables
	rm debian/tmp/usr/sbin/arptables
	rm debian/tmp/usr/sbin/ebtables
	rm debian/tmp/usr/sbin/iptables-save
	rm debian/tmp/usr/sbin/iptables-restore
	rm debian/tmp/usr/sbin/ip6tables-save
	rm debian/tmp/usr/sbin/ip6tables-restore
	rm debian/tmp/usr/sbin/arptables-save
	rm debian/tmp/usr/sbin/arptables-restore
	rm debian/tmp/usr/sbin/ebtables-save
	rm debian/tmp/usr/sbin/ebtables-restore