echoit \
./configure \
- -bindir="${EPREFIX}"/usr/bin \
- -confdir="${EPREFIX}"/etc \
+ -prefix="$EPREFIX/usr" \
+ -confdir="$EPREFIX/etc" \
+sgid +fhs \
+lang ${mylang} \
|| die "configure failed"
+
+ cat >makewhatis.cron <<EOF
+#!/bin/sh
+
+exec nice $EPREFIX/usr/sbin/makewhatis -u
+EOF
}
src_install() {
# makewhatis only adds man-pages from the last 24hrs
exeinto /etc/cron.daily
- newexe "${FILESDIR}"/makewhatis.cron makewhatis
+ newexe makewhatis.cron makewhatis
keepdir /var/cache/man
[[ -z ${EPREFIX} ]] && diropts -m0775 -g man
echo
- local f files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
- for f in ${files} ; do
- [[ ${f} == */etc/cron.daily/makewhatis ]] && continue
- [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \
- && rm -f "${f}"
- done
- files=$(ls "${ROOT}"etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
- if [[ ${files/$'\n'} != ${files} ]] ; then
- ewarn "You have multiple makewhatis cron files installed."
- ewarn "You might want to delete all but one of these:"
- ewarn ${files}
- fi
-
if has_version app-doc/heirloom-doctools; then
ewarn "Please note that the /etc/man.conf file installed will not"
ewarn "work with heirloom's nroff by default (yet)."