I usually have a situation that I have just installed a port and I immediately want to find an appropriate manual page for it using apropos(1), but it can't locate it. The reason why is that apropos(1) uses the database generated by makewhatis(8) and since it has not been re-generated after the installation of a port, it doesn't contain the entry for these new manual pages.
There's a periodic(8) job /etc/periodic/weekly/320.whatis, which updates this database using a wrapper-script /usr/libexec/makewhatis.local on a weekly basis. It's just once a week, so every time I encounter a situation like that, I end up running /usr/libexec/makewhatis.local manually. It works, but it's somewhat cumbersome. It's just seems to me that updating this database once a week (which is a system default) doesn't make much sense, since you almost always would need a manual page for a program in less than a week after you installed it.
I want to know, it is possible to maybe make this command run every time the port or a pkg(8) is installed?
Or, if not, maybe some of you can share some tips on how to manage makewhatis(8) in a more nice manner?
There's a periodic(8) job /etc/periodic/weekly/320.whatis, which updates this database using a wrapper-script /usr/libexec/makewhatis.local on a weekly basis. It's just once a week, so every time I encounter a situation like that, I end up running /usr/libexec/makewhatis.local manually. It works, but it's somewhat cumbersome. It's just seems to me that updating this database once a week (which is a system default) doesn't make much sense, since you almost always would need a manual page for a program in less than a week after you installed it.
I want to know, it is possible to maybe make this command run every time the port or a pkg(8) is installed?
Or, if not, maybe some of you can share some tips on how to manage makewhatis(8) in a more nice manner?