------------------------------------------------------------------------------
Notes for the Linux port of BSD fortune(6)
------------------------------------------------------------------------------

------------------------------------------------------------------------------
1	What is fortune
------------------------------------------------------------------------------

Fortune is a program to print a random quip an the screen. Traditionally, it
has been added to the .logout file to serve as "message-of-the-day".

It uses a number of data files, indexed with the strfile program, and by
default searches the "fortune" data file. Since strfile is included in this
package, you can create your own databases of quotations.

It also makes the difference between normal and "objectionable" fortunes,
stored in Rot-13 (also called Caesar) code (*), so as not to upset the
politically-correct. The BSD distribution does not install this file
(fortune-o) by default, but this one does. If you are easily offended, please
replace this file with a dummy one. See the strfile man page for more
details.

(*) Rot-13 is a code when all letters are rotated 13 places in the alphabet.
You can convert a file "foo" to Rot-13 by typing:
	tr "[a-m][A-M][n-z][N-Z]" "[n-z][N-Z][a-m][A-M]" < foo > foo.rot13


The original author is Ken Arnold.

------------------------------------------------------------------------------
2	Installation
------------------------------------------------------------------------------

Just edit the paths and compiler options in the Makefile, and do "make
install".

------------------------------------------------------------------------------
3	Modifications to the original
------------------------------------------------------------------------------

This package is a rather straight port of the original BSD program.
The modifications to the original are:

- <machine/endian.h> changed to <endian.h>
- filenames modified to take into account the 14-char limit in Minix
  filesystem names
- Makefiles are completely new
- the default directory for the data files is now/usr/local/lib/fortune,
  and can be set in the top-level Makefile. Note that if you change this,
  you will also have to edit the fortune.6 man page.
- I have added the data file "cookie" from Karl Lehenbauer's postings to
  alt.sources, so you can type "fortune cookie"

------------------------------------------------------------------------------
4	Bug reports, etc...
------------------------------------------------------------------------------

Please send bug-reports to me (majid@inf.enst.fr), not to the original
author.

Fazal Majid,
Chambre 213,
212 rue de Tolbiac,
75013 Paris, France

------------------------------------------------------------------------------
5	Legal information
------------------------------------------------------------------------------

This program falls under the BSD copyright:


Copyright (c) 1991 The Regents of the University of California.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
   must display the following acknowledgement:
     This product includes software developed by the University of
     California, Berkeley and its contributors.
4. Neither the name of the University nor the names of its contributors
   may be used to endorse or promote products derived from this software
   without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.


