[BACK]Return to man.cgi.7 CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/man.cgi.7 between version 1.3 and 1.5

version 1.3, 2011/12/04 22:52:50 version 1.5, 2011/12/10 23:31:06
Line 12  The
Line 12  The
 script queries and displays manual pages.  script queries and displays manual pages.
 It interfaces with  It interfaces with
 .Xr mandocdb 8  .Xr mandocdb 8
 databases for query and with  databases cached with
 .Xr mandoc 3  
 for display.  
 It operates over a cache of manuals generated by  
 .Xr catman 8 .  .Xr catman 8 .
 .Pp  .Pp
 To use  To use
 .Nm ,  .Nm ,
 first create a manual cache in  create a manual cache in
 .Xr catman 8 .  .Xr catman 8 .
 If your web-server is running in a jail, the cache directory must be  Assign this directory to the environment variable
 within the jail.  .Ev CACHE_DIR ,
 Set the environment variable  defaulting to
 .Ev CACHE_DIR  
 to this directory, which defaults to  
 .Pa /cache/man.cgi .  .Pa /cache/man.cgi .
 If you're running in a jailed web-server, make sure the  Copy the
 .Pa /tmp  .Pa man.cgi
 directory exists and is writable.  script into your CGI directory (see
   .Sx FILES
   for other relevant files).
   .Pp
   Multiple
   .Xr catman 8
   trees may be managed by
   .Nm :
   directories under
   .Ev CACHE_DIR
   containing
   .Pa etc/catman.conf
   are identified as
   .Qq manroots .
   The path of a manroot under
   .Ev CACHE_DIR
   is converted to a name by replacing path separators with spaces.
   .Pp
   Thus, if
   .Ev CACHE_DIR
   is the default
   .Pa /cache/man.cgi ,
   the web-server is jailed to
   .Pa /var/www ,
   and cache subdirectories
   .Pa ./foo/1
   and
   .Pa ./bar/2
   contain
   .Pa etc/catman.conf ,
   .Nm
   will assign these to manroots
   .Qq foo 1
   and
   .Qq bar 2 ,
   respectively.
   These names will appear as choices when searching for manuals.
   .Pp
   If
   .Nm
   finds only one manroot, or none, then the selection box is omitted.
   If no manroot is specified during search, the first manroot is used by
   default.
 .Sh ENVIRONMENT  .Sh ENVIRONMENT
 .Bl -tag -width Ds  .Bl -tag -width Ds
 .It Er CACHE_DIR  .It Er CACHE_DIR
Line 39  The absolute path of the
Line 76  The absolute path of the
 cache directory.  cache directory.
 .El  .El
 .Sh FILES  .Sh FILES
 The configuration file  .Bl -tag -width Ds
 .Pa etc/catman.conf  .It Pa etc/catman.conf
 must exist within the cache directory.  Built by
 This is built by  .Xr catman 8
 .Xr catman 8 .  and must exist at least once under the configuration directory root.
   .It Pa man.css
   Must be visible in the server document root, used for styling source
   manual page output.
   .It Pa catman.css
   Must be visible in the server document root, used for styling
   pre-formatted manual page output.
   .It Pa man.cgi.css
   Must be visible in the server document root, used for general styling of
   .Nm
   search and error pages.
   .El
   .Sh COMPATIBILITY
   The
   .Nm
   script is call-compatible with queries from the traditional
   .Pa man.cgi
   script by Wolfram Schneider.
   However, the results may not be quite the same.
 .Sh SEE ALSO  .Sh SEE ALSO
 .Xr mandoc 3 ,  
 .Xr catman 8 ,  .Xr catman 8 ,
 .Xr mandocdb 8  .Xr mandocdb 8
 .Sh AUTHORS  .Sh AUTHORS
Line 54  The
Line 108  The
 utility was written by  utility was written by
 .An Kristaps Dzonsons ,  .An Kristaps Dzonsons ,
 .Mt kristaps@bsd.lv .  .Mt kristaps@bsd.lv .
   .Sh CAVEATS
   If you're running in a jailed web-server, make sure the
   .Pa /tmp
   directory exists and is writable.
   The databases may need this for scratch space.

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

CVSweb