#!/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