findutils: add a daily cron job, bumprev.

--HG--
extra : convert_revision : 6de3633eb9595bf310c2d4b26d756f563b8df503
This commit is contained in:
Juan RP 2009-03-28 18:49:03 +01:00
parent 5c1380bf6f
commit e602e6662d
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/sh
# Update the "locate" database
if [ -x /usr/bin/updatedb ]; then
if [ -f /etc/updatedb.conf ]; then
/usr/bin/updatedb
else
/usr/bin/updatedb -f proc
fi
fi

View File

@ -1,6 +1,7 @@
# Template file for 'findutils'
pkgname=findutils
version=4.4.0
revision=1
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--localstatedir=/var/lib/locate"
@ -19,4 +20,7 @@ Add_dependency run glibc
post_install()
{
sed -i -e "s|$XBPS_MASTERDIR||g" ${DESTDIR}/usr/bin/updatedb
# Insdtall the cron daily job.
install -D -m755 ${FILESDIR}/updatedb.cron-daily \
${DESTDIR}/etc/cron.daily/updatedb
}