aboutsummaryrefslogtreecommitdiffstats
path: root/community/pdns/APKBUILD
diff options
context:
space:
mode:
authortcely <tcely@users.noreply.github.com>2018-05-11 17:56:33 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-06 17:42:56 +0000
commit1febf42eb97aa607c43bf3165f13726cd228553b (patch)
tree9061ee6c7e64e0efc61b941f5a3757f7959af827 /community/pdns/APKBUILD
parentf8bbafe4ce243d18d7109b2ba50f706f00631b68 (diff)
downloadaports-1febf42eb97aa607c43bf3165f13726cd228553b.tar.gz
aports-1febf42eb97aa607c43bf3165f13726cd228553b.tar.bz2
aports-1febf42eb97aa607c43bf3165f13726cd228553b.tar.xz
community/pdns: split out _backend function
Diffstat (limited to 'community/pdns/APKBUILD')
-rw-r--r--community/pdns/APKBUILD9
1 files changed, 8 insertions, 1 deletions
diff --git a/community/pdns/APKBUILD b/community/pdns/APKBUILD
index 992c760b22..09abbfab42 100644
--- a/community/pdns/APKBUILD
+++ b/community/pdns/APKBUILD
@@ -94,13 +94,20 @@ tools() {
done; unset -v _tool
}
-_mv_backend() {
+_backend() {
local backend=$1
shift
pkgdesc="$backend backend module for PowerDNS"
depends="$pkgname $*"
+ mkdir -p "$subpkgdir"
+}
+
+_mv_backend() {
+ local backend=$1
+ _backend "$@"
+
mkdir -p "$subpkgdir/usr/lib/pdns/pdns"
mv "$pkgdir/usr/lib/pdns/pdns/lib${backend}backend.so" \
"$subpkgdir/usr/lib/pdns/pdns/"