pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/powerdns



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Thu Mar  9 13:32:54 UTC 2017

Modified Files:
        pkgsrc/net/powerdns: Makefile Makefile.backend Makefile.common PLIST
            distinfo options.mk
        pkgsrc/net/powerdns/patches: patch-pdns_dns.hh patch-pdns_dnsscope.cc
Added Files:
        pkgsrc/net/powerdns/patches: patch-configure patch-pdns_iputils.hh
            patch-pdns_qtype.hh
Removed Files:
        pkgsrc/net/powerdns/patches: patch-aa patch-ab
            patch-modules_luabackend_luabackend.hh
            patch-modules_pipebackend_pipebackend.cc
            patch-modules_pipebackend_pipebackend.hh
            patch-pdns_botan18signers.cc patch-pdns_dnspacket.cc
            patch-pdns_dnsparser.cc patch-pdns_dnsparser.hh
            patch-pdns_dynloader.cc patch-pdns_htimer.cc patch-pdns_misc.cc
            patch-pdns_nameserver.cc patch-pdns_pdns_recursor.cc
            patch-pdns_receiver.cc patch-pdns_recursor__cache.cc
            patch-pdns_resolver.cc patch-pdns_tcpreceiver.cc

Log Message:
Update net/powerdns to 4.0.3.

pkgsrc changes:

- Remove options for cryptopp and geoip (the latter to go into a
  separate package).
- Clean up a lot of patches that do not seem to be needed anymore.

PowerDNS Authoritative Server 4.0.3
===================================

- Revert "In 'Bind2Backend::lookup()', use the 'zoneId' when we have it"

PowerDNS Authoritative Server 4.0.2

Security issues fixed:

- 2016-02: Crafted queries can cause abnormal CPU usage
- 2016-03: Denial of service via the web server
- 2016-04: Insufficient validation of TSIG signatures
- 2016-05: Crafted zone record can cause a denial of service

Other highlights:

- Don't parse spurious RRs in queries when we don't need them (Security
  Advisory 2016-02)
- Don't exit if the webserver can't accept a connection (Security
  Advisory 2016-03)
- Check TSIG signature on IXFR (Security Advisory 2016-04)
- Correctly check unknown record content size (Security Advisory
  2016-05)
- ODBC backend: actually prepare statements
- Improve root-zone performance
- Plug memory leak in postgresql backend (Christian Hofstaedtler)
- calidns: Don't crash if we don't have enough 'unknown' queries
  remaining
- Improve PacketCache cleaning (Kees Monshouwer)
- Bind backend: update status message on reload, keep the existing zone
  on failure
- Fix TSIG for single thread distributor (Kees Monshouwer)
- Change default for any-to-tcp to yes (Kees Monshouwer)
- Don't look up the packet cache for TSIG-enabled queries
- Fix build with OpenSSL 1.1.0 final (Christian Hofstaedtler)
- pdnsutil: create-slave-zone accept multiple masters (Hannu Ylitalo)

PowerDNS Authoritative Server 4.0.1
===================================

Bug fixes
- Wait for the connection to the carbon server to be established
- Don't try to deallocate empty PG statements
- Send the correct response when queried for an NSEC directly (Kees
  Monshouwer)
- Don't include bind files if length <= 2 or > sizeof(filename)
- Catch runtime_error when parsing a broken MNAME

Improvements
- Make DNSPacket return a ComboAddredd for local and remote (Aki Tuomi)
- OpenSSL 1.1.0 support (Christian Hofstaedtler)
- Fix typos in a logmessage and exception (Christian Hofsteadtler)
- pdnsutil: Remove checking of ctime and always diff the changes (Hannu
  Ylitalo)
- dnsreplay: Only add Client Subnet stamp when asked
- Use toLogString() for ringAccount (Kees Monshouwer)

Additions
- Add limits to the size of received {A,I}XFR
- Add used filedescriptor statistic (Kees Monshouwer)

