[arch-commits] Commit in dnsutils/trunk (PKGBUILD)

Jan de Groot jgc at archlinux.org
Tue Apr 21 12:52:58 EDT 2009


    Date: Tuesday, April 21, 2009 @ 12:52:57
  Author: jgc
Revision: 36363

upgpkg: dnsutils 9.6.0.P1-2
    Replace the host utility from extra (FS#14158)

Modified:
  dnsutils/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-04-21 06:11:43 UTC (rev 36362)
+++ PKGBUILD	2009-04-21 16:52:57 UTC (rev 36363)
@@ -5,28 +5,28 @@
 # Use a period and not a hyphen before the patch level for proper versioning.
 pkgver=9.6.0.P1
 _pkgver=9.6.0-P1
-pkgrel=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')
+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=('886b7eae55cfdc8cd8d2ca74a2f99c6e' '447d58721cfee0e1e377b46f7d50b327'
          '329f7e15b8c45d3efefdf5b559bb878a')
 
 build() {
-  export MAKEFLAGS="-j1"
-
-  cd ${startdir}/src/bind-${_pkgver}
-  patch -Np0 -i ${startdir}/src/bind.so_bsdcompat.diff || return 1
-  patch -Np1 -i ${startdir}/src/tools-only.patch || return 1
+  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
+              --with-openssl=yes --disable-linux-caps --without-libxml2 || return 1
   make || return 1
-  cd bin
-  make DESTDIR=${startdir}/pkg install || return 1
-  install -D -m644 ../COPYRIGHT $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
+  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
 }



More information about the arch-commits mailing list