games/fortune - The NetBSD Packages Collection

Fortune cookie generator

This version of fortune is a modification of the NetBSD fortune, as
tweaked by Florian La Roche (see below, and many thanks to Florian for
starting the update), and then massively hacked on by Amy Lewis.

I (Amy) hacked on this because it was broken; the BSD source itself is
broken (I looked at it).  Specifically, if you are using an old version
of fortune, then it accesses *only* the two files "fortunes" and
"fortunes-o", even though 'fortune -[ao]f' will tell you differently.
That was my original reason to start working with the code.

Bug fixes: fortune now reads the same file list that it reports with -f.
strfile now really sorts and randomizes, instead of just setting the
'sorted' and 'randomized' flags.  strfile does not lose the pointer to a
fortune that follows a null fortune.

Enhancements: fortune -f now prints percentages, whether specified on the
command line or not.  fortune -m now prints filenames to stderr; the
fortunes printed to stdout can be redirected into a file which is valid
strfile format.  fortune -l|s can be modified with -n _number_ to specify
the number of characters in a short fortune (default 160, as before).
The means of distinguishing between offensive and inoffensive fortunes is
changed: offensive fortunes are put in a separate subdirectory.  The
contents of the fortunes databases have been extensively reviewed, and
broken into smaller, more manageable [hopefully] files.

Build dependencies

pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

games/fortune-strfile

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64fortune-19970829.tgz
NetBSD 10.0aarch64fortune-19970829.tgz
NetBSD 10.0aarch64ebfortune-19970829.tgz
NetBSD 10.0aarch64ebfortune-19970829.tgz
NetBSD 10.0alphafortune-19970829.tgz
NetBSD 10.0alphafortune-19970829.tgz
NetBSD 10.0earmv6hffortune-19970829.tgz
NetBSD 10.0earmv6hffortune-19970829.tgz
NetBSD 10.0earmv6hffortune-19970829.tgz
NetBSD 10.0earmv7hffortune-19970829.tgz
NetBSD 10.0earmv7hffortune-19970829.tgz
NetBSD 10.0earmv7hffortune-19970829.tgz
NetBSD 10.0i386fortune-19970829.tgz
NetBSD 10.0i386fortune-19970829.tgz
NetBSD 10.0m68kfortune-19970829.tgz
NetBSD 10.0powerpcfortune-19970829.tgz
NetBSD 10.0powerpcfortune-19970829.tgz
NetBSD 10.0powerpcfortune-19970829.tgz
NetBSD 10.0sh3elfortune-19970829.tgz
NetBSD 10.0sh3elfortune-19970829.tgz
NetBSD 10.0sparc64fortune-19970829.tgz
NetBSD 10.0sparc64fortune-19970829.tgz
NetBSD 10.0sparcfortune-19970829.tgz
NetBSD 10.0sparcfortune-19970829.tgz
NetBSD 10.0vaxfortune-19970829.tgz
NetBSD 10.0vaxfortune-19970829.tgz
NetBSD 10.0vaxfortune-19970829.tgz
NetBSD 10.0x86_64fortune-19970829.tgz
NetBSD 10.0x86_64fortune-19970829.tgz
NetBSD 9.0aarch64fortune-19970829.tgz
NetBSD 9.0aarch64fortune-19970829.tgz
NetBSD 9.0alphafortune-19970829.tgz
NetBSD 9.0alphafortune-19970829.tgz
NetBSD 9.0earmv6hffortune-19970829.tgz
NetBSD 9.0earmv6hffortune-19970829.tgz
NetBSD 9.0earmv6hffortune-19970829.tgz
NetBSD 9.0earmv7hffortune-19970829.tgz
NetBSD 9.0earmv7hffortune-19970829.tgz
NetBSD 9.0earmv7hffortune-19970829.tgz
NetBSD 9.0i386fortune-19970829.tgz
NetBSD 9.0i386fortune-19970829.tgz
NetBSD 9.0powerpcfortune-19970829.tgz
NetBSD 9.0powerpcfortune-19970829.tgz
NetBSD 9.0powerpcfortune-19970829.tgz
NetBSD 9.0sparc64fortune-19970829.tgz
NetBSD 9.0sparc64fortune-19970829.tgz
NetBSD 9.0x86_64fortune-19970829.tgz
NetBSD 9.0x86_64fortune-19970829.tgz
NetBSD 9.3x86_64fortune-19970829.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

offensive

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.