Standards-Version: 3.9.6
Maintainer: PowerDNS Autobuilder <powerdns.support@powerdns.com>
Origin: PowerDNS
-Build-Depends: debhelper (>= 9~), dh-systemd, quilt, dpkg-dev (>= 1.17.0~), libboost-dev, libboost-serialization-dev, libluajit5.1-dev, libsnmp-dev, libprotobuf-dev, protobuf-compiler, pkg-config @LIBSYSTEMDDEV@ @LIBSODIUMDEV@
+Build-Depends: debhelper (>= 9~), dh-systemd, quilt, dpkg-dev (>= 1.17.0~), libboost-dev, libboost-serialization-dev, libluajit5.1-dev, libprotobuf-dev, protobuf-compiler, pkg-config @LIBSYSTEMDDEV@ @LIBSODIUMDEV@ @LIBSNMPDEV@
Homepage: http://www.powerdns.com/
Package: pdns-recursor
ENABLE_LIBSODIUM := --enable-libsodium
LIBSODIUM_DEV := , libsodium-dev
+ENABLE_NETSNMP := --with-net-snmp
+NETSNMP_DEV := , libsnmp-dev
+
# $(ID) and $(VERSION_ID) come from the environment, source this from /etc/os-release
ifeq ($(ID), ubuntu)
ifeq ($(VERSION_ID), 14.04)
endif
endif
+ifeq ($(ID), debian)
+ ifeq ($(VERSION_ID), 9)
+ # SNMP is linked to OpenSSL 1.0 while we link against OpenSSL 1.1
+ ENABLE_NETSNMP = --without-net-snmp
+ NETSNMP_DEV =
+ endif
+endif
+
debian/control: debian/control.in
sed -e "s!@LIBSYSTEMDDEV@!$(LIBSYSTEMD_DEV)!" \
- -e "s!@LIBSODIUMDEV@!$(LIBSODIUM_DEV)!" $< > $@
+ -e "s!@LIBSODIUMDEV@!$(LIBSODIUM_DEV)!" \
+ -e "s!@LIBSNMPDEV@!$(LIBSNMP_DEV)!" \
+ $< > $@
# Use new build system
%:
--libexecdir='$${prefix}/lib' \
--with-luajit \
--with-protobuf=yes \
- --with-net-snmp \
+ $(ENABLE_NETSNMP) \
$(ENABLE_SYSTEMD) \
$(ENABLE_LIBSODIUM)