pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net powerdns: updated to 4.2.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d30f30d3dc66
branches:  trunk
changeset: 413265:d30f30d3dc66
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Mar 17 19:04:49 2020 +0000

description:
powerdns: updated to 4.2.1

4.2.1
This release fixes several bugs and makes a few features more robust or intuitive. It also contains a few performance improvements for API users.

New Features
Add SLAVE-RENOTIFY zone metadata support
Add configurable timeout for inbound AXFR
Add CentOS 8 as builder target
gmysql backend, add an option to send the SSL capability flag

Improvements
API: reduce number of database connections
Register a few known RR types and remove an unknown one
bindbackend: use metadata for also-notifies as well
pdnsutil increase-serial: under SOA-EDIT=INCEPTION-EPOCH, bump as if it is EPOCH
API: optionally do not return dnssec info in domain list
Basic validation of $GENERATE parameters

Bug Fixes
LUA view: do not crash on empty IP list
API: Accept headers without spaces
Avoid database state-related SERVFAILs after a LUA error
Just before 4.2.0, some SQL-related fixes broke edit-zone and other features with the LMDB backend. This has been fixed now.
rfc2136, pdnsutil: somewhat improve duplicate record handling


4.2.0
Compared to the last release candidate, one more bug has been fixed.

The LMDB backend is incomplete in this version. Slaving zones works, loading zones with pdnsutil works, but more fine grained edits (using edit-zone, or the REST API) fail. We hope to fix this soon 
in a 4.2.x release.

For an overview of features new since 4.1.x, please see the 4.2.0 announcement blog post.

Bug Fixes
bind getAllDomains: ignore per-zone exceptions

diffstat:

 net/powerdns-ldap/Makefile                       |   3 +-
 net/powerdns-mysql/PLIST                         |   3 +-
 net/powerdns-odbc/PLIST                          |   3 +-
 net/powerdns-pgsql/PLIST                         |   3 +-
 net/powerdns/Makefile                            |   3 +-
 net/powerdns/Makefile.backend                    |   3 +-
 net/powerdns/Makefile.common                     |   5 +-
 net/powerdns/PLIST                               |   7 +++-
 net/powerdns/distinfo                            |  16 +++----
 net/powerdns/options.mk                          |  16 ++++++-
 net/powerdns/patches/patch-configure             |  46 +++++++----------------
 net/powerdns/patches/patch-m4_pdns__check__os.m4 |  36 ------------------
 net/powerdns/patches/patch-pdns_dns.hh           |  15 -------
 net/powerdns/patches/patch-pdns_version.cc       |  23 ++++-------
 14 files changed, 61 insertions(+), 121 deletions(-)

diffs (truncated from 357 to 300 lines):

diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns-ldap/Makefile
--- a/net/powerdns-ldap/Makefile        Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns-ldap/Makefile        Tue Mar 17 19:04:49 2020 +0000
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile,v 1.19 2020/01/18 21:50:23 jperkin Exp $
+# $NetBSD: Makefile,v 1.20 2020/03/17 19:04:49 adam Exp $
 
-PKGREVISION= 1
 .include "../../net/powerdns/Makefile.backend"
 
 PKGNAME=               ${DISTNAME:S/pdns/powerdns-ldap/}
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns-mysql/PLIST
--- a/net/powerdns-mysql/PLIST  Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns-mysql/PLIST  Tue Mar 17 19:04:49 2020 +0000
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.6 2018/01/02 12:18:15 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.7 2020/03/17 19:04:49 adam Exp $
 lib/pdns/libgmysqlbackend.la
 share/doc/pdns/3.4.0_to_4.1.0_schema.mysql.sql
+share/doc/pdns/4.1.0_to_4.2.0_schema.mysql.sql
 share/doc/pdns/dnssec-3.x_to_3.4.0_schema.mysql.sql
 share/doc/pdns/nodnssec-3.x_to_3.4.0_schema.mysql.sql
 share/doc/pdns/schema.mysql.sql
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns-odbc/PLIST
--- a/net/powerdns-odbc/PLIST   Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns-odbc/PLIST   Tue Mar 17 19:04:49 2020 +0000
@@ -1,3 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2018/01/02 12:18:15 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.3 2020/03/17 19:04:49 adam Exp $
 lib/pdns/libgodbcbackend.la
+share/doc/pdns/4.0.0_to_4.2.0_schema.mssql.sql
 share/doc/pdns/schema.mssql.sql
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns-pgsql/PLIST
--- a/net/powerdns-pgsql/PLIST  Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns-pgsql/PLIST  Tue Mar 17 19:04:49 2020 +0000
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.5 2018/01/02 12:18:16 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.6 2020/03/17 19:04:50 adam Exp $
 lib/pdns/libgpgsqlbackend.la
 share/doc/pdns/3.4.0_to_4.1.0_schema.pgsql.sql
