# Maintainer: Erich Eckner # Contributor: Remi Gacogne pkgname=dnsdist pkgver=1.8.0 _pkgver=${pkgver#*_} _pkgver=${_pkgver//_/-} pkgrel=7 pkgdesc='Highly DNS-, DoS- and abuse-aware loadbalancer' arch=('x86_64') url='https://dnsdist.org/' license=('GPL2') source=(https://downloads.powerdns.com/releases/${pkgname}-${_pkgver}.tar.bz2{,.asc} sysusers.conf) sha512sums=('426db3e83729bd2f8a8c8b1c02d719c6618acc0aec09d1f2670c159d441c1cad2fdc85c5ffe919e76d1b1e8e24198bf29133802cb857dfacde2dfed2532001f1' 'SKIP' 'd55ccd612cbe08b353815027d30a3b0f0ec7bf6b0d74a0a634939be53ce6e6b41d23e54c2328946f00738c03e9f306ce4f2dabe5e4b11d9fb28d0abf49917893') validpgpkeys=('D6300CABCBF469BBE392E503A208ED4F8AF58446' # Remi Gacogne 'FBAE0323821C7706A5CA151BDCF513FA7EED19F3') # Peter van Dijk makedepends=('boost' 'systemd') _pinned_dependencies=( 'fstrm=0.6.1' 'gcc-libs=13.2.1' 'glibc>=2.31' 'gnutls=3.8.1' 'libcap.so=2' 'libcdb.so=1' 'libcrypto.so=3' 'libedit.so=0' 'libnghttp2=1.56.0' 'libre2.so=11' 'libsodium=1.0.18' 'libssl.so=3' 'libsystemd.so=0' 'lmdb=0.9.30' 'luajit=2.1.1693350652' 'net-snmp=5.9.1' ) depends=('h2o' 'openssl' 'tinycdb' "${_pinned_dependencies[@]}") build() { cd "${pkgname}-${_pkgver}" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-ebpf \ --with-gnutls \ --with-libsodium \ --with-libssl \ --with-nghttp2 \ --with-re2 \ --enable-dnstap \ --enable-dns-over-tls \ --enable-dns-over-https \ --enable-dnscrypt \ --enable-systemd \ --enable-lto=thin \ --enable-auto-var-init=zero \ --with-service-user=dnsdist \ --with-service-group=dnsdist make } package() { cd "${pkgname}-${_pkgver}" make DESTDIR="${pkgdir}" install cd "${srcdir}" install -D -m644 sysusers.conf "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf" }