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 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_CFLAGS_MAINT_APPEND = -Wall -Wextra
DEB_CPPFLAGS_MAINT_APPEND = -DNDEBUG -g
DPKG_EXPORT_BUILDFLAGS = 1
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
-include /usr/share/dpkg/buildflags.mk
ifeq ($(DEB_HOST_ARCH_OS),hurd)
WITH_MESSAGES = --disable-messages
else
WITH_MESSAGES = --enable-messages
endif
DEB_CONFIGURE_EXTRA_ARGS := \
--with-tools \
--enable-rrl \
--enable-nsid \
--enable-ctrl \
--enable-dynamic-provisioning \
--disable-build-timestamp \
--enable-systemd-resolved-avoidance \
$(WITH_MESSAGES) \
$(NULL)
%:
dh $@
override_dh_clean:
dh_clean
rm -f debian/substvars
override_dh_auto_configure:
dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_ARGS)
override_dh_installinit:
dh_installinit -a --no-start
override_dh_installman:
dh_installman --language=C
override_dh_gencontrol:
for i in $$(sed -n '/^Package:/s/^.* //p' debian/control); do cat debian/vars.in >> debian/$$i.substvars; done
cat debian/vars.in >> debian/substvars
dh_gencontrol
|