Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 May 2020 07:33:49 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r534332 - in head/dns/powerdns: . files
Message-ID:  <202005080733.0487XnZn088415@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Fri May  8 07:33:49 2020
New Revision: 534332
URL: https://svnweb.freebsd.org/changeset/ports/534332

Log:
  dns/powerdns: update 4.2.1 -> 4.3.0
  
  Please note that 4.3.0 comes with a mandatory database schema upgrade.
  See: https://doc.powerdns.com/authoritative/upgrading.html#x-to-4-3-0
  
  - added OPTIONS LMDB backend
  - removed OPTIONS MyDNS backend
  - removed OPTIONS OpenDBX backend
  - removed patch-fix_memleak_bindbackend
  - added `pidfile=/var/run/pdns/pdns_server.pid` to the rc script.
  - updated pkg-descr with a more descriptive blurb from their web page.
  
  PR:		246262
  Submitted by:	yds@Necessitu.de
  Approved by:	Ralf van der Enden <tremere@cainites.net> (maintainer)
  Relnotes:	https://blog.powerdns.com/2020/04/07/powerdns-authoritative-4-3-0/

Added:
  head/dns/powerdns/files/patch-dns_random.cc   (contents, props changed)
Deleted:
  head/dns/powerdns/files/patch-fix_memleak_bindbackend
  head/dns/powerdns/files/patch-pdns_dns__random.cc
Modified:
  head/dns/powerdns/Makefile
  head/dns/powerdns/distinfo
  head/dns/powerdns/files/patch-configure
  head/dns/powerdns/files/pdns.in
  head/dns/powerdns/files/pkg-message.in
  head/dns/powerdns/pkg-descr
  head/dns/powerdns/pkg-plist

Modified: head/dns/powerdns/Makefile
==============================================================================
--- head/dns/powerdns/Makefile	Fri May  8 07:30:11 2020	(r534331)
+++ head/dns/powerdns/Makefile	Fri May  8 07:33:49 2020	(r534332)
@@ -1,8 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	powerdns
-DISTVERSION=	4.2.1
-PORTREVISION=	1
+DISTVERSION=	4.3.0
 CATEGORIES=	dns
 MASTER_SITES=	https://downloads.powerdns.com/releases/
 DISTNAME=	pdns-${DISTVERSION}
@@ -37,10 +36,10 @@ SCRIPTS_ENV=	CURDIR2="${.CURDIR}" DISTNAME="${DISTNAME
 		WRKDIRPREFIX="${WRKDIRPREFIX}"
 SUB_FILES=	pkg-message
 
-OPTIONS_DEFINE=			DOCS EXAMPLES GEOIP LUABACKEND LUAJIT MYDNS \
-				MYSQL OPENDBX OPENLDAP PGSQL PROTOBUF REMOTE \
+OPTIONS_DEFINE=			DOCS EXAMPLES GEOIP LMDB LUABACKEND LUAJIT \
+				MYSQL OPENLDAP PGSQL PROTOBUF REMOTE \
 				SQLITE3 TINYDNS TOOLS UNIXODBC
-OPTIONS_DEFAULT=		MYSQL PGSQL SQLITE3
+OPTIONS_DEFAULT=		LMDB MYSQL PGSQL SQLITE3
 OPTIONS_GROUP=			GEOIPOPT REMOTEOPT
 OPTIONS_GROUP_REMOTEOPT=	ZEROMQ
 
@@ -48,11 +47,10 @@ OPTIONS_SUB=	yes
 
 GEOIPOPT_DESC=		GeoIP DB options
 GEOIP_DESC=		GeoIP backend (GeoIP2 DB)
+LMDB_DESC=		LMDB backend
 LUABACKEND_DESC=	Lua2 backend
 LUAJIT_DESC=		Use LuaJIT instead of Lua
-MYDNS_DESC=		MyDNS backend
 MYSQL_DESC=		MySQL backend
