aboutsummaryrefslogtreecommitdiffstats
path: root/main/bind/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-12-10 15:36:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-12-10 15:36:24 +0000
commit3cf7d8431be564cf7846254e3b931160f64e4d34 (patch)
treec01446f3396dadcd0f0279318939e5db41af19db /main/bind/APKBUILD
parentd6e71e02a43421944bf83680a3116d80aad6a520 (diff)
downloadaports-3cf7d8431be564cf7846254e3b931160f64e4d34.tar.bz2
aports-3cf7d8431be564cf7846254e3b931160f64e4d34.tar.xz
main/bind: upgrade to 9.6.1_p2
Diffstat (limited to 'main/bind/APKBUILD')
-rw-r--r--main/bind/APKBUILD23
1 files changed, 17 insertions, 6 deletions
diff --git a/main/bind/APKBUILD b/main/bind/APKBUILD
index 18760fbf78..57ad324cf2 100644
--- a/main/bind/APKBUILD
+++ b/main/bind/APKBUILD
@@ -1,8 +1,10 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bind
-pkgver=9.6.1_p1
-pkgrel=1
+pkgver=9.6.1_p2
+_ver=${pkgver%_p*}
+_p=${pkgver#*_p}
+pkgrel=0
pkgdesc="BIND - Berkeley Internet Name Domain - Name Server and tools"
url="http://www.isc.org"
license="as-is"
@@ -10,7 +12,7 @@ depends=
makedepends="openssl-dev"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs $pkgname-tools"
-source="http://ftp.isc.org/isc/bind9/9.6.0-P1/bind-9.6.0-P1.tar.gz
+source="http://ftp.isc.org/isc/bind9/${_ver}-P${_p}/bind-${_ver}-P${_p}.tar.gz
bind.so_bsdcompat.patch
$pkgname.initd
$pkgname.confd
@@ -20,8 +22,10 @@ source="http://ftp.isc.org/isc/bind9/9.6.0-P1/bind-9.6.0-P1.tar.gz
$pkgname.named.ca
"
-build() {
- cd "$srcdir/bind-9.6.0-P1"
+_builddir="$srcdir/bind-${_ver}-P${_p}"
+
+prepare() {
+ cd "$_builddir"
### http://bugs.gentoo.org/show_bug.cgi?id=227333
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
@@ -36,7 +40,10 @@ build() {
done
patch -p0 -i "$srcdir"/bind.so_bsdcompat.patch || return 1
+}
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc/bind \
--localstatedir=/var \
@@ -53,6 +60,10 @@ build() {
--infodir=/usr/share/info
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/named || return 1
@@ -81,7 +92,7 @@ tools() {
done
}
-md5sums="886b7eae55cfdc8cd8d2ca74a2f99c6e bind-9.6.0-P1.tar.gz
+md5sums="435bc2e26e470d46ddf2acb24abb6ea6 bind-9.6.1-P2.tar.gz
f270a5b0a28ab6e818840c5c368ddbcc bind.so_bsdcompat.patch
92914193cc603d8d81ef00534ce9c1c9 bind.initd
8b05a287976d66d51c18b73ee7523671 bind.confd