# $Id: PKGBUILD 185695 2013-05-17 11:13:15Z stephane $ # Maintainer: Stéphane Gaudreault # Contributor: Tobias Powalowski pkgname=keyutils pkgver=1.5.5 pkgrel=4 pkgdesc="Linux Key Management Utilities" 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') build() { cd "${srcdir}/${pkgname}-${pkgver}" make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" SBINDIR='/usr/bin' BINDIR='/usr/bin' 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 }