-OPENDBX_DESC=		OpenDBX backend
 OPENLDAP_DESC=		OpenLDAP backend
 PGSQL_DESC=		PostgreSQL backend
 PROTOBUF_DESC=		Protobuf support
@@ -67,24 +65,22 @@ GEOIP_LIB_DEPENDS=	libmaxminddb.so:net/libmaxminddb \
 			libyaml-cpp.so:devel/yaml-cpp
 GEOIP_VARS=		MODULES+=geoip
 
+LMDB_LIB_DEPENDS=	liblmdb.so:databases/lmdb
+LMDB_CONFIGURE_OFF=	--without-lmdb
+LMDB_CONFIGURE_ON=	--with-lmdb=${LOCALBASE}
+LMDB_VARS=		MODULES+=lmdb
+
 LUABACKEND_VARS=	MODULES+=lua2
 
 LUAJIT_LIB_DEPENDS=	libluajit-5.1.so.2:lang/luajit-openresty
 LUAJIT_USES_OFF=	lua
 LUAJIT_CONFIGURE_ON=	--with-lua=luajit
 
-MYDNS_USES=		mysql
-MYDNS_CONFIGURE_ON=	--with-mysql=${LOCALBASE}
-MYDNS_VARS=		MODULES+=mydns
-
 MYSQL_USES=		mysql
 MYSQL_CONFIGURE_OFF=	--without-mysql
 MYSQL_CONFIGURE_ON=	--with-mysql=${LOCALBASE}
 MYSQL_VARS=		MODULES+=gmysql
 
-OPENDBX_LIB_DEPENDS=	libopendbx.so:databases/opendbx
-OPENDBX_VARS=		MODULES+=opendbx
-
 OPENLDAP_USE=		OPENLDAP=YES
 OPENLDAP_CXXFLAGS=	-DLDAP_DEPRECATED=1
 OPENLDAP_VARS=		MODULES+=ldap
@@ -125,7 +121,7 @@ LIB_DEPENDS+=		libdecaf.so:security/libdecaf \
 .endif
 
 post-install::
-	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}/var/run/pdns
 	@${STAGEDIR}${PREFIX}/sbin/pdns_server --module-dir=${STAGEDIR}${PREFIX}/lib/pdns --launch="pipe bind ${MODULES}" --config > ${STAGEDIR}${EXAMPLESDIR}/pdns.conf
 	@${REINPLACE_CMD} -e 's;${STAGEDIR};;' -i '' ${STAGEDIR}${EXAMPLESDIR}/pdns.conf
 

Modified: head/dns/powerdns/distinfo
==============================================================================
--- head/dns/powerdns/distinfo	Fri May  8 07:30:11 2020	(r534331)
+++ head/dns/powerdns/distinfo	Fri May  8 07:33:49 2020	(r534332)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1575879679
-SHA256 (pdns-4.2.1.tar.bz2) = f65019986b8fcbb1c6fffebcded04b2b397b84395830f4c63e8d119bcfa1aa28
-SIZE (pdns-4.2.1.tar.bz2) = 1252829
+TIMESTAMP = 1588788036
+SHA256 (pdns-4.3.0.tar.bz2) = 6be2e70f100df6f32cb431d5f57ca0aabde1fba6c11d947eccc86d44bdf95d08
+SIZE (pdns-4.3.0.tar.bz2) = 1211536

Modified: head/dns/powerdns/files/patch-configure
==============================================================================
--- head/dns/powerdns/files/patch-configure	Fri May  8 07:30:11 2020	(r534331)
+++ head/dns/powerdns/files/patch-configure	Fri May  8 07:33:49 2020	(r534332)
@@ -1,6 +1,6 @@
---- configure.orig	2019-11-29 19:23:06 UTC
-+++ configure
-@@ -19757,8 +19757,10 @@ fi
+--- configure.orig	2020-02-18 21:26:30.000000000 -0500
++++ configure	2020-02-18 21:26:30.000000000 -0500
+@@ -19774,8 +19774,10 @@
              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/crypto.h in $ssldir" >&5
  $as_echo_n "checking for openssl/crypto.h in $ssldir... " >&6; }
              if test -f "$ssldir/include/openssl/crypto.h"; then

