--- Makefile (revision 535072) +++ Makefile (working copy) @@ -2,6 +2,7 @@ PORTNAME= powerdns DISTVERSION= 4.3.0 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= https://downloads.powerdns.com/releases/ DISTNAME= pdns-${DISTVERSION} @@ -11,7 +12,7 @@ LICENSE= GPLv2 -BROKEN_sparc64= Does not compile: error: to_string is not a member of std +BROKEN_sparc64= Does not compile: error: to_string is not a member of std LIB_DEPENDS= libboost_serialization.so:devel/boost-libs \ libcurl.so:ftp/curl @@ -36,8 +37,8 @@ WRKDIRPREFIX="${WRKDIRPREFIX}" SUB_FILES= pkg-message -OPTIONS_DEFINE= DOCS EXAMPLES GEOIP LMDB LUABACKEND LUAJIT \ - MYSQL OPENLDAP PGSQL PROTOBUF REMOTE \ +OPTIONS_DEFINE= DOCS EXAMPLES GEOIP IXFRDIST LMDB LUABACKEND \ + LUAJIT MYSQL OPENLDAP PGSQL PROTOBUF REMOTE \ SQLITE3 TINYDNS TOOLS UNIXODBC OPTIONS_DEFAULT= LMDB MYSQL PGSQL SQLITE3 OPTIONS_GROUP= GEOIPOPT REMOTEOPT @@ -47,6 +48,7 @@ GEOIPOPT_DESC= GeoIP DB options GEOIP_DESC= GeoIP backend (GeoIP2 DB) +IXFRDIST_DESC= Build ixfrdist LMDB_DESC= LMDB backend LUABACKEND_DESC= Lua2 backend LUAJIT_DESC= Use LuaJIT instead of Lua @@ -65,9 +67,11 @@ libyaml-cpp.so:devel/yaml-cpp GEOIP_VARS= MODULES+=geoip +IXFRDIST_CONFIGURE_ENABLE= ixfrdist + LMDB_LIB_DEPENDS= liblmdb.so:databases/lmdb +LMDB_CONFIGURE_ON= --with-lmdb=${LOCALBASE} LMDB_CONFIGURE_OFF= --without-lmdb -LMDB_CONFIGURE_ON= --with-lmdb=${LOCALBASE} LMDB_VARS= MODULES+=lmdb LUABACKEND_VARS= MODULES+=lua2 @@ -77,8 +81,8 @@ LUAJIT_CONFIGURE_ON= --with-lua=luajit MYSQL_USES= mysql +MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE} MYSQL_CONFIGURE_OFF= --without-mysql -MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE} MYSQL_VARS= MODULES+=gmysql OPENLDAP_USE= OPENLDAP=YES --- files/patch-configure (revision 535072) +++ files/patch-configure (working copy) @@ -1,6 +1,6 @@ ---- configure.orig 2020-02-18 21:26:30.000000000 -0500 -+++ configure 2020-02-18 21:26:30.000000000 -0500 -@@ -19774,8 +19774,10 @@ +--- configure.orig 2020-04-06 12:51:03 UTC ++++ configure +@@ -19774,8 +19774,10 @@ fi { $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 --- files/patch-dns_random.cc (revision 535072) +++ files/patch-dns_random.cc (nonexistent) @@ -1,12 +0,0 @@ ---- pdns/dns_random.cc.orig 2018-11-29 12:53:42 UTC -+++ pdns/dns_random.cc -@@ -40,7 +40,9 @@ - #include - #endif - #if defined(HAVE_GETRANDOM) -+extern "C" { - #include -+} - #endif - - static enum DNS_RNG { --- files/pdns.in (revision 535072) +++ files/pdns.in (working copy) @@ -28,7 +28,7 @@ required_files=${pdns_conf} -pidfile=/var/run/pdns/pdns_server.pid +pidfile=/var/run/pdns/${name}.pid command=%%PREFIX%%/sbin/pdns_server command_args="--daemon --guardian" --- files/pkg-message.in (revision 535072) +++ files/pkg-message.in (working copy) @@ -1,32 +1,54 @@ [ { type: install message: <= 0 THEN +notified_serial::bigint END; + +This version needs a mandatory schema change for the gmsyql, godbc (mssql), gpgsql and gsqlite3 +backends. SQL statements are available in %%DOCSDIR%% or https://doc.powerdns.com +EOM +} +{ type: upgrade + minimum_version: "4.2.0" + message: <= 0 THEN notified_serial::bigint END; - - No software changes are required. - =========================================== -EOF -} - -case $2 in -PRE-INSTALL) - securitywarning - sleep 5 - ;; -esac --- pkg-plist (revision 535072) +++ pkg-plist (working copy) @@ -14,6 +14,7 @@ %%TOOLS%%bin/dnstcpbench %%TOOLS%%bin/dnswasher %%TOOLS%%bin/dumresp +%%IXFRDIST%%bin/ixfrdist %%TOOLS%%bin/ixplore %%TOOLS%%bin/nproxy %%TOOLS%%bin/nsec3dig @@ -40,6 +41,7 @@ %%TOOLS%%man/man1/dnspcap2calidns.1.gz %%TOOLS%%man/man1/dnsscan.1.gz %%TOOLS%%man/man1/dumresp.1.gz +%%IXFRDIST%%man/man1/ixfrdist.1.gz %%TOOLS%%man/man1/ixplore.1.gz %%TOOLS%%man/man1/nproxy.1.gz %%TOOLS%%man/man1/nsec3dig.1.gz @@ -57,6 +59,8 @@ %%TOOLS%%man/man1/dnsreplay.1.gz %%TOOLS%%man/man1/dnsscope.1.gz %%TOOLS%%man/man1/dnswasher.1.gz +%%IXFRDIST%%man/man5/ixfrdist.yml.5.gz +%%IXFRDIST%%etc/pdns/ixfrdist.example.yml @sample etc/pdns/pdns.conf-dist etc/pdns/pdns.conf %%PORTEXAMPLES%%%%EXAMPLESDIR%%/pdns.conf %%PORTEXAMPLES%%@dir %%EXAMPLESDIR%% @@ -63,13 +67,18 @@ %%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/3.4.0_to_4.1.0_schema.mysql.sql %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/3.4.0_to_4.1.0_schema.pgsql.sql %%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/3.4.0_to_4.0.0_schema.sqlite3.sql +%%UNIXODBC%%%%PORTDOCS%%%%DOCSDIR%%/4.0.0_to_4.2.0_schema.mssql.sql %%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 +%%UNIXODBC%%%%PORTDOCS%%%%DOCSDIR%%/4.2.0_to_4.3.0_schema.mssql.sql +%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/4.2.0_to_4.3.0_schema.mysql.sql %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/4.2.0_to_4.3.0_schema.pgsql.sql +%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/4.2.0_to_4.3.0_schema.sqlite3.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 +%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/enable-foreign-keys.mysql.sql %%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.mysql.sql %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.pgsql.sql %%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.sqlite3.sql