Skip to content

Commit aa9f79f

Browse files
committed
powerdns: Upgrade to version 4.9.8
1 parent 93e6a6d commit aa9f79f

16 files changed

+421
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3308,6 +3308,7 @@ SUBDIR+= postoffice
33083308
SUBDIR+= pounce
33093309
SUBDIR+= povray
33103310
SUBDIR+= powerdevil
3311+
SUBDIR+= powerdns
33113312
SUBDIR+= powerdns-recursor52
33123313
SUBDIR+= powerdns-recursor53
33133314
SUBDIR+= powerlevel10k

powerdns/COMMIT_MSG

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
powerdns: Upgrade to version 4.9.8
2+
3+
Changelogs for 4.9.x
4+
4.9.8
5+
Released: 7th of August 2025
6+
This is release 4.9.8 of the Authoritative Server. It contains a minor feature.
7+
Please review the Upgrade Notes before upgrading from versions < 4.9.x.
8+
New Features
9+
Return record last modification time in the API when known.
10+
References: pull request 15961
11+
12+
4.9.7
13+
Released: 7th of July 2025
14+
This is release 4.9.7 of the Authoritative Server. It contains bug fixes, mainly in LMDB.
15+
Please review the Upgrade Notes before upgrading from versions < 4.9.x.
16+
Bug Fixes
17+
compilation fix: Include cstdint to get uint64_t
18+
References: #15063, pull request 15770
19+
auth docker: avoid crash on �version caused by doubly loaded modules
20+
References: #15594, pull request 15772
21+
TSIG payload: use canonical (lowercase) name format
22+
References: #15518, pull request 15771
23+
LMDB: honour map-size for all files
24+
References: #15677, pull request 15736
25+
Close race window during which LMDB lightning stream flag values might be incorrect.
26+
References: pull request 15720
27+
28+
4.9.6
29+
Released: never
30+
Technical issues in the release process prevented the 4.9.6 release to be created correctly.

powerdns/DESCR

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The PowerDNS nameserver is a modern, advanced and high performance
2+
authoritative-only nameserver. It is written from scratch and conforms
3+
to all the relevant DNS standards documents. PowerDNS is open source.
4+
5+
The PowerDNS nameserver utilizes a flexible backend architecture that
6+
can access DNS information from any data source. This includes file
7+
formats, Bind zone files, relational databases or LDAP directories.
8+
9+
See the net/powerdns-* packages for additional backend modules.

powerdns/Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# $NetBSD: Makefile,v 1.87 2025/06/30 11:00:50 jperkin Exp $
2+
3+
.include "Makefile.common"
4+
5+
PKGNAME= ${DISTNAME:S/pdns/powerdns/}
6+
COMMENT= Modern, advanced and high performance nameserver
7+
8+
PDNS_MODULES+= bind pipe remote
9+
10+
.include "options.mk"
11+
12+
CONFIGURE_ARGS+= --enable-lua-records
13+
CONFIGURE_ARGS+= --enable-tools
14+
CONFIGURE_ARGS+= --with-dynmodules=no
15+
CONFIGURE_ARGS+= --with-modules="${PDNS_MODULES}"
16+
17+
RCD_SCRIPTS= pdns
18+
SMF_NAME= pdns
19+
20+
EGDIR= ${PREFIX}/share/examples/pdns
21+
22+
CONF_FILES+= ${EGDIR}/pdns.conf-dist ${PKG_SYSCONFDIR}/pdns.conf
23+
24+
LDFLAGS.SunOS+= -lsocket -lnsl
25+
26+
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
27+
28+
.include "../../mk/bsd.pkg.mk"

