2011-12-08 17:54:46 +00:00
|
|
|
# $Id: PKGBUILD 144589 2011-12-07 12:54:44Z stephane $
|
2012-04-19 12:33:04 +00:00
|
|
|
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
|
|
|
|
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
|
2011-03-28 16:18:38 +00:00
|
|
|
|
2012-04-19 12:33:04 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2011-03-28 16:18:38 +00:00
|
|
|
# - commented out sed line, doesn't build otherwise
|
2011-03-28 16:32:09 +00:00
|
|
|
# - must build -j1, everything must build in order
|
2011-03-28 16:18:38 +00:00
|
|
|
|
|
|
|
pkgname=keyutils
|
2011-12-08 17:54:46 +00:00
|
|
|
pkgver=1.5.5
|
2012-06-28 12:48:42 +00:00
|
|
|
pkgrel=3
|
2011-03-28 16:18:38 +00:00
|
|
|
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)
|
2011-08-06 15:41:29 +00:00
|
|
|
source=(http://people.redhat.com/~dhowells/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
|
2012-04-19 12:33:04 +00:00
|
|
|
md5sums=('d759680b2f23c99af95938f5026f25fb')
|
2011-03-28 16:18:38 +00:00
|
|
|
|
|
|
|
build() {
|
2011-08-06 15:41:29 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
#sed -i "s|/lib64|/lib|g" Makefile
|
2011-03-28 16:32:09 +00:00
|
|
|
make -j1 CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
2011-03-28 16:18:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2011-08-06 15:41:29 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2012-04-19 12:33:04 +00:00
|
|
|
make DESTDIR="${pkgdir}" LIBDIR="/usr/lib" USRLIBDIR="/usr/lib" install
|
2012-06-28 12:48:42 +00:00
|
|
|
# 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
|
2011-03-28 16:18:38 +00:00
|
|
|
}
|