From 9f9c40fb6b0c3f37482217d393cbf4817e1d3b72 Mon Sep 17 00:00:00 2001 From: dinoex Date: Wed, 27 Aug 2003 10:26:10 +0000 Subject: - Update to 2.9.11 - Fixes overwrite of config file (wrong order in Makefile) PR: 55935 Submitted by: tremere@cainites.net --- net/powerdns/Makefile | 34 +++++++++--------- net/powerdns/distinfo | 2 +- net/powerdns/files/patch-pdns_pdns_recursor.cc | 48 -------------------------- 3 files changed, 18 insertions(+), 66 deletions(-) delete mode 100644 net/powerdns/files/patch-pdns_pdns_recursor.cc (limited to 'net') diff --git a/net/powerdns/Makefile b/net/powerdns/Makefile index ee7704e780b..5515bf40ac8 100644 --- a/net/powerdns/Makefile +++ b/net/powerdns/Makefile @@ -6,7 +6,7 @@ # PORTNAME= powerdns -PORTVERSION= 2.9.10 +PORTVERSION= 2.9.11 CATEGORIES= net ipv6 MASTER_SITES= http://downloads.powerdns.com/releases/ DISTNAME= pdns-${PORTVERSION} @@ -62,17 +62,6 @@ MAN8= pdns_control.8 pdns_server.8 zone2sql.8 pre-everything:: @ ${SETENV} ${SCRIPTS_ENV} ${SH} ${FILESDIR}/configure.powerdns -post-install: -.if !exists(${PREFIX}/etc/pdns.conf) - ${INSTALL_DATA} ${PREFIX}/etc/pdns.conf-dist ${PREFIX}/etc/pdns.conf -.endif -.if !defined(NOPORTDOCS) - ${MKDIR} ${EXAMPLESDIR} -.for i in pdns.conf pdns_mysql.sql pdns_postgresql.sql - ${INSTALL_DATA} ${FILESDIR}/$i ${EXAMPLESDIR}/ -.endfor -.endif - post-clean: @ ${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc @@ -86,6 +75,13 @@ describe: .include +.if ${OSVERSION} >= 500000 && defined(POWERDNS_WITH_RECURSOR) +CONFIGURE_ARGS+= --enable-recursor +PLIST_SUB+= RECURSOR="" +.else +PLIST_SUB+= RECURSOR="@comment " +.endif + .if ${OSVERSION} >= 500043 && defined(WITH_LDAP) LIB_DEPENDS+= ldap.2:${PORTSDIR}/${LDAP_PORT} LIB_DEPENDS+= lber.2:${PORTSDIR}/${LDAP_PORT} @@ -100,11 +96,15 @@ post-patch: ${WRKSRC}/pdns/Makefile.in .endif -.if ${OSVERSION} >= 500000 && defined(POWERDNS_WITH_RECURSOR) -CONFIGURE_ARGS+= --enable-recursor -PLIST_SUB+= RECURSOR="" -.else -PLIST_SUB+= RECURSOR="@comment " +post-install: +.if !exists(${PREFIX}/etc/pdns.conf) + ${INSTALL_DATA} ${PREFIX}/etc/pdns.conf-dist ${PREFIX}/etc/pdns.conf +.endif +.if !defined(NOPORTDOCS) + ${MKDIR} ${EXAMPLESDIR} +.for i in pdns.conf pdns_mysql.sql pdns_postgresql.sql + ${INSTALL_DATA} ${FILESDIR}/$i ${EXAMPLESDIR}/ +.endfor .endif .include diff --git a/net/powerdns/distinfo b/net/powerdns/distinfo index d49def71561..b7b72f50a08 100644 --- a/net/powerdns/distinfo +++ b/net/powerdns/distinfo @@ -1 +1 @@ -MD5 (pdns-2.9.10.tar.gz) = a91f15c90f6551fb817cb708e29d5a37 +MD5 (pdns-2.9.11.tar.gz) = a8aa0b47b3c4f05468b7e664caacb8d1 diff --git a/net/powerdns/files/patch-pdns_pdns_recursor.cc b/net/powerdns/files/patch-pdns_pdns_recursor.cc deleted file mode 100644 index 9457ac61f8a..00000000000 --- a/net/powerdns/files/patch-pdns_pdns_recursor.cc +++ /dev/null @@ -1,48 +0,0 @@ ---- pdns/pdns_recursor.cc.orig Thu Jul 3 10:30:03 2003 -+++ pdns/pdns_recursor.cc Thu Jul 10 16:45:27 2003 -@@ -35,6 +35,10 @@ - #include "statbag.hh" - #include "arguments.hh" - #include "syncres.hh" -+#include -+#include -+ -+string s_programname="pdns_recursor"; - - #ifndef WIN32 - extern "C" { -@@ -129,6 +133,17 @@ - cache[toLower(qname)+"|"+qt.getName()]=content; - } - -+static void writePid(void) -+{ -+ string fname=arg()["socket-dir"]+"/"+s_programname+".pid"; -+ ofstream of(fname.c_str()); -+ if(of) -+ of< tcpconnections; -- cgit