summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris White <chriswhite@gentoo.org>2005-08-15 22:05:32 +0000
committerChris White <chriswhite@gentoo.org>2005-08-15 22:05:32 +0000
commitdc2b686ff994c02b46e667a3ab10122b6407631a (patch)
tree5f420c095360a43dab9997969d1a191684d6fbce /net-dns/rbldnsd
parentstable on amd64 (diff)
downloadhistorical-dc2b686ff994c02b46e667a3ab10122b6407631a.tar.gz
historical-dc2b686ff994c02b46e667a3ab10122b6407631a.tar.bz2
historical-dc2b686ff994c02b46e667a3ab10122b6407631a.zip
Initial commit to the tree. This closes bug #39975. Thanks to Martin Hierling for the initial ebuild.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'net-dns/rbldnsd')
-rw-r--r--net-dns/rbldnsd/ChangeLog11
-rw-r--r--net-dns/rbldnsd/Manifest17
-rw-r--r--net-dns/rbldnsd/files/confd20
-rw-r--r--net-dns/rbldnsd/files/digest-rbldnsd-0.9951
-rw-r--r--net-dns/rbldnsd/files/example23
-rw-r--r--net-dns/rbldnsd/files/initd20
-rw-r--r--net-dns/rbldnsd/metadata.xml26
-rw-r--r--net-dns/rbldnsd/rbldnsd-0.995.ebuild37
8 files changed, 155 insertions, 0 deletions
diff --git a/net-dns/rbldnsd/ChangeLog b/net-dns/rbldnsd/ChangeLog
new file mode 100644
index 000000000000..1bd051882a3d
--- /dev/null
+++ b/net-dns/rbldnsd/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-dns/rbldnsd
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/rbldnsd/ChangeLog,v 1.1 2005/08/15 22:05:32 chriswhite Exp $
+
+*rbldnsd-0.995 (15 Aug 2005)
+
+ 15 Aug 2005; Chris White <chriswhite@gentoo.org> +files/confd,
+ +files/example, +files/initd, +metadata.xml, +rbldnsd-0.995.ebuild:
+ Initial commit to the tree. This closes bug #39975. Thanks to Martin
+ Hierling for the initial ebuild.
+
diff --git a/net-dns/rbldnsd/Manifest b/net-dns/rbldnsd/Manifest
new file mode 100644
index 000000000000..ce4a0f226bd3
--- /dev/null
+++ b/net-dns/rbldnsd/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 6d85a798f58d0d6cf811227109f72354 rbldnsd-0.995.ebuild 996
+MD5 ac6ea19228e1f51f8f58e80b4bb85eaa metadata.xml 1069
+MD5 b1748aac8ac7857bbab68b43ef495823 ChangeLog 479
+MD5 39b8b3c62c59df6d3ddbedc84e11ef9b files/confd 634
+MD5 1c33419fe27dc0734d6dd55204f1979d files/example 495
+MD5 edc6a1efd2f4ae0f0140e976de8a40c6 files/initd 475
+MD5 bfb7395472a78a3c734d2107a165a85f files/digest-rbldnsd-0.995 65
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFDAQq1FdQwWVoAgN4RAlZrAJ9uKtbgkoEn2KoWtEC0X0uaVQfGbgCgqHye
+sIJZbX7eJGZ0sy5Er1wkPOY=
+=TbwZ
+-----END PGP SIGNATURE-----
diff --git a/net-dns/rbldnsd/files/confd b/net-dns/rbldnsd/files/confd
new file mode 100644
index 000000000000..f898a14c330e
--- /dev/null
+++ b/net-dns/rbldnsd/files/confd
@@ -0,0 +1,20 @@
+#
+# options for rbldnsd
+#
+# for initial testing, copy example zone file to /var/db/rbldnsd
+# NOTE: make sure nothing litens on 127.0.0.1:53
+#
+# OPTIONS="-q -r /var/db/rbldnsd -b 127.0.0.1 \
+# -u rbldns -p /var/run/rbldnsd.pid \
+# rbl.example.com:ip4set:example"
+
+# check if it works by executing
+# dig @localhost 1.0.0.127.rbl.example.com. any
+# - or -
+# host -a 1.0.0.127.rbl.example.com. localhost
+
+# the result should include something like
+
+# ANSWER SECTION:
+# 1.0.0.127.rbl.example.com. 2100 IN A 127.0.0.2
+# 1.0.0.127.rbl.example.com. 2100 IN TXT "spam received, see http://rbl.example.com/lookup?127.0.0.1"
diff --git a/net-dns/rbldnsd/files/digest-rbldnsd-0.995 b/net-dns/rbldnsd/files/digest-rbldnsd-0.995
new file mode 100644
index 000000000000..5c793ec13dbe
--- /dev/null
+++ b/net-dns/rbldnsd/files/digest-rbldnsd-0.995
@@ -0,0 +1 @@
+MD5 888a61e9a296a1b76db0c94ca44c612a rbldnsd_0.995.tar.gz 102700
diff --git a/net-dns/rbldnsd/files/example b/net-dns/rbldnsd/files/example
new file mode 100644
index 000000000000..ab3458edd26a
--- /dev/null
+++ b/net-dns/rbldnsd/files/example
@@ -0,0 +1,23 @@
+# SOA and NS record
+$SOA 1800 rbl.example.com abuse.example.com 0 600 600 86400 600
+
+# note: NS record should have reasonably longer TTL
+$NS 86400 rbl.example.com
+
+# default value if LHS of key is omitted:
+:127.0.0.2:spam received, see http://rbl.example.com/lookup?$
+
+# a key without value: returns the default value above
+127.0.0.1
+
+# CIDR notation:
+10.200/16
+
+# without netmask, it works as well: same as 10.201/16
+10.201
+
+# whitelisting:
+!10.202.0.1
+
+# domain-based DNSBL:
+evil.example.com
diff --git a/net-dns/rbldnsd/files/initd b/net-dns/rbldnsd/files/initd
new file mode 100644
index 000000000000..29de0001f073
--- /dev/null
+++ b/net-dns/rbldnsd/files/initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting rbldnsd-server"
+ start-stop-daemon --start --quiet --pidfile /var/run/rbldnsd.pid --exec /usr/sbin/rbldnsd -- ${OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping rbldnsd-server"
+ start-stop-daemon --stop --quiet --pidfile /var/run/rbldnsd.pid --exec /usr/sbin/rbldnsd
+ eend $?
+}
+
diff --git a/net-dns/rbldnsd/metadata.xml b/net-dns/rbldnsd/metadata.xml
new file mode 100644
index 000000000000..dde905a2e058
--- /dev/null
+++ b/net-dns/rbldnsd/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd></herd>
+<maintainer>
+<email>chriswhite@gentoo.org</email>
+<name>Chris White</name>
+</maintainer>
+<longdescription lang="en">
+rbldnsd is a small and fast DNS daemon which is especially made to serve DNSBL
+zones. This daemon was inspired by Dan J. Bernstein's rbldns program found in
+the djbdns package.
+
+rbldnsd is extremely fast - it outperforms both bind and djbdns greatly. It has
+very small memory footprint.
+
+The daemon can serve both IP-based (ordb.org, dsbl.org etc) and name-based
+(rfc-ignorant.org) blocklists. Unlike DJB's rbldns, it has ability to specify
+individual values for every entry, can serve as many zones on a single IP
+address as you wish, and, finally, it is a real nameserver: it can reply to DNS
+metadata requests. The daemon keeps all zones in memory for faster operations,
+but its memory usage is very efficient, especially for repeated TXT values which
+are stored only once.
+</longdescription>
+</pkgmetadata>
+
diff --git a/net-dns/rbldnsd/rbldnsd-0.995.ebuild b/net-dns/rbldnsd/rbldnsd-0.995.ebuild
new file mode 100644
index 000000000000..ca1836675792
--- /dev/null
+++ b/net-dns/rbldnsd/rbldnsd-0.995.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/rbldnsd/rbldnsd-0.995.ebuild,v 1.1 2005/08/15 22:05:32 chriswhite Exp $
+
+inherit eutils
+DESCRIPTION="a DNS daemon which is designed to serve DNSBL zones"
+HOMEPAGE="http://www.corpit.ru/mjt/rbldnsd.html"
+SRC_URI="http://www.corpit.ru/mjt/rbldnsd/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_compile() {
+ ./configure || die "Configuration failed"
+ emake || die "Configuration failed"
+}
+
+src_install() {
+ dosbin rbldnsd
+ doman rbldnsd.8
+ keepdir /var/db/rbldnsd
+ dodoc CHANGES* TODO NEWS README* ${FILESDIR}/example
+ newinitd ${FILESDIR}/initd rbldnsd
+ newconfd ${FILESDIR}/confd rbldnsd
+}
+
+pkg_postinst() {
+ enewgroup rbldns 800
+ enewuser rbldns 800 /bin/false /var/db/rbldnsd rbldns
+ einfo "for testing purpose, example zone file has been installed"
+ einfo "see /usr/share/doc/${PF}/example."
+}