From 48bf7ce89aa0a1af1fb2bb3037135f1285b9db1b Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 26 May 2008 22:36:56 +0000 Subject: Import unbound-1.0.0, a DNS recursor library and daemon from the guys that brought us NSD. --- net/unbound/DESCR | 5 +++++ net/unbound/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ net/unbound/PLIST | 14 ++++++++++++++ net/unbound/distinfo | 8 ++++++++ net/unbound/files/unbound.sh | 18 ++++++++++++++++++ net/unbound/patches/patch-aa | 13 +++++++++++++ net/unbound/patches/patch-ab | 13 +++++++++++++ net/unbound/patches/patch-ac | 40 ++++++++++++++++++++++++++++++++++++++++ 8 files changed, 151 insertions(+) create mode 100644 net/unbound/DESCR create mode 100644 net/unbound/Makefile create mode 100644 net/unbound/PLIST create mode 100644 net/unbound/distinfo create mode 100644 net/unbound/files/unbound.sh create mode 100644 net/unbound/patches/patch-aa create mode 100644 net/unbound/patches/patch-ab create mode 100644 net/unbound/patches/patch-ac (limited to 'net/unbound') diff --git a/net/unbound/DESCR b/net/unbound/DESCR new file mode 100644 index 00000000000..08810ec43a1 --- /dev/null +++ b/net/unbound/DESCR @@ -0,0 +1,5 @@ +Unbound is an implementation of a DNS resolver. It provides a library +similiar to libresolv that can be used for synchronous and asynchronous +DNS look ups. It also provides a caching-only (recursive) DNS server. + +Unbound has full support for IPv6 and DNSSEC validation. diff --git a/net/unbound/Makefile b/net/unbound/Makefile new file mode 100644 index 00000000000..25bddcc93a9 --- /dev/null +++ b/net/unbound/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/05/26 22:36:56 joerg Exp $ + +DISTNAME= unbound-1.0.0 +CATEGORIES= net +MASTER_SITES= http://www.unbound.net/downloads/ + +MAINTAINER= joerg@NetBSD.org +HOMEPAGE= http://www.unbound.net/ +COMMENT= DNS resolver and recursive server + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= gmake + +SUBST_CLASSES+= paths +SUBST_STAGE.paths= post-configure +SUBST_MESSAGE.paths= Fixing path names +SUBST_FILES.paths= doc/example.conf doc/*.5 doc/*.8 +SUBST_SED.paths= -e "s|/usr/local|${PREFIX}|" + +INSTALL_MAKE_FLAGS+= \ + configfile=${PREFIX}/share/examples/unbound/unbound.conf + +PKG_SYSCONFSUBDIR= unbound + +CONF_FILES+= share/examples/unbound/unbound.conf \ + ${PKG_SYSCONFDIR}/unbound.conf + +RCD_SCRIPTS= unbound + +UNBOUND_USER?= unbound +UNBOUND_GROUP?= unbound + +PKG_GROUPS= ${UNBOUND_GROUP} +PKG_USERS= ${UNBOUND_USER}:${UNBOUND_GROUP} + +.include "../../security/openssl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/unbound/PLIST b/net/unbound/PLIST new file mode 100644 index 00000000000..92afd77a5fd --- /dev/null +++ b/net/unbound/PLIST @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/05/26 22:36:56 joerg Exp $ +include/unbound.h +lib/libunbound.la +man/man1/unbound-host.1 +man/man3/libunbound.3 +man/man5/unbound.conf.5 +man/man8/unbound-checkconf.8 +man/man8/unbound.8 +sbin/unbound +sbin/unbound-checkconf +sbin/unbound-host +share/examples/rc.d/unbound +share/examples/unbound/unbound.conf +@dirrm share/examples/unbound diff --git a/net/unbound/distinfo b/net/unbound/distinfo new file mode 100644 index 00000000000..179f4e7b0ec --- /dev/null +++ b/net/unbound/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/05/26 22:36:56 joerg Exp $ + +SHA1 (unbound-1.0.0.tar.gz) = a837407d866f0918547c6122f8f654c219b4b51f +RMD160 (unbound-1.0.0.tar.gz) = a08aff793c115f2fe285c6d1557bcca98e0c4dba +Size (unbound-1.0.0.tar.gz) = 3554571 bytes +SHA1 (patch-aa) = eb2e923f1970a0fafad44885619a0ea28a0aa155 +SHA1 (patch-ab) = baa658962ffa72efd11507f391f5ee4543266bc4 +SHA1 (patch-ac) = 11664d40b93f8cfb15f96e010b243f9909e5de5a diff --git a/net/unbound/files/unbound.sh b/net/unbound/files/unbound.sh new file mode 100644 index 00000000000..9cb7dfb8cb5 --- /dev/null +++ b/net/unbound/files/unbound.sh @@ -0,0 +1,18 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: unbound.sh,v 1.1.1.1 2008/05/26 22:36:56 joerg Exp $ +# +# PROVIDE: unbound +# REQUIRE: DAEMON +# + +. /etc/rc.subr + +name="unbound" +rcvar=${name} + +command=@PREFIX@/sbin/${name} +pidfile=/var/run/${name}.pid + +load_rc_config ${name} +run_rc_command "$1" diff --git a/net/unbound/patches/patch-aa b/net/unbound/patches/patch-aa new file mode 100644 index 00000000000..3ac9e29fe50 --- /dev/null +++ b/net/unbound/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/05/26 22:36:56 joerg Exp $ + +--- configure.ac.orig 2008-05-26 22:39:40.000000000 +0200 ++++ configure.ac +@@ -556,7 +556,7 @@ AC_SEARCH_LIBS([socket], [socket]) + AC_ARG_WITH(libevent, AC_HELP_STRING([--with-libevent=pathname], + [use libevent (will check /usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr or you can specify an explicit path). Slower, but allows use of large outgoing port ranges.]), + [ ],[ withval="no" ]) +-if test x_$withval == x_yes -o x_$withval != x_no; then ++if test x_$withval = x_yes -o x_$withval != x_no; then + AC_MSG_CHECKING(for libevent) + if test x_$withval = x_ -o x_$withval = x_yes; then + withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr" diff --git a/net/unbound/patches/patch-ab b/net/unbound/patches/patch-ab new file mode 100644 index 00000000000..8c1ff3515da --- /dev/null +++ b/net/unbound/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/05/26 22:36:56 joerg Exp $ + +--- configure.orig 2008-05-26 22:39:38.000000000 +0200 ++++ configure +@@ -22125,7 +22125,7 @@ else + withval="no" + fi + +-if test x_$withval == x_yes -o x_$withval != x_no; then ++if test x_$withval = x_yes -o x_$withval != x_no; then + { echo "$as_me:$LINENO: checking for libevent" >&5 + echo $ECHO_N "checking for libevent... $ECHO_C" >&6; } + if test x_$withval = x_ -o x_$withval = x_yes; then diff --git a/net/unbound/patches/patch-ac b/net/unbound/patches/patch-ac new file mode 100644 index 00000000000..d7ea075db13 --- /dev/null +++ b/net/unbound/patches/patch-ac @@ -0,0 +1,40 @@ +$NetBSD: patch-ac,v 1.1.1.1 2008/05/26 22:36:56 joerg Exp $ + +--- Makefile.in.orig 2008-05-14 09:34:02.000000000 +0200 ++++ Makefile.in +@@ -70,10 +70,9 @@ UNITTEST_SRC=$(patsubst $(srcdir)/%,%, \ + testcode/readhex.c testcode/ldns-testpkts.c smallapp/worker_cb.c \ + $(COMMON_SRC) + UNITTEST_OBJ=$(addprefix $(BUILD),$(UNITTEST_SRC:.c=.o)) $(COMPAT_OBJ) +-DAEMON_SRC=$(patsubst $(srcdir)/%,%, $(wildcard $(srcdir)/daemon/*.c)) \ +- $(COMMON_SRC) ++DAEMON_SRC=$(patsubst $(srcdir)/%,%, $(wildcard $(srcdir)/daemon/*.c)) + DAEMON_OBJ=$(addprefix $(BUILD),$(DAEMON_SRC:.c=.o)) $(COMPAT_OBJ) +-CHECKCONF_SRC=smallapp/unbound-checkconf.c smallapp/worker_cb.c $(COMMON_SRC) ++CHECKCONF_SRC=smallapp/unbound-checkconf.c smallapp/worker_cb.c + CHECKCONF_OBJ=$(addprefix $(BUILD),$(CHECKCONF_SRC:.c=.o)) $(COMPAT_OBJ) + HOST_SRC=smallapp/unbound-host.c + HOST_OBJ=$(addprefix $(BUILD),$(HOST_SRC:.c=.o)) $(COMPAT_OBJ) +@@ -148,17 +147,17 @@ else + ldnslib= + endif + +-unbound: $(DAEMON_OBJ) $(ldnslib) ++unbound: $(DAEMON_OBJ) $(ldnslib) libunbound.la + $(INFO) Link $@ +- $Q$(LINK) -o $@ $(sort $(DAEMON_OBJ)) $(LIBS) ++ $Q$(LINK) -o $@ $(sort $(DAEMON_OBJ)) libunbound.la $(LIBS) + +-unbound-checkconf: $(CHECKCONF_OBJ) $(ldnslib) ++unbound-checkconf: $(CHECKCONF_OBJ) $(ldnslib) libunbound.la + $(INFO) Link $@ +- $Q$(LINK) -o $@ $(sort $(CHECKCONF_OBJ)) $(LIBS) ++ $Q$(LINK) -o $@ $(sort $(CHECKCONF_OBJ)) libunbound.la $(LIBS) + + unbound-host: $(HOST_OBJ) libunbound.la $(ldnslib) + $(INFO) Link $@ +- $Q$(LINK) -o $@ $(sort $(HOST_OBJ)) -L. -L.libs -lunbound $(LIBS) ++ $Q$(LINK) -o $@ $(sort $(HOST_OBJ)) libunbound.la $(LIBS) + + unittest: $(UNITTEST_OBJ) $(ldnslib) + $(INFO) Link $@ -- cgit v1.2.3