# Contributor: Olivier Mauras # Maintainer: tcely pkgname=pdns-recursor pkgver=4.1.12 pkgrel=0 pkgdesc="PowerDNS Recursive Server" url="https://www.powerdns.com/" # s390x: missing boost-context arch="all !s390x" license="GPL-2.0-or-later" depends="" depends_dev="" makedepends="$depends_dev boost-dev openssl-dev libsodium-dev lua-dev net-snmp-dev protobuf-dev" install="$pkgname.pre-install" subpackages="$pkgname-doc $pkgname-openrc" pkgusers="recursor" pkggroups="recursor" source="https://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.bz2 pdns-recursor.initd recursor.conf " builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 4.1.9-r0: # - CVE-2019-3806 # - CVE-2019-3807 # 4.1.8-r0: # - CVE-2018-16855 # 4.1.7-r0: # - CVE-2018-10851 # - CVE-2018-14644 # - CVE-2018-14626 # 4.1.1-r0: # - CVE-2018-1000003 # 4.0.7-r0: # - CVE-2017-15090 # - CVE-2017-15092 # - CVE-2017-15093 # - CVE-2017-15094 build() { cd "$builddir" ./configure --prefix=/usr \ --sysconfdir=/etc/pdns \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --libdir=/usr/lib/pdns \ --enable-unit-tests \ --disable-static make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install rm "$pkgdir"/etc/pdns/recursor.conf-dist install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname install -m600 -D "$srcdir"/recursor.conf \ "$pkgdir"/etc/pdns/recursor.conf } sha512sums="d228976937ede7e9f6b3375e573f5b436d9df7ae246e411b13acb095a1a58f12173b663acc364ce0fbdcc61b3d5522e101472a88da8f044e44541564f9915d9e pdns-recursor-4.1.12.tar.bz2 6eea64828a363a8f36a694da4ab08f48482a096572e5597e3182bbf5f4e7c0114d9b643c7ea5060ae46b50b05c6ebbace2fedd44dc6309b641fd638d44db879e pdns-recursor.initd 954df537693a202fc195e751011bbfaa605b3f3df42ac386fa82eb809b73c2b987f5e418b5c96bb3b0669497426ce0daa39a719844701e06990b82843a4cf0d4 recursor.conf"