# Contributor: Olivier Mauras pkgname=pdns-recursor pkgver=4.1.3 pkgrel=0 pkgdesc="PowerDNS Recursive Server" url="https://www.powerdns.com/" arch="all !s390x" license="GPL-2.0-or-later" depends="" depends_dev="" makedepends="$depends_dev boost-dev file libressl-dev libsodium-dev lua-dev net-snmp-dev protobuf-dev" install="$pkgname.pre-install" subpackages="$pkgname-doc $pkgname-openrc" pkgusers="recursor" pkggroups="recursor" source="http://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.bz2 libressl-2.7.patch pdns-recursor.initd recursor.conf " options="!check" builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 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="5ea7e027131143b3ca45ca4a97316f52207a55cf5498a136e44cf5ee78bee00efecf3cd7c9c46261002cbd6e4ea0cd2af62c456b71fd2366729242950b7c060d pdns-recursor-4.1.3.tar.bz2 2846854b74bcc1149e18aa5ff17d1c0548790a5eaf87a7194b89a1063c6783708bfa109e8edf9c2b430fbd90445bee7f80137601babab8766be106bcad700cf3 libressl-2.7.patch f23cb30d943e0b0aea09371dc57aa43e55b8f91062a3caa3fac17e3565a8e36dfd304f45eba588f625ca2337cd2ade450ea5ae1776872c006204cdaf912f6651 pdns-recursor.initd 954df537693a202fc195e751011bbfaa605b3f3df42ac386fa82eb809b73c2b987f5e418b5c96bb3b0669497426ce0daa39a719844701e06990b82843a4cf0d4 recursor.conf"