summaryrefslogtreecommitdiffstats
path: root/abs/core/keyutils/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/keyutils/PKGBUILD')
-rw-r--r--abs/core/keyutils/PKGBUILD34
1 files changed, 19 insertions, 15 deletions
diff --git a/abs/core/keyutils/PKGBUILD b/abs/core/keyutils/PKGBUILD
index 463df40..417e929 100644
--- a/abs/core/keyutils/PKGBUILD
+++ b/abs/core/keyutils/PKGBUILD
@@ -1,28 +1,32 @@
-# $Id: PKGBUILD 162664 2012-06-27 18:33:40Z tpowa $
+# $Id: PKGBUILD 198652 2013-11-01 13:53:34Z eric $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
pkgname=keyutils
-pkgver=1.5.5
-pkgrel=3
+pkgver=1.5.8
+pkgrel=1
pkgdesc="Linux Key Management Utilities"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
url="http://www.kernel.org"
license=('GPL2' 'LGPL2.1')
depends=('glibc' 'sh')
-backup=(etc/request-key.conf)
-source=(http://people.redhat.com/~dhowells/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('d759680b2f23c99af95938f5026f25fb')
+backup=('etc/request-key.conf')
+source=(http://people.redhat.com/~dhowells/${pkgname}/${pkgname}-${pkgver}.tar.bz2
+ request-key.conf.patch)
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ # fix paths of binaries in /etc/request-key.conf
+ patch -Np0 -i ../request-key.conf.patch
+}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+ cd ${pkgname}-${pkgver}
+ make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" SBINDIR='/usr/bin' BINDIR='/usr/bin'
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" LIBDIR="/usr/lib" USRLIBDIR="/usr/lib" install
- # add nfsidmap to config file #30396
- echo "# NFS idmap resolver" >> $pkgdir/etc/request-key.conf
- echo "create id_resolver * * /usr/sbin/nfsidmap %k %d" \
- >> $pkgdir/etc/request-key.conf
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" SBINDIR='/usr/bin' BINDIR='/usr/bin' LIBDIR='/usr/lib' USRLIBDIR='/usr/lib' install
}
+md5sums=('3c7f463039b83833c12a9414c2fcb389'
+ '89a819a7e4e90936b210c9d5020d296d')