38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# Template file for 'dnsdist'
|
|
pkgname=dnsdist
|
|
version=1.9.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-pic --with-gnu-ld --with-libsodium --with-re2
|
|
--with-net-snmp --with-libcap --with-libssl --enable-dnscrypt --with-nghttp2
|
|
--with-libcrypto=${XBPS_CROSS_BASE}/usr --with-service-user=_dnsdist
|
|
--with-service-group=_dnsdist --sbindir=/usr/bin --without-gnutls --with-lmdb
|
|
--enable-dns-over-tls --enable-dns-over-https --sysconfdir=/etc/dnsdist"
|
|
conf_files="/etc/dnsdist/dnsdist.conf"
|
|
hostmakedepends="autoconf automake pkgconf"
|
|
makedepends="libsodium-devel boost-devel re2-devel net-snmp-devel libcap-devel
|
|
lua54-devel openssl-devel lmdb-devel fstrm-devel libedit-devel nghttp2-devel"
|
|
short_desc="Dynamic DNS loadbalancer"
|
|
maintainer="JailBird <jailbird@fdf.net>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://dnsdist.org/"
|
|
changelog="https://dnsdist.org/changelog.html"
|
|
distfiles="https://downloads.powerdns.com/releases/${pkgname}-${version}.tar.bz2"
|
|
checksum=16bab15cad9245571806398a8e4a5dc32a92b6bb60e617c12fe958c945889c7c
|
|
|
|
system_accounts="_dnsdist"
|
|
|
|
# (y2k38) This can be removed once musl is updated to 1.2.x
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ] && [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
|
|
broken="no y2038 support"
|
|
fi
|
|
|
|
pre_configure() {
|
|
export LMDB_LIBS="-llmdb"
|
|
}
|
|
|
|
post_install() {
|
|
vinstall dnsdist.conf-dist 644 etc/dnsdist dnsdist.conf
|
|
vsv dnsdist
|
|
}
|