pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/rbldnsd Initial import of rbldnsd, version 0.996a,...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/15f49c53685e
branches:  trunk
changeset: 522403:15f49c53685e
user:      cube <cube%pkgsrc.org@localhost>
date:      Fri Dec 08 22:14:12 2006 +0000

description:
Initial import of rbldnsd, version 0.996a, into the NetBSD Packages
Collection.

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.

diffstat:

 net/rbldnsd/DESCR            |  14 ++++++++++++++
 net/rbldnsd/MESSAGE          |  18 ++++++++++++++++++
 net/rbldnsd/Makefile         |  43 +++++++++++++++++++++++++++++++++++++++++++
 net/rbldnsd/PLIST            |   7 +++++++
 net/rbldnsd/distinfo         |   5 +++++
 net/rbldnsd/files/rbldnsd.sh |  44 ++++++++++++++++++++++++++++++++++++++++++++
 net/rbldnsd/options.mk       |  27 +++++++++++++++++++++++++++
 7 files changed, 158 insertions(+), 0 deletions(-)

diffs (186 lines):

diff -r 9ccaeda19052 -r 15f49c53685e net/rbldnsd/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rbldnsd/DESCR Fri Dec 08 22:14:12 2006 +0000
@@ -0,0 +1,14 @@
+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 -r 9ccaeda19052 -r 15f49c53685e net/rbldnsd/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rbldnsd/MESSAGE       Fri Dec 08 22:14:12 2006 +0000
@@ -0,0 +1,18 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2006/12/08 22:14:12 cube Exp $
+
+rbldnsd doesn't have a configuration file and requires a certain number of
+parameters on its command line.
+
+In rc.conf, you will have to set the following variables to sensible
+values:
+
+  - rbldnsd_zones:  the list of managed zones, following the syntax
+                    described by rbldnsd(8).
+
+  - rbldnsd_flags:  at least one occurrence of -b is required.
+
+  - rbldnsd_chrootdir:  while optional, this option is strongly
+                        recommended.
+
+===========================================================================
diff -r 9ccaeda19052 -r 15f49c53685e net/rbldnsd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rbldnsd/Makefile      Fri Dec 08 22:14:12 2006 +0000
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/12/08 22:14:12 cube Exp $
+#
+
+DISTNAME=      rbldnsd_0.996a
+PKGNAME=       ${DISTNAME:S/_/-/}
+CATEGORIES=    net
+MASTER_SITES=  http://www.corpit.ru/mjt/rbldnsd/
+
+MAINTAINER=    cube%NetBSD.org@localhost
+HOMEPAGE=      http://www.corpit.ru/mjt/rbldnsd/
+COMMENT=       Efficient DNS daemon to serve DNSBL zones
+
+WRKSRC=                ${WRKDIR}/rbldnsd-0.996a
+HAS_CONFIGURE= yes
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEFS+=   RBLDNSD_USER RBLDNSD_GROUP RBLDNSD_DIR VARBASE
+
+RBLDNSD_USER?= rbldns
+RBLDNSD_GROUP?=        rbldns
+RBLDNSD_DIR?=  ${VARBASE}/chroot/rbldnsd
+
+PKG_GROUPS=    ${RBLDNSD_GROUP}
+PKG_USERS=     ${RBLDNSD_USER}:${RBLDNSD_GROUP}
+PKG_HOME.${RBLDNSD_USER}=      ${RBLDNSD_DIR}
+
+FILES_SUBST+=  RBLDNSD_USER=${RBLDNSD_USER} RBLDNSD_GROUP=${RBLDNSD_GROUP}
+RCD_SCRIPTS=   rbldnsd
+
+.include "options.mk"
+
+RBLDNSD_DOCS=  NEWS README.user
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/rbldnsd ${PREFIX}/sbin/
+       ${INSTALL_MAN} ${WRKSRC}/rbldnsd.8 ${PREFIX}/${PKGMANDIR}/man8/
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rbldnsd
+       set -e; for doc in ${RBLDNSD_DOCS}; do \
+           ${INSTALL_DATA} ${WRKSRC}/"$$doc" ${PREFIX}/share/doc/rbldnsd/; \
+           done
+
+.include "../../mk/bsd.pkg.mk"
diff -r 9ccaeda19052 -r 15f49c53685e net/rbldnsd/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rbldnsd/PLIST Fri Dec 08 22:14:12 2006 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/12/08 22:14:12 cube Exp $
+${PKGMANDIR}/man8/rbldnsd.8
+sbin/rbldnsd
+share/doc/rbldnsd/NEWS
+share/doc/rbldnsd/README.user
+share/examples/rc.d/rbldnsd
+@dirrm share/doc/rbldnsd
diff -r 9ccaeda19052 -r 15f49c53685e net/rbldnsd/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rbldnsd/distinfo      Fri Dec 08 22:14:12 2006 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/12/08 22:14:12 cube Exp $
+
+SHA1 (rbldnsd_0.996a.tar.gz) = 7630069156aeff4432a066bc9e292fa4fab6dd92
+RMD160 (rbldnsd_0.996a.tar.gz) = b44a61ba9df55ff43df4283ac0632c8c61f930e4
+Size (rbldnsd_0.996a.tar.gz) = 112339 bytes
diff -r 9ccaeda19052 -r 15f49c53685e net/rbldnsd/files/rbldnsd.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rbldnsd/files/rbldnsd.sh      Fri Dec 08 22:14:12 2006 +0000
@@ -0,0 +1,44 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: rbldnsd.sh,v 1.1.1.1 2006/12/08 22:14:12 cube Exp $
+#
+
+# PROVIDE: rbldnsd
+# REQUIRE: SERVERS
+# BEFORE:  DAEMON
+# KEYWORD: chrootdir
+
+. /etc/rc.subr
+
+name="rbldnsd"
+rcvar="${name}"
+command="@PREFIX@/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+start_precmd="rbldnsd_precmd"
+extra_commands="reload"
+required_dirs="$rbldnsd_chrootdir"
+
+rbldnsd_precmd()
+{
+       if [ -z "$rbldnsd_zones" ]; then
+               echo "rbldnsd_zones must be set."
+               return 1
+       fi
+
+       command_args="-p ${pidfile} ${rbldnsd_zones}"
+
+       if [ -z "$rbldnsd_chrootdir" ]; then
+               return 0;
+       fi
+
+       if [ -f /etc/localtime ]; then
+               @CMP@ -s /etc/localtime "${rbldnsd_chrootdir}/etc/localtime" || \
+                   @CP@ -p /etc/localtime "${rbldnsd_chrootdir}/etc/localtime"
+       fi
+
+       command_args="-u @RBLDNSD_USER@:@RBLDNSD_GROUP@ ${command_args}"
+       command_args="-r ${rbldnsd_chrootdir} ${command_args}"
+}
+
+load_rc_config "$rcvar"
+run_rc_command "$1"
diff -r 9ccaeda19052 -r 15f49c53685e net/rbldnsd/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rbldnsd/options.mk    Fri Dec 08 22:14:12 2006 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: options.mk,v 1.1.1.1 2006/12/08 22:14:12 cube Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.rbldnsd
+PKG_SUPPORTED_OPTIONS= inet6 rbldnsd-master-dump zlib
+
+PKG_SUGGESTED_OPTIONS= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+=       --enable-ipv6
+.else
+CONFIGURE_ARGS+=       --disable-ipv6
+.endif
+
+.if !empty(PKG_OPTIONS:Mzlib)
+CONFIGURE_ARGS+=       --enable-zlib
+.include "../../devel/zlib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-zlib
+.endif
+
+.if !empty(PKG_OPTIONS:Mrbldnsd-master-dump)
+CONFIGURE_ARGS+=       --enable-master-dump
+.else
+CONFIGURE_ARGS+=       --disable-master-dump
+.endif



Home | Main Index | Thread Index | Old Index