ports/142535: [patch] games/trojka switch to using macros in plist & use $SUB_FILES to dynamically adjust pkg-message
Sevan Janiyan
venture37 at geeklan.co.uk
Sat Jan 9 18:30:05 UTC 2010
>Number: 142535
>Category: ports
>Synopsis: [patch] games/trojka switch to using macros in plist & use $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: Sat Jan 09 18:30:04 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/games/trojka/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 21 Feb 2003 12:05:55 -0000 1.3
+++ Makefile 9 Jan 2010 18:18:58 -0000
@@ -15,8 +15,9 @@
COMMENT= A game of skill
MAN6= trojka.6
+SUB_FILES= pkg-message
post-install:
- ${SED} "s|%%PREFIX%%|${PREFIX}|" ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- pkg-message 18 Jul 2000 09:45:05 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,7 +0,0 @@
-============================================================
-You now have suid binary (2755):
-
- %%PREFIX%%/bin/trojka
-
-Scores will not be writed if you don't set suid.
-============================================================
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/games/trojka/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pkg-plist 18 Jul 2000 09:45:05 -0000 1.1
+++ pkg-plist 9 Jan 2010 18:18:58 -0000
@@ -1,5 +1,5 @@
bin/trojka
-share/trojka/COPYRIGHT
-share/trojka/README
-share/trojka/trojka.scores
- at dirrm share/trojka
+%%DATADIR%%/COPYRIGHT
+%%DATADIR%%/README
+%%DATADIR%%/trojka.scores
+ at dirrm %%DATADIR%%
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 9 Jan 2010 18:18:58 -0000
@@ -0,0 +1,7 @@
+============================================================
+You now have suid binary (2755):
+
+ %%PREFIX%%/bin/trojka
+
+Scores will not be writed if you don't set suid.
+============================================================
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list