summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2006-11-09 13:10:14 +0000
committerSven Wegener <swegener@gentoo.org>2006-11-09 13:10:14 +0000
commit55733e63c90eaa37472441d037c53ff82226778f (patch)
tree71c6f6cb851a65d06fd58457fa38b0543e759a69 /net-dns/pdns-recursor
parentbug-wranglers -> me. (diff)
downloadgentoo-2-55733e63c90eaa37472441d037c53ff82226778f.tar.gz
gentoo-2-55733e63c90eaa37472441d037c53ff82226778f.tar.bz2
gentoo-2-55733e63c90eaa37472441d037c53ff82226778f.zip
Revision bump.
(Portage version: 2.1.2_rc1-r5)
Diffstat (limited to 'net-dns/pdns-recursor')
-rw-r--r--net-dns/pdns-recursor/ChangeLog9
-rw-r--r--net-dns/pdns-recursor/files/digest-pdns-recursor-3.1.3-r13
-rw-r--r--net-dns/pdns-recursor/files/pdns-recursor-3.1.3-svn-fixes.patch35
-rw-r--r--net-dns/pdns-recursor/pdns-recursor-3.1.3-r1.ebuild48
4 files changed, 94 insertions, 1 deletions
diff --git a/net-dns/pdns-recursor/ChangeLog b/net-dns/pdns-recursor/ChangeLog
index ff21d2a64c88..29b30a8b1c3a 100644
--- a/net-dns/pdns-recursor/ChangeLog
+++ b/net-dns/pdns-recursor/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-dns/pdns-recursor
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns-recursor/ChangeLog,v 1.8 2006/10/27 16:40:31 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns-recursor/ChangeLog,v 1.9 2006/11/09 13:10:14 swegener Exp $
+
+*pdns-recursor-3.1.3-r1 (09 Nov 2006)
+
+ 09 Nov 2006; Sven Wegener <swegener@gentoo.org>
+ -pdns-recursor-3.1.2.ebuild, -pdns-recursor-3.1.3.ebuild,
+ +pdns-recursor-3.1.3-r1.ebuild:
+ Revision bump.
*pdns-recursor-3.1.3 (27 Oct 2006)
diff --git a/net-dns/pdns-recursor/files/digest-pdns-recursor-3.1.3-r1 b/net-dns/pdns-recursor/files/digest-pdns-recursor-3.1.3-r1
new file mode 100644
index 000000000000..35054411be7b
--- /dev/null
+++ b/net-dns/pdns-recursor/files/digest-pdns-recursor-3.1.3-r1
@@ -0,0 +1,3 @@
+MD5 fb6910c688008ecf247e4c731d8eb9a5 pdns-recursor-3.1.3.tar.bz2 138992
+RMD160 71c114471bab005846ba234e4023d5b59e7af030 pdns-recursor-3.1.3.tar.bz2 138992
+SHA256 07c20df3b6e9a4194a8ced8a535aa61c4f2805ee21c040882218975605b8ae2e pdns-recursor-3.1.3.tar.bz2 138992
diff --git a/net-dns/pdns-recursor/files/pdns-recursor-3.1.3-svn-fixes.patch b/net-dns/pdns-recursor/files/pdns-recursor-3.1.3-svn-fixes.patch
new file mode 100644
index 000000000000..0be7f2fcae1a
--- /dev/null
+++ b/net-dns/pdns-recursor/files/pdns-recursor-3.1.3-svn-fixes.patch
@@ -0,0 +1,35 @@
+Index: pdns_recursor.cc
+===================================================================
+--- pdns_recursor.cc (revision 903)
++++ pdns_recursor.cc (revision 915)
+@@ -652,7 +652,7 @@
+ if(bytes==1)
+ conn->state=TCPConnection::BYTE1;
+ if(bytes==2) {
+- conn->qlen=(conn->data[0]<<8)+conn->data[1];
++ conn->qlen=(((unsigned char)conn->data[0]) << 8)+ (unsigned char)conn->data[1];
+ conn->bytesread=0;
+ conn->state=TCPConnection::GETQUESTION;
+ }
+@@ -664,10 +664,10 @@
+ }
+ }
+ else if(conn->state==TCPConnection::BYTE1) {
+- int bytes=recv(conn->fd,conn->data+1,1,0);
++ int bytes=recv(conn->fd, conn->data+1, 1, 0);
+ if(bytes==1) {
+ conn->state=TCPConnection::GETQUESTION;
+- conn->qlen=(conn->data[0]<<8)+conn->data[1];
++ conn->qlen=(((unsigned char)conn->data[0]) << 8)+ (unsigned char)conn->data[1];
+ conn->bytesread=0;
+ }
+ if(!bytes || bytes < 0) {
+@@ -680,7 +680,7 @@
+ }
+ }
+ else if(conn->state==TCPConnection::GETQUESTION) {
+- int bytes=recv(conn->fd,conn->data + conn->bytesread,conn->qlen - conn->bytesread, 0);
++ int bytes=recv(conn->fd, conn->data + conn->bytesread, conn->qlen - conn->bytesread, 0);
+ if(!bytes || bytes < 0) {
+ L<<Logger::Error<<"TCP client "<< conn->remote.toString() <<" disconnected while reading question body"<<endl;
+ TCPConnection tmp(*conn);
diff --git a/net-dns/pdns-recursor/pdns-recursor-3.1.3-r1.ebuild b/net-dns/pdns-recursor/pdns-recursor-3.1.3-r1.ebuild
new file mode 100644
index 000000000000..438b0ad1d04c
--- /dev/null
+++ b/net-dns/pdns-recursor/pdns-recursor-3.1.3-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns-recursor/pdns-recursor-3.1.3-r1.ebuild,v 1.1 2006/11/09 13:10:14 swegener Exp $
+
+inherit toolchain-funcs flag-o-matic eutils
+
+DESCRIPTION="The PowerDNS Recursor"
+HOMEPAGE="http://www.powerdns.com/"
+SRC_URI="http://downloads.powerdns.com/releases/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/boost-1.33.1"
+RDEPEND="${DEPEND}
+ !<net-dns/pdns-2.9.20-r1"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-svn-fixes.patch
+}
+
+src_compile() {
+ filter-flags -ftree-vectorize
+
+ emake \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ CFLAGS="${CFLAGS}" \
+ CXXFLAGS="${CXXFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ dosbin pdns_recursor rec_control || die "dosbin failed"
+ doman pdns_recursor.1 rec_control.1 || die "doman failed"
+
+ insinto /etc/powerdns
+ doins "${FILESDIR}"/recursor.conf || die "doins failed"
+
+ doinitd "${FILESDIR}"/precursor || die "doinitd failed"
+
+ keepdir /var/empty
+}