PowerDNS Authoritative Server 4.0.0
===================================

- Moved to C++ 2011, a cleaner more powerful version of C++ that has
  allowed us to improve the quality of implementation in many places.
- Implemented dedicated infrastructure for dealing with DNS names that
  is fully "DNS Native" and needs less escaping and unescaping.
- Due to this, the PowerDNS Authoritative Server can now serve
  DNSSEC-enabled root-zones.
- All backends derived from the Generic SQL backend use prepared
  statements.
- Both the server and pdns_control do the right thing when chroot'ed.
- Caches are now fully canonically ordered, which means entries can be
  wiped on suffix in all places
- A revived and supported ODBC backend (godbc).
- A revived and supported LDAP backend (ldap).
- Support for CDS/CDNSKEY and RFC 7344 key-rollovers.
- Support for the ALIAS record.
- The webserver and API are no longer experimental.
- The API-path has moved to /api/v1
- DNSUpdate is no longer experimental.
- ECDSA (algorithm 13 and 14) supported without in-tree cryptographic
  libraries (provided by OpenSSL).
- Experimental support for ed25519 DNSSEC signatures (when compiled with
  libsodium support).
- Many new pdnsutil commands.
- GeoIP backend has gained many features, and can now e.g. run based on
  explicit netmasks not present in the GeoIP databases
- Removed support for LMDB.
- Removed the Geo backened (use the improved GeoIP instead).
- pdnssec has been renamed to pdnsutil.
- Support for the PolarSSL/MbedTLS, Crypto++ and Botan cryptographic
  libraries have been dropped in favor of the (faster) OpenSSL libcrypto
  (except for GOST, which is still provided by Botan).
- ECDSA P256 SHA256 (algorithm 13) is now the default algorithm when
  securing zones.
- The PowerDNS Authoritative Server now listens by default on all IPv6
  addresses.
- Several superfluous queries have been dropped from the Generic SQL
  backends.
- The INCEPTION, INCEPTION-WEEK and EPOCH SOA-EDIT metadata values are
  marked as deprecated and will be removed in 4.1.0


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/net/powerdns/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/powerdns/Makefile.backend
cvs rdiff -u -r1.16 -r1.17 pkgsrc/net/powerdns/Makefile.common
cvs rdiff -u -r1.8 -r1.9 pkgsrc/net/powerdns/PLIST
cvs rdiff -u -r1.21 -r1.22 pkgsrc/net/powerdns/distinfo
cvs rdiff -u -r1.4 -r1.5 pkgsrc/net/powerdns/options.mk
cvs rdiff -u -r1.6 -r0 pkgsrc/net/powerdns/patches/patch-aa
cvs rdiff -u -r1.5 -r0 pkgsrc/net/powerdns/patches/patch-ab \
    pkgsrc/net/powerdns/patches/patch-pdns_dnspacket.cc
cvs rdiff -u -r0 -r1.4 pkgsrc/net/powerdns/patches/patch-configure
cvs rdiff -u -r1.2 -r0 \
    pkgsrc/net/powerdns/patches/patch-modules_luabackend_luabackend.hh \
    pkgsrc/net/powerdns/patches/patch-modules_pipebackend_pipebackend.hh \
    pkgsrc/net/powerdns/patches/patch-pdns_botan18signers.cc \
    pkgsrc/net/powerdns/patches/patch-pdns_misc.cc
cvs rdiff -u -r1.3 -r0 \
    pkgsrc/net/powerdns/patches/patch-modules_pipebackend_pipebackend.cc \
    pkgsrc/net/powerdns/patches/patch-pdns_dnsparser.cc \
    pkgsrc/net/powerdns/patches/patch-pdns_dnsparser.hh \
    pkgsrc/net/powerdns/patches/patch-pdns_dynloader.cc \
    pkgsrc/net/powerdns/patches/patch-pdns_htimer.cc \
    pkgsrc/net/powerdns/patches/patch-pdns_recursor__cache.cc
