void-packages/srcpkgs/bind/template
2020-07-02 18:01:00 +02:00

82 lines
2.4 KiB
Bash

# Template file for 'bind'
pkgname=bind
version=9.16.4
revision=2
_fullver="${version}${_patchver:+-${_patchver}}"
wrksrc="${pkgname}-${_fullver}"
build_style=gnu-configure
configure_args="--disable-static --enable-threads --enable-largefile
--with-libtool --enable-atomic --sysconfdir=/etc/named --enable-epoll
--enable-ipv6 --with-randomdev=/dev/random --with-ecdsa=yes --with-eddsa=no
--with-libtool --with-openssl=${XBPS_CROSS_BASE}/usr --without-gssapi
--without-gost --enable-openssl-hash --with-readline --with-tuning=default
--without-python --enable-fetchlimit --enable-sit
--with-libidn2 $(vopt_enable seccomp)
$(vopt_if geoip "--with-geoip=${XBPS_CROSS_BASE}/usr" "--without-geoip")"
hostmakedepends="automake libtool perl pkg-config"
makedepends="libressl-devel libxml2-devel libcap-devel readline-devel
libatomic-devel libidn2-devel libuv-devel $(vopt_if geoip geoip-devel)
$(vopt_if seccomp libseccomp-devel)"
short_desc="Berkeley Internet Name Domain server"
maintainer="Randy McCaskill <randy@mccaskill.us>"
license="MPL-2.0"
homepage="https://www.isc.org/downloads/bind/"
changelog="https://gitlab.isc.org/isc-projects/bind9/-/blob/v9_16/CHANGES"
distfiles="https://ftp.isc.org/isc/bind9/${_fullver}/bind-${_fullver}.tar.xz"
checksum=7522088d3daac8bcabaae37998178e09139ef5ccae6631cb1d8a625b770f370a
conf_files="/etc/named/named.conf"
system_accounts="named"
named_descr="BIND DNS server"
named_homedir="/var/named"
make_dirs="/var/named 0770 root named"
build_options="geoip seccomp"
build_options_default="geoip"
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*) build_options_default+=" seccomp";;
esac
do_check() {
# requires special network setup
:
}
post_install() {
vsv named
vinstall ${FILESDIR}/named.logrotate 600 etc/logrotate.d named
vinstall ${FILESDIR}/named.conf 640 etc/named
vinstall bin/tests/system/common/root.hint 640 var/named
vinstall ${FILESDIR}/127.0.0.zone 640 var/named
vinstall ${FILESDIR}/localhost.zone 640 var/named
vlicense COPYRIGHT LICENSE
}
bind-libs_package() {
short_desc+=" - Runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
bind-utils_package() {
short_desc+=" - DNS utils"
pkg_install() {
for f in dig host nslookup; do
vmove usr/bin/${f}
vmove usr/share/man/man1/${f}.1
done
}
}
bind-devel_package() {
depends="bind-libs>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}