File: rules

package info (click to toggle)
iptables 1.8.2-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,220 kB
  • sloc: ansic: 55,460; sh: 5,794; makefile: 208; yacc: 187; python: 83; lex: 54
file content (32 lines) | stat: -rwxr-xr-x 998 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

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

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

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --disable-libipq --enable-devel \
			--libdir=$(LIB_DIR) --with-xtlibdir=$(LIB_DIR)/xtables

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