Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. This directory contains the following.
  2.  
  3. 1. man2html
  4.  
  5. This is a pure manroff -> html converter.
  6. No manpath search etc.
  7.  
  8. Call: man2html [-l | -H host.domain:port] [filename]
  9.  
  10. The contents of FILENAME (or STDIN, in case FILENAME is "-" or absent)
  11. are converted from man-style nroff to html, and printed on STDOUT.
  12.  
  13. With "-l" URLs of the form "lynxcgi:/home/httpd/cgi-bin/..." are generated.
  14. With "-H host" we make URLs of the form "http://host/cgi-bin/...".
  15. The default is "http://localhost/cgi-bin/...".
  16.  
  17. 2. A collection of scripts
  18.  
  19. This part is not installed by "make install" of the global Makefile.
  20. There are security considerations: it is very unlikely that these
  21. scripts (still in alpha) are secure, so for the time being they
  22. should only be used where security is not a major concern.
  23.  
  24. If you are not afraid, or are not running a httpd, do
  25. "make install-scripts" in this directory.
  26. This does three things: install man stuff, install glimpse stuff,
  27. and install user interface stuff.
  28.  
  29. 2A. man stuff
  30.  
  31. This first part (that can be done separately with "make install-man-scripts")
  32. puts various scripts under /home/httpd/cgi-bin and /home/httpd/cgi-aux
  33. in a subdirectory man.
  34. It will create a directory /var/man2html to hold the indices.
  35. (This directory should be writable by the cgi scripts;
  36. probably that means that the owner should be nobody.
  37. Choose a group and add all non-httpd users that should be
  38. able to write this directory to that group.)
  39.  
  40. Structure of the collection of scripts:
  41.         man2html is the main script.
  42.         It uses man.aux when called without arguments.
  43.         It uses manwhatis when asked for an index of manpages+descriptions.
  44.         It uses mansec when asked for a compact index of manpages.
  45.         It uses mansearch when asked for a glimpse search.
  46.           In its turn mansearch uses mansearch.aux when called
  47.           without arguments. It uses mansearchhelp (which uses
  48.           mansearchhelp.aux) when asked for help.
  49.  
  50. 2B. glimpse stuff
  51. The second part (that can be done separately with
  52. "make install-glimpse-stuff") installs .glimpse_filters
  53. in /var/man2html, in order to tell glimpse what decompressors to use.
  54.  
  55. 2C. user interface stuff
  56. The third part (that can be done separately with "make install-hman")
  57. installs a user interface to these scripts in /usr/bin/hman.
  58. Now people can say
  59.     alias man=/usr/bin/hman
  60. and have a man that uses a html browser.
  61. The browser is chosen via environment variables - look at the script.
  62.  
  63. 3. Glimpse.
  64.  
  65. For the glimpse part, I quote Michael Hamilton:
  66. ----------------------------------------------------------------------
  67. To use the Glimpse full text searching, you will need to install
  68. glimpse in /usr/bin.  Redhat rpm users can get glimpse from
  69.  
  70.  ftp://ftp.redhat.com/pub/contrib/i386/glimpse-4.0-6.i386.rpm
  71.  
  72. The glimpse home ftp site is cs.arizona.edu.  N.B. glimpse is not
  73. freely redistributable for commercial use, I'd be very interested in a
  74. more liberal alternative.  Having installed glimpse, you will need to
  75. build a glimpse index in /var/man2html.  This doesn't take too long -
  76. about 3 minutes on my 486DX2/66 16MB machine.  As root do:
  77.  
  78.  /usr/bin/glimpseindex -z -H /var/man2html /usr/man/man* /usr/X11R6/man/man* \
  79.      /usr/local/man/man* /opt/man/man*
  80.  chmod ugo+r /var/man2html/.glimpse*
  81.  
  82. The -z option causes glimpse to apply any filters (for decompression etc)
  83. specified in /var/man2html/.glimpse_filters.
  84.  
  85. This could be set up as a cron job in /etc/crontab, e.g. (the following
  86. must be all on one line):
  87.  
  88.   21 04 * * 1 root /usr/bin/glimpseindex -z -H /var/man2html /usr/man/man*
  89.       /usr/X11R6/man/man* /usr/local/man/man* /opt/man/man* ;
  90.       chmod +r /var/man2html/.glimpse*
  91. --------------------------------------------------------------------------
  92.