1 # Contributor: Roman Kyrylych <roman@archlinux.org>
2 # Contributor: Tom K <tom@archlinux.org>
8 pkgdesc="The rlocate kernel module"
10 url="http://rlocate.sourceforge.net/"
12 replaces=('rlocate-mod')
14 depends=('rlocate-utils' 'kernel26')
15 install=rlocate.install
16 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
17 rlocate-static-lsm.patch)
18 md5sums=('b834e2b1249fba9138bea29a030de46c'
19 '82677b75ed40bea9a53b874d683a52d1')
22 cd $startdir/src/rlocate-$pkgver
23 sed 's|test $CONFIG_SECURITY_CAPABILITIES -eq 1|test $CONFIG_SECURITY_CAPABILITIES -eq 0|' \
25 patch -Np0 -i ../rlocate-static-lsm.patch
26 ./configure --with-kernel=/lib/modules/$_kernver/build \
27 --with-moduledir=/lib/modules/${_kernver}/misc --with-rlocate-group=locate
30 install -Dm755 rlocate.ko $startdir/pkg/lib/modules/$_kernver/misc/rlocate.ko
32 # tweak the install script for the right kernel version
33 sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
34 $startdir/$pkgname.install || return 1