ports/146271: [patch] sysutils/jfbterm: use PREFIX in man pages, config, pkg-message
Anonymous
swell.k at gmail.com
Mon May 3 20:50:02 UTC 2010
>Number: 146271
>Category: ports
>Synopsis: [patch] sysutils/jfbterm: use PREFIX in man pages, config, pkg-message
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Mon May 03 20:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
and drop redundant PKGMESSAGE assign as well
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: sysutils/jfbterm/Makefile
===================================================================
RCS file: /a/.cvsup/ports/sysutils/jfbterm/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- sysutils/jfbterm/Makefile 28 Mar 2010 06:43:51 -0000 1.10
+++ sysutils/jfbterm/Makefile 3 May 2010 20:30:05 -0000
@@ -20,7 +20,6 @@ RUN_DEPENDS= ${LOCALBASE}/lib/X11/fonts/
USE_ICONV= yes
USE_GNOME= pkgconfig
-PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
USE_GMAKE= yes
GNU_CONFIGURE= yes
@@ -32,6 +31,10 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/
MAN1= jfbterm.1
MAN5= jfbterm.conf.5
+post-patch: .SILENT
+ ( cd ${WRKSRC}; ${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' \
+ ${MAN1} ${MAN5} ${PORTNAME}.conf.sample.FreeBSD )
+
post-install:
@${CAT} ${PKGMESSAGE}
Index: sysutils/jfbterm/files/pkg-message.in
===================================================================
RCS file: /a/.cvsup/ports/sysutils/jfbterm/files/pkg-message.in,v
retrieving revision 1.2
diff -u -p -r1.2 pkg-message.in
--- sysutils/jfbterm/files/pkg-message.in 22 Apr 2008 15:39:30 -0000 1.2
+++ sysutils/jfbterm/files/pkg-message.in 3 May 2010 20:29:59 -0000
@@ -10,11 +10,11 @@ When you want to read automatically when
please write vesa_load="YES" in /boot/loader.conf
Add terminal capability of jfbterm.
- # cat %%LOCALBASE%%/share/jfbterm/termcap.jfbterm >> /usr/share/misc/termcap
+ # cat %%PREFIX%%/share/jfbterm/termcap.jfbterm >> /usr/share/misc/termcap
# cap_mkdb /usr/share/misc/termcap
Prepare configuration file
- # cp /usr/local/etc/jfbterm.conf.sample /usr/local/etc/jfbterm.conf
+ # cp %%PREFIX%%/etc/jfbterm.conf.sample %%PREFIX%%/etc/jfbterm.conf
Please confirm details on author's page.
http://www.ac.auone-net.jp/~baba/jfbterm/
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list