(Also applies to all post-Xenial Ubuntu builds since they use these configurations too)
* Use debhelper version 10.x on both distributions
* Use consistent logic for enabling systemd support
* Remove unnecessary --parallel flags (default mode in debhelper 10.x)
* Always use architecture.mk and pkg-info.mk to set DEB_* variables
* Enable warnings and hardening on Stretch builds
Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
autotools-dev,
bison,
curl,
- debhelper (>= 9.20160114~),
+ debhelper (>= 10),
default-libmysqlclient-dev,
dh-autoreconf,
dh-systemd,
- dpkg-dev (>= 1.17.0~),
flex,
libboost-dev,
libboost-program-options-dev,
# Backends
backends := bind ldap pipe gmysql godbc gpgsql gsqlite3 geoip lmdb lua2 remote random tinydns
-# Disable systemd integration on non-linux archs
+# Only enable systemd integration on Linux operating systems
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_ARGS += --enable-systemd --with-systemd=/lib/systemd/system
+DH_ARGS += --with systemd
else
CONFIGURE_ARGS += --disable-systemd
endif
%:
dh $@ \
--with autoreconf \
- --with systemd \
- --parallel
+ $(DH_ARGS)
override_dh_auto_configure:
test -f pdns/dnslabeltext.cc && mv pdns/dnslabeltext.cc debian/dnslabeltext.cc.moved || true
autotools-dev,
bison,
curl,
- debhelper (>= 9.20160114~),
+ debhelper (>= 10),
default-libmysqlclient-dev,
dh-autoreconf,
dh-systemd,
- dpkg-dev (>= 1.17.0~),
flex,
libboost-dev,
libboost-program-options-dev,
#!/usr/bin/make -f
-DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
-DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/pkg-info.mk
+
+# (Re-)Enable warnings
+CXXFLAGS += -Wall
+
+# Turn on all hardening flags, as we're a networked daemon.
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Backends
backends := bind ldap pipe gmysql godbc gpgsql gsqlite3 geoip lmdb lua2 remote random tinydns
-# Disable systemd integration on non-linux archs
+# Only enable systemd integration on Linux operating systems
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_ARGS += --enable-systemd --with-systemd=/lib/systemd/system
+DH_ARGS += --with systemd
else
CONFIGURE_ARGS += --disable-systemd
endif
%:
dh $@ \
--with autoreconf \
- --with systemd \
- --parallel
+ $(DH_ARGS)
override_dh_auto_configure:
test -f pdns/dnslabeltext.cc && mv pdns/dnslabeltext.cc debian/dnslabeltext.cc.moved || true
Priority: optional
Maintainer: PowerDNS.COM BV <powerdns.support.sales@powerdns.com>
Uploaders: PowerDNS.COM BV <powerdns.support.sales@powerdns.com>
-Build-Depends: debhelper (>= 10~),
+Build-Depends: debhelper (>= 10),
libboost-all-dev,
libcap-dev,
libcdb-dev,
#!/usr/bin/make -f
-# See debhelper(7) (uncomment to enable)
-# output every command that modifies files on the build system.
-#DH_VERBOSE = 1
+include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/pkg-info.mk
# Enable hardening features for daemons
export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow,+pie
# for atomic support on powerpc (automatic on mipsel)
LDFLAGS += -latomic
-# Disable systemd integration on non-linux archs
+# Only enable systemd integration on Linux operating systems
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_ARGS += --enable-systemd --with-systemd=/lib/systemd/system
+DH_ARGS += --with systemd
else
CONFIGURE_ARGS += --disable-systemd
endif
%:
- dh $@
+ dh $@ \
+ --with autoreconf \
+ $(DH_ARGS)
override_dh_auto_clean:
rm -f dnslabeltext.cc
Priority: optional
Maintainer: Debian DNS Packaging <pkg-dns-devel@lists.alioth.debian.org>
Uploaders: Chris Hofstaedtler <zeha@debian.org>
-Build-Depends: debhelper (>= 10~),
+Build-Depends: debhelper (>= 10),
libboost-dev,
libcap-dev,
libcdb-dev,
#!/usr/bin/make -f
-# See debhelper(7) (uncomment to enable)
-# output every command that modifies files on the build system.
-#DH_VERBOSE = 1
+include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/pkg-info.mk
# Enable hardening features for daemons
export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow,+pie
# for atomic support on powerpc (automatic on mipsel)
LDFLAGS += -latomic
-# Disable systemd integration on non-linux archs
+# Only enable systemd integration on Linux operating systems
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_ARGS += --enable-systemd --with-systemd=/lib/systemd/system
+DH_ARGS += --with systemd
else
CONFIGURE_ARGS += --disable-systemd
endif
%:
- dh $@
+ dh $@ \
+ --with autoreconf \
+ $(DH_ARGS)
override_dh_auto_clean:
rm -f dnslabeltext.cc
Priority: extra
Standards-Version: 4.1.2
Maintainer: PowerDNS.COM BV <powerdns.support@powerdns.com>
-Build-Depends: debhelper (>= 10~),
+Build-Depends: debhelper (>= 10),
dh-autoreconf,
dh-systemd [linux-any],
libboost-all-dev,
#!/usr/bin/make -f
-DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/pkg-info.mk
# Enable hardening features for daemons
# Note: blhc (build log hardening check) will find these false positives: CPPFLAGS 2 missing, LDFLAGS 1 missing
# Include buildflags.mk so we can append to the vars it sets.
include /usr/share/dpkg/buildflags.mk
-# Disable systemd integration on non-linux archs
+# Only enable systemd integration on Linux operating systems
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_ARGS += --enable-systemd --with-systemd=/lib/systemd/system
DH_ARGS += --with systemd
Priority: extra
Standards-Version: 4.1.2
Maintainer: PowerDNS.COM BV <powerdns.support@powerdns.com>
-Build-Depends: debhelper (>= 10~),
+Build-Depends: debhelper (>= 10),
dh-autoreconf,
dh-systemd [linux-any],
libboost-all-dev,
#!/usr/bin/make -f
-DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/pkg-info.mk
# Enable hardening features for daemons
# Note: blhc (build log hardening check) will find these false positives: CPPFLAGS 2 missing, LDFLAGS 1 missing
# Include buildflags.mk so we can append to the vars it sets.
include /usr/share/dpkg/buildflags.mk
-# Disable systemd integration on non-linux archs
+# Only enable systemd integration on Linux operating systems
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_ARGS += --enable-systemd --with-systemd=/lib/systemd/system
DH_ARGS += --with systemd