Commit 3cf7d843 authored by Natanael Copa's avatar Natanael Copa

main/bind: upgrade to 9.6.1_p2

parent d6e71e02
# 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment