rpmbuild - Proper method of installing man pages -
i'm working on software package within org deployment. unlike other packages, includes man pages. per our team's standards, i'd install them /opt/teamsw/doc/man{1,5}
. i'd perform in proper way in order update manual page system's database, etc. how done properly?
i've done research , have found this link @ red hat. however, link makes no mention of using mandb
update /etc/man_db.conf
. not necessary? doesn't seem if install more "standard" locations such /usr/share/man/man{1,2,...}
. however, means breaking our team's policy on install "our stuff." in addition, how file used during package installation? can tell, it's used when new shell started. wouldn't case during installation of package. thus, additional directories absent , having mandb
update database useless. unless, not understand process.
one question have, regarding instructions @ link provided, there advantage specifying script update manpath
env var source package? briefly,
# manpage.sh - brief script add paths manpath export manpath=${manpath}:/opt/teamsw/doc/man1:/opt/teamsw/doc/man5 # abbreviated spec file package source2: %{?scl_prefix}manpage.sh %install install -p -c -m 644 %{source2} $rpm_build_root%{?scl:%_root_sysconfdir}%{!?scl:%_sysconfdir}/profile.d/
if i'm following correctly @ all, script isn't source package @ recommended procedure, red hat, indicates make source. why?
Comments
Post a Comment