Added: head/dns/powerdns/files/patch-dns_random.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/powerdns/files/patch-dns_random.cc	Fri May  8 07:33:49 2020	(r534332)
@@ -0,0 +1,12 @@
+--- pdns/dns_random.cc.orig	2018-11-29 12:53:42 UTC
++++ pdns/dns_random.cc
+@@ -40,7 +40,9 @@
+ #include <openssl/rand.h>
+ #endif
+ #if defined(HAVE_GETRANDOM)
++extern "C" {
+ #include <sys/random.h>
++}
+ #endif
+ 
+ static enum DNS_RNG {

Modified: head/dns/powerdns/files/pdns.in
==============================================================================
--- head/dns/powerdns/files/pdns.in	Fri May  8 07:30:11 2020	(r534331)
+++ head/dns/powerdns/files/pdns.in	Fri May  8 07:33:49 2020	(r534332)
@@ -21,17 +21,17 @@
 name=pdns
 rcvar=pdns_enable
 
-command=%%PREFIX%%/sbin/pdns_server
+load_rc_config ${name}
 
-# set defaults
-
 pdns_enable=${pdns_enable:-"NO"}
 pdns_conf=${pdns_conf:-"%%PREFIX%%/etc/pdns/pdns.conf"}
-pdns_flags=${pdns_flags:-"--daemon=yes --guardian=yes"}
 
-load_rc_config ${name}
-
 required_files=${pdns_conf}
+
+pidfile=/var/run/pdns/pdns_server.pid
+
+command=%%PREFIX%%/sbin/pdns_server
+command_args="--daemon --guardian"
 
 monitor_cmd="${command} --daemon=no --guardian=no --control-console --loglevel=9"
 extra_commands="monitor"

Modified: head/dns/powerdns/files/pkg-message.in
==============================================================================
--- head/dns/powerdns/files/pkg-message.in	Fri May  8 07:30:11 2020	(r534331)
+++ head/dns/powerdns/files/pkg-message.in	Fri May  8 07:33:49 2020	(r534332)
@@ -1,7 +1,8 @@
 [
 { type: install
   message: <<EOM
- Enable powerdns in /etc/rc.conf with the following line:
+ Enable PowerDNS in /etc/rc.conf(.local) or in
+ /etc/rc.conf.d/pdns with the following line:
 
     pdns_enable="YES"
 
@@ -20,7 +21,12 @@ EOM
  -----------------------------------------------
  This version needs a mandatory schema change for the gmsyql,
  gpgsql and gsqlite3 backends. SQL statements are available in
- %%DOCSDIR%% or http://doc.powerdns.com
+ %%DOCSDIR%% or http://Doc.PowerDNS.com
+ -----------------------------------------------
+ IMPORTANT: PowerDNS Authoritative Server 4.3.0+:
+ -----------------------------------------------
+ MyDNS and OpenDBX backends removed 
+ https://Blog.PowerDNS.com/2019/10/17/backend-removals-in-the-upcoming-authoritative-server-release/
 EOM
 }
 ]

Modified: head/dns/powerdns/pkg-descr
==============================================================================
--- head/dns/powerdns/pkg-descr	Fri May  8 07:30:11 2020	(r534331)
+++ head/dns/powerdns/pkg-descr	Fri May  8 07:33:49 2020	(r534332)
@@ -1,4 +1,34 @@
-PowerDNS is an advanced DNS server, which allows for several different
-backends. Current backends include MySQL, PostgreSQL, bind, etc.
+The PowerDNS Authoritative Server is the only solution that enables
+authoritative DNS service from all major databases, including but
+not limited to MySQL, PostgreSQL, SQLite3, LDAP and plain text files.
 
-WWW: http://www.powerdns.com/
+DNS answers can also be fully scripted using a variety of (scripting)
+languages such as Lua, Java, Perl, Python, Ruby, C and C++. Such
+scripting can be used for dynamic redirection, (spam) filtering or
+real time intervention.
+
+In addition, the PowerDNS Authoritative Server is the leading DNSSEC
+implementation, hosting the majority of all DNSSEC domains worldwide.
+The Authoritative Server hosts at least 30% of all domain names in
+Europe, and around 90% of all DNSSEC domains in Europe.
+
+ * IPv4, UDP/TCP
+ * IPv6, UDP/TCP, 100% compliant
+ * Remotely pollable statistics for real time graphing
+ * MySQL, PostgreSQL, Oracle, Sybase, Microsoft SQL Server, LDAP, SQLite3
+   - Including replication
+ * Near instant start up time
+ * Plain BIND zone files
+   - Brief start up time
+ * Migration tools from legacy DNS platforms (zone2sql)
+ * Internal Lua-based scripted answer generation
+ * External high-performance Script-based answer generation
+ * Geographical load balancing
+ * Full DNSSEC support including all standardized algorithms
+ * TSIG for transaction signatures, AXFR authorization/requests
+ * Master/Slave support
+ * Built-in web server for statistics and limited direct control
+ * API for direct control (pdns_control, pdnssec)
+   - Local and remote access
+
+WWW: https://www.PowerDNS.com/auth.html

Modified: head/dns/powerdns/pkg-plist
==============================================================================
--- head/dns/powerdns/pkg-plist	Fri May  8 07:30:11 2020	(r534331)
+++ head/dns/powerdns/pkg-plist	Fri May  8 07:33:49 2020	(r534332)
@@ -24,10 +24,9 @@ sbin/pdns_server
 lib/pdns/libbindbackend.so
 lib/pdns/libpipebackend.so
 %%GEOIP%%lib/pdns/libgeoipbackend.so
+%%LMDB%%lib/pdns/liblmdbbackend.so
 %%LUABACKEND%%lib/pdns/liblua2backend.so
-%%MYDNS%%lib/pdns/libmydnsbackend.so
 %%MYSQL%%lib/pdns/libgmysqlbackend.so
-%%OPENDBX%%lib/pdns/libopendbxbackend.so
 %%OPENLDAP%%lib/pdns/libldapbackend.so
 %%OPENLDAP%%bin/zone2ldap
 %%PGSQL%%lib/pdns/libgpgsqlbackend.so
@@ -67,6 +66,7 @@ man/man1/zone2sql.1.gz
 %%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/4.0.0_to_4.2.0_schema.sqlite3.sql
 %%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/4.1.0_to_4.2.0_schema.mysql.sql
 %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/4.1.0_to_4.2.0_schema.pgsql.sql
+%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/4.2.0_to_4.3.0_schema.pgsql.sql
 %%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.mysql.sql
 %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.pgsql.sql
 %%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.sqlite3.sql
@@ -75,8 +75,8 @@ man/man1/zone2sql.1.gz
 %%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.sqlite3.sql
 %%OPENLDAP%%%%PORTDOCS%%%%DOCSDIR%%/dnsdomain2.schema
 %%OPENLDAP%%%%PORTDOCS%%%%DOCSDIR%%/pdns-domaininfo.schema
-%%MYDNS%%%%PORTDOCS%%%%DOCSDIR%%/schema.mydns.sql
 %%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/schema.mysql.sql
 %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/schema.pgsql.sql
 %%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/schema.sqlite3.sql
 %%UNIXODBC%%%%PORTDOCS%%%%DOCSDIR%%/schema.mssql.sql
+@dir(root,wheel,0755) /var/run/pdns



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005080733.0487XnZn088415>