+share/doc/pdns/4.1.0_to_4.2.0_schema.pgsql.sql
 share/doc/pdns/dnssec-3.x_to_3.4.0_schema.pgsql.sql
 share/doc/pdns/nodnssec-3.x_to_3.4.0_schema.pgsql.sql
 share/doc/pdns/schema.pgsql.sql
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns/Makefile
--- a/net/powerdns/Makefile     Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns/Makefile     Tue Mar 17 19:04:49 2020 +0000
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile,v 1.48 2020/01/18 21:50:23 jperkin Exp $
+# $NetBSD: Makefile,v 1.49 2020/03/17 19:04:49 adam Exp $
 
-PKGREVISION= 4
 .include "Makefile.common"
 
 PKGNAME=       ${DISTNAME:S/pdns/powerdns/}
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns/Makefile.backend
--- a/net/powerdns/Makefile.backend     Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns/Makefile.backend     Tue Mar 17 19:04:49 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.backend,v 1.6 2017/03/09 13:52:34 fhajny Exp $
+# $NetBSD: Makefile.backend,v 1.7 2020/03/17 19:04:49 adam Exp $
 # used by net/powerdns-geoip/Makefile
 # used by net/powerdns-ldap/Makefile
 # used by net/powerdns-mysql/Makefile
@@ -12,6 +12,7 @@
 DISTINFO_FILE=         ${.CURDIR}/../../net/powerdns/distinfo
 PATCHDIR=              ${.CURDIR}/../../net/powerdns/patches
 
+CONFIGURE_ARGS+=       --disable-lua-records
 CONFIGURE_ARGS+=       --disable-pdns_server
 CONFIGURE_ARGS+=       --with-modules=""
 
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns/Makefile.common
--- a/net/powerdns/Makefile.common      Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns/Makefile.common      Tue Mar 17 19:04:49 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile.common,v 1.27 2019/04/25 18:42:41 adam Exp $
+# $NetBSD: Makefile.common,v 1.28 2020/03/17 19:04:49 adam Exp $
 
-PDNS_VERSION=  4.1.8
+PDNS_VERSION=  4.2.1
 DISTNAME=      pdns-${PDNS_VERSION}
 CATEGORIES=    net
 MASTER_SITES=  http://downloads.powerdns.com/releases/
@@ -17,7 +17,6 @@
 USE_TOOLS+=            bison flex gmake pkg-config
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --with-boost=${BUILDLINK_PREFIX.boost-headers}
-CONFIGURE_ARGS+=       --without-lua
 
 .include "../../devel/boost-headers/buildlink3.mk"
 .include "../../devel/boost-libs/buildlink3.mk"
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns/PLIST
--- a/net/powerdns/PLIST        Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns/PLIST        Tue Mar 17 19:04:49 2020 +0000
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.12 2019/04/25 18:42:41 adam Exp $
+@comment $NetBSD: PLIST,v 1.13 2020/03/17 19:04:49 adam Exp $
 ${PLIST.tools}bin/calidns
 ${PLIST.tools}bin/dnsbulktest
 ${PLIST.tools}bin/dnsgram
+bin/dnspcap2calidns
 ${PLIST.tools}bin/dnsreplay
 ${PLIST.tools}bin/dnsscan
 ${PLIST.tools}bin/dnsscope
@@ -21,12 +22,14 @@
 bin/zone2sql
 ${PLIST.bind}lib/pdns/libbindbackend.la
 ${PLIST.sqlite}lib/pdns/libgsqlite3backend.la
+${PLIST.lua}lib/pdns/libluabackend.la
 ${PLIST.pipe}lib/pdns/libpipebackend.la
 ${PLIST.random}lib/pdns/librandombackend.la
 ${PLIST.remote}lib/pdns/libremotebackend.la
 ${PLIST.tools}man/man1/calidns.1
 man/man1/dnsbulktest.1
 ${PLIST.tools}man/man1/dnsgram.1
+man/man1/dnspcap2calidns.1
 ${PLIST.tools}man/man1/dnsreplay.1
 ${PLIST.tools}man/man1/dnsscan.1
 ${PLIST.tools}man/man1/dnsscope.1
@@ -45,6 +48,8 @@
 man/man1/zone2json.1
 man/man1/zone2sql.1
 sbin/pdns_server
+${PLIST.sqlite}share/doc/pdns/3.4.0_to_4.0.0_schema.sqlite3.sql
+${PLIST.sqlite}share/doc/pdns/4.0.0_to_4.2.0_schema.sqlite3.sql
 ${PLIST.sqlite}share/doc/pdns/dnssec-3.x_to_3.4.0_schema.sqlite3.sql
 ${PLIST.sqlite}share/doc/pdns/nodnssec-3.x_to_3.4.0_schema.sqlite3.sql
 ${PLIST.sqlite}share/doc/pdns/schema.sqlite3.sql
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns/distinfo
--- a/net/powerdns/distinfo     Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns/distinfo     Tue Mar 17 19:04:49 2020 +0000
@@ -1,15 +1,13 @@
-$NetBSD: distinfo,v 1.37 2019/04/25 18:42:41 adam Exp $
+$NetBSD: distinfo,v 1.38 2020/03/17 19:04:49 adam Exp $
 
