summaryrefslogtreecommitdiff
path: root/testing/keyutils/PKGBUILD
blob: c6ab79a548bc590b1c8103aec04854434f9ac293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 162210 2012-06-23 16:28:17Z tpowa $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
pkgname=keyutils
pkgver=1.5.5
pkgrel=3
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}" 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
}