2010-09-22 06:14:17 +08:00
|
|
|
# $Id: PKGBUILD 85957 2010-07-22 20:05:06Z kevin $
|
2010-03-13 23:25:19 +08:00
|
|
|
# Maintainer: kevin <kevin@archlinux.org>
|
|
|
|
# Contributor: mario <mario_vazq@hotmail.com>
|
|
|
|
pkgname=dnsutils
|
|
|
|
# Use a period and not a hyphen before the patch level for proper versioning.
|
2010-09-22 06:14:17 +08:00
|
|
|
pkgver=9.7.1.P2
|
|
|
|
_pkgver=9.7.1-P2
|
|
|
|
pkgrel=1
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="Various DNS utilities - dig host nslookup nsupdate"
|
|
|
|
arch=(i686 x86_64)
|
|
|
|
url="https://www.isc.org/software/bind"
|
|
|
|
license=('custom:ISC')
|
2010-04-04 22:20:41 +08:00
|
|
|
depends=('openssl')
|
2010-03-13 23:25:19 +08:00
|
|
|
replaces=('bind-tools' 'host')
|
|
|
|
options=('makeflags')
|
|
|
|
source=(http://ftp.isc.org/isc/bind9/${_pkgver}/bind-${_pkgver}.tar.gz
|
|
|
|
bind.so_bsdcompat.diff tools-only.patch)
|
2010-09-22 06:14:17 +08:00
|
|
|
md5sums=('bd6be63cc910d04da39103d441871596'
|
|
|
|
'447d58721cfee0e1e377b46f7d50b327'
|
|
|
|
'be0558f70ed81d90e68e6b6003ba12ed')
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/bind-${_pkgver}"
|
|
|
|
patch -Np0 -i "${srcdir}/bind.so_bsdcompat.diff" || return 1
|
|
|
|
patch -Np1 -i "${srcdir}/tools-only.patch" || return 1
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
|
|
|
--with-openssl=yes --disable-linux-caps --without-libxml2 || return 1
|
|
|
|
make || return 1
|
2010-04-04 22:20:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/bind-${_pkgver}/bin"
|
2010-03-13 23:25:19 +08:00
|
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
install -m644 ../COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
|
|
|
|
}
|