findutils: add a daily cron job, bumprev.
--HG-- extra : convert_revision : 6de3633eb9595bf310c2d4b26d756f563b8df503
This commit is contained in:
10
templates/findutils/files/updatedb.cron-daily
Executable file
10
templates/findutils/files/updatedb.cron-daily
Executable 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
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
# Template file for 'findutils'
|
# Template file for 'findutils'
|
||||||
pkgname=findutils
|
pkgname=findutils
|
||||||
version=4.4.0
|
version=4.4.0
|
||||||
|
revision=1
|
||||||
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
|
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
configure_args="--localstatedir=/var/lib/locate"
|
configure_args="--localstatedir=/var/lib/locate"
|
||||||
@@ -19,4 +20,7 @@ Add_dependency run glibc
|
|||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
sed -i -e "s|$XBPS_MASTERDIR||g" ${DESTDIR}/usr/bin/updatedb
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user