Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

5
net/unbound/DESCR Normal file
View File

@@ -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.

94
net/unbound/Makefile Normal file
View File

@@ -0,0 +1,94 @@
# $NetBSD: Makefile,v 1.26 2013/04/01 22:34:41 pettai Exp $
DISTNAME= unbound-1.4.20
CATEGORIES= net
MASTER_SITES= http://www.unbound.net/downloads/
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= http://www.unbound.net/
COMMENT= DNS resolver and recursive server
LICENSE= modified-bsd
BUILD_DEFS+= VARBASE
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS+= --with-ldns=${BUILDLINK_PREFIX.ldns}
CONFIGURE_ARGS+= --with-libexpat=${BUILDLINK_PREFIX.expat}
CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/unbound.pid
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
CONFIGURE_ARGS+= --enable-allsymbols
# Add the same logic as for ldns, so sha2/gost is configured automatically
CHECK_BUILTIN.openssl= yes
.include "../../security/openssl/builtin.mk"
CHECK_BUILTIN.openssl= no
.include "../../security/openssl/buildlink3.mk"
PLIST_VARS+= sha2 gost
.if defined(USE_BUILTIN.openssl) && !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
PLIST_VARS.gost!= \
if ${PKG_ADMIN} pmatch 'openssl>=1.0.0' ${BUILTIN_PKG.openssl:Q}; then \
${ECHO} "yes"; \
else \
${ECHO} "no"; \
fi
PLIST_VARS.sha2!= \
if ${PKG_ADMIN} pmatch 'openssl>=0.9.8' ${BUILTIN_PKG.openssl:Q}; then \
${ECHO} "yes"; \
else \
${ECHO} "no"; \
fi
.else
PLIST_VARS.gost!= \
if ${PKG_INFO} -qe 'openssl>=1.0.0'; then \
${ECHO} yes; \
else \
${ECHO} no; \
fi
PLIST_VARS.sha2!= \
if ${PKG_INFO} -qe 'openssl>=0.9.8'; then \
${ECHO} yes; \
else \
${ECHO} no; \
fi
.endif
.if ${PLIST_VARS.gost} == "yes"
CONFIGURE_ARGS+= --enable-gost
.else
CONFIGURE_ARGS+= --disable-gost
.endif
.if ${PLIST_VARS.sha2} == "yes"
CONFIGURE_ARGS+= --enable-sha2
.else
CONFIGURE_ARGS+= --disable-sha2
.endif
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 "options.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../net/ldns/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

48
net/unbound/PLIST Normal file
View File

@@ -0,0 +1,48 @@
@comment $NetBSD: PLIST,v 1.5 2012/12/25 08:54:26 pettai Exp $
include/unbound.h
lib/libunbound.la
man/man1/unbound-host.1
man/man3/libunbound.3
man/man3/ub_cancel.3
man/man3/ub_ctx.3
man/man3/ub_ctx_add_ta.3
man/man3/ub_ctx_add_ta_file.3
man/man3/ub_ctx_async.3
man/man3/ub_ctx_config.3
man/man3/ub_ctx_create.3
man/man3/ub_ctx_data_add.3
man/man3/ub_ctx_data_remove.3
man/man3/ub_ctx_debuglevel.3
man/man3/ub_ctx_debugout.3
man/man3/ub_ctx_delete.3
man/man3/ub_ctx_get_option.3
man/man3/ub_ctx_hosts.3
man/man3/ub_ctx_print_local_zones.3
man/man3/ub_ctx_resolvconf.3
man/man3/ub_ctx_set_fwd.3
man/man3/ub_ctx_set_option.3
man/man3/ub_ctx_trustedkeys.3
man/man3/ub_ctx_zone_add.3
man/man3/ub_ctx_zone_remove.3
man/man3/ub_fd.3
man/man3/ub_poll.3
man/man3/ub_process.3
man/man3/ub_resolve.3
man/man3/ub_resolve_async.3
man/man3/ub_resolve_free.3
man/man3/ub_result.3
man/man3/ub_strerror.3
man/man3/ub_wait.3
man/man5/unbound.conf.5
man/man8/unbound-anchor.8
man/man8/unbound-checkconf.8
man/man8/unbound-control.8
man/man8/unbound.8
sbin/unbound
sbin/unbound-anchor
sbin/unbound-checkconf
sbin/unbound-control
sbin/unbound-control-setup
sbin/unbound-host
share/examples/rc.d/unbound
share/examples/unbound/unbound.conf

5
net/unbound/distinfo Normal file
View File

@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.21 2013/04/01 22:34:41 pettai Exp $
SHA1 (unbound-1.4.20.tar.gz) = 1752976533be2a4f0c9cdbab9d2cbb67d4f27c43
RMD160 (unbound-1.4.20.tar.gz) = 8852e6dd24823e0043e3c8ff8139e56715729bc3
Size (unbound-1.4.20.tar.gz) = 3613963 bytes

View File

@@ -0,0 +1,19 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: unbound.sh,v 1.2 2009/11/24 01:08:06 roy Exp $
#
# PROVIDE: unbound
# REQUIRE: DAEMON
#
. /etc/rc.subr
name="unbound"
rcvar=${name}
command=@PREFIX@/sbin/${name}
pidfile=/var/run/${name}.pid
extra_commands="reload"
load_rc_config ${name}
run_rc_command "$1"

15
net/unbound/options.mk Normal file
View File

@@ -0,0 +1,15 @@
# $NetBSD: options.mk,v 1.1 2011/04/20 10:44:46 pettai Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.unbound
PKG_SUPPORTED_OPTIONS= libevent
PKG_SUGGESTED_OPTIONS= libevent
.include "../../mk/bsd.options.mk"
###
### libevent
###
.if !empty(PKG_OPTIONS:Mlibevent)
CONFIGURE_ARGS+= --with-libevent=${BUILDLINK_PREFIX.libevent}
.include "../../devel/libevent/buildlink3.mk"
.endif