Manpages install location
A message that is not in the archive (sent off-list or not yet received): [email protected]
+ ceph-devel
Quoted 6 lines · Willem Jan Withagen
Hi Kefu,
Do you have a hint on where to modify the install location for the manpages...
They now end in
/usr/local/man/man8...
doc/man/8/CMakeLists.txt
```
install(FILES ${sphinx_output_dir}/${cmd}.8
DESTINATION ${CEPH_MAN_DIR}/man8)
```you need to conditionalize the DESTINATION arg.
Quoted 1 line
And FreeBSD has the packages man pages in
/usr/local/man/
i think the manpages of section#8 installed by ports should go to /usr/local/man/man8. see
https://www.freebsd.org/cgi/man.cgi?query=hier&apropos=0&sektion=0&manpath=FreeBSD+12-current&arch=default&format=html.
for example, wget's manpage is located at /usr/local/man/man1/wget.1.gz
Quoted 3 lines
2nd thing is that I prefer to gzip them, but that is not super essential. But most of the others are compressed.
you might need to add an add_custom_command() and conditionalize the install() function to the loop of "foreach(man ${man_srcs})" to install the gzipped man pages for FreeBSD. please be sure to find_program(GZIP gzip) before using "gzip".
Quoted 3 lines
Thanx,
--WjW
Signature · 2 lines
Regards Kefu Chai
Quoted 9 lines · kefu chai
+ ceph-devel
Quoted 6 lines · Willem Jan Withagen
Hi Kefu,
Do you have a hint on where to modify the install location for the manpages...
They now end in
/usr/local/man/man8...
I meant to write /usr/local/share/man/man8. Which is an odd mix of what goes under Linux and FreeBSD packages.
Quoted 7 lines
doc/man/8/CMakeLists.txt``` install(FILES ${sphinx_output_dir}/${cmd}.8 DESTINATION ${CEPH_MAN_DIR}/man8) ```
Ah, I looked there, but obviously not deep enough in the tree.
Quoted 9 lines
you need to conditionalize the DESTINATION arg.
Quoted 1 line
And FreeBSD has the packages man pages in
/usr/local/man/i think the manpages of section#8 installed by ports should go to
/usr/local/man/man8. see
https://www.freebsd.org/cgi/man.cgi?query=hier&apropos=0&sektion=0&manpath=FreeBSD+12-current&arch=default&format=html.
for example, wget's manpage is located at/usr/local/man/man1/wget.1.gz
Yup, that is where I copy them right now in the ports Makefile.
Quoted 9 lines
Quoted 3 lines
2nd thing is that I prefer to gzip them, but that is not super essential. But most of the others are compressed.
you might need to add an
add_custom_command()and conditionalize theinstall()function to the loop of "foreach(man ${man_srcs})" to install the gzipped man pages for FreeBSD. please be sure tofind_program(GZIP gzip)before using "gzip".
I'll have a shot at it.
Thanx,
--WjW