11# Template file for 'bind'
22pkgname=bind
3- version=9.16.22
4- revision=4
3+ version=9.20.17
4+ revision=1
55_fullver="${version}${_patchver:+-${_patchver}}"
66build_style=gnu-configure
7- configure_args="--disable-static --enable-largefile --with-libtool
8- --sysconfdir=/etc/named --enable-epoll -- with-openssl=${XBPS_CROSS_BASE}/usr
9- --with-gssapi=/usr/bin --with-readline --with-tuning=default --without-python
10- --with-libidn2 --disable-backtrace "
7+ configure_args="--disable-static --enable-largefile
8+ --sysconfdir=/etc/named --with-openssl=${XBPS_CROSS_BASE}/usr
9+ --with-gssapi=yes --with-readline --with-lmdb=yes --with-json-c
10+ --with-libidn2 --with-libxml2 --with-jemalloc=yes --enable-rpath "
1111hostmakedepends="automake libtool perl pkg-config"
1212makedepends="openssl-devel libxml2-devel libcap-devel readline-devel mit-krb5-devel
13- libidn2-devel libuv-devel $(vopt_if geoip geoip-devel)"
13+ libidn2-devel libuv-devel $(vopt_if geoip geoip-devel) liburcu-devel nghttp2-devel
14+ lmdb-devel json-c-devel jemalloc-devel"
1415checkdepends="python3-pytest"
1516short_desc="Berkeley Internet Name Domain server"
1617maintainer="Randy McCaskill <
[email protected] >"
1718license="MPL-2.0"
1819homepage="https://www.isc.org/downloads/bind/"
19- changelog="https://gitlab.isc.org/isc-projects/bind9/-/blob/v9_16/CHANGES "
20+ changelog="https://gitlab.isc.org/isc-projects/bind9/-/blob/v${version}/doc/changelog/changelog-${version}.rst "
2021distfiles="https://ftp.isc.org/isc/bind9/${_fullver}/bind-${_fullver}.tar.xz"
21- checksum=65e7b2af6479db346e2fc99bcfb6ec3240066468e09dbec575ebc7c57d994061
22+ checksum=5cc89a09da0917eb1ddf640cc07c172ff44fa9bbf3a34ada4b6a2f7ee70ff1c8
2223# guarantee subpackage ordering
2324subpackages="bind-libs bind-utils bind-devel"
2425# requires special network setup
@@ -33,12 +34,21 @@ make_dirs="/var/named 0770 root named"
3334build_options="geoip"
3435build_options_default="geoip"
3536
37+ pre_configure() {
38+ if [ -n "$CROSS_BUILD" ]; then
39+ for l in ns isccfg isccc isc dns ; do
40+ LDFLAGS+=" -Wl,--rpath-link=$wrksrc/lib/${l}/.libs"
41+ done
42+ vsed -e "s|ac_lib_lmdb_path in /usr|ac_lib_lmdb_path in ${XBPS_CROSS_BASE} /usr|g" -i configure
43+ fi
44+ }
45+
3646post_install() {
3747 vsv named
3848 vinstall ${FILESDIR}/named.logrotate 600 etc/logrotate.d named
3949 vinstall ${FILESDIR}/named.conf 640 etc/named
4050
41- vinstall bin/tests/system/common /root.hint 640 var/named
51+ vinstall bin/tests/system/_common /root.hint 640 var/named
4252 vinstall ${FILESDIR}/127.0.0.zone 640 var/named
4353 vinstall ${FILESDIR}/localhost.zone 640 var/named
4454 vlicense COPYRIGHT LICENSE
0 commit comments