aboutsummaryrefslogtreecommitdiffstats
path: root/community/pdns-recursor/APKBUILD
diff options
context:
space:
mode:
authortcely <tcely@users.noreply.github.com>2019-05-22 03:03:14 -0400
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-23 16:27:43 +0000
commitf2ae078758a3a6a9ba1068bf9d79123f305d54f8 (patch)
tree9ed7722db64312a07443a951a13ab72140bd76fb /community/pdns-recursor/APKBUILD
parentefb1b312eac568d94a303739866b4850d59a498a (diff)
downloadaports-f2ae078758a3a6a9ba1068bf9d79123f305d54f8.tar.gz
aports-f2ae078758a3a6a9ba1068bf9d79123f305d54f8.tar.bz2
aports-f2ae078758a3a6a9ba1068bf9d79123f305d54f8.tar.xz
community/pdns-recursor: improve
- enable s390x - add & enable botan-dev for gost - remove chown from package function
Diffstat (limited to 'community/pdns-recursor/APKBUILD')
-rw-r--r--community/pdns-recursor/APKBUILD23
1 files changed, 9 insertions, 14 deletions
diff --git a/community/pdns-recursor/APKBUILD b/community/pdns-recursor/APKBUILD
index a517420275..676bed785f 100644
--- a/community/pdns-recursor/APKBUILD
+++ b/community/pdns-recursor/APKBUILD
@@ -6,11 +6,10 @@ pkgrel=0
pkgdesc="PowerDNS Recursive Server"
url="https://www.powerdns.com/"
# build of testrunner fails on s390x
-arch="all !s390x"
+arch="all"
license="GPL-2.0-or-later"
depends="dns-root-hints"
-depends_dev=""
-makedepends="$depends_dev boost-dev openssl-dev libsodium-dev lua-dev net-snmp-dev protobuf-dev"
+makedepends="boost-dev botan-dev openssl-dev libsodium-dev lua5.1-dev net-snmp-dev protobuf-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
pkgusers="recursor"
@@ -20,8 +19,6 @@ source="https://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.bz2
recursor.conf
"
-builddir="$srcdir/$pkgname-$pkgver"
-
# secfixes:
# 4.1.9-r0:
# - CVE-2019-3806
@@ -41,36 +38,34 @@ builddir="$srcdir/$pkgname-$pkgver"
# - 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
+ --enable-botan \
+ --enable-unit-tests
make
}
check() {
- cd "$builddir"
make check
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
- rm "$pkgdir"/etc/pdns/recursor.conf-dist
+ rm -v "$pkgdir"/etc/pdns/recursor.conf-dist
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
- install -m600 -D "$srcdir/recursor.conf" \
+ install -v -m640 -o root -g recursor \
+ -D "$srcdir/recursor.conf" \
"$pkgdir/etc/pdns/recursor.conf"
- chown recursor:recursor "$pkgdir/etc/pdns/recursor.conf"
- ln -s ../../usr/share/dns-root-hints/named.root "$pkgdir/etc/pdns/root.hints"
+ ln -s ../../usr/share/dns-root-hints/named.root \
+ "$pkgdir/etc/pdns/root.hints"
}
gpgfingerprints="FBAE 0323 821C 7706 A5CA 151B DCF5 13FA 7EED 19F3