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

export V=1
4
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5

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

9
%:
10
	dh $@ --with autoreconf
11
12

override_dh_auto_configure:
13
14
	dh_auto_configure -- --disable-libipq --enable-devel \
			--libdir=$(LIB_DIR) --with-xtlibdir=$(LIB_DIR)/xtables
15
16
17
18
19
20
21
22
23
24

override_dh_install:
	dh_install
	# leave room for having the nftables compat tools as the main binaries
	mv debian/iptables/sbin/iptables debian/iptables/sbin/iptables-legacy
	mv debian/iptables/sbin/iptables-restore debian/iptables/sbin/iptables-legacy-restore
	mv debian/iptables/sbin/iptables-save debian/iptables/sbin/iptables-legacy-save
	mv debian/iptables/sbin/ip6tables debian/iptables/sbin/ip6tables-legacy
	mv debian/iptables/sbin/ip6tables-restore debian/iptables/sbin/ip6tables-legacy-restore
	mv debian/iptables/sbin/ip6tables-save debian/iptables/sbin/ip6tables-legacy-save