aboutsummaryrefslogtreecommitdiff
path: root/chinese/fortune
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2010-01-11 02:37:42 +0000
committerWen Heping <wen@FreeBSD.org>2010-01-11 02:37:42 +0000
commit0d8668d89be637be310af060f30cdca189a15d59 (patch)
treea4e609170df64c78164725f15ee4848649f33de0 /chinese/fortune
parentde2fcae4d465b94e1034d3dcac1d1f6f7f28591e (diff)
downloadports-0d8668d89be637be310af060f30cdca189a15d59.tar.gz
ports-0d8668d89be637be310af060f30cdca189a15d59.zip
Notes
Diffstat (limited to 'chinese/fortune')
-rw-r--r--chinese/fortune/Makefile5
-rw-r--r--chinese/fortune/files/pkg-message.in17
2 files changed, 22 insertions, 0 deletions
diff --git a/chinese/fortune/Makefile b/chinese/fortune/Makefile
index e1a2d1288cc4..deceb99fdbe0 100644
--- a/chinese/fortune/Makefile
+++ b/chinese/fortune/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fortune
PORTVERSION= 1.2.2
+PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= GOOGLE_CODE
PKGNAMEPREFIX= zh-
@@ -22,6 +23,7 @@ PROJECTHOST= chinese-fortune
NO_BUILD= yes
USE_GMAKE= yes
USE_BZIP2= yes
+SUB_FILES= pkg-message
.if !exists(/usr/games/fortune) || !exists(/usr/games/strfile)
IGNORE= needs the FreeBSD games distribution
@@ -35,4 +37,7 @@ post-patch:
-e "s|strfile|/usr/games/strfile|" \
${WRKSRC}/src/Makefile
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.mk>
diff --git a/chinese/fortune/files/pkg-message.in b/chinese/fortune/files/pkg-message.in
new file mode 100644
index 000000000000..8b503124558e
--- /dev/null
+++ b/chinese/fortune/files/pkg-message.in
@@ -0,0 +1,17 @@
+************************************************************
+You should create your own ~/.fortune-zh.conf file, and put
+one or more lines such as the following into the file:
+
+%%DATADIR%%/zh/caigentan
+%%DATADIR%%/zh/dao
+%%DATADIR%%/zh/joke
+%%DATADIR%%/zh/lunyu
+%%DATADIR%%/zh/maoshici
+%%DATADIR%%/zh/maoyulu
+%%DATADIR%%/zh/proverb
+%%DATADIR%%/zh/song100
+%%DATADIR%%/zh/songproses
+%%DATADIR%%/zh/tang300
+%%DATADIR%%/zh/zengguang
+************************************************************
+