2011-05-18 04:49:14 +08:00
|
|
|
#
|
|
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgname=dnsutils
|
|
|
|
# Use a period and not a hyphen before the patch level for proper versioning.
|
2011-05-18 04:49:14 +08:00
|
|
|
pkgver=9.8.0.P1
|
|
|
|
_pkgver=9.8.0-P1
|
2010-09-22 06:14:17 +08:00
|
|
|
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
|
2011-05-18 04:49:14 +08:00
|
|
|
tools-only.patch)
|
|
|
|
md5sums=('d97ecd8f62a4cf4a769742c79cd8f921'
|
2010-09-22 06:14:17 +08:00
|
|
|
'be0558f70ed81d90e68e6b6003ba12ed')
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/bind-${_pkgver}"
|
|
|
|
patch -Np1 -i "${srcdir}/tools-only.patch" || return 1
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
2011-05-18 04:49:14 +08:00
|
|
|
--with-openssl=yes --disable-linux-caps || return 1
|
2010-03-13 23:25:19 +08:00
|
|
|
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
|
2011-05-18 04:49:14 +08:00
|
|
|
install -Dm644 ../COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
|
2010-03-13 23:25:19 +08:00
|
|
|
}
|