pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/unbound Import unbound-1.0.0, a DNS recursor libra...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7acd4888d0c6
branches: trunk
changeset: 542765:7acd4888d0c6
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon May 26 22:36:56 2008 +0000
description:
Import unbound-1.0.0, a DNS recursor library and daemon from the guys
that brought us NSD.
diffstat:
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(+), 0 deletions(-)
diffs (183 lines):
diff -r 85df55fa29e0 -r 7acd4888d0c6 net/unbound/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/unbound/DESCR Mon May 26 22:36:56 2008 +0000
@@ -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 -r 85df55fa29e0 -r 7acd4888d0c6 net/unbound/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/unbound/Makefile Mon May 26 22:36:56 2008 +0000
@@ -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@localhost
+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 -r 85df55fa29e0 -r 7acd4888d0c6 net/unbound/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/unbound/PLIST Mon May 26 22:36:56 2008 +0000
@@ -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 -r 85df55fa29e0 -r 7acd4888d0c6 net/unbound/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/unbound/distinfo Mon May 26 22:36:56 2008 +0000
@@ -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 -r 85df55fa29e0 -r 7acd4888d0c6 net/unbound/files/unbound.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/unbound/files/unbound.sh Mon May 26 22:36:56 2008 +0000
@@ -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 -r 85df55fa29e0 -r 7acd4888d0c6 net/unbound/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/unbound/patches/patch-aa Mon May 26 22:36:56 2008 +0000
@@ -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 -r 85df55fa29e0 -r 7acd4888d0c6 net/unbound/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/unbound/patches/patch-ab Mon May 26 22:36:56 2008 +0000
@@ -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 -r 85df55fa29e0 -r 7acd4888d0c6 net/unbound/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/unbound/patches/patch-ac Mon May 26 22:36:56 2008 +0000
@@ -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 $@
Home |
Main Index |
Thread Index |
Old Index