[Slackbuilds-users] RFC: Proposed mandb additions to doinst/douninst template

B. Watson urchlay at slackware.uk
Sat Aug 24 06:32:57 UTC 2024


Thinking of adding this to the doinst template:

### in doinst.sh:
# DESCRIPTION: Updates the man database (for "man -k").
# Use one "man -f" command for each man page in the package.
if [ -x usr/bin/mandb ]; then
   usr/bin/mandb -f usr/man/man1/program.1.gz
fi

### in douninst.sh:
# DESCRIPTION: Updates the man database (for "man -k").
# Only use one "mandb" command, and only use it if your package actually
# includes man pages.
if [ -x usr/bin/mandb ]; then
   usr/bin/mandb
fi

The use of "usr/bin/mandb" (rather than "/usr/bin/mandb") is
deliberate: we don't want to add man pages to the system's man
database, if the package is being installed with -root (as sbopkglint
does, for example), and there's no mandb command in that dir.

Opinions? Floor is open for discussion.


More information about the SlackBuilds-users mailing list