diff --git a/srcpkgs/mdocml/files/makewhatis.cron.daily b/srcpkgs/mdocml/files/makewhatis.cron.daily new file mode 100755 index 00000000000..babbabe0195 --- /dev/null +++ b/srcpkgs/mdocml/files/makewhatis.cron.daily @@ -0,0 +1,3 @@ +#!/bin/sh +/sbin/makewhatis -a -Tutf8 +exit 0 diff --git a/srcpkgs/mdocml/template b/srcpkgs/mdocml/template index 188917c14fc..fd25002f95a 100644 --- a/srcpkgs/mdocml/template +++ b/srcpkgs/mdocml/template @@ -1,7 +1,7 @@ # Template file for 'mdocml' pkgname=mdocml version=1.13.1 -revision=1 +revision=2 makedepends="sqlite-devel" replaces="groff>=0 man-db>=0" short_desc="mdoc macro compiler" @@ -14,7 +14,6 @@ checksum=7a18e728dc8555b1095bf7edbf086e1d6afb5508c06a7baecfd0b0e448648bf9 do_build() { make ${makejobs} } - do_install() { make MANDIR=/usr/share/man BINDIR=/usr/bin \ EXAMPLEDIR=/usr/share/examples/mdocml \ @@ -22,4 +21,6 @@ do_install() { # remove devel stuff. rm -rf ${DESTDIR}/usr/{include,lib} + # Daily cron job to generate man db + vinstall ${FILESDIR}/makewhatis.cron.daily 755 etc/cron.daily makewhatis }