mdocml: add daily cron job to run makewhatis(8).
This commit is contained in:
parent
b517d751d5
commit
7b8c26b05a
2 changed files with 6 additions and 2 deletions
srcpkgs/mdocml
3
srcpkgs/mdocml/files/makewhatis.cron.daily
Executable file
3
srcpkgs/mdocml/files/makewhatis.cron.daily
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
/sbin/makewhatis -a -Tutf8
|
||||||
|
exit 0
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'mdocml'
|
# Template file for 'mdocml'
|
||||||
pkgname=mdocml
|
pkgname=mdocml
|
||||||
version=1.13.1
|
version=1.13.1
|
||||||
revision=1
|
revision=2
|
||||||
makedepends="sqlite-devel"
|
makedepends="sqlite-devel"
|
||||||
replaces="groff>=0 man-db>=0"
|
replaces="groff>=0 man-db>=0"
|
||||||
short_desc="mdoc macro compiler"
|
short_desc="mdoc macro compiler"
|
||||||
|
@ -14,7 +14,6 @@ checksum=7a18e728dc8555b1095bf7edbf086e1d6afb5508c06a7baecfd0b0e448648bf9
|
||||||
do_build() {
|
do_build() {
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
make MANDIR=/usr/share/man BINDIR=/usr/bin \
|
make MANDIR=/usr/share/man BINDIR=/usr/bin \
|
||||||
EXAMPLEDIR=/usr/share/examples/mdocml \
|
EXAMPLEDIR=/usr/share/examples/mdocml \
|
||||||
|
@ -22,4 +21,6 @@ do_install() {
|
||||||
|
|
||||||
# remove devel stuff.
|
# remove devel stuff.
|
||||||
rm -rf ${DESTDIR}/usr/{include,lib}
|
rm -rf ${DESTDIR}/usr/{include,lib}
|
||||||
|
# Daily cron job to generate man db
|
||||||
|
vinstall ${FILESDIR}/makewhatis.cron.daily 755 etc/cron.daily makewhatis
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue