pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/powerdns-recursor



Module Name:    pkgsrc
Committed By:   otis
Date:           Wed Sep 30 11:53:07 UTC 2020

Modified Files:
        pkgsrc/net/powerdns-recursor: Makefile distinfo
        pkgsrc/net/powerdns-recursor/files: pdns_recursor.sh
        pkgsrc/net/powerdns-recursor/files/smf: manifest.xml
Added Files:
        pkgsrc/net/powerdns-recursor/files/smf: pdns_recursor.sh
        pkgsrc/net/powerdns-recursor/patches: patch-iputils.cc
Removed Files:
        pkgsrc/net/powerdns-recursor/patches: patch-pdns__recursor.cc
            patch-rec__control.cc

Log Message:
net/powerdns-recursor: Update to 4.3.4

Changelog for 4.3.4:
Released: 8th of September 2020
* Improvements:
  - Ensure runtime dirs for virtual services differ.

* Bug Fixes:
  - Allow some more depth headroom for the no-qname-minimization fallback case
  - Resize hostname to final size in getCarbonHostname().

Changelog for 4.3.3:
Released: 17th of July 2020
* Bug Fixes:
  - Validate cached DNSKEYs against the DSs, not the RRSIGs only.
  - Ignore cache-only for DNSKEYs and DS retrieval.
  - A ServFail while retrieving DS/DNSKEY records is just that.
  - Refuse DS records received from child zones.
  - Better exception handling in houseKeeping/handlePolicyHit.
  - Take initial refresh time from loaded zone.

pkgsrc-specific changes:
  - Move pdns socket directory to /var/run/pdns-recursor
    to reduce diff
  - Introduce SMF method script that also creates the
    socket directory on platforms where /var/run is not
    persistent (i.e. swap or tmpfs-mounted)


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 pkgsrc/net/powerdns-recursor/Makefile
cvs rdiff -u -r1.33 -r1.34 pkgsrc/net/powerdns-recursor/distinfo
cvs rdiff -u -r1.1.1.1 -r1.2 \
    pkgsrc/net/powerdns-recursor/files/pdns_recursor.sh
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/powerdns-recursor/files/smf/manifest.xml
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/net/powerdns-recursor/files/smf/pdns_recursor.sh
cvs rdiff -u -r0 -r1.3 pkgsrc/net/powerdns-recursor/patches/patch-iputils.cc
cvs rdiff -u -r1.6 -r0 \
    pkgsrc/net/powerdns-recursor/patches/patch-pdns__recursor.cc
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/net/powerdns-recursor/patches/patch-rec__control.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-recursor/Makefile
diff -u pkgsrc/net/powerdns-recursor/Makefile:1.37 pkgsrc/net/powerdns-recursor/Makefile:1.38
--- pkgsrc/net/powerdns-recursor/Makefile:1.37  Wed Jul  1 14:53:13 2020
+++ pkgsrc/net/powerdns-recursor/Makefile       Wed Sep 30 11:53:07 2020
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.37 2020/07/01 14:53:13 otis Exp $
+# $NetBSD: Makefile,v 1.38 2020/09/30 11:53:07 otis Exp $
 
-DISTNAME=      pdns-recursor-4.3.2
+DISTNAME=      pdns-recursor-4.3.4
 PKGNAME=       ${DISTNAME:S/pdns/powerdns/}
 CATEGORIES=    net
 MASTER_SITES=  http://downloads.powerdns.com/releases/
@@ -18,7 +18,10 @@ CONFIGURE_ARGS+=     --without-net-snmp
 # currently not portable
 CONFIGURE_ENV.NetBSD+= ac_cv_search_pthread_setaffinity_np=no
 
-RCD_SCRIPTS+=          pdns_recursor
+RCD_SCRIPTS=           pdns_recursor
+
+SMF_NAME=              pdns-recursor
+SMF_METHODS=           pdns_recursor
 
 EGDIR=                 ${PREFIX}/share/examples/pdns-recursor
 

