1*49645Scael.\" Copyright (c) 1989, 1991 The Regents of the University of California. 240896Ssklower.\" All rights reserved. 340896Ssklower.\" 4*49645Scael.\" %sccs.include.redist.roff% 540896Ssklower.\" 6*49645Scael.\" @(#)man.conf.5 5.6 (Berkeley) 05/10/91 740896Ssklower.\" 8*49645Scael.Dd 9*49645Scael.Dt MAN.CONF 5 10*49645Scael.Sh NAME 11*49645Scael.Nm man.conf 12*49645Scael.Nd configuration file for 13*49645Scael.Xr man 1 14*49645Scael.Sh DESCRIPTION 15*49645ScaelThe 16*49645Scael.Xr man 1 , 17*49645Scael.Xr apropos 1 , 1842402Sbosticand 19*49645Scael.Xr whatis 1 20*49645Scaelcommands 2142402Sbosticsearch for manual pages or their database files as specified by the 22*49645Scael.Nm man.conf 2342402Sbosticfile. 2442402SbosticManual pages are expected to be preformatted (see 25*49645Scael.Xr nroff 1 ) 2642402Sbosticand named with a trailing ``.0''. 27*49645Scael.Pp 2840896SsklowerThe 29*49645Scael.Nm man.conf 3042402Sbosticfile contains two types of lines. 31*49645Scael.Pp 3242402SbosticThe first type of line is a ``section'' line, which contains a 3342402Sbosticsection name followed by a directory path. 3442402SbosticLines in this format specify that manual pages for the section 3542402Sbosticmay be found in the directory. 36*49645Scael.Pp 3742402SbosticDirectories named with a trailing slash character (``/'') are expected 3842402Sbosticto contain subdirectories (see the keyword ``_subdir'' below) instead 3942402Sbosticof manual pages. 4042402SbosticThese subdirectories are searched instead of the directory. 41*49645Scael.Pp 4242402SbosticAll directories (either explicitly specified or named with a trailing 4342402Sbosticslash) may contain subdirectories. 44*49645ScaelThe 45*49645Scael.Xr man 1 46*49645Scaelcommand 4742402Sbosticautomatically searches any subdirectory with the same name as the 4842402Sbosticcurrent machine type before the directory is searched. 4942402SbosticNo specification of these subdirectories is necessary in the 50*49645Scael.Nm man.conf 5142402Sbosticfile. 52*49645Scael.Pp 5342402SbosticSection names are unrestricted except for the reserved words specified 5442402Sbosticbelow; in general, however, it is best to avoid anything beginning with 5542402Sbostican underscore (``_'') in order to avoid future incompatibilities. 56*49645Scael.Pp 5742402SbosticThe section named ``_default'' is the list of directories to be 5842402Sbosticsearched if no section is specified. 59*49645Scael.Pp 6042402SbosticThe second type of line is preceded with a ``keyword''. 6142402SbosticThe possible keywords and their meanings are as follows: 62*49645Scael.Pp 63*49645Scael.Bl -tag -width indent 64*49645Scael.It _subdir 6542402SbosticThe list (in search order) of subdirectories which will be searched in 6644418Strentany directory named with a trailing slash (``/'') character. This 67*49645Scaellist is also used when a path is specified by the 68*49645Scael.Ev MANPATH 69*49645Scaelenvironment 70*49645Scaelvariable or the 71*49645Scael.Fl M 72*49645Scaeloption. 73*49645Scael.It _version 7442402SbosticThe version of the configuration file. 75*49645Scael.It _whatdb 7642402SbosticThe full pathname (not just a directory path) for a database to be used 7742402Sbosticby the 78*49645Scael.Xr apropos 1 7942402Sbosticand 80*49645Scael.Xr whatis 1 8142402Sbosticcommands. 82*49645Scael.El 83*49645Scael.Pp 8442499SbosticMultiple specifications for all types of lines (except for ``_version'') 8542499Sbosticare cumulative and the entries are used in the order listed in the file; 8642499Sbosticmultiple entries may be listed per line, as well. 87*49645Scael.Pp 8842402SbosticEmpty lines or lines whose first non-whitespace character is a hash 8942402Sbosticmark (``#'') are ignored. 90*49645Scael.Sh EXAMPLES 9142402SbosticGiven the following 92*49645Scael.Nm man.conf 93*49645Scaelfile: 94*49645Scael.Bd -literal -offset indent 95*49645Scael_version BSD.1 9642402Sbostic_subdir cat1 cat2 cat3 97*49645Scael_default /usr/share/man/ 9842402Sbosticsect3 /usr/share/man/cat3 99*49645Scael.Ed 100*49645Scael.Pp 10142402SbosticThe default 102*49645Scael.Xr mktemp 3 103*49645Scaelmanual page should be stored in 104*49645Scael.Dq Pa /usr/share/man/cat3/mktemp.0 . 105*49645ScaelAny 106*49645Scael.Tn VAX 107*49645Scaelarchitecture specific version of it should be stored in 108*49645Scael.Dq Pa cat3/vax/mktemp.0 . 109*49645Scael.Pp 110*49645ScaelThe command 111*49645Scael.Dq Li man mktemp 112*49645Scaelwould search the subdirectories 113*49645Scael.Dq Pa cat1 114*49645Scael.Dq Pa cat2 , 115*49645Scaeland 116*49645Scael.Dq Pa cat3 , 117*49645Scaelin 118*49645Scael.Dq Pa /usr/share/man , 119*49645Scaelin that order, for 120*49645Scael.Dq Pa mktemp.0''. 12142402SbosticIf a subdirectory with the same name as the current machine type 12242402Sbosticexisted in any of them, it would be searched as well. 123*49645Scael.Pp 124*49645ScaelThe command 125*49645Scael.Dq Li man sect3 mktemp 126*49645Scaelwould only search 127*49645Scael.Dq Li /usr/share/man/cat3 12842402Sbosticand any possible per machine subdirectory. 129*49645Scael.Sh FILES 130*49645Scael.Bl -tag -width /etc/man.conf -compact 131*49645Scael.It Pa /etc/man.conf 132*49645ScaelStandard manual directory search path. 133*49645Scael.El 134*49645Scael.Sh SEE ALSO 135*49645Scael.Xr apropos 1 , 136*49645Scael.Xr machine 1 , 137*49645Scael.Xr man 1 , 138*49645Scael.Xr whatis 1 , 139*49645Scael.Xr whereis 1 140*49645Scael.Sh HISTORY 141*49645ScaelThe 142*49645Scael.Nm 143*49645Scaelfile format 144*49645Scael.Ud . 145