Created attachment 144563 [details] fortune-mod-epictetus.shar fortune-mod-epictetus is a compilation of quotes from ancient philosopher Epictetus. They come from "A Selection from the Discourses of Epictetus with the Encheiridion" translated by George Long. WWW: http://github.com/akosela/fortune-mod-epictetus
You have hardcoded paths into /usr/share. Everything needs to be in /usr/local. Have a read through hier(7) and look at what other fortune-mod-* ports do (ex. /usr/ports/misc/fortune-mod-bofh).
I did it on purpose. It seems the default behavior of fortune(6) is not as intended when dealing with additional fortune packages from ports. sun # pkg info -s fortune-mod-bofh fortune-mod-bofh-2.0_3 32.1KiB sun # fortune -f all ___% /usr/share/games/fortune ___% freebsd-tips ___% murphy ___% fortunes ___% startrek ___% gerrold.limerick ___% zippy ___% limerick Without first exporting FORTUNE_PATH all those additional fortune files will not be searched when using 'all' option and I don't think that explicitly exporting this variable is the cleanest thing to do here. Your thoughts? Maybe we should patch fortune(6) so that it searches through /usr/local/share/games/fortune also by default?
Adam, For the time being to comply with the other fortune-mod-* ports, just add ${PREFIX} to Makefile.
A commit references this bug: Author: adamw Date: Fri Jul 11 14:25:40 UTC 2014 New revision: 361539 URL: http://svnweb.freebsd.org/changeset/ports/361539 Log: Add misc/fortune-mod-epictetus fortune-mod-epictetus is a compilation of quotes from ancient philosopher Epictetus. They come from "A Selection from the Discourses of Epictetus with the Encheiridion" translated by George Long. WWW: http://github.com/akosela/fortune-mod-epictetus PR: 191793 Submitted by: Andy Kosela Changes: head/misc/Makefile head/misc/fortune-mod-epictetus/ head/misc/fortune-mod-epictetus/Makefile head/misc/fortune-mod-epictetus/distinfo head/misc/fortune-mod-epictetus/pkg-descr
Committed with small modification (USES=tar:bzip2 instead of USE_BZIP2, which is deprecated). You are completely right, of course, that the problem here is with fortune(6), not the port. I would heartily support you submitting a patch for fortune to make it also look for fortune files in /usr/local.
(In reply to Adam Weinberger from comment #5) > Committed with small modification (USES=tar:bzip2 instead of USE_BZIP2, > which is deprecated). > > You are completely right, of course, that the problem here is with > fortune(6), not the port. I would heartily support you submitting a patch > for fortune to make it also look for fortune files in /usr/local. #191800 submitted with a patch.