powerdns/Makefile.common

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# $NetBSD: Makefile.common,v 1.41 2025/08/10 21:56:41 wiz Exp $
2+
# used by net/powerdns/backend.mk
3+
4+
PDNS_VERSION= 4.9.8
5+
DISTNAME= pdns-${PDNS_VERSION}
6+
CATEGORIES= net
7+
MASTER_SITES= http://downloads.powerdns.com/releases/
8+
EXTRACT_SUFX= .tar.bz2
9+
10+
MAINTAINER?= [email protected]
11+
HOMEPAGE= https://www.powerdns.com/
12+
LICENSE= gnu-gpl-v2
13+
14+
TOOL_DEPENDS+= ragel-[0-9]*:../../devel/ragel
15+
16+
USE_LANGUAGES= c c++
17+
USE_LIBTOOL= yes
18+
USE_TOOLS+= bison flex gmake pkg-config
19+
GNU_CONFIGURE= yes
20+
CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-headers}
21+
CONFIGURE_ARGS+= --with-lua=lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
22+
23+
USE_CXX_FEATURES+= c++17 filesystem
24+
25+
.include "../../devel/boost-headers/buildlink3.mk"
26+
.include "../../devel/boost-libs/buildlink3.mk"
27+
.include "../../lang/lua/buildlink3.mk"
28+
.include "../../security/openssl/buildlink3.mk"
29+
.include "../../www/curl/buildlink3.mk"
30+
.include "../../mk/dlopen.buildlink3.mk"
31+
.include "../../mk/pthread.buildlink3.mk"
32+
.include "../../mk/atomic64.mk"

powerdns/PLIST

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
@comment $NetBSD: PLIST,v 1.18 2025/06/30 11:00:50 jperkin Exp $
2+
bin/calidns
3+
bin/dnsbulktest
4+
bin/dnsgram
5+
bin/dnspcap2calidns
6+
bin/dnspcap2protobuf
7+
bin/dnsreplay
8+
bin/dnsscan
9+
bin/dnsscope
10+
bin/dnstcpbench
11+
bin/dnswasher
12+
bin/dumresp
13+
bin/ixplore
14+
bin/nproxy
15+
bin/nsec3dig
16+
bin/pdns_control
17+
bin/pdns_notify
18+
bin/pdnsutil
19+
bin/saxfr
20+
bin/sdig
21+
bin/stubquery
22+
bin/zone2json
23+
bin/zone2sql
24+
lib/pdns/libbindbackend.la
25+
${PLIST.sqlite}lib/pdns/libgsqlite3backend.la
26+
lib/pdns/libpipebackend.la
27+
lib/pdns/libremotebackend.la
28+
man/man1/calidns.1
29+
man/man1/dnsbulktest.1
30+
man/man1/dnsgram.1
31+
man/man1/dnspcap2calidns.1
32+
man/man1/dnspcap2protobuf.1
33+
man/man1/dnsreplay.1
34+
man/man1/dnsscan.1
35+
man/man1/dnsscope.1
36+
man/man1/dnstcpbench.1
37+
man/man1/dnswasher.1
38+
man/man1/dumresp.1
39+
man/man1/ixplore.1
40+
man/man1/nproxy.1
41+
man/man1/nsec3dig.1
42+
man/man1/pdns_control.1
43+
man/man1/pdns_notify.1
44+
man/man1/pdns_server.1
45+
man/man1/pdnsutil.1
46+
man/man1/saxfr.1
47+
man/man1/sdig.1
48+
man/man1/zone2json.1
49+
man/man1/zone2sql.1
50+
sbin/pdns_server
51+
${PLIST.sqlite}share/doc/pdns/3.4.0_to_4.0.0_schema.sqlite3.sql
52+
${PLIST.sqlite}share/doc/pdns/4.0.0_to_4.2.0_schema.sqlite3.sql
53+
${PLIST.sqlite}share/doc/pdns/4.2.0_to_4.3.0_schema.sqlite3.sql
54+
${PLIST.sqlite}share/doc/pdns/4.3.0_to_4.3.1_schema.sqlite3.sql
55+
${PLIST.sqlite}share/doc/pdns/4.3.1_to_4.7.0_schema.sqlite3.sql
56+
share/doc/pdns/bind-dnssec.4.2.0_to_4.3.0_schema.sqlite3.sql
57+
share/doc/pdns/bind-dnssec.schema.sqlite3.sql
58+
${PLIST.sqlite}share/doc/pdns/dnssec-3.x_to_3.4.0_schema.sqlite3.sql
59+
${PLIST.sqlite}share/doc/pdns/nodnssec-3.x_to_3.4.0_schema.sqlite3.sql
60+
${PLIST.sqlite}share/doc/pdns/schema.sqlite3.sql
61+
share/examples/pdns/pdns.conf-dist

