PKGBUILDs/core/dnsutils/PKGBUILD
2009-10-09 21:17:35 -05:00

32 lines
1.2 KiB
Bash

# $Id: PKGBUILD 46687 2009-07-19 16:41:59Z kevin $
# 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.
pkgver=9.6.1
_pkgver=9.6.1
pkgrel=2
pkgdesc="Various DNS utilities - dig host nslookup nsupdate"
arch=(i686 x86_64)
url="https://www.isc.org/software/bind"
license=('custom:ISC')
depends=('openssl>=0.9.8h')
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)
md5sums=('516ac74d8eaaef30ad4c99ada8b715cd' '447d58721cfee0e1e377b46f7d50b327'
'329f7e15b8c45d3efefdf5b559bb878a')
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
cd bin || return 1
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
}