-SHA1 (pdns-4.1.8.tar.bz2) = c1b2220781ead0dbd5363f6335535e377283e85b
-RMD160 (pdns-4.1.8.tar.bz2) = 2552af0d6cb9176da6090435a362a2df5dfa987c
-SHA512 (pdns-4.1.8.tar.bz2) = 1113745cdaa8fba591c176721893fb478e976861beee0cb6c0240e5afa6b68c9afae286579036b2ed77fffe76ca1e6f103cda915f8b7b875bcdc1253931ad935
-Size (pdns-4.1.8.tar.bz2) = 1116996 bytes
-SHA1 (patch-configure) = 8218324a863217f954ba63adf242c65c1b864038
+SHA1 (pdns-4.2.1.tar.bz2) = 81a4edb44f53f3f2c36793760ce30f81429fbc97
+RMD160 (pdns-4.2.1.tar.bz2) = 0efc805e4ed45ebdaf16cd97e2e797a37e000ca3
+SHA512 (pdns-4.2.1.tar.bz2) = 40b5533c755d7c0d41cfb273b704a45a3006dafc98c79bf41cae43d9e2d03bbd7a663996a7f209c390a89c5f7161f2f6246389beef18fbac48e95907e1b7936a
+Size (pdns-4.2.1.tar.bz2) = 1252829 bytes
+SHA1 (patch-configure) = 1503efadf2d8baaaa0887b61bd4f7672ea33a043
 SHA1 (patch-ext_json11_json11.cpp) = a8ffe67156a836841aef8a6bba134a82283f381e
-SHA1 (patch-m4_pdns__check__os.m4) = c7a8d91c519ae7ca0616dfc08fa04402fca950d0
-SHA1 (patch-pdns_dns.hh) = 626eb4e29b7fcd82fbe056036c157c1e85fa49ca
 SHA1 (patch-pdns_dnsscope.cc) = b289b750686b25041c3e291fb0d3d562beb36eaf
 SHA1 (patch-pdns_iputils.cc) = fbd3bb210216bb98c3cd73b702b6dea486c51dec
 SHA1 (patch-pdns_iputils.hh) = 714277322ea721ea0439fc6aa0265bd290219e8b
 SHA1 (patch-pdns_qtype.hh) = 0f8bca4c0cafea9a5257a08077fa42b4c52127f5
-SHA1 (patch-pdns_version.cc) = be2035a37a554f64b8e6dad8f7faa112aba10f6c
+SHA1 (patch-pdns_version.cc) = 25917c329dafa34e657fa31c7a9abd99110bb4b0
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns/options.mk
--- a/net/powerdns/options.mk   Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns/options.mk   Tue Mar 17 19:04:49 2020 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: options.mk,v 1.6 2018/01/02 12:18:15 fhajny Exp $
+# $NetBSD: options.mk,v 1.7 2020/03/17 19:04:49 adam Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.powerdns
-PKG_SUPPORTED_OPTIONS= bind botan pipe random remote sqlite tools zeromq
+PKG_SUPPORTED_OPTIONS= bind botan lua pipe random remote sqlite tools zeromq
 PKG_SUGGESTED_OPTIONS= bind pipe random
 
 .include "../../mk/bsd.options.mk"
 
-PLIST_VARS+=           bind pipe random remote sqlite tools
+PLIST_VARS+=           bind lua pipe random remote sqlite tools
 
 .if !empty(PKG_OPTIONS:Mbind)
 PDNS_MODULES+=         bind
@@ -18,6 +18,16 @@
 .include "../../security/botan-devel/buildlink3.mk"
 .endif
 
+.if !empty(PKG_OPTIONS:Mlua)
+.include "../../lang/lua/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+PLIST.lua=             yes
+PDNS_MODULES+=         lua
+.else
+CONFIGURE_ARGS+=       --disable-lua-records
+CONFIGURE_ARGS+=       --without-lua
+.endif
+
 .if !empty(PKG_OPTIONS:Mpipe)
 PLIST.pipe=            yes
 PDNS_MODULES+=         pipe
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns/patches/patch-configure
--- a/net/powerdns/patches/patch-configure      Tue Mar 17 18:59:44 2020 +0000
+++ b/net/powerdns/patches/patch-configure      Tue Mar 17 19:04:49 2020 +0000
@@ -1,40 +1,22 @@
-$NetBSD: patch-configure,v 1.8 2018/02/02 10:03:05 jperkin Exp $
+$NetBSD: patch-configure,v 1.9 2020/03/17 19:04:49 adam Exp $
 
