aboutsummaryrefslogtreecommitdiff
path: root/misc/fortune-mod-bofh
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-06-19 15:04:32 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-06-19 15:04:32 +0000
commit289cceb8aa48069523f04eb377261fdb9bb3443a (patch)
treea60b636bd77b3b7a4ea37c08da183ba6cf825d91 /misc/fortune-mod-bofh
parent2599040faba9daab4fec24e233eb30953bf83ef5 (diff)
downloadports-289cceb8aa48069523f04eb377261fdb9bb3443a.tar.gz
ports-289cceb8aa48069523f04eb377261fdb9bb3443a.zip
Notes
Diffstat (limited to 'misc/fortune-mod-bofh')
-rw-r--r--misc/fortune-mod-bofh/Makefile13
-rw-r--r--misc/fortune-mod-bofh/files/pkg-message.in5
-rw-r--r--misc/fortune-mod-bofh/pkg-message5
3 files changed, 9 insertions, 14 deletions
diff --git a/misc/fortune-mod-bofh/Makefile b/misc/fortune-mod-bofh/Makefile
index 07e02254a955..9936a9786ac4 100644
--- a/misc/fortune-mod-bofh/Makefile
+++ b/misc/fortune-mod-bofh/Makefile
@@ -17,18 +17,13 @@ NO_BUILD= yes
WRKSRC= ${WRKDIR}/bofh-fortune-mod2.0
PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message
STRFILE= /usr/games/strfile
-NO_STAGE= yes
-post-patch:
- @${CAT} pkg-message | ${SED} 's|PREFIX|${PREFIX}|' > ${PKGMESSAGE}
-
do-install:
- @${MKDIR} ${PREFIX}/share/games
- @${MKDIR} ${PREFIX}/share/games/fortune
- @${INSTALL_DATA} ${WRKSRC}/bofh ${PREFIX}/share/games/fortune
- @${STRFILE} ${PREFIX}/share/games/fortune/bofh
- @${CAT} ${PKGMESSAGE}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
+ @${INSTALL_DATA} ${WRKSRC}/bofh ${STAGEDIR}${PREFIX}/share/games/fortune
+ @${STRFILE} ${STAGEDIR}${PREFIX}/share/games/fortune/bofh
.include <bsd.port.mk>
diff --git a/misc/fortune-mod-bofh/files/pkg-message.in b/misc/fortune-mod-bofh/files/pkg-message.in
new file mode 100644
index 000000000000..241664477e84
--- /dev/null
+++ b/misc/fortune-mod-bofh/files/pkg-message.in
@@ -0,0 +1,5 @@
+* * *
+
+Usage: fortune %%PREFIX%%/share/games/fortune/bofh
+
+* * *
diff --git a/misc/fortune-mod-bofh/pkg-message b/misc/fortune-mod-bofh/pkg-message
deleted file mode 100644
index 6e2c5f308126..000000000000
--- a/misc/fortune-mod-bofh/pkg-message
+++ /dev/null
@@ -1,5 +0,0 @@
-* * *
-
-Usage: fortune PREFIX/share/games/fortune/bofh
-
-* * *