ports/143109: [PATCH] net/micro_proxy: use $SUB_FILES to dynamically update pkg-message

Sevan Janiyan venture37 at geeklan.co.uk
Sat Jan 23 06:30:05 UTC 2010


>Number:         143109
>Category:       ports
>Synopsis:       [PATCH] net/micro_proxy: use $SUB_FILES to dynamically update 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 23 06:30:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sevan Janiyan
>Release:        FreeBSD 8.0-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD newbie.thingamajig-systems.co.uk 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan  5 21:11:58 UTC
>Description:
there's no need to invoke sed manually

Added file(s):
- files/pkg-message.in

Removed file(s):
- pkg-message

Port maintainer (ehaupt at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- micro_proxy-20021030.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/micro_proxy/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	27 Mar 2009 09:53:29 -0000	1.6
+++ Makefile	23 Jan 2010 06:18:40 -0000
@@ -20,6 +20,7 @@
 WRKSRC=		${WRKDIR}/${PORTNAME}
 PLIST_FILES=	libexec/micro_proxy
 MAN8=		micro_proxy.8
+SUB_FILES=	pkg-message
 
 do-build:
 	${CC} ${CFLAGS} -c ${WRKSRC}/${PORTNAME}.c -o ${WRKSRC}/${PORTNAME}.o
@@ -30,6 +31,6 @@
 	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MANPREFIX}/man/man8
 
 post-install:
-	@${SED} -e 's|%%PREFIX%%|${PREFIX}|' ${PKGMESSAGE}
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- pkg-message	2 Sep 2005 13:35:17 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-===============================================================================
-
-Micro_proxy has been successfully installed. If you want to run micro_proxy
-with inetd add
-
-  webproxy        8080/tcp
-
-to services(5), 
-
-  webproxy  stream  tcp  nowait  nobody  %%PREFIX%%/libexec/micro_proxy -R 10000  micro_proxy
-
-to inetd.conf(5),
-
-  enable_inetd="YES"
-
-to rc.conf(5) and restart inetd(8). See micro_proxy(8) for more information. 
-
-===============================================================================
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	23 Jan 2010 06:18:40 -0000
@@ -0,0 +1,18 @@
+===============================================================================
+
+Micro_proxy has been successfully installed. If you want to run micro_proxy
+with inetd add
+
+  webproxy        8080/tcp
+
+to services(5), 
+
+  webproxy  stream  tcp  nowait  nobody  %%PREFIX%%/libexec/micro_proxy -R 10000  micro_proxy
+
+to inetd.conf(5),
+
+  enable_inetd="YES"
+
+to rc.conf(5) and restart inetd(8). See micro_proxy(8) for more information. 
+
+===============================================================================
--- micro_proxy-20021030.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list