Index: pkgsrc/net/powerdns-recursor/distinfo
diff -u pkgsrc/net/powerdns-recursor/distinfo:1.33 pkgsrc/net/powerdns-recursor/distinfo:1.34
--- pkgsrc/net/powerdns-recursor/distinfo:1.33  Wed Jul  1 14:53:13 2020
+++ pkgsrc/net/powerdns-recursor/distinfo       Wed Sep 30 11:53:07 2020
@@ -1,14 +1,13 @@
-$NetBSD: distinfo,v 1.33 2020/07/01 14:53:13 otis Exp $
+$NetBSD: distinfo,v 1.34 2020/09/30 11:53:07 otis Exp $
 
-SHA1 (pdns-recursor-4.3.2.tar.bz2) = 1bbe98f8eb726a0468d274f6c6c6dc5dc373df77
-RMD160 (pdns-recursor-4.3.2.tar.bz2) = e1618a3901b34df1df477f889705b2d65516a7fe
-SHA512 (pdns-recursor-4.3.2.tar.bz2) = d1ca566dc8785fda3764838a0ea598acc4106b6261ebdbbe43fc6a6e4a82c375f7ef3f6d23fbd9b216067eb9cf56fcae6d460bfc7957ba4c201d466ad15d75d7
-Size (pdns-recursor-4.3.2.tar.bz2) = 1354549 bytes
+SHA1 (pdns-recursor-4.3.4.tar.bz2) = 1ade30bb1f9ee78438be59e1ed76d96eb95f7f62
+RMD160 (pdns-recursor-4.3.4.tar.bz2) = 097a0f32f8bc988063cacde2de407d231d37b809
+SHA512 (pdns-recursor-4.3.4.tar.bz2) = cfc34f42ed95c7fd2be1ab7ba172672e5e1db96b4ced171c1eae7bd60fb7db482aed928028811b133d326550de35c506a8fc480b12ae39ab7fa142408e0b42d8
+Size (pdns-recursor-4.3.4.tar.bz2) = 1359380 bytes
 SHA1 (patch-dns.hh) = 7e9c1b10a066a605b74ebdbee2d894aed50f6c68
 SHA1 (patch-ext_json11_json11.cpp) = 2de8ea8b51556bd3e3c1a88f681697eff239ab1a
-SHA1 (patch-pdns__recursor.cc) = 69bb4aa20e691e557f9a8cac3a3ebf30c52febef
+SHA1 (patch-iputils.cc) = a7a25d76293bc2e68efc749c661ae1595167fab7
 SHA1 (patch-qtype.hh) = f14eb9ad7efc7dd4a0ce220c1f93044ef69e99c2
-SHA1 (patch-rec__control.cc) = 876a4527c871c4df05e0f14a2ea858e411ffefbd
 SHA1 (patch-version.cc) = 26226a02198edd9d8890a5199ee5a8051334fe41
 SHA1 (patch-webserver.cc) = 2b34430b990c8398daf565d4811fd12848234c6a
 SHA1 (patch-ws-recursor.cc) = 24d8582cff7207d84458dc123cc9976806c310b9

Index: pkgsrc/net/powerdns-recursor/files/pdns_recursor.sh
diff -u pkgsrc/net/powerdns-recursor/files/pdns_recursor.sh:1.1.1.1 pkgsrc/net/powerdns-recursor/files/pdns_recursor.sh:1.2
--- pkgsrc/net/powerdns-recursor/files/pdns_recursor.sh:1.1.1.1 Tue Apr 21 14:16:47 2009
+++ pkgsrc/net/powerdns-recursor/files/pdns_recursor.sh Wed Sep 30 11:53:07 2020
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: pdns_recursor.sh,v 1.1.1.1 2009/04/21 14:16:47 roy Exp $
+# $NetBSD: pdns_recursor.sh,v 1.2 2020/09/30 11:53:07 otis Exp $
 #
 
 # PROVIDE: pdns_recursor
@@ -12,7 +12,7 @@ name="pdns_recursor"
 rcvar=$name
 command="@PREFIX@/sbin/pdns_recursor"
 command_args="--daemon=yes 2>/dev/null"
-pidfile=/var/run/${name}.pid
+pidfile=/var/run/pdns-recursor/${name}.pid
 required_files="@PKG_SYSCONFDIR@/recursor.conf"
 
 load_rc_config $name

