aboutsummaryrefslogtreecommitdiffstats
path: root/community/pdns-recursor/APKBUILD
diff options
context:
space:
mode:
authortcely <tcely@users.noreply.github.com>2018-01-27 15:03:12 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2018-01-29 09:08:53 +0000
commitcbb12439ba7cf2af2a88b59237ff6fdb6ea90587 (patch)
tree2faa89c2f292b5f3978fb65ba768856bc6cc3a08 /community/pdns-recursor/APKBUILD
parent0ffffb92625c51ff6af8286921f3eaacd8bf3915 (diff)
downloadaports-cbb12439ba7cf2af2a88b59237ff6fdb6ea90587.tar.gz
aports-cbb12439ba7cf2af2a88b59237ff6fdb6ea90587.tar.bz2
aports-cbb12439ba7cf2af2a88b59237ff6fdb6ea90587.tar.xz
community/pdns-recursor: Security Upgrade to 4.1.1
- use pkgname in download URL - add check function - enable unit tests for check - match pkgusers/pkggroups to pre-install - add dependencies configure is seeking - remove obsolete (since 4.0.4) boost-fix.patch - update license - add file for configure script
Diffstat (limited to 'community/pdns-recursor/APKBUILD')
-rw-r--r--community/pdns-recursor/APKBUILD22
1 files changed, 15 insertions, 7 deletions
diff --git a/community/pdns-recursor/APKBUILD b/community/pdns-recursor/APKBUILD
index 3983f0c7af..f02b63afdd 100644
--- a/community/pdns-recursor/APKBUILD
+++ b/community/pdns-recursor/APKBUILD
@@ -1,19 +1,19 @@
# Contributor: Olivier Mauras <olivier@mauras.ch>
pkgname=pdns-recursor
-pkgver=4.0.7
+pkgver=4.1.1
pkgrel=0
pkgdesc="PowerDNS Recursive Server"
url="https://www.powerdns.com/"
arch="all !s390x"
-license="GPL"
+license="GPL-2.0-or-later"
depends=""
depends_dev=""
-makedepends="$depends_dev boost-dev lua-dev libressl-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"
-pkgusers="pdns"
-pkggroups="pdns"
-source="http://downloads.powerdns.com/releases/pdns-recursor-$pkgver.tar.bz2
+pkgusers="recursor"
+pkggroups="recursor"
+source="http://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.bz2
pdns-recursor.initd
recursor.conf
"
@@ -21,6 +21,8 @@ source="http://downloads.powerdns.com/releases/pdns-recursor-$pkgver.tar.bz2
builddir="$srcdir/$pkgname-$pkgver"
# secfixes:
+# 4.1.1-r0:
+# - CVE-2018-1000003
# 4.0.7-r0:
# - CVE-2017-15090
# - CVE-2017-15092
@@ -35,10 +37,16 @@ build() {
--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
@@ -51,6 +59,6 @@ package() {
"$pkgdir"/etc/pdns/recursor.conf
}
-sha512sums="0c8873adcce5ed9b41f161bc71635da23496b4ae48dbffff7dcdf9c5181e720f9aa94e18bd64e0dff9fa03eae8410dc93585a74d13f0c16d38b0d1c0f4146bb2 pdns-recursor-4.0.7.tar.bz2
+sha512sums="a8561bf0688752f30c4c997930f13d55c506b2a2113d22b074443757a51cde9be182ef948e61eb8c4d639bbf8679d8a4139aafb6983f483b3a917e049fa64e45 pdns-recursor-4.1.1.tar.bz2
f23cb30d943e0b0aea09371dc57aa43e55b8f91062a3caa3fac17e3565a8e36dfd304f45eba588f625ca2337cd2ade450ea5ae1776872c006204cdaf912f6651 pdns-recursor.initd
954df537693a202fc195e751011bbfaa605b3f3df42ac386fa82eb809b73c2b987f5e418b5c96bb3b0669497426ce0daa39a719844701e06990b82843a4cf0d4 recursor.conf"