Based on https://github.com/ahills/fortune, cleaned up
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Andrew Hills 7c46720839 Force LDFLAGS to the end 8 years ago
datfiles Initial commit 8 years ago
fortune Force LDFLAGS to the end 8 years ago
strfile Force LDFLAGS to the end 8 years ago
.gitignore Initial commit 8 years ago
LICENSE Initial commit 8 years ago
Makefile Initial commit 8 years ago
Notes Initial commit 8 years ago
README.md Initial commit 8 years ago
README.orig Initial commit 8 years ago

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)