cvs rdiff -u -r1.4 -r1.5 pkgsrc/net/powerdns/patches/patch-pdns_dns.hh
cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/powerdns/patches/patch-pdns_dnsscope.cc
cvs rdiff -u -r0 -r1.1 pkgsrc/net/powerdns/patches/patch-pdns_iputils.hh \
    pkgsrc/net/powerdns/patches/patch-pdns_qtype.hh
cvs rdiff -u -r1.4 -r0 pkgsrc/net/powerdns/patches/patch-pdns_nameserver.cc \
    pkgsrc/net/powerdns/patches/patch-pdns_pdns_recursor.cc \
    pkgsrc/net/powerdns/patches/patch-pdns_receiver.cc \
    pkgsrc/net/powerdns/patches/patch-pdns_resolver.cc \
    pkgsrc/net/powerdns/patches/patch-pdns_tcpreceiver.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/powerdns/Makefile
diff -u pkgsrc/net/powerdns/Makefile:1.22 pkgsrc/net/powerdns/Makefile:1.23
--- pkgsrc/net/powerdns/Makefile:1.22   Sun Jan  1 16:06:33 2017
+++ pkgsrc/net/powerdns/Makefile        Thu Mar  9 13:32:54 2017
@@ -1,21 +1,19 @@
-# $NetBSD: Makefile,v 1.22 2017/01/01 16:06:33 adam Exp $
+# $NetBSD: Makefile,v 1.23 2017/03/09 13:32:54 fhajny Exp $
 
 .include "Makefile.common"
 
 PKGNAME=               ${DISTNAME:S/pdns/powerdns/}
-PKGREVISION=           4
 COMMENT=               Modern, advanced and high performance nameserver
 
 .include "options.mk"
 
-CONFIGURE_ARGS+=       --with-modules="geo"
-CONFIGURE_ARGS+=       --with-dynmodules="${PDNS_MODULES}"
+CONFIGURE_ARGS+=       --with-dynmodules=no
+CONFIGURE_ARGS+=       --with-modules="${PDNS_MODULES}"
 
 RCD_SCRIPTS=           pdns
 SMF_NAME=              pdns
 
 EGDIR=                 ${PREFIX}/share/examples/pdns
-MAKE_ENV+=             EGDIR=${EGDIR}
 
 CONF_FILES+=           ${EGDIR}/pdns.conf-dist ${PKG_SYSCONFDIR}/pdns.conf
 
@@ -27,4 +25,8 @@ SUBST_SED.conf+=      -e 's,@PKG_SYSCONFDIR@,
 
 LDFLAGS.SunOS+=                -lsocket -lnsl
 
+INSTALL_MAKE_FLAGS+=   sysconfdir=${EGDIR}
+
+CHECK_WRKREF_SKIP+=    sbin/pdns_server
+
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/net/powerdns/Makefile.backend
diff -u pkgsrc/net/powerdns/Makefile.backend:1.3 pkgsrc/net/powerdns/Makefile.backend:1.4
--- pkgsrc/net/powerdns/Makefile.backend:1.3    Fri Jun 12 10:50:58 2015
+++ pkgsrc/net/powerdns/Makefile.backend        Thu Mar  9 13:32:54 2017
@@ -1,4 +1,7 @@
-# $NetBSD: Makefile.backend,v 1.3 2015/06/12 10:50:58 fhajny Exp $
+# $NetBSD: Makefile.backend,v 1.4 2017/03/09 13:32:54 fhajny Exp $
+# used by net/powerdns-ldap/Makefile
+# used by net/powerdns-mysql/Makefile
+# used by net/powerdns-pgsql/Makefile
 
 .include "../../net/powerdns/Makefile.common"
 
@@ -15,4 +18,4 @@ BUILD_DIRS=           modules
 # These are required by configure, but not used by the modules
 BUILDLINK_DEPMETHOD.boost-headers=     build
 BUILDLINK_DEPMETHOD.boost-libs=                build
