aboutsummaryrefslogtreecommitdiffstats
path: root/main/bind/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-05-02 10:26:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-02 11:18:56 +0000
commit91fb4f69e22a56709c68826c5dc84edb665776b6 (patch)
tree3c7e65e98712591d6d89b9492e1f66b20dd3673b /main/bind/APKBUILD
parenta0b1ac0fa3b4a6150e41dcc66859f7ab91a99086 (diff)
downloadaports-91fb4f69e22a56709c68826c5dc84edb665776b6.tar.bz2
aports-91fb4f69e22a56709c68826c5dc84edb665776b6.tar.xz
main/bind: split dnssec-tools and py3-bind
move python modules and dnssec-tools to separate subpackages so we avoid install python3 by default. py3-bind may be useful separately for python scripts so lets separate out that as well.
Diffstat (limited to 'main/bind/APKBUILD')
-rw-r--r--main/bind/APKBUILD26
1 files changed, 23 insertions, 3 deletions
diff --git a/main/bind/APKBUILD b/main/bind/APKBUILD
index 3f61cb2cd4..64a91e9324 100644
--- a/main/bind/APKBUILD
+++ b/main/bind/APKBUILD
@@ -9,20 +9,21 @@ _ver=${pkgver%_p*}
_p=${pkgver#*_p}
_major=${pkgver%%.*}
[ "$_p" != "$pkgver" ] && _ver="${_ver}-P$_p"
-pkgrel=0
+pkgrel=1
pkgdesc="The ISC DNS server"
url="https://www.isc.org"
arch="all"
license="MPL-2.0"
pkgusers="named"
pkggroups="named"
-depends="dns-root-hints python3 py3-ply"
+depends="dns-root-hints"
depends_dev="$pkgname $pkgname-plugins $pkgname-tools"
depends_libs=""
depends_plugins="$pkgname"
_root_keys_upstream="dnssec-root"
depends_root_keys="$_root_keys_upstream"
depends_tools=""
+_py3deps="py3-ply python3"
makedepends="
bash
bsd-compat-headers
@@ -36,12 +37,13 @@ makedepends="
openssl-dev
perl
protobuf-c-dev
- py3-ply
+ $_py3deps
python3-dev
"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs $pkgname-openrc
${pkgname}-${_root_keys_upstream}:root_keys:noarch
+ py3-$pkgname:_py3 $pkgname-dnssec-tools:_dnssec_tools
$pkgname-plugins $pkgname-tools
"
source="
@@ -172,6 +174,24 @@ dev() {
mv "$pkgdir"/usr/bin/isc-config.sh "$subpkgdir"/usr/bin/
}
+_py3() {
+ pkgdesc="A module allowing rndc commands to be sent from Python programs"
+ depends="$_py3deps"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/
+}
+
+_dnssec_tools() {
+ pkgdesc="Utilities for DNSSEC keys and DNS zone files management"
+ depends="py3-$pkgname=$pkgver-r$pkgrel"
+ mkdir -p "$subpkgdir"/usr/sbin
+ mv \
+ "$pkgdir"/usr/sbin/nsec3hash \
+ "$pkgdir"/usr/sbin/dnssec* \
+ "$subpkgdir"/usr/sbin/
+}
+
+
plugins() {
pkgdesc="The ISC DNS server plugins"
depends="$depends_plugins"