aboutsummaryrefslogtreecommitdiffstats
path: root/community/pdns-recursor/APKBUILD
diff options
context:
space:
mode:
authortcely <tcely@users.noreply.github.com>2019-07-15 23:53:02 -0400
committerLeo <thinkabit.ukim@gmail.com>2019-07-25 20:55:11 -0300
commit818373d24d8968dbc66a2b28edf2f5e8704b7cbc (patch)
tree1f485c4666a810cc3339e17a00812f536a8bec4f /community/pdns-recursor/APKBUILD
parent541f6f78f45b4b33ad3e3d172abbd9457319c3f2 (diff)
downloadaports-818373d24d8968dbc66a2b28edf2f5e8704b7cbc.tar.gz
aports-818373d24d8968dbc66a2b28edf2f5e8704b7cbc.tar.bz2
aports-818373d24d8968dbc66a2b28edf2f5e8704b7cbc.tar.xz
community/pdns-recursor: style changes
Diffstat (limited to 'community/pdns-recursor/APKBUILD')
-rw-r--r--community/pdns-recursor/APKBUILD30
1 files changed, 16 insertions, 14 deletions
diff --git a/community/pdns-recursor/APKBUILD b/community/pdns-recursor/APKBUILD
index 154bd6d981..215d8667cf 100644
--- a/community/pdns-recursor/APKBUILD
+++ b/community/pdns-recursor/APKBUILD
@@ -1,22 +1,24 @@
# Contributor: Olivier Mauras <olivier@mauras.ch>
# Maintainer: tcely <pdns-recursor+aports@tcely.33mail.com>
-pkgname=pdns-recursor
-pkgver=4.2.0
+_pkgname="pdns-recursor" # upstream package name
+pkgname="${_pkgname}"
+pkgver="4.2.0"
pkgrel=0
pkgdesc="PowerDNS Recursive Server"
url="https://www.powerdns.com/"
-arch="all !s390x"
+arch="all !s390x" # broken context
license="GPL-2.0-only"
depends="dns-root-hints"
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"
+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
+source="https://downloads.powerdns.com/releases/${_pkgname}-${pkgver}.tar.bz2
+ ${_pkgname}.initd
recursor.conf
"
+builddir="${srcdir}/${_pkgname}-${pkgver}"
# secfixes:
# 4.1.9-r0:
@@ -53,18 +55,18 @@ check() {
}
package() {
- make DESTDIR="$pkgdir" install
- rm -v "$pkgdir"/etc/pdns/recursor.conf-dist
+ make DESTDIR="${pkgdir}" install
+ rm -v "${pkgdir}"/etc/pdns/recursor.conf-dist
- install -m755 -D "$srcdir"/$pkgname.initd \
- "$pkgdir"/etc/init.d/$pkgname
+ install -m755 -D "${srcdir}/${_pkgname}.initd" \
+ "${pkgdir}/etc/init.d/${pkgname}"
install -v -m640 -o root -g recursor \
- -D "$srcdir/recursor.conf" \
- "$pkgdir/etc/pdns/recursor.conf"
+ -D "${srcdir}/recursor.conf" \
+ "${pkgdir}/etc/pdns/recursor.conf"
ln -s ../../usr/share/dns-root-hints/named.root \
- "$pkgdir/etc/pdns/root.hints"
+ "${pkgdir}/etc/pdns/root.hints"
}
# gpgfingerprints="FBAE 0323 821C 7706 A5CA 151B DCF5 13FA 7EED 19F3