From 0d038d7e8fbc8f26c177d932e6c65e7ac5b640df Mon Sep 17 00:00:00 2001 From: alek Date: Tue, 23 May 2006 05:53:07 +0000 Subject: [PATCH] Import rbldnsd 0.996 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. From William Yodlowsky --- net/rbldnsd/Makefile | 32 +++++++++++++++++++++++++++++ net/rbldnsd/distinfo | 4 ++++ net/rbldnsd/patches/patch-rbldnsd_c | 12 +++++++++++ net/rbldnsd/pkg/DESCR | 15 ++++++++++++++ net/rbldnsd/pkg/PLIST | 5 +++++ 5 files changed, 68 insertions(+) create mode 100644 net/rbldnsd/Makefile create mode 100644 net/rbldnsd/distinfo create mode 100644 net/rbldnsd/patches/patch-rbldnsd_c create mode 100644 net/rbldnsd/pkg/DESCR create mode 100644 net/rbldnsd/pkg/PLIST diff --git a/net/rbldnsd/Makefile b/net/rbldnsd/Makefile new file mode 100644 index 00000000000..5f7b787d6f5 --- /dev/null +++ b/net/rbldnsd/Makefile @@ -0,0 +1,32 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/05/23 05:53:07 alek Exp $ + +COMMENT= "small daemon for DNSBLs" + +DISTNAME= rbldnsd_0.996 +PKGNAME= ${DISTNAME:S/_/-/} +CATEGORIES= net + +HOMEPAGE= http://www.corpit.ru/mjt/rbldnsd.html + +MAINTAINER= William Yodlowsky + +# GPLv2 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +WANTLIB= c z + +MASTER_SITES= http://www.corpit.ru/mjt/rbldnsd/ \ + http://openbsd.rutgers.edu/ + +CONFIGURE_STYLE=simple +WRKDIST= ${WRKDIR}/${DISTNAME:S/rbldnsd_/rbldnsd-/} + +NO_REGRESS= Yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/rbldnsd ${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/rbldnsd.8 ${PREFIX}/man/man8 + +.include diff --git a/net/rbldnsd/distinfo b/net/rbldnsd/distinfo new file mode 100644 index 00000000000..b0b03374a61 --- /dev/null +++ b/net/rbldnsd/distinfo @@ -0,0 +1,4 @@ +MD5 (rbldnsd_0.996.tar.gz) = adba618d40a724a4d07a9b176d86b645 +RMD160 (rbldnsd_0.996.tar.gz) = cd6971023df1cf25f0f5af8a9f6032f7aa63b09e +SHA1 (rbldnsd_0.996.tar.gz) = 9151bd2328341a797c220c34c87d9b9f3ba2d623 +SIZE (rbldnsd_0.996.tar.gz) = 110623 diff --git a/net/rbldnsd/patches/patch-rbldnsd_c b/net/rbldnsd/patches/patch-rbldnsd_c new file mode 100644 index 00000000000..bec4ead209a --- /dev/null +++ b/net/rbldnsd/patches/patch-rbldnsd_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-rbldnsd_c,v 1.1.1.1 2006/05/23 05:53:07 alek Exp $ +--- rbldnsd.c.orig Mon May 22 01:52:31 2006 ++++ rbldnsd.c Mon May 22 01:52:35 2006 +@@ -504,7 +504,7 @@ break; + initsockets(bindaddr, nba, family); + + if (!user && !(uid = getuid())) +- user = "rbldns"; ++ user = "_rbldns"; + + if (user && (p = strchr(user, ':')) != NULL) + *p++ = '\0'; diff --git a/net/rbldnsd/pkg/DESCR b/net/rbldnsd/pkg/DESCR new file mode 100644 index 00000000000..67c62353957 --- /dev/null +++ b/net/rbldnsd/pkg/DESCR @@ -0,0 +1,15 @@ +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. diff --git a/net/rbldnsd/pkg/PLIST b/net/rbldnsd/pkg/PLIST new file mode 100644 index 00000000000..735e6616857 --- /dev/null +++ b/net/rbldnsd/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/05/23 05:53:07 alek Exp $ +@newgroup _rbldns:561 +@newuser _rbldns:561:_rbldns:daemon:rbldns Account:/var/empty:/sbin/nologin +@man man/man8/rbldnsd.8 +sbin/rbldnsd