Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39975 - New ebuild : rbldnsd
Summary: New ebuild : rbldnsd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Chris White (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-31 07:12 UTC by Martin Hierling
Modified: 2005-08-15 16:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new version of rbldnsd (rbldnsd-0.995.ebuild,1.05 KB, text/plain)
2005-05-02 22:52 UTC, Tomoyuki Sakurai (RETIRED)
Details
/etc/conf.d/rbldnsd (confd,634 bytes, text/plain)
2005-05-02 22:53 UTC, Tomoyuki Sakurai (RETIRED)
Details
an example zone file for initial testing (example,495 bytes, text/plain)
2005-05-02 22:54 UTC, Tomoyuki Sakurai (RETIRED)
Details
init script (initd,475 bytes, text/plain)
2005-05-02 22:55 UTC, Tomoyuki Sakurai (RETIRED)
Details
rbldnsd-0.995.ebuild (rbldnsd-0.995.ebuild,1.08 KB, text/plain)
2005-08-15 15:08 UTC, David Sparks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Hierling 2004-01-31 07:12:15 UTC
David and I made an ebuild for rbldnsd, test it and take it ;-)
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/gentoo-deutsch/ebuilds/net-dns/rbldnsd/


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Zeek 2004-02-05 17:29:56 UTC
My company is using this ebuild on 2 rbldnsd servers that handle several million queries each day.

WFM
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-02-10 03:15:30 UTC
wanna handle this ?
Comment 3 steven collins 2004-12-13 09:27:11 UTC
I used this ebuild on a production server in our datacenter and rbldnsd has been runing fantastic ever since. I would realy like to see this in portage soon :)
Comment 4 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-05-02 22:47:14 UTC
http://www.corpit.ru/mjt/rbldnsd.html
new version rbldnsd 0.995
Thanks to the original poster's ebuild and others as example,
I wrote new one including an example zone file for initial
testing.
Comment 5 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-05-02 22:52:46 UTC
Created attachment 57894 [details]
new version of rbldnsd
Comment 6 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-05-02 22:53:56 UTC
Created attachment 57895 [details]
/etc/conf.d/rbldnsd
Comment 7 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-05-02 22:54:55 UTC
Created attachment 57896 [details]
an example zone file for initial testing
Comment 8 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-05-02 22:55:24 UTC
Created attachment 57897 [details]
init script
Comment 9 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-06-04 03:57:13 UTC
anyone take this?
Comment 10 David Sparks 2005-08-11 13:31:21 UTC
I helped out with the original ebuild and I have now installed this latest
ebuild for 0.995 and it seems to work fine.

Note there is a spelling mistake in the conf file and the startup is a little
bit noisy.

I'd be happy to maintain this ebuild in portage if a maintainer is needed.  I
also have BIND experience.
Comment 11 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-08-11 16:22:45 UTC
spelling mistakes? what should be corrected?

for those of you who are curious

* What is rbldnsd?

rbldnsd is a DNS server designed for DNSBL.
it can be used to check an IP addr. (or a hostname) is listed in a
zone file for blacklisting (possibly whitelisting) clients.

if you have multiple servers, maintaining text-based database can be
a pain. RDB could be an answer, but it slows and complicates the process.

by using UDP, rbldnsd makes it possible to have fast, distributed and simple
listing database. it works exactly same way in which DNS does, you can use
same trick to boost up performance, if you need even more speed.
Comment 12 Chris White (RETIRED) gentoo-dev 2005-08-15 14:37:00 UTC
Taking package assignment. 
Comment 13 David Sparks 2005-08-15 15:05:53 UTC
The latest ebuild assumes that 800 is a safe UID/GID.  It also doesn't change
the ownership of the /var/db/rbldnsd dir.  This is what the diff looks like
(I'll upload the actual ebuild):

# diff -u rbldnsd.orig/rbldnsd-0.995.ebuild rbldnsd/rbldnsd-0.995.ebuild
--- rbldnsd.orig/rbldnsd-0.995.ebuild   2005-08-11 13:02:24.549876204 -0700
+++ rbldnsd/rbldnsd-0.995.ebuild        2005-08-15 15:10:01.295690714 -0700
@@ -35,9 +35,10 @@

 pkg_postinst() {
        einfo "checking for rbldns group... create if missing."
-       enewgroup rbldns 800
+       enewgroup rbldns
        einfo "checking for rbldns user.... create if missing."
-       enewuser rbldns 800 /bin/false /var/db/rbldnsd rbldns
+       enewuser rbldns -1 /bin/false /var/db/rbldnsd rbldns
+       chown rbldns:rbldns /var/db/rbldnsd
        einfo "for testing purpose, example zone file has been installed"
        einfo "see /usr/share/doc/${PF}/example."
 }



Comment 14 David Sparks 2005-08-15 15:08:28 UTC
Created attachment 66028 [details]
rbldnsd-0.995.ebuild
Comment 15 David Sparks 2005-08-15 15:09:23 UTC
The spelling mistake is in the confd file:

# diff -u rbldnsd.orig/files/confd rbldnsd/files/confd
--- rbldnsd.orig/files/confd    2005-08-11 12:58:59.250689669 -0700
+++ rbldnsd/files/confd 2005-08-15 15:10:01.246695204 -0700
@@ -2,7 +2,7 @@
 # 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
+# NOTE: make sure nothing listens on 127.0.0.1:53
 #
 # OPTIONS="-q -r /var/db/rbldnsd -b 127.0.0.1 \
 #      -u rbldns -p /var/run/rbldnsd.pid \
Comment 16 Chris White (RETIRED) gentoo-dev 2005-08-15 15:10:14 UTC
Alright, it's in portage now.  Here's a couple of noted changes I made: 
 
-       dodir /var/db/rbldnsd 
        keepdir /var/db/rbldnsd 
 
keepdir does dodir for you. 
 
-       newinitd ${FILESDIR}/initd rbldnsd || die "newinitd failed" 
-       insinto /etc/conf.d 
-       newins ${FILESDIR}/confd rbldnsd 
+       newinitd ${FILESDIR}/initd rbldnsd 
+       newconfd ${FILESDIR}/confd rbldnsd 
 
newconfd exists to act like newinitd. 
 
-       einfo "checking for rbldns group... create if missing." 
        enewgroup rbldns 800 
-       einfo "checking for rbldns user.... create if missing." 
        enewuser rbldns 800 /bin/false /var/db/rbldnsd rbldns 
 
both enew* funcitons give that information. 
 
Thanks for the ebuild! 
Comment 17 Chris White (RETIRED) gentoo-dev 2005-08-15 15:10:58 UTC
Arg.. right when I commit it :P 
 
Ok, gimme a moment to add those changes. 
Comment 18 Chris White (RETIRED) gentoo-dev 2005-08-15 15:17:32 UTC
Re-Re fixed ;) 
Comment 19 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-08-15 16:55:04 UTC
thanks guys! David, thanks for your pointing out my fault. the next ebuild will
be better.
ChrisWhite, you're wonderful, as always.