Date: Sun, 17 Jul 2005 15:35:06 +0200 (CEST) From: Ralf van der Enden <tremere@cainites.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/83605: Update to version 2.9.18 Message-ID: <20050717133506.B471B364@mail.cainites.net> Resent-Message-ID: <200507171340.j6HDe7g4023141@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 83605 >Category: ports >Synopsis: Update to version 2.9.18 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Jul 17 13:40:07 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Ralf van der Enden >Release: FreeBSD 5.4-RELEASE-p4 i386 >Organization: >Environment: System: FreeBSD lan.cainites.net 5.4-RELEASE-p4 FreeBSD 5.4-RELEASE-p4 #4: Thu Jul 7 10:13:29 CEST 2005 root@lan.cainites.net:/usr/obj/usr/src/sys/HELLKERNEL i386 >Description: Update to PowerDNS v2.9.18 - See http://doc.powerdns.com/changelog.html#CHANGELOG-2-9-18 for the changelog >How-To-Repeat: >Fix: --- pdns-2.9.18.diff begins here --- diff -ruN powerdns.orig/Makefile powerdns/Makefile --- powerdns.orig/Makefile Fri Jul 15 16:38:35 2005 +++ powerdns/Makefile Sun Jul 17 14:48:06 2005 @@ -6,7 +6,7 @@ # PORTNAME= powerdns -PORTVERSION= 2.9.17 +PORTVERSION= 2.9.18 CATEGORIES= dns ipv6 MASTER_SITES= http://downloads.powerdns.com/releases/ DISTNAME= pdns-${PORTVERSION} @@ -18,6 +18,7 @@ USE_SUBMAKE= YES USE_REINPLACE= YES GNU_CONFIGURE= YES +CXXFLAGS+= -I${PREFIX}/include CONFIGURE_ARGS+= --with-modules="${CONFIGURE_MODULES} pipe" \ --with-dynmodules="" # --enable-debug @@ -27,11 +28,25 @@ DISTNAME="${DISTNAME}" \ POWERDNS_OPTIONS="${POWERDNS_OPTIONS}" MAN8= pdns_control.8 pdns_server.8 zone2sql.8 -STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/pdns.sh.sample -LIBMAP_CONF= /etc/libmap.conf +LIB_DEPENDS= boost_regex.2:${PORTSDIR}/devel/boost + +SUB_FILES= pkg-message .include <bsd.port.pre.mk> +.if ${OSVERSION} >= 500037 +USE_RCORDER= pdns.sh +RC_DIR= /etc/rc.d +RC_SUFX= +.else +USE_RC_SUBR+= pdns.sh +RC_DIR= ${PREFIX}/etc/rc.d +RC_SUFX= .sh +.endif + +PLIST_SUB+= RC_DIR=${RC_DIR} \ + RC_SUFX=${RC_SUFX} + # use user config if possible .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" @@ -72,7 +87,7 @@ .endif .if defined(WITH_SQLITE) -LIB_DEPENDS= sqlite.2:${PORTSDIR}/databases/sqlite2 +LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2 CONFIGURE_ARGS+= --enable-sqlite CONFIGURE_MODULES+= "gsqlite" .else @@ -80,6 +95,11 @@ .endif .if defined(POWERDNS_WITH_RECURSOR) +.if ${OSVERSION} >= 500037 +USE_RCORDER+= pdns_recursor.sh +.else +USE_RC_SUBR+= pdns_recursor.sh +.endif CONFIGURE_ARGS+= --enable-recursor PLIST_SUB+= RECURSOR="" .else @@ -91,7 +111,7 @@ UCONTEXT!= ${AWK} '/setcontext/ { print "YES" }' \ /usr/include/ucontext.h .if ${UCONTEXT} == "" -BROKEN= setcontext for recursor not found or FreeBSD version lower than 5.0 +BROKEN= "setcontext for recursor not found or FreeBSD version lower than 5.0" .endif .endif .endif @@ -136,12 +156,6 @@ ${INSTALL_DATA} ${FILESDIR}/$i ${EXAMPLESDIR}/ .endfor .endif -.if !exists(${STARTUP_SCRIPT}) - @${ECHO_MSG} "Installing ${STARTUP_SCRIPT} startup file." - ${SED} -e "s=%%PREFIX%%=${PREFIX}=" \ - ${FILESDIR}/pdns.sh.sample \ - > ${WRKSRC}/pdns.sh.sample - ${INSTALL_SCRIPT} ${WRKSRC}/pdns.sh.sample ${STARTUP_SCRIPT} -.endif + @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff -ruN powerdns.orig/distinfo powerdns/distinfo --- powerdns.orig/distinfo Fri Jul 15 16:38:35 2005 +++ powerdns/distinfo Sun Jul 17 14:50:24 2005 @@ -1,2 +1,2 @@ -MD5 (pdns-2.9.17.tar.gz) = 92489391182dc40012f1de7b2005ea93 -SIZE (pdns-2.9.17.tar.gz) = 782592 +MD5 (pdns-2.9.18.tar.gz) = bcfb0573311e80dbeff0bb16f2764363 +SIZE (pdns-2.9.18.tar.gz) = 825719 diff -ruN powerdns.orig/files/patch-configure powerdns/files/patch-configure --- powerdns.orig/files/patch-configure Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-configure Thu Jan 1 01:00:00 1970 @@ -1,11 +0,0 @@ ---- configure.orig Mon Dec 16 22:45:46 2002 -+++ configure Mon Dec 16 22:45:59 2002 -@@ -10385,7 +10385,7 @@ - echo "$as_me:$LINENO: result: $PGSQL_incdir" >&5 - echo "${ECHO_T}$PGSQL_incdir" >&6 - --# LIBS="$LIBS -lpq++ -lpq -lssl -lcrypt -lcrypto" -+# LIBS="$LIBS -lpq++ -lpq -lssl -lcrypto" - fi - - diff -ruN powerdns.orig/files/patch-modules_gmysqlbackend_Makefile_in powerdns/files/patch-modules_gmysqlbackend_Makefile_in --- powerdns.orig/files/patch-modules_gmysqlbackend_Makefile_in Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-modules_gmysqlbackend_Makefile_in Thu Jan 1 01:00:00 1970 @@ -1,11 +0,0 @@ ---- modules/gmysqlbackend/Makefile.in.orig Tue Dec 17 10:38:38 2002 -+++ modules/gmysqlbackend/Makefile.in Tue Dec 17 10:38:39 2002 -@@ -181,7 +181,7 @@ - clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - libgmysqlbackend.la: $(libgmysqlbackend_la_OBJECTS) $(libgmysqlbackend_la_DEPENDENCIES) -- $(CXXLINK) -rpath $(libdir) $(libgmysqlbackend_la_LDFLAGS) $(libgmysqlbackend_la_OBJECTS) $(libgmysqlbackend_la_LIBADD) $(LIBS) -+# $(CXXLINK) -rpath $(libdir) $(libgmysqlbackend_la_LDFLAGS) $(libgmysqlbackend_la_OBJECTS) $(libgmysqlbackend_la_LIBADD) $(LIBS) - - mostlyclean-compile: - -rm -f *.$(OBJEXT) core *.core diff -ruN powerdns.orig/files/patch-modules_gpgsqlbackend_Makefile_in powerdns/files/patch-modules_gpgsqlbackend_Makefile_in --- powerdns.orig/files/patch-modules_gpgsqlbackend_Makefile_in Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-modules_gpgsqlbackend_Makefile_in Thu Jan 1 01:00:00 1970 @@ -1,29 +0,0 @@ ---- modules/gpgsqlbackend/Makefile.in.orig Mon Dec 16 22:32:29 2002 -+++ modules/gpgsqlbackend/Makefile.in Fri Dec 20 14:24:06 2002 -@@ -95,7 +95,7 @@ - lib_LTLIBRARIES = libgpgsqlbackend.la - - EXTRA_DIST = OBJECTFILES OBJECTLIBS --INCLUDES = -I@PGSQL_incdir@ -+INCLUDES = -I@includedir@ -I@PGSQL_incdir@ - - libgpgsqlbackend_la_SOURCES = gpgsqlbackend.cc gpgsqlbackend.hh \ - spgsql.hh spgsql.cc -@@ -105,7 +105,7 @@ - -Wl,-Bdynamic - - --libgpgsqlbackend_la_LIBADD = -lssl -lcrypt -lcrypto -+libgpgsqlbackend_la_LIBADD = -lssl -lcrypto - subdir = modules/gpgsqlbackend - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_HEADER = $(top_builddir)/config.h -@@ -184,7 +184,7 @@ - clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - libgpgsqlbackend.la: $(libgpgsqlbackend_la_OBJECTS) $(libgpgsqlbackend_la_DEPENDENCIES) -- $(CXXLINK) -rpath $(libdir) $(libgpgsqlbackend_la_LDFLAGS) $(libgpgsqlbackend_la_OBJECTS) $(libgpgsqlbackend_la_LIBADD) $(LIBS) -+# $(CXXLINK) -rpath $(libdir) $(libgpgsqlbackend_la_LDFLAGS) $(libgpgsqlbackend_la_OBJECTS) $(libgpgsqlbackend_la_LIBADD) $(LIBS) - - mostlyclean-compile: - -rm -f *.$(OBJEXT) core *.core diff -ruN powerdns.orig/files/patch-modules_gpgsqlbackend_OBJECTLIBS powerdns/files/patch-modules_gpgsqlbackend_OBJECTLIBS --- powerdns.orig/files/patch-modules_gpgsqlbackend_OBJECTLIBS Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-modules_gpgsqlbackend_OBJECTLIBS Thu Jan 1 01:00:00 1970 @@ -1,5 +0,0 @@ ---- modules/gpgsqlbackend/OBJECTLIBS.orig Tue Dec 17 08:35:41 2002 -+++ modules/gpgsqlbackend/OBJECTLIBS Tue Dec 17 08:35:50 2002 -@@ -1 +1 @@ ---lpq++ -lpq -lssl -lcrypt -lcrypto -+-lpq++ -lpq -lssl -lcrypto diff -ruN powerdns.orig/files/patch-modules_gsqlitebackend_Makefile_in powerdns/files/patch-modules_gsqlitebackend_Makefile_in --- powerdns.orig/files/patch-modules_gsqlitebackend_Makefile_in Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-modules_gsqlitebackend_Makefile_in Thu Jan 1 01:00:00 1970 @@ -1,11 +0,0 @@ ---- modules/gsqlitebackend/Makefile.in Fri Mar 5 09:59:34 2004 -+++ modules/gsqlitebackend/Makefile.in Fri Mar 5 10:00:54 2004 -@@ -193,7 +193,7 @@ - clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - libgsqlitebackend.la: $(libgsqlitebackend_la_OBJECTS) $(libgsqlitebackend_la_DEPENDENCIES) -- $(CXXLINK) -rpath $(libdir) $(libgsqlitebackend_la_LDFLAGS) $(libgsqlitebackend_la_OBJECTS) $(libgsqlitebackend_la_LIBADD) $(LIBS) -+# $(CXXLINK) -rpath $(libdir) $(libgsqlitebackend_la_LDFLAGS) $(libgsqlitebackend_la_OBJECTS) $(libgsqlitebackend_la_LIBADD) $(LIBS) - - mostlyclean-compile: - -rm -f *.$(OBJEXT) core *.core diff -ruN powerdns.orig/files/patch-modules_gsqlitebackend_ssqlite_cc powerdns/files/patch-modules_gsqlitebackend_ssqlite_cc --- powerdns.orig/files/patch-modules_gsqlitebackend_ssqlite_cc Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-modules_gsqlitebackend_ssqlite_cc Thu Jan 1 01:00:00 1970 @@ -1,10 +0,0 @@ ---- modules/gsqlitebackend/ssqlite.cc Fri Mar 5 22:06:33 2004 -+++ modules/gsqlitebackend/ssqlite.cc Fri Mar 5 22:06:56 2004 -@@ -6,6 +6,7 @@ - - #include "pdns/utility.hh" - #include <string> -+#include <unistd.h> - #include "ssqlite.hh" - #include <iostream> - diff -ruN powerdns.orig/files/patch-modules_pipebackend_Makefile_in powerdns/files/patch-modules_pipebackend_Makefile_in --- powerdns.orig/files/patch-modules_pipebackend_Makefile_in Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-modules_pipebackend_Makefile_in Thu Jan 1 01:00:00 1970 @@ -1,11 +0,0 @@ ---- modules/pipebackend/Makefile.in.orig Tue Dec 17 09:39:14 2002 -+++ modules/pipebackend/Makefile.in Tue Dec 17 09:39:39 2002 -@@ -181,7 +181,7 @@ - clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - libpipebackend.la: $(libpipebackend_la_OBJECTS) $(libpipebackend_la_DEPENDENCIES) -- $(CXXLINK) -rpath $(libdir) $(libpipebackend_la_LDFLAGS) $(libpipebackend_la_OBJECTS) $(libpipebackend_la_LIBADD) $(LIBS) -+# $(CXXLINK) -rpath $(libdir) $(libpipebackend_la_LDFLAGS) $(libpipebackend_la_OBJECTS) $(libpipebackend_la_LIBADD) $(LIBS) - - mostlyclean-compile: - -rm -f *.$(OBJEXT) core *.core diff -ruN powerdns.orig/files/patch-pdns_backends_bind_bindbackend2_cc powerdns/files/patch-pdns_backends_bind_bindbackend2_cc --- powerdns.orig/files/patch-pdns_backends_bind_bindbackend2_cc Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-pdns_backends_bind_bindbackend2_cc Thu Jan 1 01:00:00 1970 @@ -1,16 +0,0 @@ ---- pdns/backends/bind/bindbackend2.cc.orig Sat Oct 4 16:15:46 2003 -+++ pdns/backends/bind/bindbackend2.cc Mon Nov 17 20:54:19 2003 -@@ -61,11 +61,10 @@ - d_loaded=false; - d_last_check=0; - d_checknow=false; -- d_rwlock=new pthread_rwlock_t; - d_status="Seen in bind configuration"; - d_confcount=0; -- // cout<<"Generated a new bbdomaininfo: "<<(void*)d_rwlock<<"/"<<getpid()<<endl; -- pthread_rwlock_init(d_rwlock,0); -+ // cout<<"Generated a new bbdomaininfo: "<<d_rwlock<<"/"<<getpid()<<endl; -+ pthread_rwlock_init(&d_rwlock,0); - } - - void BB2DomainInfo::setCheckInterval(time_t seconds) diff -ruN powerdns.orig/files/patch-pdns_backends_bind_bindbackend2_hh powerdns/files/patch-pdns_backends_bind_bindbackend2_hh --- powerdns.orig/files/patch-pdns_backends_bind_bindbackend2_hh Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-pdns_backends_bind_bindbackend2_hh Thu Jan 1 01:00:00 1970 @@ -1,39 +0,0 @@ ---- pdns/backends/bind/bindbackend2.hh.orig Sun Sep 28 20:20:03 2003 -+++ pdns/backends/bind/bindbackend2.hh Mon Nov 17 20:54:19 2003 -@@ -58,21 +58,20 @@ - - bool tryRLock() - { -- // cout<<"[trylock!] "<<(void*)d_rwlock<<"/"<<getpid()<<endl; -- return pthread_rwlock_tryrdlock(d_rwlock)!=EBUSY; -+ // cout<<"[trylock!] "<<d_rwlock<<"/"<<getpid()<<endl; -+ return pthread_rwlock_tryrdlock(&d_rwlock)!=EBUSY; - } - - void unlock() - { -- // cout<<"[unlock] "<<(void*)d_rwlock<<"/"<<getpid()<<endl; -- pthread_rwlock_unlock(d_rwlock); -+ // cout<<"[unlock] "<<d_rwlock<<"/"<<getpid()<<endl; -+ pthread_rwlock_unlock(&d_rwlock); - } - - void lock() - { -- //cout<<"[writelock!] "<<(void*)d_rwlock<<"/"<<getpid()<<endl; -- -- pthread_rwlock_wrlock(d_rwlock); -+ // cout<<"[writelock!] "<<d_rwlock<<"/"<<getpid()<<endl; -+ pthread_rwlock_wrlock(&d_rwlock); - } - - void setCheckInterval(time_t seconds); -@@ -81,7 +80,7 @@ - time_t getCtime(); - time_t d_checkinterval; - time_t d_lastcheck; -- pthread_rwlock_t *d_rwlock; -+ pthread_rwlock_t d_rwlock; - }; - - diff -ruN powerdns.orig/files/patch-pdns_backends_bind_bindbackend_cc powerdns/files/patch-pdns_backends_bind_bindbackend_cc --- powerdns.orig/files/patch-pdns_backends_bind_bindbackend_cc Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-pdns_backends_bind_bindbackend_cc Thu Jan 1 01:00:00 1970 @@ -1,16 +0,0 @@ ---- pdns/backends/bind/bindbackend.cc.orig Sat Aug 23 16:35:35 2003 -+++ pdns/backends/bind/bindbackend.cc Mon Nov 17 20:54:19 2003 -@@ -58,11 +58,10 @@ - d_loaded=false; - d_last_check=0; - d_checknow=false; -- d_rwlock=new pthread_rwlock_t; - d_status="Seen in bind configuration"; - d_confcount=0; -- //cout<<"Generated a new bbdomaininfo: "<<(void*)d_rwlock<<"/"<<getpid()<<endl; -- pthread_rwlock_init(d_rwlock,0); -+ //cout<<"Generated a new bbdomaininfo: "<<d_rwlock<<"/"<<getpid()<<endl; -+ pthread_rwlock_init(&d_rwlock,0); - } - - void BBDomainInfo::setCheckInterval(time_t seconds) diff -ruN powerdns.orig/files/patch-pdns_backends_bind_bindbackend_hh powerdns/files/patch-pdns_backends_bind_bindbackend_hh --- powerdns.orig/files/patch-pdns_backends_bind_bindbackend_hh Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-pdns_backends_bind_bindbackend_hh Thu Jan 1 01:00:00 1970 @@ -1,39 +0,0 @@ ---- pdns/backends/bind/bindbackend.hh.orig Sat Aug 23 16:35:35 2003 -+++ pdns/backends/bind/bindbackend.hh Mon Nov 17 20:54:19 2003 -@@ -58,21 +58,20 @@ - - bool tryRLock() - { -- // cout<<"[trylock!] "<<(void*)d_rwlock<<"/"<<getpid()<<endl; -- return pthread_rwlock_tryrdlock(d_rwlock)!=EBUSY; -+ // cout<<"[trylock!] "<<d_rwlock<<"/"<<getpid()<<endl; -+ return pthread_rwlock_tryrdlock(&d_rwlock)!=EBUSY; - } - - void unlock() - { -- // cout<<"[unlock] "<<(void*)d_rwlock<<"/"<<getpid()<<endl; -- pthread_rwlock_unlock(d_rwlock); -+ // cout<<"[unlock] "<<d_rwlock<<"/"<<getpid()<<endl; -+ pthread_rwlock_unlock(&d_rwlock); - } - - void lock() - { -- //cout<<"[writelock!] "<<(void*)d_rwlock<<"/"<<getpid()<<endl; -- -- pthread_rwlock_wrlock(d_rwlock); -+ // cout<<"[writelock!] "<<d_rwlock<<"/"<<getpid()<<endl; -+ pthread_rwlock_wrlock(&d_rwlock); - } - - void setCheckInterval(time_t seconds); -@@ -80,7 +79,7 @@ - time_t getCtime(); - time_t d_checkinterval; - time_t d_lastcheck; -- pthread_rwlock_t *d_rwlock; -+ pthread_rwlock_t d_rwlock; - }; - - diff -ruN powerdns.orig/files/patch-pdns_logger_cc powerdns/files/patch-pdns_logger_cc --- powerdns.orig/files/patch-pdns_logger_cc Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-pdns_logger_cc Thu Jan 1 01:00:00 1970 @@ -1,28 +0,0 @@ ---- pdns/logger.cc.orig Fri Feb 11 12:49:28 2005 -+++ pdns/logger.cc Fri Feb 11 12:51:16 2005 -@@ -131,6 +131,25 @@ - return *this; - } - -+Logger& Logger::operator<<(long i) -+{ -+ ostringstream tmp; -+ tmp<<i; -+ -+ *this<<tmp.str(); -+ -+ return *this; -+} -+ -+Logger& Logger::operator<<(unsigned long i) -+{ -+ ostringstream tmp; -+ tmp<<i; -+ -+ *this<<tmp.str(); -+ -+ return *this; -+} - - Logger& Logger::operator<<(ostream & (&)(ostream &)) - { diff -ruN powerdns.orig/files/patch-pdns_logger_hh powerdns/files/patch-pdns_logger_hh --- powerdns.orig/files/patch-pdns_logger_hh Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-pdns_logger_hh Thu Jan 1 01:00:00 1970 @@ -1,11 +0,0 @@ ---- pdns/logger.hh.orig Sat Jan 29 12:51:20 2005 -+++ pdns/logger.hh Sat Jan 29 12:52:22 2005 -@@ -111,6 +111,8 @@ - Logger& operator<<(const string &s); //!< log a string - Logger& operator<<(int); //!< log an int - Logger& operator<<(unsigned int); //!< log an unsigned int -+ Logger& operator<<(long); //!< log a long -+ Logger& operator<<(unsigned long); //!< log an unsigned long - Logger& operator<<(Urgency); //!< set the urgency, << style - - #ifndef WIN32 diff -ruN powerdns.orig/files/patch-pdns_pdns_recursor_cc powerdns/files/patch-pdns_pdns_recursor_cc --- powerdns.orig/files/patch-pdns_pdns_recursor_cc Fri Jul 15 16:38:35 2005 +++ powerdns/files/patch-pdns_pdns_recursor_cc Thu Jan 1 01:00:00 1970 @@ -1,29 +0,0 @@ ---- pdns/pdns_recursor.cc.orig Wed Jan 12 15:30:19 2005 -+++ pdns/pdns_recursor.cc Wed Jan 12 15:31:01 2005 -@@ -39,7 +39,7 @@ - #include <fstream> - #include "recursor_cache.hh" - --#ifdef FreeBSD // see cvstrac ticket #26 -+#ifdef __FreeBSD__ // see cvstrac ticket #26 - #include <pthread.h> - #include <semaphore.h> - #endif -@@ -48,7 +48,8 @@ - - string s_programname="pdns_recursor"; - --#if !WIN32 && !FreeBSD -+#ifndef WIN32 -+#ifndef __FreeBSD__ - extern "C" { - int sem_init(sem_t*, int, unsigned int){return 0;} - int sem_wait(sem_t*){return 0;} -@@ -61,6 +62,7 @@ - int pthread_mutex_unlock(pthread_mutex_t *mutex) { return 0; } - - } -+#endif // __FreeBSD__ - #endif // WIN32 - - StatBag S; diff -ruN powerdns.orig/files/pdns.conf powerdns/files/pdns.conf --- powerdns.orig/files/pdns.conf Fri Jul 15 16:38:35 2005 +++ powerdns/files/pdns.conf Sun Jul 17 14:48:06 2005 @@ -34,12 +34,12 @@ ################################# # chroot If set, chroot to this directory for more security # -chroot=/var/empty +# chroot= ################################# # config-dir Location of configuration directory (pdns.conf) # -# config-dir=/etc +# config-dir=/usr/local/etc ################################# # config-name Name of this virtual configuration - will rename the binary image @@ -54,12 +54,12 @@ ################################# # daemon Operate as a daemon # -daemon=yes +# daemon=no ################################# # default-soa-name name to insert in the SOA record if none set in the backend # -# default-soa-name=ns.example.com +# default-soa-name=a.misconfigured.powerdns.server ################################# # disable-axfr Disable zonetransfers but do allow TCP queries @@ -69,7 +69,7 @@ ################################# # disable-tcp Do not listen to TCP queries # -disable-tcp=no +# disable-tcp=no ################################# # distributor-threads Default number of Distributor (backend) threads to start @@ -84,7 +84,7 @@ ################################# # guardian Run within a guardian process # -guardian=yes +# guardian=no ################################# # launch Which backends to launch and order to query them in @@ -234,7 +234,7 @@ ################################# # smtpredirector Our smtpredir MX host # -smtpredirector=voodoo.codeninja.nl +# smtpredirector=a.misconfigured.powerdns.smtp.server ################################# # soa-minimum-ttl Default SOA mininum ttl @@ -269,12 +269,12 @@ ################################# # webserver Start a webserver for monitoring # -webserver=yes +# webserver=no ################################# # webserver-address IP Address of webserver to listen on # -webserver-address=127.0.0.1 +# webserver-address=127.0.0.1 ################################# # webserver-password Password required for accessing the webserver @@ -284,7 +284,7 @@ ################################# # webserver-port Port of webserver to listen on # -webserver-port=8081 +# webserver-port=8081 ################################# # webserver-print-arguments If the webserver should print arguments diff -ruN powerdns.orig/files/pdns.sh.in powerdns/files/pdns.sh.in --- powerdns.orig/files/pdns.sh.in Thu Jan 1 01:00:00 1970 +++ powerdns/files/pdns.sh.in Fri Jul 15 19:12:32 2005 @@ -0,0 +1,35 @@ +#!/bin/sh +# +# $FreeBSD: ports/dns/powerdns/files/pdns.sh,v 1.0 2005/02/24 10:35:38 tremere Exp $ +# + +# PROVIDE: pdns_server +# REQUIRE: DAEMON +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable dovecot: +# +#pdns_enable="YES" +# +# See pdns_server(8) for flags. +# + +. %%RC_SUBR%% + +name=pdns +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/pdns_server + +# set defaults + +pdns_enable=${pdns_enable:-"NO"} +pdns_conf=${pdns_conf:-"%%PREFIX%%/etc/pdns.conf"} +pdns_flags=${pdns_flags:-""} + +load_rc_config ${name} + +required_files=${pdns_conf} + +run_rc_command "$1" diff -ruN powerdns.orig/files/pdns.sh.sample powerdns/files/pdns.sh.sample --- powerdns.orig/files/pdns.sh.sample Fri Jul 15 16:38:35 2005 +++ powerdns/files/pdns.sh.sample Thu Jan 1 01:00:00 1970 @@ -1,31 +0,0 @@ -#!/bin/sh - -rc_file=${0##*/} - -PREFIX=%%PREFIX%% - -pdns=${PREFIX}/sbin/pdns_server -pdnscontrol=${PREFIX}/bin/pdns_control -pdnsrecursor=${PREFIX}/sbin/pdns_recursor -recursorpid=/var/run/pdns_recursor.pid - -# start -if [ "x$1" = "x" -o "x$1" = "xstart" ]; then - if [ -f $pdns ]; then - echo -n ' PowerDNS' - if [ -f $pdnsrecursor ]; then - rm $recursorpid >/dev/null 2>&1 - $pdnsrecursor >/dev/null 2>&1 - fi - $pdns - fi - -# stop -elif [ "x$1" = "xstop" ]; then - if [ -f $pdnscontrol ]; then - $pdnscontrol quit - fi - if [ -r $recursorpid ]; then - kill `cat $recursorpid` >/dev/null - fi -fi diff -ruN powerdns.orig/files/pdns_recursor.sh.in powerdns/files/pdns_recursor.sh.in --- powerdns.orig/files/pdns_recursor.sh.in Thu Jan 1 01:00:00 1970 +++ powerdns/files/pdns_recursor.sh.in Fri Jul 15 19:12:43 2005 @@ -0,0 +1,35 @@ +#!/bin/sh +# +# $FreeBSD: ports/dns/powerdns/files/pdns_recursor.sh,v 1.0 2005/02/24 10:40:36 tremere Exp $ +# + +# PROVIDE: pdns_recursor +# REQUIRE: DAEMON +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable dovecot: +# +#pdns_recursor_enable="YES" +# +# See http://rtfm.powerdns.com for flags. +# + +. %%RC_SUBR%% + +name=pdns_recursor +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/pdns_recursor + +# set defaults + +pdns_recursor_enable=${pdns_recursor_enable:-"NO"} +pdns_recursor_conf=${pdns_recursor_conf:-"%%PREFIX%%/etc/recursor.conf"} +pdns_recursor_flags=${pdns_recursor_flags:-""} + +load_rc_config ${name} + +required_files=${pdns_recursor_conf} + +run_rc_command "$1" diff -ruN powerdns.orig/files/pkg-message.in powerdns/files/pkg-message.in --- powerdns.orig/files/pkg-message.in Thu Jan 1 01:00:00 1970 +++ powerdns/files/pkg-message.in Fri Jul 15 18:24:49 2005 @@ -0,0 +1,15 @@ + +******************************************************************* + Enable powerdns in /etc/rc.conf with the following line: + + pdns_enable="YES" + + If you want to use the powerdns recursor, + you need the following additional line in /etc/rc.conf + + pdns_recursor_enable="YES" + + Configuration templates are available in %%PREFIX%%/etc + as pdns.conf-dist. +******************************************************************* + diff -ruN powerdns.orig/pkg-plist powerdns/pkg-plist --- powerdns.orig/pkg-plist Fri Jul 15 16:38:35 2005 +++ powerdns/pkg-plist Sun Jul 17 14:48:06 2005 @@ -10,7 +10,6 @@ %%RECURSOR%%sbin/pdns_recursor @unexec if cmp -s %D/etc/pdns.conf %D/etc/pdns.conf-dist; then rm -f %D/etc/pdns.conf; fi etc/pdns.conf-dist -etc/rc.d/pdns.sh.sample @exec [ -f %B/pdns.conf ] || cp %B/%f %B/pdns.conf %%PORTDOCS%%share/examples/powerdns/pdns.conf %%PORTDOCS%%share/examples/powerdns/pdns_mysql.sql --- pdns-2.9.18.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050717133506.B471B364>