powerdns/backend.mk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# $NetBSD: backend.mk,v 1.1 2025/06/30 11:00:50 jperkin Exp $
2+
# used by net/powerdns-geoip/Makefile
3+
# used by net/powerdns-ldap/Makefile
4+
# used by net/powerdns-mysql/Makefile
5+
# used by net/powerdns-odbc/Makefile
6+
# used by net/powerdns-pgsql/Makefile
7+
8+
.include "../../net/powerdns/Makefile.common"
9+
10+
DEPENDS+= powerdns>=${PDNS_VERSION}:../../net/powerdns
11+
12+
DISTINFO_FILE= ${.CURDIR}/../../net/powerdns/distinfo
13+
PATCHDIR= ${.CURDIR}/../../net/powerdns/patches
14+
15+
CONFIGURE_ARGS+= --disable-lua-records
16+
CONFIGURE_ARGS+= --disable-pdns_server
17+
CONFIGURE_ARGS+= --with-modules=""
18+
19+
BUILD_DIRS= modules
20+
21+
# These are required by configure, but not used by the modules
22+
BUILDLINK_DEPMETHOD.boost-libs= build
23+
BUILDLINK_DEPMETHOD.openssl= build

powerdns/distinfo

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
$NetBSD: distinfo,v 1.52 2025/07/24 07:50:00 wiz Exp $
2+
3+
BLAKE2s (pdns-4.9.8.tar.bz2) = 3c15fc7ccb5da0d36e38048d075241abd97703b651fee7bd3ec04c267f56da8e
4+
SHA512 (pdns-4.9.8.tar.bz2) = 020117e4c289f465bfac9c56b4b1e1e295f82454c8038338d63b247d2ff100b97ae1946c5641950962e25d57579d7deb59fb034ef40188b8f7c77cc4d11110a1
5+
Size (pdns-4.9.8.tar.bz2) = 1363358 bytes
6+
SHA1 (patch-configure) = 9049a1b7edde25fd2304632af338999c32ee7596
7+
SHA1 (patch-pdns_dnsscope.cc) = 221b860350acad10e0d2f1a854d7930819a598de
8+
SHA1 (patch-pdns_misc.hh) = ffc2eea374157e25cae17743db900ff6e3101a66
9+
SHA1 (patch-pdns_qtype.hh) = 4d086e28e7bacc624cf7db199ac16ebafec88e04
10+
SHA1 (patch-pdns_version.cc) = 0e089c41260546e9ef9647eeb162becf158873d9

powerdns/files/pdns.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!@RCD_SCRIPTS_SHELL@
2+
#
3+
# $NetBSD: pdns.sh,v 1.2 2020/09/24 19:09:53 otis Exp $
4+
#
5+
6+
# PROVIDE: pdns
7+
# REQUIRE: DAEMON
8+
9+
. /etc/rc.subr
10+
11+
name="pdns"
12+
rcvar=$name
13+
command="@PREFIX@/sbin/pdns_server"
14+
command_args="--daemon=yes"
15+
pidfile=/var/run/${name}/${name}.pid
16+
required_files="@PKG_SYSCONFDIR@/pdns.conf"
17+
18+
load_rc_config $name
19+
run_rc_command "$1"

powerdns/files/smf/manifest.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3+
<service_bundle type="manifest" name="export">
4+
<service name="@SMF_PREFIX@/pdns" type="service" version="1">
5+
<create_default_instance enabled="false" />
6+
<single_instance />
7+
<dependency name="network" grouping="require_all" restart_on="error" type="service">
8+
<service_fmri value="svc:/milestone/network:default" />
9+
</dependency>
10+
<dependency name="filesystem" grouping="require_all" restart_on="error" type="service">
11+
<service_fmri value="svc:/system/filesystem/local" />
12+
</dependency>
13+
<method_context></method_context>
14+
<exec_method type="method" name="start" exec="@PREFIX@/sbin/pdns_server --daemon=yes" timeout_seconds="60" />
15+
<exec_method type="method" name="stop" exec=":kill" timeout_seconds="60" />
16+
<property_group name="startd" type="framework">
17+
<propval name="duration" type="astring" value="contract" />
18+
<propval name="ignore_error" type="astring" value="core,signal" />
19+
</property_group>
20+
<property_group name="application" type="application">
21+
<propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/pdns.conf" />
22+
</property_group>
23+
<template>
24+
<common_name>
25+
<loctext xml:lang="C">PowerDNS server service</loctext>
26+
</common_name>
27+
</template>
28+
</service>
29+
</service_bundle>

0 commit comments

Comments
 (0)