-BUILDLINK_DEPMETHOD.mbedtls=           build
+BUILDLINK_DEPMETHOD.openssl=           build

Index: pkgsrc/net/powerdns/Makefile.common
diff -u pkgsrc/net/powerdns/Makefile.common:1.16 pkgsrc/net/powerdns/Makefile.common:1.17
--- pkgsrc/net/powerdns/Makefile.common:1.16    Thu Jun 16 09:24:42 2016
+++ pkgsrc/net/powerdns/Makefile.common Thu Mar  9 13:32:54 2017
@@ -1,12 +1,12 @@
-# $NetBSD: Makefile.common,v 1.16 2016/06/16 09:24:42 fhajny Exp $
+# $NetBSD: Makefile.common,v 1.17 2017/03/09 13:32:54 fhajny Exp $
 
-PDNS_VERSION=          3.4.9
+PDNS_VERSION=          4.0.3
 DISTNAME=              pdns-${PDNS_VERSION}
 CATEGORIES=            net
 MASTER_SITES=          http://downloads.powerdns.com/releases/
 EXTRACT_SUFX=          .tar.bz2
 
-MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+MAINTAINER?=           pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=              http://www.powerdns.com/
 LICENSE=               gnu-gpl-v2
 
@@ -19,14 +19,13 @@ BUILD_DEPENDS+=             ragel-[0-9]*:../../deve
 
 GNU_CONFIGURE_LIBSUBDIR=pdns
 
-CONFIGURE_ARGS+=       --enable-pdns_server
-CONFIGURE_ARGS+=       --with-system-polarssl
 CONFIGURE_ARGS+=       --without-lua
+CONFIGURE_ARGS+=       --with-boost=${BUILDLINK_PREFIX.boost-headers}
 
 BUILDLINK_TRANSFORM+=  rm:-fstack-protector
 
 .include "../../mk/dlopen.buildlink3.mk"
 .include "../../devel/boost-headers/buildlink3.mk"
 .include "../../devel/boost-libs/buildlink3.mk"
-.include "../../security/mbedtls1/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"

Index: pkgsrc/net/powerdns/PLIST
diff -u pkgsrc/net/powerdns/PLIST:1.8 pkgsrc/net/powerdns/PLIST:1.9
--- pkgsrc/net/powerdns/PLIST:1.8       Fri Jun  3 11:45:34 2016
+++ pkgsrc/net/powerdns/PLIST   Thu Mar  9 13:32:54 2017
@@ -1,32 +1,47 @@
-@comment $NetBSD: PLIST,v 1.8 2016/06/03 11:45:34 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.9 2017/03/09 13:32:54 fhajny Exp $
 ${PLIST.tools}bin/dnsbulktest
+${PLIST.tools}bin/dnsgram
 ${PLIST.tools}bin/dnsreplay
 ${PLIST.tools}bin/dnsscan
 ${PLIST.tools}bin/dnsscope
 ${PLIST.tools}bin/dnstcpbench
 ${PLIST.tools}bin/dnswasher
+${PLIST.tools}bin/dumresp
+${PLIST.tools}bin/ixplore
 ${PLIST.tools}bin/nproxy
 ${PLIST.tools}bin/nsec3dig
 bin/pdns_control
-bin/pdnssec
+${PLIST.tools}bin/pdns_notify
+bin/pdnsutil
 ${PLIST.tools}bin/saxfr
+${PLIST.tools}bin/sdig
+${PLIST.tools}bin/stubquery
 bin/zone2json
-bin/zone2ldap
 bin/zone2sql
-lib/pdns/pdns/libgeobackend.la
 ${PLIST.bind}lib/pdns/pdns/libbindbackend.la
+${PLIST.sqlite}lib/pdns/pdns/libgsqlite3backend.la
 ${PLIST.pipe}lib/pdns/pdns/libpipebackend.la
 ${PLIST.random}lib/pdns/pdns/librandombackend.la
 ${PLIST.remote}lib/pdns/pdns/libremotebackend.la
