Based on https://github.com/ahills/fortune, cleaned up
 
 
 
Go to file
Andrew Hills 7c46720839 Force LDFLAGS to the end 2015-06-04 15:40:50 -04:00
datfiles Initial commit 2015-06-04 15:10:29 -04:00
fortune Force LDFLAGS to the end 2015-06-04 15:40:50 -04:00
strfile Force LDFLAGS to the end 2015-06-04 15:40:50 -04:00
.gitignore Initial commit 2015-06-04 15:10:29 -04:00
LICENSE Initial commit 2015-06-04 15:10:29 -04:00
Makefile Initial commit 2015-06-04 15:10:29 -04:00
Notes Initial commit 2015-06-04 15:10:29 -04:00
README.md Initial commit 2015-06-04 15:10:29 -04:00
README.orig Initial commit 2015-06-04 15:10:29 -04:00

README.md

fortune

This code was torn directly out of OpenBSD 5.7's source package and modified to build on Alpine Linux against libbsd 0.7.0. Please see LICENSE for details.

Differences

The two C source files, strfile.c and fortune.c, have had #include <sys/types.h> added near the top of the file. Additionally, all of the Makefiles have been replaced to work with GNU Make.

Notably, there is no option to disable "offensive" fortunes. Just erase the fortune-o, fortune2-o, and limerick files from the datfiles directory and remove the references from datfiles/Makefile.

Known Issues

  • strfile fails with a segmentation fault in random mode (the -r flag)