And ideally, anything that installs (or removes) man pages from a man page directory should, after installing (or removing) the pages, run makewhatis, e.g.
/usr/libexec/makewhatis /opt/local/'share/man to regenerate the index for that man page hierarchy. That would (assuming /opt/local/share/man is in MANPATH or in /etc/manpaths or an /etc/manpaths.d file) allow "whatis" (or man -k) to find the pages. It's not perfect; some man pages may not play nice with it. But if you don't run makewhatis, it definitely won't work. > On Jun 21, 2017, at 22:48, Dave Horsfall <d...@horsfall.org> wrote: > > On Wed, 21 Jun 2017, Ryan Schmidt wrote: > >> Other developers may have other answers as to why MacPorts doesn't do >> this, but for myself, the answer is that I'm not aware of makewhatis or >> what it does. > > It's a basic Unix command; it rebuilds the manpage indices. Got to your > favourite shell window and type "whatis man", for example. > > -- > Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer." >
signature.asc
Description: Message signed with OpenPGP