Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2010 15:15:35 GMT
From:      Sevan Janiyan <venture37@geeklan.co.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        janos.mohacsi@bsd.hu
Subject:   ports/143168: [PATCH] net-mgmt/aspathtree: use $SUB_FILES to dynamically adjust pkg-message 
Message-ID:  <201001241515.o0OFFZGx018745@newbie.thingamajig-systems.co.uk>
Resent-Message-ID: <201001241520.o0OFK56d058721@freefall.freebsd.org>

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

>Number:         143168
>Category:       ports
>Synopsis:       [PATCH] net-mgmt/aspathtree: 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 24 15:20:05 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:
no need to invoke sed manually

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

Removed file(s):
- pkg-message

Port maintainer (janos.mohacsi@bsd.hu) is cc'd.

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

--- aspathtree-4.2_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/aspathtree/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	18 May 2008 14:00:50 -0000	1.8
+++ Makefile	24 Jan 2010 15:14:21 -0000
@@ -23,7 +23,7 @@
 NO_BUILD=	yes
 USE_PERL5=	yes
 SCRIPTS_ENV+=	PERL5=${PERL5}
-PKGMESSAGE=	${WRKDIR}/pkg-message
+SUB_FILES=	pkg-message
 CONFIG_FILES=	ASpath-tree.config
 ICON_FILES=	bnew.gif bold.gif e.gif h.gif l.gif p.gif t.gif v.gif
 LIB_FILES=	bgp-tree-changes.pl bgp-tree.pl create-homepage.pl elaborate-aspaths.pl getbgptable.pl history.pl ipv6prefix.pl odd-as.pl odd-routes.pl route-stability.pl utility.pl ASmain.pl
@@ -68,7 +68,6 @@
 .endif
 
 post-install:
-	@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${.CURDIR}/pkg-message >${PKGMESSAGE}
 .if !defined(BATCH)
 	@${ECHO}
 	@${CAT} ${PKGMESSAGE}
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- pkg-message	27 Apr 2003 01:34:15 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,6 +0,0 @@
-For to configuration information please look at
-%%PREFIX%%/share/doc/aspathtree/readme.txt.
-
-Copy %%PREFIX%%/etc/ASpath-tree.config.dist to
-%%PREFIX%%/etc/ASpath-tree.config
-and modify accordingly to your environment.
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	24 Jan 2010 15:14:21 -0000
@@ -0,0 +1,6 @@
+For to configuration information please look at
+%%DOCSDIR%%/readme.txt.
+
+Copy %%PREFIX%%/etc/ASpath-tree.config.dist to
+%%PREFIX%%/etc/ASpath-tree.config
+and modify accordingly to your environment.
--- aspathtree-4.2_3.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?201001241515.o0OFFZGx018745>