Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jan 2010 23:28:02 GMT
From:      Sevan Janiyan <venture37@geeklan.co.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/142621: [PATCH] japanese/ja-WiKicker: use $SUB_FILES to dynamically adjust pkg-message 
Message-ID:  <201001102328.o0ANS2iV004099@newbie.thingamajig-systems.co.uk>
Resent-Message-ID: <201001102340.o0ANe2l2074222@freefall.freebsd.org>

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

>Number:         142621
>Category:       ports
>Synopsis:       [PATCH] japanese/ja-WiKicker: 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:   Sun Jan 10 23:40:02 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, use $SUB_FILES & $SUB_LIST to take care of things

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

--- ja-WiKicker-0.26.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/japanese/wikicker/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile	22 Jul 2009 16:26:46 -0000	1.15
+++ Makefile	10 Jan 2010 23:25:32 -0000
@@ -52,6 +52,8 @@
 WIKIPM=			${SITE_PERL}/${PORTNAME}
 WIKISCRIPT=		wiki.cgi.in
 MAN3=			WiKicker.3 WiKicker::HTML.3
+SUB_FILES=		pkg-message
+SUB_LIST=		HostName=${HOST}
 
 post-install:
 .if !defined(NOPORTDOCS)
@@ -91,8 +93,6 @@
 		${SORT} -r | ${SED} -e 's/^/@dirrm /' >>${TMPPLIST}
 	@${ECHO_MSG} "===>  Making PLIST Phase End"
 
-	@${SED} -e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|' \
-		-e 's|%%HostName%%|${HOST}|' < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
--- ja-WiKicker-0.26.patch ends here ---

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



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