diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-05 08:15:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-05 08:17:22 +0000 |
commit | ecdf600945148fb5ebccd179c354578e391ba98b (patch) | |
tree | 257fe2cae9d4ecc4e4db92cf1eb60d17b4405306 /testing/bind/APKBUILD | |
parent | c3a257366b378d7dbe184159e96dd72210fee7cd (diff) | |
download | aports-ecdf600945148fb5ebccd179c354578e391ba98b.tar.bz2 aports-ecdf600945148fb5ebccd179c354578e391ba98b.tar.xz |
testing/bind: test bind-9.9
Diffstat (limited to 'testing/bind/APKBUILD')
-rw-r--r-- | testing/bind/APKBUILD | 122 |
1 files changed, 122 insertions, 0 deletions
diff --git a/testing/bind/APKBUILD b/testing/bind/APKBUILD new file mode 100644 index 0000000000..c2c81775fd --- /dev/null +++ b/testing/bind/APKBUILD @@ -0,0 +1,122 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=bind +pkgver=9.9.0 +_ver=${pkgver%_p*} +_p=${pkgver#*_p} +[ "$_p" != "$pkgver" ] && _ver="${_ver}-P$_p" +pkgrel=0 +pkgdesc="BIND - Berkeley Internet Name Domain - Name Server and tools" +url="http://www.isc.org" +arch="all" +license="as-is" +depends= +pkgusers="named" +pkggroups="named" +makedepends="openssl-dev perl" +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 + bind.so_bsdcompat.patch + $pkgname.initd + $pkgname.confd + $pkgname.conf + $pkgname.127.zone + $pkgname.localhost.zone + $pkgname.named.ca + " + +_builddir="$srcdir/bind-${_ver}" + +prepare() { + cd "$_builddir" + + ### http://bugs.gentoo.org/show_bug.cgi?id=227333 + 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 + sed -i \ + -e 's:/etc/named.conf:/etc/bind/named.conf:g' \ + -e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \ + -e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \ + "${i}" || return 1 + done + + patch -p0 -i "$srcdir"/bind.so_bsdcompat.patch || return 1 +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc/bind \ + --localstatedir=/var \ + --with-openssl=/usr \ + --disable-linux-caps \ + --without-libxml2 \ + --disable-threads \ + --enable-ipv6 \ + --enable-shared \ + --enable-static \ + --with-libtool \ + --with-randomdev=/dev/random \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + + make || return 1 +} + +package() { + cd "$_builddir" + install -d -m0770 -g named -o root "$pkgdir"/var/bind \ + "$pkgdir"/var/bind/sec \ + "$pkgdir"/var/bind/dyn \ + "$pkgdir"/var/run/named \ + "$pkgdir"/var/log/named \ + || return 1 + + install -d -m0750 -g named -o root "$pkgdir"/etc/bind \ + "$pkgdir"/var/bind/pri || return 1 + + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/*.la || return 1 + + install -Dm755 "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/named || return 1 + install -Dm644 "$srcdir"/$pkgname.confd \ + "$pkgdir"/etc/conf.d/named || return 1 + install -Dm644 "$srcdir"/$pkgname.conf \ + "$pkgdir"/etc/bind/named.conf || return 1 + install -Dm644 "$srcdir"/$pkgname.named.ca \ + "$pkgdir"/var/bind/named.ca || return 1 + install -Dm644 "$srcdir"/$pkgname.127.zone \ + "$pkgdir"/var/bind/pri/127.zone || return 1 + install -Dm644 "$srcdir"/$pkgname.localhost.zone \ + "$pkgdir"/var/bind/pri/localhost.zone || return 1 + cd "$pkgdir"/var/bind + ln -s named.ca root.cache || return 1 +} + +libs() { + install= + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ +} + +tools() { + install= + depends= + mkdir -p "$subpkgdir"/usr/bin + for i in dig host nslookup nsupdate; do + mv "$pkgdir"/usr/bin/${i} "$subpkgdir"/usr/bin/ || return 1 + done +} + +md5sums="9281d0b04f711d28153ba1ab04a54026 bind-9.9.0.tar.gz +f270a5b0a28ab6e818840c5c368ddbcc bind.so_bsdcompat.patch +da52267d5d56317d08c0fb170fc14da8 bind.initd +418a367cecfdf8760c92235d3967867e bind.confd +be5fd752bdbd59385f2a559d603098d5 bind.conf +a7455b009b7fccd74ac6f6eaa6902a00 bind.127.zone +c3220168fabfb31a25e8c3a545545e34 bind.localhost.zone +a94e29ac677846f3d4d618c50b7d34f1 bind.named.ca" |