From sevan@newbie.thingamajig-systems.co.uk  Sat Jan 23 04:17:39 2010
Return-Path: <sevan@newbie.thingamajig-systems.co.uk>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B0729106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 23 Jan 2010 04:17:39 +0000 (UTC)
	(envelope-from sevan@newbie.thingamajig-systems.co.uk)
Received: from newbie.thingamajig-systems.co.uk (newbie.thingamajig-systems.co.uk [93.97.185.103])
	by mx1.freebsd.org (Postfix) with ESMTP id D4DD68FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 23 Jan 2010 04:17:38 +0000 (UTC)
Received: from newbie.thingamajig-systems.co.uk (localhost [127.0.0.1])
	by newbie.thingamajig-systems.co.uk (8.14.3/8.14.3) with ESMTP id o0N4DuQv038614;
	Sat, 23 Jan 2010 04:13:56 GMT
	(envelope-from sevan@newbie.thingamajig-systems.co.uk)
Received: (from root@localhost)
	by newbie.thingamajig-systems.co.uk (8.14.3/8.14.3/Submit) id o0N4Dubo038613;
	Sat, 23 Jan 2010 04:13:56 GMT
	(envelope-from sevan)
Message-Id: <201001230413.o0N4Dubo038613@newbie.thingamajig-systems.co.uk>
Date: Sat, 23 Jan 2010 04:13:56 GMT
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc: janos.mohacsi@bsd.hu
Subject: [PATCH] net/findmtu: use $SUB_FILES to dynamically update findmtu script 
X-Send-Pr-Version: 3.113
X-GNATS-Notify: janos.mohacsi@bsd.hu

>Number:         143105
>Category:       ports
>Synopsis:       [PATCH] net/findmtu: use $SUB_FILES to dynamically update findmtu script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 23 04:20:02 UTC 2010
>Closed-Date:    Sat Feb 13 19:14:57 UTC 2010
>Last-Modified:  Sat Feb 13 19:20:05 UTC 2010
>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:
instead of invoking sed manually

Added file(s):
- files/findmtu.in

Removed file(s):
- files/findmtu.sh

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

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

--- findmtu-0.9.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/findmtu/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	14 Jul 2004 15:30:54 -0000	1.1
+++ Makefile	23 Jan 2010 04:12:45 -0000
@@ -13,12 +13,11 @@
 MAINTAINER=	janos.mohacsi@bsd.hu
 COMMENT=	A tool for performing IPv6 path MTU discovery on *NIX
 
+SUB_FILES=	findmtu
+
 do-configure:
 	${LN} -s ${WRKSRC}/Makefile.rawsocket ${WRKSRC}/Makefile
 
-post-build:
-	${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${FILESDIR}/findmtu.sh > ${WRKDIR}/findmtu
-
 do-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/findmtu ${PREFIX}/bin/findmtu
 	${INSTALL_PROGRAM} ${WRKSRC}/findmtu ${PREFIX}/bin/findmtu.real
Index: files/findmtu.in
===================================================================
RCS file: files/findmtu.in
diff -N files/findmtu.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/findmtu.in	23 Jan 2010 04:12:45 -0000
@@ -0,0 +1,8 @@
+#!/bin/sh
+if netstat -rn -f inet6 | grep -qv $1; then
+	# Delete host route. As it is not in the routing table,
+	# we are sure that it is a cloned route and can be deleted
+	# safely
+	route delete -inet6 $i > /dev/null 2> /dev/null
+fi
+%%PREFIX%%/bin/findmtu.real $1
Index: files/findmtu.sh
===================================================================
RCS file: files/findmtu.sh
diff -N files/findmtu.sh
--- files/findmtu.sh	14 Jul 2004 15:30:54 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,8 +0,0 @@
-#!/bin/sh
-if netstat -rn -f inet6 | grep -qv $1; then
-	# Delete host route. As it is not in the routing table,
-	# we are sure that it is a cloned route and can be deleted
-	# safely
-	route delete -inet6 $i > /dev/null 2> /dev/null
-fi
-%%PREFIX%%/bin/findmtu.real $1
--- findmtu-0.9.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat Jan 23 04:20:19 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143105 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: janos.mohacsi@bsd.hu
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/143105: [PATCH] net/findmtu: use $SUB_FILES to dynamically update findmtu script
Date: Sat, 23 Jan 2010 04:20:17 UT

 Maintainer of net/findmtu,
 
 Please note that PR ports/143105 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/143105
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
Responsible-Changed-From-To: freebsd-ports-bugs->wen 
Responsible-Changed-By: wen 
Responsible-Changed-When: Sat Jan 23 08:20:36 UTC 2010 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143105 

From: Mohacsi Janos <janos.mohacsi@bsd.hu>
To: bug-followup@FreeBSD.org, venture37@geeklan.co.uk
Cc:  
Subject: Re: ports/143105: [PATCH] net/findmtu: use $SUB_FILES to dynamically
 update findmtu script
Date: Mon, 25 Jan 2010 17:01:12 +0100

 Approved.
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Sat Feb 13 19:14:54 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143105 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/143105: commit references a PR
Date: Sat, 13 Feb 2010 19:14:43 +0000 (UTC)

 miwi        2010-02-13 19:14:33 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/findmtu          Makefile 
   Added files:
     net/findmtu/files    findmtu.in 
   Removed files:
     net/findmtu/files    findmtu.sh 
   Log:
   - Use $SUB_FILES to dynamically update findmtu script
   
   PR:             143105
   Submitted by:   Sevan Janiyan <venture37@geeklan.co.uk>
   Approved by:    maintainer
   
   Revision  Changes    Path
   1.2       +2 -3      ports/net/findmtu/Makefile
   1.1       +8 -0      ports/net/findmtu/files/findmtu.in (new)
   1.2       +0 -8      ports/net/findmtu/files/findmtu.sh (dead)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
