aboutsummaryrefslogtreecommitdiffstats
path: root/main/bind/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-11-16 13:53:11 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-16 12:54:42 +0000
commit934cc315292f4b5d57ddec8a26ac0b409b35aae4 (patch)
tree04b730b2260fab23de2f8f26a5c9fc7438790cdd /main/bind/APKBUILD
parentbf3c54b75ec397f330ccdddc8cc82fceee7c4130 (diff)
downloadaports-934cc315292f4b5d57ddec8a26ac0b409b35aae4.tar.bz2
aports-934cc315292f4b5d57ddec8a26ac0b409b35aae4.tar.xz
main/bind: move dnssec to -tools subpackage
Diffstat (limited to 'main/bind/APKBUILD')
-rw-r--r--main/bind/APKBUILD28
1 files changed, 21 insertions, 7 deletions
diff --git a/main/bind/APKBUILD b/main/bind/APKBUILD
index d76d917eec..e2d2c0801c 100644
--- a/main/bind/APKBUILD
+++ b/main/bind/APKBUILD
@@ -1,3 +1,4 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bind
@@ -5,15 +6,15 @@ pkgver=9.10.3
_ver=${pkgver%_p*}
_p=${pkgver#*_p}
[ "$_p" != "$pkgver" ] && _ver="${_ver}-P$_p"
-pkgrel=0
-pkgdesc="The Berkeley Internet Name Domain Name Server and tools"
+pkgrel=1
+pkgdesc="The ISC DNS server"
url="http://www.isc.org"
arch="all"
license="MIT BSD"
depends=""
pkgusers="named"
pkggroups="named"
-makedepends="openssl-dev libcap-dev perl linux-headers bsd-compat-headers"
+makedepends="bash openssl-dev libcap-dev perl linux-headers bsd-compat-headers"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs $pkgname-tools"
source="http://ftp.isc.org/isc/bind9/${_ver}/bind-${_ver}.tar.gz
@@ -32,7 +33,7 @@ prepare() {
cd "$_builddir"
### http://bugs.gentoo.org/show_bug.cgi?id=227333
- export CFLAGS="$CFLAGS -D_GNU_SOURCE"
+ export CFLAGS="$CFLAGS -D_GNU_SOURCE"
# Adjusting PATHs in manpages
for i in bin/named/named.8 bin/check/named-checkconf.8 bin/rndc/rndc.8; do
@@ -85,6 +86,11 @@ package() {
make DESTDIR="$pkgdir" install || return 1
+ # FIXME: Workaround for broken symlink handling in abuild
+ rm -f "$pkgdir"/usr/share/man/man1/bind9-config.1
+ find "$pkgdir"/usr/share/man/man3 -name 'lwres_*' \
+ -type f -exec rm -f \{\} \;
+
install -Dm755 "$srcdir"/named.initd \
"$pkgdir"/etc/init.d/named || return 1
install -Dm644 "$srcdir"/named.confd \
@@ -99,17 +105,25 @@ package() {
"$pkgdir"/var/bind/pri/127.zone || return 1
install -Dm644 "$srcdir"/localhost.zone \
"$pkgdir"/var/bind/pri/localhost.zone || return 1
+
cd "$pkgdir"/var/bind
ln -s named.ca root.cache || return 1
}
tools() {
- install=
- depends=
+ pkgdesc="The ISC DNS tools"
+ install=""
+ depends=""
+
mkdir -p "$subpkgdir"/usr/bin
- for i in dig host nslookup nsupdate; do
+ for i in dig host nslookup delv nsupdate; do
mv "$pkgdir"/usr/bin/${i} "$subpkgdir"/usr/bin/ || return 1
done
+
+ mkdir -p "$subpkgdir"/usr/sbin
+ for i in "$pkgdir"/usr/sbin/dnssec-*; do
+ mv "$i" "$subpkgdir"/usr/sbin || return 1
+ done
}
md5sums="d8cbf04a62a139a841d4bf878087a555 bind-9.10.3.tar.gz