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: ports/143105: [PATCH] net/findmtu: use $SUB_FILES to dynamically update findmtu script Message-ID: <201001230413.o0N4Dubo038613@newbie.thingamajig-systems.co.uk> Resent-Message-ID: <201001230420.o0N4K2Mb064590@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 143105 >Category: ports >Synopsis: [PATCH] net/findmtu: use $SUB_FILES to dynamically update findmtu script >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 04:20: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: 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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001230413.o0N4Dubo038613>