2018-01-11 19:27:01 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.74 2018/01/11 19:27:05 rpe Exp $
|
2012-07-19 08:36:45 +00:00
|
|
|
|
2013-05-29 20:19:15 +00:00
|
|
|
COMMENT= Berkeley Internet Name Daemon: DNS server and tools
|
2012-07-19 08:36:45 +00:00
|
|
|
|
2017-07-28 23:38:06 +00:00
|
|
|
V= 9.10.6
|
2018-01-11 19:27:01 +00:00
|
|
|
REVISION= 1
|
2017-01-24 11:46:35 +00:00
|
|
|
|
2012-07-19 08:36:45 +00:00
|
|
|
DISTNAME= bind-$V
|
|
|
|
PKGNAME= isc-bind-${V:S/-P/pl/}
|
2017-07-28 20:53:33 +00:00
|
|
|
|
2017-07-28 23:38:06 +00:00
|
|
|
SHARED_LIBS += isc 3.4 # 190.0
|
|
|
|
SHARED_LIBS += isccc 0.0 # 140.5
|
|
|
|
SHARED_LIBS += dns 5.0 # 190.1
|
|
|
|
SHARED_LIBS += isccfg 0.4 # 144.0
|
|
|
|
SHARED_LIBS += bind9 0.1 # 141.0
|
|
|
|
SHARED_LIBS += lwres 0.1 # 141.3
|
|
|
|
SHARED_LIBS += irs 0.0 # 141.7
|
2014-05-01 20:19:25 +00:00
|
|
|
|
|
|
|
# not installed:
|
2017-07-28 23:38:06 +00:00
|
|
|
#SHARED_LIBS += isc-nosymtbl 190.0 # 190.0
|
2014-05-01 20:19:25 +00:00
|
|
|
#SHARED_LIBS += t_api 0.0 # unknown
|
2012-07-19 08:36:45 +00:00
|
|
|
|
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.isc.org/software/bind
|
|
|
|
|
2015-03-14 22:26:21 +00:00
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
|
2012-07-19 08:36:45 +00:00
|
|
|
# ISC
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2016-09-13 16:12:14 +00:00
|
|
|
WANTLIB= c iconv json-c lzma m pthread xml2 z
|
2012-07-19 08:36:45 +00:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_ISC:=bind9/$V/}
|
|
|
|
|
2016-09-13 16:12:14 +00:00
|
|
|
MODULES= lang/python
|
2013-05-29 20:19:15 +00:00
|
|
|
# used for dnssec-checkds/dnssec-coverage, but don't want to force the run dep.
|
2017-05-03 20:20:42 +00:00
|
|
|
# XXX subpackage?
|
2013-05-29 20:19:15 +00:00
|
|
|
MODPY_RUNDEP= No
|
2016-09-13 16:12:14 +00:00
|
|
|
LIB_DEPENDS= converters/libiconv \
|
|
|
|
devel/json-c \
|
2015-10-07 19:36:50 +00:00
|
|
|
textproc/libxml
|
2012-07-19 08:36:45 +00:00
|
|
|
|
|
|
|
SEPARATE_BUILD= Yes
|
2016-04-29 11:01:02 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2016-03-11 20:28:21 +00:00
|
|
|
CONFIGURE_ARGS= --enable-filter-aaaa \
|
2012-07-19 08:36:45 +00:00
|
|
|
--enable-threads \
|
2013-05-29 20:19:15 +00:00
|
|
|
--with-libtool \
|
2017-10-30 22:19:38 +00:00
|
|
|
--with-randomdev=/dev/random \
|
2015-09-16 15:28:16 +00:00
|
|
|
--without-readline \
|
2013-05-29 20:19:15 +00:00
|
|
|
--with-python=${MODPY_BIN}
|
2012-07-19 08:36:45 +00:00
|
|
|
|
2015-09-25 14:02:31 +00:00
|
|
|
CONFIGURE_ENV= STD_CDEFINES="-DDIG_SIGCHASE=1"
|
|
|
|
|
2017-07-28 20:53:33 +00:00
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
|
|
|
# we don't link with libgcc, use the c++abi unwinder instead
|
|
|
|
.if ${PROPERTIES:Mclang}
|
|
|
|
MAKE_FLAGS += UNWINDERLIB=-lc++abi
|
|
|
|
WANTLIB += c++abi
|
|
|
|
.endif
|
|
|
|
|
2012-07-19 08:36:45 +00:00
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/bind9
|
|
|
|
|
2015-08-24 20:46:49 +00:00
|
|
|
FLAVORS= geoip no_ssl
|
2014-05-01 20:19:25 +00:00
|
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mgeoip}
|
|
|
|
CONFIGURE_ARGS+= --with-geoip
|
|
|
|
LIB_DEPENDS+= net/GeoIP
|
|
|
|
WANTLIB+= GeoIP
|
|
|
|
.endif
|
|
|
|
|
2015-08-24 20:46:49 +00:00
|
|
|
.if ${FLAVOR:Mno_ssl}
|
|
|
|
CONFIGURE_ARGS+= --without-openssl
|
|
|
|
.else
|
|
|
|
WANTLIB+= crypto
|
|
|
|
.endif
|
|
|
|
|
2014-01-31 10:12:57 +00:00
|
|
|
# not strictly speaking interactive, but it configures temporary addresses on
|
|
|
|
# lo0 as root, so let's try and avoid running it unintentionally
|
|
|
|
TEST_IS_INTERACTIVE= Yes
|
|
|
|
|
|
|
|
pre-test:
|
|
|
|
cd ${WRKSRC}/bin/tests/system && ${SUDO} ./ifconfig.sh up
|
|
|
|
|
|
|
|
post-test:
|
|
|
|
cd ${WRKSRC}/bin/tests/system && ${SUDO} ./ifconfig.sh down
|
|
|
|
|
2014-08-22 20:32:13 +00:00
|
|
|
post-install:
|
|
|
|
cd ${FILESDIR}; ${INSTALL_DATA} localhost loopback loopback6.arpa \
|
|
|
|
named.conf root.hint ${PREFIX}/share/examples/bind9/
|
|
|
|
|
2012-07-19 08:36:45 +00:00
|
|
|
.include <bsd.port.mk>
|