-${PLIST.sqlite}lib/pdns/pdns/libgsqlite3backend.la
-${PLIST.tools}man/man1/dnstcpbench.1
-${PLIST.tools}man/man1/dnsreplay.1
-${PLIST.tools}man/man1/dnsscope.1
-${PLIST.tools}man/man1/dnstcpbench.1
-${PLIST.tools}man/man1/dnswasher.1
+man/man1/calidns.1
+man/man1/dnsbulktest.1
+man/man1/dnsgram.1
+man/man1/dnsreplay.1
+man/man1/dnsscan.1
+man/man1/dnsscope.1
+man/man1/dnstcpbench.1
+man/man1/dnswasher.1
+man/man1/dumresp.1
+man/man1/ixplore.1
+man/man1/nproxy.1
+man/man1/nsec3dig.1
 man/man1/pdns_control.1
+man/man1/pdns_notify.1
 man/man1/pdns_server.1
-man/man1/pdnssec.1
+man/man1/pdnsutil.1
+man/man1/saxfr.1
+man/man1/sdig.1
+man/man1/zone2json.1
 man/man1/zone2ldap.1
 man/man1/zone2sql.1
 sbin/pdns_server

Index: pkgsrc/net/powerdns/distinfo
diff -u pkgsrc/net/powerdns/distinfo:1.21 pkgsrc/net/powerdns/distinfo:1.22
--- pkgsrc/net/powerdns/distinfo:1.21   Fri Jun  3 11:45:34 2016
+++ pkgsrc/net/powerdns/distinfo        Thu Mar  9 13:32:54 2017
@@ -1,26 +1,11 @@
-$NetBSD: distinfo,v 1.21 2016/06/03 11:45:34 fhajny Exp $
+$NetBSD: distinfo,v 1.22 2017/03/09 13:32:54 fhajny Exp $
 
