From 7b8c26b05adcf7a42bf7fcb5c5c2426a9794e5e3 Mon Sep 17 00:00:00 2001 From: Juan RP <xtraeme@gmail.com> Date: Mon, 22 Sep 2014 14:30:59 +0200 Subject: [PATCH] mdocml: add daily cron job to run makewhatis(8). --- srcpkgs/mdocml/files/makewhatis.cron.daily | 3 +++ srcpkgs/mdocml/template | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 srcpkgs/mdocml/files/makewhatis.cron.daily diff --git a/srcpkgs/mdocml/files/makewhatis.cron.daily b/srcpkgs/mdocml/files/makewhatis.cron.daily new file mode 100755 index 0000000000..babbabe019 --- /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 188917c14f..fd25002f95 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 }