diff options
author | Chris White <chriswhite@gentoo.org> | 2005-08-15 22:05:32 +0000 |
---|---|---|
committer | Chris White <chriswhite@gentoo.org> | 2005-08-15 22:05:32 +0000 |
commit | 71cf35fb8c8583f019c7d198a967812f14fef34e (patch) | |
tree | bb2eca366d3879ea7d950be8014cb1cae1c3d9df /net-dns/rbldnsd | |
parent | stable on amd64 (diff) | |
download | gentoo-2-71cf35fb8c8583f019c7d198a967812f14fef34e.tar.gz gentoo-2-71cf35fb8c8583f019c7d198a967812f14fef34e.tar.bz2 gentoo-2-71cf35fb8c8583f019c7d198a967812f14fef34e.zip |
Initial commit to the tree. This closes bug #39975. Thanks to Martin Hierling for the initial ebuild.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-dns/rbldnsd')
-rw-r--r-- | net-dns/rbldnsd/ChangeLog | 11 | ||||
-rw-r--r-- | net-dns/rbldnsd/Manifest | 5 | ||||
-rw-r--r-- | net-dns/rbldnsd/files/confd | 20 | ||||
-rw-r--r-- | net-dns/rbldnsd/files/digest-rbldnsd-0.995 | 1 | ||||
-rw-r--r-- | net-dns/rbldnsd/files/example | 23 | ||||
-rw-r--r-- | net-dns/rbldnsd/files/initd | 20 | ||||
-rw-r--r-- | net-dns/rbldnsd/metadata.xml | 26 | ||||
-rw-r--r-- | net-dns/rbldnsd/rbldnsd-0.995.ebuild | 37 |
8 files changed, 143 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..5aa345af8ebc --- /dev/null +++ b/net-dns/rbldnsd/Manifest @@ -0,0 +1,5 @@ +MD5 277db2541434e8faac19c1233bae6406 rbldnsd-0.995.ebuild 894 +MD5 39b8b3c62c59df6d3ddbedc84e11ef9b files/confd 634 +MD5 1c33419fe27dc0734d6dd55204f1979d files/example 495 +MD5 edc6a1efd2f4ae0f0140e976de8a40c6 files/initd 475 +MD5 bfb7395472a78a3c734d2107a165a85f files/digest-rbldnsd-0.995 65 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." +} |