File: rules

package info (click to toggle)
nftables 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,380 kB
  • sloc: ansic: 32,622; sh: 7,534; xml: 5,515; yacc: 3,642; python: 1,058; lex: 896; makefile: 192
file content (36 lines) | stat: -rwxr-xr-x 895 bytes parent folder | download
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
33
34
35
36
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

configure_opts	:= --with-xtables --with-json

override_dh_auto_configure:
	dh_auto_configure -- $(configure_opts) --

%:
	dh $@ --with autoreconf

override_dh_fixperms:
	dh_fixperms
	chmod a+x debian/nftables/etc/nftables.conf

override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start

# https://wiki.debian.org/DebugPackage
.PHONY: override_dh_strip
override_dh_strip:
	dh_strip --dbgsym-migration='nftables-dbg (<< 0.7~)'

override_dh_installinit:
	# dh_installinit will try to mess with /etc/init.d/nftables in
	# the maintainer scripts, but we don't ship it
	dh_installinit -n

override_dh_installexamples:
	dh_installexamples
	# upstream examples are installed in by the 'install' target to '/etc/nftables'
	rm -rf debian/nftables/etc/nftables