Index: pkgsrc/net/powerdns-recursor/files/smf/manifest.xml
diff -u pkgsrc/net/powerdns-recursor/files/smf/manifest.xml:1.3 pkgsrc/net/powerdns-recursor/files/smf/manifest.xml:1.4
--- pkgsrc/net/powerdns-recursor/files/smf/manifest.xml:1.3     Wed Jun  8 10:16:54 2016
+++ pkgsrc/net/powerdns-recursor/files/smf/manifest.xml Wed Sep 30 11:53:07 2020
@@ -11,8 +11,9 @@
       <service_fmri value="svc:/system/filesystem/local" />
     </dependency>
     <method_context></method_context>
-    <exec_method type="method" name="start" exec="@PREFIX@/sbin/pdns_recursor --daemon" timeout_seconds="60" />
-    <exec_method type="method" name="stop" exec="@PREFIX@/bin/rec_control quit" timeout_seconds="60" />
+    <exec_method type='method' name='start' exec='@PREFIX@/@SMF_METHOD_FILE.pdns_recursor@ start' timeout_seconds='30' />
+    <exec_method type='method' name='stop' exec='@PREFIX@/@SMF_METHOD_FILE.pdns_recursor@ stop' timeout_seconds='30' />
+    <exec_method type='method' name='refresh' exec='@PREFIX@/@SMF_METHOD_FILE.pdns_recursor@ refresh' timeout_seconds='30' />
     <property_group name="startd" type="framework">
       <propval name="duration" type="astring" value="contract" />
       <propval name="ignore_error" type="astring" value="core,signal" />

Added files:

Index: pkgsrc/net/powerdns-recursor/files/smf/pdns_recursor.sh
diff -u /dev/null pkgsrc/net/powerdns-recursor/files/smf/pdns_recursor.sh:1.1
--- /dev/null   Wed Sep 30 11:53:07 2020
+++ pkgsrc/net/powerdns-recursor/files/smf/pdns_recursor.sh     Wed Sep 30 11:53:07 2020
@@ -0,0 +1,24 @@
+#!@SMF_METHOD_SHELL@
+#
+# $NetBSD: pdns_recursor.sh,v 1.1 2020/09/30 11:53:07 otis Exp $
+#
+
+. /lib/svc/share/smf_include.sh
+
+if [ ! -d @VARBASE@/run/pdns-recursor ]; then
+       @MKDIR@ @VARBASE@/run/pdns-recursor
+       @CHMOD@ 0755 @VARBASE@/run/pdns-recursor
+fi
+
+case "$1" in
+   start)
+      @PREFIX@/sbin/pdns_recursor --daemon
+      ;;
+   stop)
+      @PREFIX@/bin/rec_control quit
+      ;;
+   refresh)
+      $0 stop
+      $0 start
+      ;;
+esac

Index: pkgsrc/net/powerdns-recursor/patches/patch-iputils.cc
diff -u /dev/null pkgsrc/net/powerdns-recursor/patches/patch-iputils.cc:1.3
--- /dev/null   Wed Sep 30 11:53:07 2020
+++ pkgsrc/net/powerdns-recursor/patches/patch-iputils.cc       Wed Sep 30 11:53:07 2020
@@ -0,0 +1,28 @@
+$NetBSD: patch-iputils.cc,v 1.3 2020/09/30 11:53:07 otis Exp $
+
+Silence the warning about defined but not used variable on
+apropriate platforms.
+
+--- iputils.cc.orig    2020-09-04 17:20:52.000000000 +0000
++++ iputils.cc
+@@ -322,7 +322,9 @@ size_t sendMsgWithOptions(int fd, const
+   msgh.msg_flags = 0;
+ 
+   size_t sent = 0;
++#ifdef MSG_FASTOPEN
+   bool firstTry = true;
++#endif
+ 
+   do {
+ 
+@@ -342,8 +344,10 @@ size_t sendMsgWithOptions(int fd, const
+         return sent;
+       }
+ 
++#ifdef MSG_FASTOPEN
+       /* partial write */
+       firstTry = false;
++#endif
+       iov.iov_len -= written;
+       iov.iov_base = reinterpret_cast<void*>(reinterpret_cast<char*>(iov.iov_base) + written);
+       written = 0;



Home | Main Index | Thread Index | Old Index