149645Scael.\" Copyright (c) 1989, 1991 The Regents of the University of California. 240896Ssklower.\" All rights reserved. 340896Ssklower.\" 449645Scael.\" %sccs.include.redist.roff% 540896Ssklower.\" 6*50471Scael.\" @(#)man.conf.5 5.7 (Berkeley) 07/22/91 740896Ssklower.\" 849645Scael.Dd 949645Scael.Dt MAN.CONF 5 10*50471Scael.Os 1149645Scael.Sh NAME 1249645Scael.Nm man.conf 1349645Scael.Nd configuration file for 1449645Scael.Xr man 1 1549645Scael.Sh DESCRIPTION 1649645ScaelThe 1749645Scael.Xr man 1 , 1849645Scael.Xr apropos 1 , 1942402Sbosticand 2049645Scael.Xr whatis 1 2149645Scaelcommands 2242402Sbosticsearch for manual pages or their database files as specified by the 2349645Scael.Nm man.conf 2442402Sbosticfile. 2542402SbosticManual pages are expected to be preformatted (see 2649645Scael.Xr nroff 1 ) 2742402Sbosticand named with a trailing ``.0''. 2849645Scael.Pp 2940896SsklowerThe 3049645Scael.Nm man.conf 3142402Sbosticfile contains two types of lines. 3249645Scael.Pp 3342402SbosticThe first type of line is a ``section'' line, which contains a 3442402Sbosticsection name followed by a directory path. 3542402SbosticLines in this format specify that manual pages for the section 3642402Sbosticmay be found in the directory. 3749645Scael.Pp 3842402SbosticDirectories named with a trailing slash character (``/'') are expected 3942402Sbosticto contain subdirectories (see the keyword ``_subdir'' below) instead 4042402Sbosticof manual pages. 4142402SbosticThese subdirectories are searched instead of the directory. 4249645Scael.Pp 4342402SbosticAll directories (either explicitly specified or named with a trailing 4442402Sbosticslash) may contain subdirectories. 4549645ScaelThe 4649645Scael.Xr man 1 4749645Scaelcommand 4842402Sbosticautomatically searches any subdirectory with the same name as the 4942402Sbosticcurrent machine type before the directory is searched. 5042402SbosticNo specification of these subdirectories is necessary in the 5149645Scael.Nm man.conf 5242402Sbosticfile. 5349645Scael.Pp 5442402SbosticSection names are unrestricted except for the reserved words specified 5542402Sbosticbelow; in general, however, it is best to avoid anything beginning with 5642402Sbostican underscore (``_'') in order to avoid future incompatibilities. 5749645Scael.Pp 5842402SbosticThe section named ``_default'' is the list of directories to be 5942402Sbosticsearched if no section is specified. 6049645Scael.Pp 6142402SbosticThe second type of line is preceded with a ``keyword''. 6242402SbosticThe possible keywords and their meanings are as follows: 6349645Scael.Pp 64*50471Scael.Bl -tag -width "_version" 6549645Scael.It _subdir 6642402SbosticThe list (in search order) of subdirectories which will be searched in 6744418Strentany directory named with a trailing slash (``/'') character. This 6849645Scaellist is also used when a path is specified by the 6949645Scael.Ev MANPATH 7049645Scaelenvironment 7149645Scaelvariable or the 7249645Scael.Fl M 7349645Scaeloption. 7449645Scael.It _version 7542402SbosticThe version of the configuration file. 7649645Scael.It _whatdb 7742402SbosticThe full pathname (not just a directory path) for a database to be used 7842402Sbosticby the 7949645Scael.Xr apropos 1 8042402Sbosticand 8149645Scael.Xr whatis 1 8242402Sbosticcommands. 8349645Scael.El 8449645Scael.Pp 8542499SbosticMultiple specifications for all types of lines (except for ``_version'') 8642499Sbosticare cumulative and the entries are used in the order listed in the file; 8742499Sbosticmultiple entries may be listed per line, as well. 8849645Scael.Pp 8942402SbosticEmpty lines or lines whose first non-whitespace character is a hash 9042402Sbosticmark (``#'') are ignored. 9149645Scael.Sh EXAMPLES 9242402SbosticGiven the following 9349645Scael.Nm man.conf 9449645Scaelfile: 9549645Scael.Bd -literal -offset indent 9649645Scael_version BSD.1 9742402Sbostic_subdir cat1 cat2 cat3 9849645Scael_default /usr/share/man/ 9942402Sbosticsect3 /usr/share/man/cat3 10049645Scael.Ed 10149645Scael.Pp 10242402SbosticThe default 10349645Scael.Xr mktemp 3 10449645Scaelmanual page should be stored in 10549645Scael.Dq Pa /usr/share/man/cat3/mktemp.0 . 10649645ScaelAny 10749645Scael.Tn VAX 10849645Scaelarchitecture specific version of it should be stored in 10949645Scael.Dq Pa cat3/vax/mktemp.0 . 11049645Scael.Pp 11149645ScaelThe command 11249645Scael.Dq Li man mktemp 11349645Scaelwould search the subdirectories 11449645Scael.Dq Pa cat1 11549645Scael.Dq Pa cat2 , 11649645Scaeland 11749645Scael.Dq Pa cat3 , 11849645Scaelin 11949645Scael.Dq Pa /usr/share/man , 12049645Scaelin that order, for 12149645Scael.Dq Pa mktemp.0''. 12242402SbosticIf a subdirectory with the same name as the current machine type 12342402Sbosticexisted in any of them, it would be searched as well. 12449645Scael.Pp 12549645ScaelThe command 12649645Scael.Dq Li man sect3 mktemp 12749645Scaelwould only search 12849645Scael.Dq Li /usr/share/man/cat3 12942402Sbosticand any possible per machine subdirectory. 13049645Scael.Sh FILES 13149645Scael.Bl -tag -width /etc/man.conf -compact 13249645Scael.It Pa /etc/man.conf 13349645ScaelStandard manual directory search path. 13449645Scael.El 13549645Scael.Sh SEE ALSO 13649645Scael.Xr apropos 1 , 13749645Scael.Xr machine 1 , 13849645Scael.Xr man 1 , 13949645Scael.Xr whatis 1 , 14049645Scael.Xr whereis 1 14149645Scael.Sh HISTORY 14249645ScaelThe 14349645Scael.Nm 144*50471Scaelfile format is 14549645Scael.Ud . 146