diff options
author | tcely <tcely@users.noreply.github.com> | 2018-05-11 17:56:33 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-06-06 17:42:56 +0000 |
commit | 1febf42eb97aa607c43bf3165f13726cd228553b (patch) | |
tree | 9061ee6c7e64e0efc61b941f5a3757f7959af827 /community | |
parent | f8bbafe4ce243d18d7109b2ba50f706f00631b68 (diff) | |
download | aports-1febf42eb97aa607c43bf3165f13726cd228553b.tar.bz2 aports-1febf42eb97aa607c43bf3165f13726cd228553b.tar.xz |
community/pdns: split out _backend function
Diffstat (limited to 'community')
-rw-r--r-- | community/pdns/APKBUILD | 9 |
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/" |