PKGBUILDs/core/dnsutils/PKGBUILD
2009-10-10 00:36:41 -05:00

33 lines
1.1 KiB
Bash

# Maintainer: kevin <kevin@archlinux.org>
# Contributor: mario <mario_vazq@hotmail.com>
pkgname=dnsutils
pkgver=9.6.1
_pkgver=9.6.1
pkgrel=2
pkgdesc="Various DNS utilities - dig host nslookup nsupdate"
arch=('arm')
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
}