Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2010 16:26:40 GMT
From:      Ju Pengfei <jupengfei@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/142527: [maintainer update] chinese/fortune
Message-ID:  <201001091626.o09GQeAc013844@www.freebsd.org>
Resent-Message-ID: <201001091630.o09GU4sQ099073@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         142527
>Category:       ports
>Synopsis:       [maintainer update] chinese/fortune
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 09 16:30:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Ju Pengfei
>Release:        8.0-RELEASE-p2
>Organization:
Ju Pengfei
>Environment:
>Description:
1. Added a pkg-message file;
2. Modified the Makefile;

The attachment is the patch file by performing:
diff -ruN fortune.bak fortune

Patching it just like the following command line:
cd /usr/ports/chinese; patch -p0 < /path/to/this_patch
>How-To-Repeat:

>Fix:
The attachment is the patch file by performing:
diff -ruN fortune.bak fortune

Patching it just like the following command line:
cd /usr/ports/chinese; patch -p0 < /path/to/this_patch

Patch attached with submission follows:

diff -ruN fortune.bak/Makefile fortune/Makefile
--- fortune.bak/Makefile	2010-01-09 23:57:16.000000000 +0800
+++ fortune/Makefile	2010-01-10 00:03:20.000000000 +0800
@@ -23,6 +23,8 @@
 USE_GMAKE=	yes
 USE_BZIP2=	yes
 
+PKGMESSAGE=	${.CURDIR}/pkg-message
+
 .if !exists(/usr/games/fortune) || !exists(/usr/games/strfile)
 IGNORE=		needs the FreeBSD games distribution
 .endif
@@ -35,4 +37,7 @@
 		-e "s|strfile|/usr/games/strfile|" \
 		${WRKSRC}/src/Makefile
 
+post-install:
+	@${CAT} ${PKGMESSAGE}
+
 .include <bsd.port.mk>
diff -ruN fortune.bak/pkg-message fortune/pkg-message
--- fortune.bak/pkg-message	1970-01-01 08:00:00.000000000 +0800
+++ fortune/pkg-message	2010-01-10 00:01:46.000000000 +0800
@@ -0,0 +1,16 @@
+************************************************************
+You should create your own ~/.fortune-zh.conf file, and put
+one or more lines such as the following into the file:
+
+/usr/local/share/fortune/zh/caigentan
+/usr/local/share/fortune/zh/dao
+/usr/local/share/fortune/zh/joke
+/usr/local/share/fortune/zh/lunyu
+/usr/local/share/fortune/zh/maoshici
+/usr/local/share/fortune/zh/maoyulu
+/usr/local/share/fortune/zh/proverb
+/usr/local/share/fortune/zh/song100
+/usr/local/share/fortune/zh/songproses
+/usr/local/share/fortune/zh/tang300
+/usr/local/share/fortune/zh/zengguang
+************************************************************


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001091626.o09GQeAc013844>