-SHA1 (pdns-3.4.9.tar.bz2) = 51f677c692af92e6c84c5706d0698ce2c1a80de4
-RMD160 (pdns-3.4.9.tar.bz2) = f1eb7f5ffd4f94c1ab468ca82d65dea433f2d5f0
-SHA512 (pdns-3.4.9.tar.bz2) = ad0d619bfa0bbce332c4c16734cb37c588cf0d7a05bde3a484ecdf13492ca9b4b4d8d7afe448c5c2c6d35b72165f3c8fbd41a91fd5cfbe4194a3eddc5f600a38
-Size (pdns-3.4.9.tar.bz2) = 1351434 bytes
-SHA1 (patch-aa) = a7e66245ab7acbff4f568650ee285ee18a88ea56
-SHA1 (patch-ab) = a816def3825c0260642dab85f518bebaf4ba904b
-SHA1 (patch-modules_luabackend_luabackend.hh) = 23ae1a2c047f367a51b7bfa10a546aeb91cccea4
-SHA1 (patch-modules_pipebackend_pipebackend.cc) = 975cf47dc92bf4402167b5a25f85eaf527398c06
-SHA1 (patch-modules_pipebackend_pipebackend.hh) = 3ff9f666a1b348810be38ffe67fd740521390630
-SHA1 (patch-pdns_botan18signers.cc) = 58df2d630ac46ea2fd1ce2699ce7a3bd927de177
-SHA1 (patch-pdns_dns.hh) = 6f47292c573d1a01cdd2ba3312edf17e216c2dbc
-SHA1 (patch-pdns_dnspacket.cc) = 0b612b1458a1f6e9504959ac7d48f3b29275cdd4
-SHA1 (patch-pdns_dnsparser.cc) = 3b7f1929013261d09112394e525dede41e03afff
-SHA1 (patch-pdns_dnsparser.hh) = 1ad7090312992915a0ad9bf8b006d229262936c3
-SHA1 (patch-pdns_dnsscope.cc) = a42bbda2d5d9e2bc2a0004ffc77efcd5d5beeb28
-SHA1 (patch-pdns_dynloader.cc) = 9a4119a17a5ed2144737d2b6161aceaa633f66c6
-SHA1 (patch-pdns_htimer.cc) = 6064c73db33d2e7cc65979757e90ecdf8d7c16e6
-SHA1 (patch-pdns_misc.cc) = 832cf6bd2f0b018d66a49e5b0f9f879a107c1a90
-SHA1 (patch-pdns_nameserver.cc) = 13011d7cd1e6915c4b547f7817fa72e595ac2a3a
-SHA1 (patch-pdns_pdns_recursor.cc) = 97f3688baef5a7520514764a4590d0b92fa51fda
-SHA1 (patch-pdns_receiver.cc) = a7f44e2c9196f27fc5855183a8e3c34565a9e34c
-SHA1 (patch-pdns_recursor__cache.cc) = 36dc4c4691f6d88fb7b6cc452cda19dc07a1b53b
-SHA1 (patch-pdns_resolver.cc) = 0f3de1aef64d1e24a5b0f87bfdd866c75ff3c1ff
-SHA1 (patch-pdns_tcpreceiver.cc) = 994203d32464044ca303973cc27ac4080a654678
+SHA1 (pdns-4.0.3.tar.bz2) = de3562f135d31c6ccf9363f587bb59a5f65d1d91
+RMD160 (pdns-4.0.3.tar.bz2) = 5befc3a60dbbb14386f3557c7c419ee4b92b2438
+SHA512 (pdns-4.0.3.tar.bz2) = 58d33ac6cf457a916bae6abd8d2dc17f76fbcd1bd9e649948584dd669f5596b43e3e4d91841700ea1ea2cd1ac102749e503cd9075273540f33a2321e20d8bfc2
+Size (pdns-4.0.3.tar.bz2) = 1312299 bytes
+SHA1 (patch-configure) = 675ce8b372819a746ec9d4fbff6bea30ecd86734
+SHA1 (patch-pdns_dns.hh) = 626eb4e29b7fcd82fbe056036c157c1e85fa49ca
+SHA1 (patch-pdns_dnsscope.cc) = b289b750686b25041c3e291fb0d3d562beb36eaf
+SHA1 (patch-pdns_iputils.hh) = 48df687a1e5116238aa4f04ff89cbdc2b4b4dfc3
+SHA1 (patch-pdns_qtype.hh) = 0f8bca4c0cafea9a5257a08077fa42b4c52127f5

Index: pkgsrc/net/powerdns/options.mk
diff -u pkgsrc/net/powerdns/options.mk:1.4 pkgsrc/net/powerdns/options.mk:1.5
--- pkgsrc/net/powerdns/options.mk:1.4  Thu May 19 22:12:09 2016
+++ pkgsrc/net/powerdns/options.mk      Thu Mar  9 13:32:54 2017
@@ -1,8 +1,7 @@
-# $NetBSD: options.mk,v 1.4 2016/05/19 22:12:09 joerg Exp $
+# $NetBSD: options.mk,v 1.5 2017/03/09 13:32:54 fhajny Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.powerdns
-PKG_SUPPORTED_OPTIONS= bind botan cryptopp pipe random remote sqlite tools
-PKG_SUPPORTED_OPTIONS+=        zeromq
+PKG_SUPPORTED_OPTIONS= bind botan pipe random remote sqlite tools zeromq
 PKG_SUGGESTED_OPTIONS= bind pipe random
 
 .include "../../mk/bsd.options.mk"
@@ -20,17 +19,6 @@ CONFIGURE_ARGS+=     --enable-botan1.10
 .include "../../security/botan/buildlink3.mk"
 .endif
 
