man-db: add a daily cron job to rebuild manpages cache.
--HG-- extra : convert_revision : 87e1ba47ca266f9a0510d38f94927815bf33da79
This commit is contained in:
parent
4789159633
commit
94c9995cb7
17
templates/man-db/files/man-db.cron-daily
Executable file
17
templates/man-db/files/man-db.cron-daily
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# taken from Debian
|
||||
# man-db cron daily
|
||||
set -e
|
||||
|
||||
if ! [ -d /var/cache/man ]; then
|
||||
# Recover from deletion, per FHS.
|
||||
mkdir -p /var/cache/man
|
||||
chmod 755 /var/cache/man
|
||||
fi
|
||||
|
||||
# regenerate man database
|
||||
/usr/bin/mandb --quiet
|
||||
|
||||
exit 0
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Template file for 'man-db'
|
||||
pkgname=man-db
|
||||
version=2.5.4
|
||||
revision=1
|
||||
distfiles="${NONGNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
||||
build_style=gnu_configure
|
||||
configure_args="--with-db=gdbm --with-pager=less --with-gzip=/usr/bin/gzip
|
||||
@ -24,3 +25,10 @@ Add_dependency full gdbm
|
||||
Add_dependency full groff
|
||||
Add_dependency full grep
|
||||
Add_dependency full lzma-utils
|
||||
|
||||
post_install()
|
||||
{
|
||||
# Install the cron daily job.
|
||||
install -D -m755 ${FILESDIR}/mann-db.cron-daily \
|
||||
${DESTDIR}/etc/cron.daily/man-db
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user