-Regen after excluding -latomic test on NetBSD.
+Do not add default compiler flags.
 Leave pkgsrc to handle security features.
 
---- configure.orig     2017-11-30 09:43:31.000000000 +0000
+--- configure.orig     2019-11-29 19:23:06.000000000 +0000
 +++ configure
-@@ -5569,9 +5569,14 @@ else
- fi
+@@ -3721,8 +3721,8 @@ case $host_os in *\ *) host_os=`echo "$h
  
  
--  case "$host" in
--  mips* | powerpc-* )
--    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -latomic" >&5
-+  case "$host_os" in
-+  netbsd*)
-+    : # no -latomic
-+    ;;
-+  *)
-+    case "$host" in
-+    mips* | powerpc-* )
-+      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -latomic" >&5
- $as_echo_n "checking whether the linker accepts -latomic... " >&6; }
-     LDFLAGS="-latomic $LDFLAGS"
-     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-@@ -5593,7 +5598,9 @@ else
+ # Add some default CFLAGS and CXXFLAGS, can be appended to using the environment variables
+-CFLAGS="-Wall -g -O2 $CFLAGS"
+-CXXFLAGS="-Wall -g -O2 $CXXFLAGS"
++CFLAGS="-Wall $CFLAGS"
++CXXFLAGS="-Wall $CXXFLAGS"
  
- fi
- rm -f core conftest.err conftest.$ac_objext \
--    conftest$ac_exeext conftest.$ac_ext
-+      conftest$ac_exeext conftest.$ac_ext
-+      ;;
-+    esac
-     ;;
-   esac
- 
-@@ -6797,7 +6804,7 @@ rm -f core conftest.err conftest.$ac_obj
+ ac_ext=c
+ ac_cpp='$CPP $CPPFLAGS'
+@@ -7884,7 +7884,7 @@ rm -f core conftest.err conftest.$ac_obj
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__fstack_protector" >&5
  $as_echo "$gl_cv_warn_cxx__fstack_protector" >&6; }
@@ -43,7 +25,7 @@
  
          CFLAGS="-fstack-protector $CFLAGS"
          CXXFLAGS="-fstack-protector $CXXFLAGS"
-@@ -20586,7 +20593,7 @@ fi
+@@ -22723,7 +22723,7 @@ fi
  
    if test "x$PG_CONFIG" != "x" -o "x$PGSQL_LIBS" = "x"; then :
  
@@ -52,7 +34,7 @@
  
        # Extract the first word of "pg_config", so it can be a program name with args.
  set dummy pg_config; ac_word=$2
-@@ -20630,7 +20637,7 @@ fi
+@@ -22767,7 +22767,7 @@ fi
  
  
  fi
diff -r ce8cbe13b800 -r d30f30d3dc66 net/powerdns/patches/patch-m4_pdns__check__os.m4
--- a/net/powerdns/patches/patch-m4_pdns__check__os.m4  Tue Mar 17 18:59:44 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-$NetBSD: patch-m4_pdns__check__os.m4,v 1.2 2018/01/02 12:18:15 fhajny Exp $
-
-Don't insist on -latomic on mips & powerpc if on NetBSD.
-
---- m4/pdns_check_os.m4.orig   2017-11-30 09:43:22.000000000 +0000
-+++ m4/pdns_check_os.m4
-@@ -35,14 +35,21 @@ AC_DEFUN([PDNS_CHECK_OS],[
-   AM_CONDITIONAL([HAVE_LINUX], [test "x$have_linux" = "xyes"])
-   AM_CONDITIONAL([HAVE_SOLARIS], [test "x$have_solaris" = "xyes"])
- 
--  case "$host" in
--  mips* | powerpc-* )
--    AC_MSG_CHECKING([whether the linker accepts -latomic])
--    LDFLAGS="-latomic $LDFLAGS"
--    AC_LINK_IFELSE([m4_default([],[AC_LANG_PROGRAM()])],
--      [AC_MSG_RESULT([yes])],
--      [AC_MSG_ERROR([Unable to link against libatomic, cannot continue])]
--    )
-+  case "$host_os" in
-+  netbsd*)
-+    : # no -latomic
-+    ;;
-+  *)
-+    case "$host" in
-+    mips* | powerpc-* )
-+      AC_MSG_CHECKING([whether the linker accepts -latomic])
-+      LDFLAGS="-latomic $LDFLAGS"
-+      AC_LINK_IFELSE([m4_default([],[AC_LANG_PROGRAM()])],
-+        [AC_MSG_RESULT([yes])],
-+        [AC_MSG_ERROR([Unable to link against libatomic, cannot continue])]
-+      )



Home | Main Index | Thread Index | Old Index