-.if !empty(PKG_OPTIONS:Mcryptopp)
-.include "../../security/crypto++/buildlink3.mk"
-CONFIGURE_ARGS+=       --enable-cryptopp=yes
-CRYPTOPP_CFLAGS=       -I${BUILDLINK_PREFIX.cryptopp}/include
-CRYPTOPP_LIBS=         -L${BUILDLINK_PREFIX.cryptopp}/lib -Wl,-R${BUILDLINK_PREFIX.cryptopp}/lib -lcryptopp
-CONFIGURE_ENV+=                CRYPTOPP_CFLAGS=${CRYPTOPP_CFLAGS:Q}
-CONFIGURE_ENV+=                CRYPTOPP_LIBS=${CRYPTOPP_LIBS:Q}
-.else
-CONFIGURE_ARGS+=       --enable-cryptopp=no
-.endif
-
 .if !empty(PKG_OPTIONS:Mpipe)
 PLIST.pipe=            yes
 PDNS_MODULES+=         pipe
@@ -58,8 +46,12 @@ PLIST.tools=         yes
 .endif
 
 .if !empty(PKG_OPTIONS:Mzeromq)
-.include "../../net/zeromq/buildlink3.mk"
+.  if empty(PKG_OPTIONS:Mremote)
+PKG_FAIL_REASON+=      "The 'zeromq' option requires the 'remote' option enabled."
+.  else
 CONFIGURE_ARGS+=       --enable-remotebackend-zeromq=yes
+.include "../../net/zeromq/buildlink3.mk"
+.  endif
 .else
 CONFIGURE_ARGS+=       --enable-remotebackend-zeromq=no
 .endif

Index: pkgsrc/net/powerdns/patches/patch-pdns_dns.hh
diff -u pkgsrc/net/powerdns/patches/patch-pdns_dns.hh:1.4 pkgsrc/net/powerdns/patches/patch-pdns_dns.hh:1.5
--- pkgsrc/net/powerdns/patches/patch-pdns_dns.hh:1.4   Fri Mar 27 23:37:52 2015
+++ pkgsrc/net/powerdns/patches/patch-pdns_dns.hh       Thu Mar  9 13:32:54 2017
@@ -1,13 +1,14 @@
-$NetBSD: patch-pdns_dns.hh,v 1.4 2015/03/27 23:37:52 rodent Exp $
+$NetBSD: patch-pdns_dns.hh,v 1.5 2017/03/09 13:32:54 fhajny Exp $
 
-Add DragonFly support.
---- pdns/dns.hh.orig   2015-03-02 13:17:09.000000000 +0000
+Add NetBSD support.
+
+--- pdns/dns.hh.orig   2017-01-17 08:43:49.000000000 +0000
 +++ pdns/dns.hh
-@@ -207,7 +207,7 @@ enum  {
-         ns_t_any = 255,         /* Wildcard match. */
- };
+@@ -146,7 +146,7 @@ struct EDNS0Record
+ 
+ static_assert(sizeof(EDNS0Record) == 4, "EDNS0Record size must be 4");
  
--#if __FreeBSD__ || __APPLE__ || __OpenBSD__ || __DragonFly__ || defined(__FreeBSD_kernel__)
+-#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)
 +#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__)
  #include <machine/endian.h>
  #elif __linux__ || __GNU__

Index: pkgsrc/net/powerdns/patches/patch-pdns_dnsscope.cc
diff -u pkgsrc/net/powerdns/patches/patch-pdns_dnsscope.cc:1.2 pkgsrc/net/powerdns/patches/patch-pdns_dnsscope.cc:1.3
--- pkgsrc/net/powerdns/patches/patch-pdns_dnsscope.cc:1.2      Fri Mar 27 23:37:52 2015
+++ pkgsrc/net/powerdns/patches/patch-pdns_dnsscope.cc  Thu Mar  9 13:32:54 2017
@@ -1,11 +1,12 @@
-$NetBSD: patch-pdns_dnsscope.cc,v 1.2 2015/03/27 23:37:52 rodent Exp $
+$NetBSD: patch-pdns_dnsscope.cc,v 1.3 2017/03/09 13:32:54 fhajny Exp $
 
 IP_OFFMASK not defined on SunOS.
