# Maintainer: Levente Polyak # Maintainer: Remi Gacogne # Contributor: Alexander Rødseth # Contributor: Jan de Groot # Contributor: Jan Steffens # ALARM: Kevin Mihelich # - remove makedepend on pandoc pkgname=powerdns-recursor pkgver=5.1.2 pkgrel=1 pkgdesc='Resolving DNS server' url='https://www.powerdns.com/' arch=('x86_64') license=('GPL-2.0-only') depends=('gcc-libs' 'boost-libs' 'libcap' 'libcurl.so' 'libsodium' 'systemd-libs' 'luajit' 'openssl' 'libboost_context.so' 'fstrm' 'net-snmp') makedepends=('boost' 'ragel' 'rust' 'systemd') options=(!lto) provides=('pdns-recursor') conflicts=('pdns-recursor') backup=('etc/powerdns/recursor.conf') source=(https://downloads.powerdns.com/releases/pdns-recursor-${pkgver}.tar.bz2{,.asc} sysusers.conf) sha512sums=('c7d6f188d27c6f11b128945b7615f2f18caf1777b5122f5d4a85ef341b3117b3c26d91af3ecd32fc5cf76ccdb63598e874914f6c7f3e295857cca1a1eb89b61f' 'SKIP' '63b3f0664d38fbbcb6b1c914cee050a27eca0a15550962973743580dd5d3ace2e68272ca2d856d53cc74001fe9246d61207ebbc74524c096736777ed08c88e72') validpgpkeys=('FBAE0323821C7706A5CA151BDCF513FA7EED19F3' # Peter van Dijk '16E12866B7738C73976A57436FFC33439B0D04DF') # Winkels, Erik prepare() { cd pdns-recursor-${pkgver} autoreconf -i } build() { cd pdns-recursor-${pkgver} LIBS=$LIBS ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc/powerdns \ --disable-silent-rules \ --enable-reproducible \ --enable-systemd \ --enable-dns-over-tls \ --with-libsodium \ --with-lua=luajit \ --with-net-snmp \ --enable-auto-var-init=zero \ --with-service-user=pdns-recursor \ --with-service-group=pdns-recursor \ --with-libcrypto=/usr # workaround for https://github.com/PowerDNS/pdns/issues/14084 make } package() { cd pdns-recursor-${pkgver} make DESTDIR="${pkgdir}" install mv "${pkgdir}/etc/powerdns/recursor.yml-dist" "${pkgdir}/etc/powerdns/recursor.conf" install -Dm 644 "${srcdir}/sysusers.conf" "${pkgdir}/usr/lib/sysusers.d/powerdns-recursor.conf" } # vim: ts=2 sw=2 et: