Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2010 00:30:06 GMT
From:      Sevan Janiyan <venture37@geeklan.co.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/142453: [patch] editors/tpad se $SUB_FILES to dynamically adjust pkg-message
Message-ID:  <201001080030.o080U6sV039815@www.freebsd.org>
Resent-Message-ID: <201001080040.o080e16F068592@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
>Number:         142453
>Category:       ports
>Synopsis:       [patch] editors/tpad se $SUB_FILES to dynamically adjust pkg-message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 08 00:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sevan Janiyan
>Release:        
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/editors/tpad/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	22 Aug 2009 02:23:45 -0000	1.8
+++ Makefile	8 Jan 2010 00:25:40 -0000
@@ -20,13 +20,13 @@
 RUN_DEPENDS=	wish8.4:${PORTSDIR}/x11-toolkits/tk84
 
 NO_BUILD=	yes
-PKGMESSAGE=	${WRKDIR}/MESSAGE
 
 PORTDOCS=	ChangeLog bug.html conf.html embed.html index.html intro.html \
 		keys.html log.html mouse.html tidy.html tidy.png todo tpad.html
 MAN1=		tpad.1
 MLINKS=		tpad.1 tview.1
 PLIST_SUB=	LIBDIR=lib/tpad${PORTVERSION}
+SUB_FILES=	pkg-message
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/bin/tpad ${PREFIX}/bin/tpad
@@ -57,7 +57,6 @@
 .endfor
 .endif
 	${INSTALL_DATA} ${WRKDIR}/etc/tpad.conf ${PREFIX}/etc/tpad.conf.sample
-	@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGDIR}/pkg-message > ${PKGMESSAGE}
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- pkg-message	8 Jan 2004 01:17:24 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-------------------------------------------------------------
-A sample configuration file has been copied to
-    %%PREFIX%%/etc/tpad.conf.sample
-
-tpad will not work without either
-    %%PREFIX%%/etc/tpad.conf
-or the running user's ~/.tpadrc being in place.
-
-Further information on configuration can be found in
-    %%PREFIX%%/share/doc/tpad/conf.html
-------------------------------------------------------------
Index: files/pkg-message.in
===================================================================
RCS file: files/pkg-message.in
diff -N files/pkg-message.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/pkg-message.in	8 Jan 2010 00:25:40 -0000
@@ -0,0 +1,11 @@
+------------------------------------------------------------
+A sample configuration file has been copied to
+    %%PREFIX%%/etc/tpad.conf.sample
+
+tpad will not work without either
+    %%PREFIX%%/etc/tpad.conf
+or the running user's ~/.tpadrc being in place.
+
+Further information on configuration can be found in
+    %%PREFIX%%/share/doc/tpad/conf.html
+------------------------------------------------------------


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



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