summaryrefslogtreecommitdiff
path: root/misc/fortune-mod-bible
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-12-03 03:34:55 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-12-03 03:34:55 +0000
commit76fa8e157c6e954c2e32a021e9f82c201de650e1 (patch)
tree4f495d8d0c479a01ed113e3ee1c77bbe8e79c5ba /misc/fortune-mod-bible
parentWrong dir in pkg-message (diff)
fortune's .dat format change breaks precompiled bible.dat for misc/fortune-mod-bible
On Thu Feb 17 18:06:37 2005 UTC, ru submitted a change (1.27) to fortune.c that implements a change to read a new on-disk format of the .dat files. (http://www.freebsd.org/cgi/cvsweb.cgi/src/games/fortune/fortune/fortune.c) This change renders old .dat files incompatible with version of fortune compiled after 2005-02-17. Therefore, the supplied bible.dat file that is supplied with the port no longer works. PR: ports/89811 Submitted by: Doug Poland <doug@polands.org>, Ion-Mihai Tetcu <itetcu@people.tecnik93.com>
Diffstat (limited to 'misc/fortune-mod-bible')
-rw-r--r--misc/fortune-mod-bible/Makefile4
-rw-r--r--misc/fortune-mod-bible/files/pkg-message.in2
2 files changed, 4 insertions, 2 deletions
diff --git a/misc/fortune-mod-bible/Makefile b/misc/fortune-mod-bible/Makefile
index 0f9504c3783c..5a537fbba940 100644
--- a/misc/fortune-mod-bible/Makefile
+++ b/misc/fortune-mod-bible/Makefile
@@ -19,9 +19,11 @@ DIST_SUBDIR= ${PORTNAME}
NO_WRKSUBDIR= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
USE_BZIP2= yes
+SUB_FILES+= pkg-message
+_STRFILE= /usr/games/strfile
do-build:
- @${CAT} ${FILESDIR}/pkg-message.in | ${SED} 's#PREFIX#${PREFIX}#' > ${PKGMESSAGE}
+ @cd ${WRKSRC} && ${_STRFILE} bible
do-install:
@${MKDIR} ${PREFIX}/share/games
diff --git a/misc/fortune-mod-bible/files/pkg-message.in b/misc/fortune-mod-bible/files/pkg-message.in
index f712587b218c..86b133ee7d81 100644
--- a/misc/fortune-mod-bible/files/pkg-message.in
+++ b/misc/fortune-mod-bible/files/pkg-message.in
@@ -1,3 +1,3 @@
-Usage: fortune PREFIX/share/games/fortune/bible
+Usage: fortune %%PREFIX%%/share/games/fortune/bible