1 # $Id: PKGBUILD 100218 2010-11-21 23:38:22Z stephane $
2 # Maintainer: Nicky726 <Nicky726@gmail.com>
4 pkgname=selinux-findutils
8 pkgdesc="GNU utilities to locate files with Gentoo SELinux patch"
11 groups=('selinux' 'selinux-system-utilities')
12 depends=('glibc' 'sh' 'selinux-usr-libselinux')
13 conflicts=("${_origname}")
14 provides=("${_origname}=${pkgver}-${pkgrel}")
15 url="http://www.gnu.org/software/findutils"
16 source=(ftp://ftp.gnu.org/pub/gnu/findutils/${_origname}-${pkgver}.tar.gz
17 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/${_origname}/files/${_origname}-${pkgver}-selinux.diff)
18 install=findutils.install
19 sha1sums=('e8dd88fa2cc58abffd0bfc1eddab9020231bb024'
20 '96318be5586d324a13805da81907406a95c6514c')
23 cd "${srcdir}/${_origname}-${pkgver}"
26 patch -Np1 -i "${srcdir}/${_origname}-${pkgver}-selinux.diff"
28 # Don't build or install locate because we use mlocate,
29 # which is a secure version of locate.
30 sed -i '/^SUBDIRS/s/locate//' Makefile.in
32 ./configure --prefix=/usr
37 cd "${srcdir}/${_origname}-${pkgver}"
38 make DESTDIR=$pkgdir install