2013-09-05 14:37:34 +00:00
|
|
|
# Created by: Sergey Matveychuk <sem@FreeBSD.org>
|
2008-04-29 07:35:14 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= unbound
|
2020-12-12 16:54:41 +00:00
|
|
|
PORTVERSION= 1.13.0
|
2020-12-17 09:38:40 +00:00
|
|
|
PORTREVISION= 1
|
2008-04-29 07:35:14 +00:00
|
|
|
CATEGORIES= dns
|
2018-06-14 23:22:21 +00:00
|
|
|
MASTER_SITES= https://www.nlnetlabs.nl/downloads/unbound/ \
|
2018-02-27 13:03:48 +00:00
|
|
|
https://distfiles.crux.guru/
|
2008-04-29 07:35:14 +00:00
|
|
|
|
2016-02-11 14:40:13 +00:00
|
|
|
MAINTAINER= jaap@NLnetLabs.nl
|
2014-06-10 07:39:01 +00:00
|
|
|
COMMENT= Validating, recursive, and caching DNS resolver
|
2008-04-29 07:35:14 +00:00
|
|
|
|
2015-05-13 04:55:03 +00:00
|
|
|
LICENSE= BSD3CLAUSE
|
2012-06-26 17:44:28 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2019-02-05 14:27:03 +00:00
|
|
|
LIB_DEPENDS= libexpat.so:textproc/expat2
|
2016-12-17 13:20:19 +00:00
|
|
|
|
2018-09-20 14:42:34 +00:00
|
|
|
USES= autoreconf cpe libtool pkgconfig ssl
|
2018-10-08 17:29:32 +00:00
|
|
|
|
2015-05-13 04:55:03 +00:00
|
|
|
CPE_VENDOR= nlnetlabs
|
2008-04-29 07:35:14 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2016-12-17 13:20:19 +00:00
|
|
|
CONFIGURE_ARGS= --with-ssl=${OPENSSLBASE} --with-libexpat=${LOCALBASE}
|
2008-04-29 08:00:03 +00:00
|
|
|
USE_LDCONFIG= yes
|
2016-12-17 13:20:19 +00:00
|
|
|
TEST_TARGET= test
|
2008-04-29 07:35:14 +00:00
|
|
|
|
2011-07-09 16:30:19 +00:00
|
|
|
USERS= ${PORTNAME}
|
2013-10-03 11:02:37 +00:00
|
|
|
GROUPS= ${PORTNAME}
|
2011-07-09 16:30:19 +00:00
|
|
|
|
2008-04-29 07:35:14 +00:00
|
|
|
USE_RC_SUBR= unbound
|
|
|
|
|
2020-12-12 16:54:41 +00:00
|
|
|
PORTDOCS= CNAME-basedRedirectionDesignNotes.pdf CREDITS Changelog \
|
|
|
|
FEATURES IP-BasedActions.pdf LICENSE README README.DNS64 \
|
|
|
|
README.ipset.md README.svn README.tests TODO \
|
|
|
|
control_proto_spec.txt example.conf ietf67-design-02.odp \
|
2008-11-19 20:59:31 +00:00
|
|
|
ietf67-design-02.pdf requirements.txt
|
2012-06-26 17:44:28 +00:00
|
|
|
|
2016-03-15 06:19:52 +00:00
|
|
|
OPTIONS_SUB= yes
|
2020-12-12 16:54:41 +00:00
|
|
|
OPTIONS_DEFINE= DNSCRYPT DNSTAP DOCS DOH ECDSA EVAPI FILTER_AAAA GOST \
|
|
|
|
HIREDIS LIBEVENT MUNIN_PLUGIN PYTHON SUBNET TFOCL TFOSE \
|
|
|
|
THREADS
|
|
|
|
OPTIONS_DEFAULT=DOH ECDSA GOST LIBEVENT THREADS
|
2008-04-29 07:35:14 +00:00
|
|
|
|
2014-12-05 18:52:53 +00:00
|
|
|
LIBEVENT_DESC= Build against libevent
|
2013-09-05 14:37:34 +00:00
|
|
|
GOST_DESC= Enable GOST support (requires OpenSSL >= 1.0)
|
|
|
|
ECDSA_DESC= Enable ECDSA (elliptic curve) support (OpenSSL >= 1.0)
|
2016-03-15 06:19:52 +00:00
|
|
|
MUNIN_PLUGIN_DESC= Install Munin plugin
|
2015-08-19 15:49:42 +00:00
|
|
|
FILTER_AAAA_DESC= Build with AAAA filter functionality (contrib)
|
2016-03-15 06:19:52 +00:00
|
|
|
DNSTAP_DESC= Enable dnstap logging support
|
2017-05-04 01:49:21 +00:00
|
|
|
DNSCRYPT_DESC= Enable dnscrypt support
|
2017-04-29 20:59:34 +00:00
|
|
|
SUBNET_DESC= Enable client subnet support
|
|
|
|
EVAPI_DESC= (Experimental) pluggable event based libunbound API support
|
|
|
|
TFOCL_DESC= Enable TCP Fast Open for client mode
|
|
|
|
TFOSE_DESC= Enable TCP Fast Open for server mode
|
2018-05-10 14:50:19 +00:00
|
|
|
HIREDIS_DESC= Enable hiredis support for the cachedb module
|
2020-10-12 15:33:45 +00:00
|
|
|
DOH_DESC= Enable DNS-over-HTTPS supports
|
2009-06-16 13:35:00 +00:00
|
|
|
|
2014-08-22 09:06:34 +00:00
|
|
|
STRIP_FILES= .libs/libunbound.so unbound-checkconf unbound \
|
2014-04-12 19:43:33 +00:00
|
|
|
unbound-control .libs/unbound-host .libs/unbound-anchor
|
2010-11-09 14:09:52 +00:00
|
|
|
|
2016-12-17 13:20:19 +00:00
|
|
|
DNSTAP_CONFIGURE_ENABLE=dnstap
|
|
|
|
DNSTAP_LIB_DEPENDS= libfstrm.so:devel/fstrm \
|
|
|
|
libprotobuf-c.so:devel/protobuf-c
|
2017-04-29 20:59:34 +00:00
|
|
|
DNSCRYPT_CONFIGURE_ENABLE= dnscrypt
|
|
|
|
DNSCRYPT_LIB_DEPENDS= libsodium.so:security/libsodium
|
|
|
|
SUBNET_CONFIGURE_ENABLE= subnet
|
|
|
|
EVAPI_CONFIGURE_ENABLE= event-api
|
|
|
|
TFOCL_CONFIGURE_ENABLE= tfo-client
|
|
|
|
TFOSE_CONFIGURE_ENABLE= tfo-server
|
2016-12-17 13:20:19 +00:00
|
|
|
ECDSA_CONFIGURE_ENABLE= ecdsa
|
|
|
|
ECDSA_VARS= DEPENDS_ARGS+=WITH_ECDSA=yes
|
|
|
|
GOST_CONFIGURE_ENABLE= gost
|
|
|
|
GOST_VARS= DEPENDS_ARGS+=WITH_GOST=yes
|
|
|
|
LIBEVENT_CONFIGURE_WITH=libevent
|
|
|
|
LIBEVENT_CPPFLAGS+= $$(pkg-config libevent --cflags-only-I)
|
2017-02-20 02:57:04 +00:00
|
|
|
LIBEVENT_LIB_DEPENDS= libevent.so:devel/libevent
|
2016-12-17 13:20:19 +00:00
|
|
|
LIBEVENT_LDFLAGS+= $$(pkg-config libevent --libs-only-L)
|
|
|
|
MUNIN_PLUGIN_SUB_FILES= pkg-message
|
2020-06-17 18:17:45 +00:00
|
|
|
PYTHON_BUILD_DEPENDS= swig:devel/swig
|
2017-04-29 20:59:34 +00:00
|
|
|
PYTHON_CONFIGURE_ON= --with-pyunbound=yes --with-pythonmodule=yes \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
2020-06-17 18:17:45 +00:00
|
|
|
ac_cv_path_SWIG=${LOCALBASE}/bin/swig
|
2018-05-10 14:50:19 +00:00
|
|
|
PYTHON_USES= python
|
2016-12-17 13:20:19 +00:00
|
|
|
PYTHON_VARS= STRIP_FILES+=.libs/_unbound.so
|
|
|
|
THREADS_CONFIGURE_WITH= pthreads
|
2018-05-10 14:50:19 +00:00
|
|
|
HIREDIS_CONFIGURE_ON= --enable-cachedb --with-libhiredis
|
|
|
|
HIREDIS_LIB_DEPENDS= libhiredis.so:databases/hiredis
|
2020-10-12 15:33:45 +00:00
|
|
|
DOH_CONFIGURE_ON= --with-libnghttp2
|
|
|
|
DOH_LIB_DEPENDS= libnghttp2.so:www/libnghttp2
|
2016-12-17 13:20:19 +00:00
|
|
|
|
2008-04-29 07:35:14 +00:00
|
|
|
post-patch:
|
2008-07-16 19:43:15 +00:00
|
|
|
@${RM} ${WRKSRC}/util/configlexer.c
|
2014-12-05 18:52:53 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|if test ! -e $$(DESTDIR)$$(configfile); then || ; \
|
|
|
|
s|$$(configfile); fi|$$(configfile).sample|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2016-03-15 06:19:52 +00:00
|
|
|
|
|
|
|
post-patch-FILTER_AAAA-on:
|
2020-08-21 14:17:23 +00:00
|
|
|
${CAT} ${WRKSRC}/contrib/aaaa-filter-iterator.patch | ${PATCH} -d ${WRKSRC} -p1 -s
|
2008-04-29 07:35:14 +00:00
|
|
|
|
2014-04-12 19:43:33 +00:00
|
|
|
post-build:
|
|
|
|
@for s in ${STRIP_FILES}; do ${STRIP_CMD} ${WRKSRC}/$$s; done
|
|
|
|
|
2016-03-15 06:19:52 +00:00
|
|
|
post-install-PYTHON-on:
|
2015-02-19 17:55:34 +00:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_unbound.so
|
2016-03-15 06:19:52 +00:00
|
|
|
|
|
|
|
post-install-MUNIN_PLUGIN-on:
|
2014-03-04 15:51:44 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/munin/plugins
|
2016-12-17 13:20:19 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/unbound-${PORTVERSION}/contrib/unbound_munin_ \
|
2014-03-04 15:51:44 +00:00
|
|
|
${STAGEDIR}${PREFIX}/share/munin/plugins/
|
2012-06-26 17:44:28 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "============================================================="
|
|
|
|
@${CAT} ${WRKDIR}/pkg-message
|
|
|
|
@${ECHO_MSG} "============================================================="
|
2016-02-04 15:58:30 +00:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
|
2008-05-07 11:33:37 +00:00
|
|
|
|
2011-11-07 04:24:55 +00:00
|
|
|
.include <bsd.port.mk>
|