---- pdns/dnsscope.cc.orig      2015-03-02 13:17:10.000000000 +0000
+
+--- pdns/dnsscope.cc.orig      2017-01-17 08:43:49.000000000 +0000
 +++ pdns/dnsscope.cc
-@@ -16,6 +16,10 @@
- #include "namespaces.hh"
- #include <deque>
+@@ -43,6 +43,10 @@
+ #include "dnsrecords.hh"
+ #include "statnode.hh"
  
 +#ifndef IP_OFFMASK
 +# define        IP_OFFMASK      0x1fff

Added files:

Index: pkgsrc/net/powerdns/patches/patch-configure
diff -u /dev/null pkgsrc/net/powerdns/patches/patch-configure:1.4
--- /dev/null   Thu Mar  9 13:32:54 2017
+++ pkgsrc/net/powerdns/patches/patch-configure Thu Mar  9 13:32:54 2017
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.4 2017/03/09 13:32:54 fhajny Exp $
+
+Portability.
+
+--- configure.orig     2017-01-17 08:44:02.000000000 +0000
++++ configure
+@@ -25420,7 +25420,7 @@ $as_echo "$as_me: Built-in modules: $mod
+ $as_echo "$as_me: Dynamic modules: $dynmodules" >&6;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
+ $as_echo "$as_me: " >&6;}
+-if test "x$libcrypto_ecdsa" == "xyes"; then :
++if test "x$libcrypto_ecdsa" = "xyes"; then :
+   { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL ecdsa: yes" >&5
+ $as_echo "$as_me: OpenSSL ecdsa: yes" >&6;}
+ else

Index: pkgsrc/net/powerdns/patches/patch-pdns_iputils.hh
diff -u /dev/null pkgsrc/net/powerdns/patches/patch-pdns_iputils.hh:1.1
--- /dev/null   Thu Mar  9 13:32:54 2017
+++ pkgsrc/net/powerdns/patches/patch-pdns_iputils.hh   Thu Mar  9 13:32:54 2017
@@ -0,0 +1,17 @@
+$NetBSD: patch-pdns_iputils.hh,v 1.1 2017/03/09 13:32:54 fhajny Exp $
+
+Do not use IP_PKTINFO on NetBSD, the structure is not as expected.
+
+--- pdns/iputils.hh.orig       2017-01-17 08:43:49.000000000 +0000
++++ pdns/iputils.hh
+@@ -40,6 +40,10 @@
+ 
+ #include "namespaces.hh"
+ 
++#if defined(__NetBSD__) && defined(IP_PKTINFO)
++#undef IP_PKTINFO
++#endif
++
+ #ifdef __APPLE__
+ #include <libkern/OSByteOrder.h>
+ 
Index: pkgsrc/net/powerdns/patches/patch-pdns_qtype.hh
diff -u /dev/null pkgsrc/net/powerdns/patches/patch-pdns_qtype.hh:1.1
--- /dev/null   Thu Mar  9 13:32:54 2017
+++ pkgsrc/net/powerdns/patches/patch-pdns_qtype.hh     Thu Mar  9 13:32:54 2017
@@ -0,0 +1,17 @@
+$NetBSD: patch-pdns_qtype.hh,v 1.1 2017/03/09 13:32:54 fhajny Exp $
+
+Avoid symbol pollution on SunOS.
+
+--- pdns/qtype.hh.orig 2017-01-17 08:43:49.000000000 +0000
++++ pdns/qtype.hh
+@@ -26,6 +26,10 @@
+ #include <vector>
+ #include "namespaces.hh"
+ 
++#if defined(__sun) && defined(DS)
++#undef DS
++#endif
++
+ /** The QType class is meant to deal easily with the different kind of resource types, like 'A', 'NS',
+  *  'CNAME' etcetera. These types have both a name and a number. This class can seamlessly move between
+  *   them. Use it like this:



Home | Main Index | Thread Index | Old Index