diff options
author | Stefan Walter <stefan@FreeBSD.org> | 2006-11-19 15:54:44 +0000 |
---|---|---|
committer | Stefan Walter <stefan@FreeBSD.org> | 2006-11-19 15:54:44 +0000 |
commit | ad09c2a75a415c61e0cdcd0111bb4e31491401d5 (patch) | |
tree | 1ea304ae6fdf53dabab676159964f19c1e9d2153 /dns/powerdns-devel | |
parent | 44ca33087998f0d9a05ad2b000e90666b6727aab (diff) | |
download | ports-ad09c2a75a415c61e0cdcd0111bb4e31491401d5.tar.gz ports-ad09c2a75a415c61e0cdcd0111bb4e31491401d5.zip |
Notes
Diffstat (limited to 'dns/powerdns-devel')
-rw-r--r-- | dns/powerdns-devel/Makefile | 2 | ||||
-rw-r--r-- | dns/powerdns-devel/files/configure.powerdns | 2 | ||||
-rw-r--r-- | dns/powerdns-devel/files/patch-pdns_nameserver.cc | 14 | ||||
-rw-r--r-- | dns/powerdns-devel/files/patch-pdns_tcpreceiver.cc | 15 |
4 files changed, 31 insertions, 2 deletions
diff --git a/dns/powerdns-devel/Makefile b/dns/powerdns-devel/Makefile index c33d95db9f73..21fa7fed0491 100644 --- a/dns/powerdns-devel/Makefile +++ b/dns/powerdns-devel/Makefile @@ -20,7 +20,7 @@ BUILD_DEPENDS= bjam:${PORTSDIR}/devel/boost USE_GMAKE= YES USE_SUBMAKE= YES USE_AUTOTOOLS= libtool:15 -INSTALLS_SHLIB= YES +USE_LDCONFIG= YES CXXFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} diff --git a/dns/powerdns-devel/files/configure.powerdns b/dns/powerdns-devel/files/configure.powerdns index 6efa46c6c648..43c9b3e1e685 100644 --- a/dns/powerdns-devel/files/configure.powerdns +++ b/dns/powerdns-devel/files/configure.powerdns @@ -16,7 +16,7 @@ PostgreSQL "PostgreSQL driver" ON \ MySQL "MySQL driver" OFF \ OpenLDAP "OpenLDAP backend" OFF \ SQLite "SQLite backend" OFF \ -Recursor "Build Recursor" OFF \ +Recursor "Build Recursor (DEPRECATED)" OFF \ 2> /tmp/checklist.tmp.$$ retval=$? diff --git a/dns/powerdns-devel/files/patch-pdns_nameserver.cc b/dns/powerdns-devel/files/patch-pdns_nameserver.cc new file mode 100644 index 000000000000..fc7334537c61 --- /dev/null +++ b/dns/powerdns-devel/files/patch-pdns_nameserver.cc @@ -0,0 +1,14 @@ +--- pdns/nameserver.cc.orig Sun Nov 19 16:09:10 2006 ++++ pdns/nameserver.cc Sun Nov 19 16:10:28 2006 +@@ -145,9 +145,9 @@ + } + + sockaddr_in6 locala; +- locala.sin6_port=ntohs(arg().asNum("local-port")); ++ memset(&locala, 0, sizeof(locala)); ++ locala.sin6_port=htons(arg().asNum("local-port")); + locala.sin6_family=AF_INET6; +- locala.sin6_flowinfo=0; + + if(!inet_pton(AF_INET6, localname.c_str(), (void *)&locala.sin6_addr)) { + addrinfo *addrinfos; diff --git a/dns/powerdns-devel/files/patch-pdns_tcpreceiver.cc b/dns/powerdns-devel/files/patch-pdns_tcpreceiver.cc new file mode 100644 index 000000000000..7d7baba77fdc --- /dev/null +++ b/dns/powerdns-devel/files/patch-pdns_tcpreceiver.cc @@ -0,0 +1,15 @@ +--- pdns/tcpreceiver.cc.orig Sun Nov 19 16:11:25 2006 ++++ pdns/tcpreceiver.cc Sun Nov 19 16:13:27 2006 +@@ -480,10 +480,9 @@ + throw AhuException("Unable to acquire TCPv6 socket: "+stringerror()); + + sockaddr_in6 locala; +- locala.sin6_port=ntohs(arg().asNum("local-port")); ++ memset(&locala, 0, sizeof(locala)); ++ locala.sin6_port=htons(arg().asNum("local-port")); + locala.sin6_family=AF_INET6; +- locala.sin6_flowinfo=0; +- + + if(!inet_pton(AF_INET6, laddr->c_str(), (void *)&locala.sin6_addr)) { + addrinfo *addrinfos; |