summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2004-11-20 01:21:17 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2004-11-20 01:21:17 +0000
commitcf4d5a724e41a7a2ea29cf02abd1e1b31cadeaf5 (patch)
tree0b838dc39c35dc1265664cd5aa497d2f58112013 /dns
parentDocument vulnerability in phpmyadmin. (diff)
pdns_recursor related issues fixed.
I committed pre-improved version's PR. This is my mistake. Pointed out by: Ralf van der Enden <tremere@cainites.net> (maintainer) Pointy hat to: myself PR: ports/73862 Submitted by: Ralf van der Enden <tremere@cainites.net> (maintainer)
Notes
Notes: svn path=/head/; revision=121982
Diffstat (limited to 'dns')
-rw-r--r--dns/powerdns-devel/Makefile14
-rw-r--r--dns/powerdns-devel/files/patch-pdns_pdns_recursor_cc33
-rw-r--r--dns/powerdns-devel/pkg-plist2
-rw-r--r--dns/powerdns/Makefile14
-rw-r--r--dns/powerdns/files/patch-pdns_pdns_recursor_cc33
-rw-r--r--dns/powerdns/pkg-plist2
6 files changed, 68 insertions, 30 deletions
diff --git a/dns/powerdns-devel/Makefile b/dns/powerdns-devel/Makefile
index d32d4035a9ec..781e181d2d25 100644
--- a/dns/powerdns-devel/Makefile
+++ b/dns/powerdns-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= powerdns
PORTVERSION= 2.9.16
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= dns ipv6
MASTER_SITES= http://downloads.powerdns.com/releases/
DISTNAME= pdns-${PORTVERSION}
@@ -145,17 +145,5 @@ post-install:
> ${WRKSRC}/pdns.sh.sample
${INSTALL_SCRIPT} ${WRKSRC}/pdns.sh.sample ${STARTUP_SCRIPT}
.endif
-.if defined(POWERDNS_WITH_RECURSOR)
-.if !exists(${LIBMAP_CONF})
- @${ECHO_MSG} "# Start of fix (pdns_recursor)" > ${LIBMAP_CONF}
-.else
- @${ECHO_MSG} "# Start of fix (pdns_recursor)" >> ${LIBMAP_CONF}
-.endif
- @${ECHO_MSG} "Installing fix in /etc/libmap.conf for pdns_recursor."
- @${ECHO_MSG} "[pdns_recursor]" >> ${LIBMAP_CONF}
- @${ECHO_MSG} "libpthread.so.1 libc_r.so.5" >> ${LIBMAP_CONF}
- @${ECHO_MSG} "libpthread.so libc_r.so" >> ${LIBMAP_CONF}
- @${ECHO_MSG} "# End of fix (pdns_recursor)" >> ${LIBMAP_CONF}
-.endif
.include <bsd.port.post.mk>
diff --git a/dns/powerdns-devel/files/patch-pdns_pdns_recursor_cc b/dns/powerdns-devel/files/patch-pdns_pdns_recursor_cc
new file mode 100644
index 000000000000..74b7ca3d6f45
--- /dev/null
+++ b/dns/powerdns-devel/files/patch-pdns_pdns_recursor_cc
@@ -0,0 +1,33 @@
+--- pdns/pdns_recursor.cc.orig Tue Nov 16 21:21:59 2004
++++ pdns/pdns_recursor.cc Tue Nov 16 21:22:31 2004
+@@ -22,6 +22,8 @@
+ #include <errno.h>
+ #include <map>
+ #include <set>
++#include <semaphore.h>
++#include <pthread.h>
+ #ifndef WIN32
+ #include <netdb.h>
+ #endif // WIN32
+@@ -42,21 +44,6 @@
+ MemRecursorCache RC;
+
+ string s_programname="pdns_recursor";
+-
+-#ifndef WIN32
+-extern "C" {
+- int sem_init(sem_t*, int, unsigned int){return 0;}
+- int sem_wait(sem_t*){return 0;}
+- int sem_trywait(sem_t*){return 0;}
+- int sem_post(sem_t*){return 0;}
+- int sem_getvalue(sem_t*, int*){return 0;}
+- pthread_t pthread_self(void){return (pthread_t) 0;}
+- int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr){ return 0; }
+- int pthread_mutex_lock(pthread_mutex_t *mutex){ return 0; }
+- int pthread_mutex_unlock(pthread_mutex_t *mutex) { return 0; }
+-
+-}
+-#endif // WIN32
+
+ StatBag S;
+ ArgvMap &arg()
diff --git a/dns/powerdns-devel/pkg-plist b/dns/powerdns-devel/pkg-plist
index 1e57b412821b..0925e1bcea29 100644
--- a/dns/powerdns-devel/pkg-plist
+++ b/dns/powerdns-devel/pkg-plist
@@ -17,5 +17,3 @@ etc/rc.d/pdns.sh.sample
%%PORTDOCS%%share/examples/powerdns/pdns_postgresql.sql
%%PORTDOCS%%share/examples/powerdns/pdns_sqlite.sql
%%PORTDOCS%%@dirrm share/examples/powerdns
-%%RECURSOR%%@unexec sed -e "/^# Start of fix (pdns_recursor)$/,/^# End of fix (pdns_recursor)$/d" < /etc/libmap.conf > /etc/libmap.conf.tmp
-%%RECURSOR%%@unexec mv /etc/libmap.conf.tmp /etc/libmap.conf
diff --git a/dns/powerdns/Makefile b/dns/powerdns/Makefile
index d32d4035a9ec..781e181d2d25 100644
--- a/dns/powerdns/Makefile
+++ b/dns/powerdns/Makefile
@@ -7,7 +7,7 @@
PORTNAME= powerdns
PORTVERSION= 2.9.16
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= dns ipv6
MASTER_SITES= http://downloads.powerdns.com/releases/
DISTNAME= pdns-${PORTVERSION}
@@ -145,17 +145,5 @@ post-install:
> ${WRKSRC}/pdns.sh.sample
${INSTALL_SCRIPT} ${WRKSRC}/pdns.sh.sample ${STARTUP_SCRIPT}
.endif
-.if defined(POWERDNS_WITH_RECURSOR)
-.if !exists(${LIBMAP_CONF})
- @${ECHO_MSG} "# Start of fix (pdns_recursor)" > ${LIBMAP_CONF}
-.else
- @${ECHO_MSG} "# Start of fix (pdns_recursor)" >> ${LIBMAP_CONF}
-.endif
- @${ECHO_MSG} "Installing fix in /etc/libmap.conf for pdns_recursor."
- @${ECHO_MSG} "[pdns_recursor]" >> ${LIBMAP_CONF}
- @${ECHO_MSG} "libpthread.so.1 libc_r.so.5" >> ${LIBMAP_CONF}
- @${ECHO_MSG} "libpthread.so libc_r.so" >> ${LIBMAP_CONF}
- @${ECHO_MSG} "# End of fix (pdns_recursor)" >> ${LIBMAP_CONF}
-.endif
.include <bsd.port.post.mk>
diff --git a/dns/powerdns/files/patch-pdns_pdns_recursor_cc b/dns/powerdns/files/patch-pdns_pdns_recursor_cc
new file mode 100644
index 000000000000..74b7ca3d6f45
--- /dev/null
+++ b/dns/powerdns/files/patch-pdns_pdns_recursor_cc
@@ -0,0 +1,33 @@
+--- pdns/pdns_recursor.cc.orig Tue Nov 16 21:21:59 2004
++++ pdns/pdns_recursor.cc Tue Nov 16 21:22:31 2004
+@@ -22,6 +22,8 @@
+ #include <errno.h>
+ #include <map>
+ #include <set>
++#include <semaphore.h>
++#include <pthread.h>
+ #ifndef WIN32
+ #include <netdb.h>
+ #endif // WIN32
+@@ -42,21 +44,6 @@
+ MemRecursorCache RC;
+
+ string s_programname="pdns_recursor";
+-
+-#ifndef WIN32
+-extern "C" {
+- int sem_init(sem_t*, int, unsigned int){return 0;}
+- int sem_wait(sem_t*){return 0;}
+- int sem_trywait(sem_t*){return 0;}
+- int sem_post(sem_t*){return 0;}
+- int sem_getvalue(sem_t*, int*){return 0;}
+- pthread_t pthread_self(void){return (pthread_t) 0;}
+- int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr){ return 0; }
+- int pthread_mutex_lock(pthread_mutex_t *mutex){ return 0; }
+- int pthread_mutex_unlock(pthread_mutex_t *mutex) { return 0; }
+-
+-}
+-#endif // WIN32
+
+ StatBag S;
+ ArgvMap &arg()
diff --git a/dns/powerdns/pkg-plist b/dns/powerdns/pkg-plist
index 1e57b412821b..0925e1bcea29 100644
--- a/dns/powerdns/pkg-plist
+++ b/dns/powerdns/pkg-plist
@@ -17,5 +17,3 @@ etc/rc.d/pdns.sh.sample
%%PORTDOCS%%share/examples/powerdns/pdns_postgresql.sql
%%PORTDOCS%%share/examples/powerdns/pdns_sqlite.sql
%%PORTDOCS%%@dirrm share/examples/powerdns
-%%RECURSOR%%@unexec sed -e "/^# Start of fix (pdns_recursor)$/,/^# End of fix (pdns_recursor)$/d" < /etc/libmap.conf > /etc/libmap.conf.tmp
-%%RECURSOR%%@unexec mv /etc/libmap.conf.tmp /etc/libmap.conf