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
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND += -DNETNS_RUN_DIR=\"/run/netns\"
%:
dh $@
override_dh_auto_clean:
# dh_auto_clean does not set PKG_CONFIG according to the cross-compilation
# environment, but the Makefile calls it even for the `clean` target, which
# causes a FTCBFS (see #836095). There is no need for calling pkg-config
# for the `clean` target, and setting NO_PKG_CONFIG=1 prevents it.
# The same goes for dh_auto_install and the `install` target.
dh_auto_clean -- NO_PKG_CONFIG=1
override_dh_auto_build:
# The Makefile supports CFLAGS, but not CPPFLAGS. Let's append them.
#
# Patch merged upstream (commit 02bc7751d7ac7db1b4e2ca354bd369a3c7f27cde).
# TODO: drop this override with the next upstream release (> 4.14).
CFLAGS="$$CFLAGS $$CPPFLAGS" dh_auto_build
override_dh_auto_install:
# See the comment for override_dh_auto_clean.
dh_auto_install -- NO_PKG_CONFIG=1 SBINDIR=/sbin
|