summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2006-04-30 00:14:42 +0000
committerSven Wegener <swegener@gentoo.org>2006-04-30 00:14:42 +0000
commit34ea6b3185ff273a8d1fd1974f73e4df5a39aa74 (patch)
treea8bb3024fe4712e555a8b390b7090c1445c772eb /net-dns
parentAdd a blocker on the split out recursor. (diff)
downloadhistorical-34ea6b3185ff273a8d1fd1974f73e4df5a39aa74.tar.gz
historical-34ea6b3185ff273a8d1fd1974f73e4df5a39aa74.tar.bz2
historical-34ea6b3185ff273a8d1fd1974f73e4df5a39aa74.zip
Initial commit, ebuild written by me.
Package-Manager: portage-2.1_pre10
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/pdns-recursor/ChangeLog10
-rw-r--r--net-dns/pdns-recursor/files/digest-pdns-recursor-3.0.13
-rw-r--r--net-dns/pdns-recursor/files/precursor20
-rw-r--r--net-dns/pdns-recursor/files/recursor.conf21
-rw-r--r--net-dns/pdns-recursor/metadata.xml19
-rw-r--r--net-dns/pdns-recursor/pdns-recursor-3.0.1.ebuild32
6 files changed, 105 insertions, 0 deletions
diff --git a/net-dns/pdns-recursor/ChangeLog b/net-dns/pdns-recursor/ChangeLog
new file mode 100644
index 000000000000..1f9912480056
--- /dev/null
+++ b/net-dns/pdns-recursor/ChangeLog
@@ -0,0 +1,10 @@
+# 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.1 2006/04/30 00:14:42 swegener Exp $
+
+*pdns-recursor-3.0.1 (30 Apr 2006)
+
+ 30 Apr 2006; Sven Wegener <swegener@gentoo.org> +files/precursor,
+ +files/recursor.conf, +metadata.xml, +pdns-recursor-3.0.1.ebuild:
+ Initial commit, ebuild written by me.
+
diff --git a/net-dns/pdns-recursor/files/digest-pdns-recursor-3.0.1 b/net-dns/pdns-recursor/files/digest-pdns-recursor-3.0.1
new file mode 100644
index 000000000000..1f50c853f606
--- /dev/null
+++ b/net-dns/pdns-recursor/files/digest-pdns-recursor-3.0.1
@@ -0,0 +1,3 @@
+MD5 367b2c091791dc7f49002a6d8fedf011 pdns-recursor-3.0.1.tar.bz2 119684
+RMD160 f181660736e1fbbde482bc1b2de9d16ac1af539b pdns-recursor-3.0.1.tar.bz2 119684
+SHA256 d0df237f9a931beb8812fbd1dba567133b599e6eed333631a3980b5a292d4be1 pdns-recursor-3.0.1.tar.bz2 119684
diff --git a/net-dns/pdns-recursor/files/precursor b/net-dns/pdns-recursor/files/precursor
new file mode 100644
index 000000000000..68573018ca72
--- /dev/null
+++ b/net-dns/pdns-recursor/files/precursor
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# 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/files/precursor,v 1.1 2006/04/30 00:14:42 swegener Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting PowerDNS Recursor"
+ /usr/sbin/pdns_recursor --daemon &>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping PowerDNS Recursor"
+ /usr/sbin/rec_control quit &>/dev/null
+ eend $?
+}
diff --git a/net-dns/pdns-recursor/files/recursor.conf b/net-dns/pdns-recursor/files/recursor.conf
new file mode 100644
index 000000000000..b4bf3b6d6a78
--- /dev/null
+++ b/net-dns/pdns-recursor/files/recursor.conf
@@ -0,0 +1,21 @@
+# 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/files/recursor.conf,v 1.1 2006/04/30 00:14:42 swegener Exp $
+
+# Drop uid
+setuid=nobody
+
+# Drop gid
+setgid=nobody
+
+# Don't log queries
+quiet=on
+
+# Local IP address to bind to
+local-address=127.0.0.1
+
+# Local port to bind to
+local-port=53
+
+# Change root for safety
+chroot=/var/empty
diff --git a/net-dns/pdns-recursor/metadata.xml b/net-dns/pdns-recursor/metadata.xml
new file mode 100644
index 000000000000..d49ea4ff5265
--- /dev/null
+++ b/net-dns/pdns-recursor/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>swegener@gentoo.org</email>
+ <name>Sven Wegener</name>
+ <description>Primary Maintainer</description>
+</maintainer>
+<longdescription>
+With a small codebase, the PowerDNS Recursor is an advanced recursor currently
+serving the DNS resolving needs of over 2 million Internet connections. Besides
+high performance (using kqueue or epoll, over 15 thousand qps on commodity
+hardware), it provides advanced anti-spoofing measures. In addition, the program
+caches server performance and timeouts, making it both network and user friendly.
+It also has built-in hooks for making graphs with rrdtool, providing insight into
+nameserver performance.
+</longdescription>
+</pkgmetadata>
diff --git a/net-dns/pdns-recursor/pdns-recursor-3.0.1.ebuild b/net-dns/pdns-recursor/pdns-recursor-3.0.1.ebuild
new file mode 100644
index 000000000000..95e4d2ed8023
--- /dev/null
+++ b/net-dns/pdns-recursor/pdns-recursor-3.0.1.ebuild
@@ -0,0 +1,32 @@
+# 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.0.1.ebuild,v 1.1 2006/04/30 00:14:42 swegener Exp $
+
+inherit toolchain-funcs
+
+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="~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/boost-1.33.1"
+RDEPEND="${DEPEND}
+ !net-dns/pdns"
+
+src_compile() {
+ emake OPTFLAGS="${CFLAGS}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" || 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 "doina failed"
+
+ doinitd "${FILESDIR}"/precursor || die "doinitd failed"
+}