Based on https://github.com/ahills/fortune, cleaned up
![]() |
||
---|---|---|
datfiles | ||
fortune | ||
strfile | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
Notes | ||
README.md | ||
README.orig |
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 Makefile
s 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)