diff options
Diffstat (limited to 'core/dnsutils/PKGBUILD')
-rw-r--r-- | core/dnsutils/PKGBUILD | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/core/dnsutils/PKGBUILD b/core/dnsutils/PKGBUILD index b856ed0b5..4a8840900 100644 --- a/core/dnsutils/PKGBUILD +++ b/core/dnsutils/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 130510 2011-07-07 02:37:46Z bisson $ +# $Id: PKGBUILD 136711 2011-08-31 16:36:37Z bisson $ # Maintainer: Gaetan Bisson <bisson@archlinux.org> # Contributor: kevin <kevin@archlinux.org> # Contributor: mario <mario_vazq@hotmail.com> @@ -8,41 +8,49 @@ pkgname=dnsutils # Use a period and not a hyphen before the patch level for proper versioning. pkgver=9.8.0.P4 _pkgver=9.8.0-P4 -pkgrel=1 +pkgrel=2 -pkgdesc='Various DNS utilities - dig host nslookup nsupdate' -arch=('i686' 'x86_64' 'mips64el') -url='https://www.isc.org/software/bind' +pkgdesc='DNS utilities: dig host nslookup' +url='http://www.isc.org/software/bind/' license=('custom:ISC') +arch=('i686' 'x86_64' 'mips64el') depends=('openssl' 'idnkit') -replaces=('bind-tools' 'host') options=('!makeflags') source=("http://ftp.isc.org/isc/bind9/${_pkgver}/bind-${_pkgver}.tar.gz" - 'tools-only.patch') + 'remove-bind.patch') sha1sums=('969864200c1516a8bea54266de60f316d79182b4' - 'ac88c89e25c26d73095a3dd85e1ca1070d184ded') + 'b465ef6160b004838f04de9978fe1be8422af777') + +replaces=('bind-tools' 'host') build() { cd "${srcdir}/bind-${_pkgver}" - patch -p1 -i ../tools-only.patch + patch -p1 -i ../remove-bind.patch export STD_CDEFINES='-DDIG_SIGCHASE' + # hack to remove unused bloat from the binaries + CFLAGS+=' -fdata-sections -ffunction-sections' + LDFLAGS+=' -Wl,--gc-sections' + ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --with-openssl=yes \ - --with-idn=yes \ + --disable-static \ --disable-linux-caps \ + --with-openssl \ + --with-idn \ make } package() { - cd "${srcdir}/bind-${_pkgver}/bin" + cd "${srcdir}/bind-${_pkgver}" + + install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd bin make DESTDIR="${pkgdir}" install - install -Dm644 ../COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |