Date: Tue, 13 Jul 2004 15:28:40 +0200 (CEST) From: Janos Mohacsi <mohacsi@niif.hu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/68985: New port: net/findmtu version 0.9 Message-ID: <200407131328.i6DDSeAV019315@norfolk.ki.iif.hu> Resent-Message-ID: <200407131330.i6DDUNbi090810@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 68985 >Category: ports >Synopsis: New port: net/findmtu version 0.9 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jul 13 13:30:21 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Janos Mohacsi >Release: FreeBSD 5.2-CURRENT i386 >Organization: NIIF >Environment: System: FreeBSD norfolk.ki.iif.hu 5.2-CURRENT FreeBSD 5.2-CURRENT #12: Thu Jul 8 14:37:25 CEST 2004 root@norfolk.ki.iif.hu:/usr/obj/usr/src/sys/NORFOLK i386 >Description: new port: net/findmtu version 0.9 FindMTU is a tool that performs IPv6 path MTU discovery. You can use it to debug network problems and to detect IPv6-in-IPv4 tunnels in the path to a destination. FindMTU only performs IPv6 path MTU discovery. It does not know about IPv4. >How-To-Repeat: Apply this shar. >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # findmtu/ # findmtu/pkg-descr # findmtu/distinfo # findmtu/Makefile # findmtu/pkg-plist # findmtu/files # findmtu/files/findmtu.sh # echo c - findmtu/ mkdir -p findmtu/ > /dev/null 2>&1 echo x - findmtu/pkg-descr sed 's/^X//' >findmtu/pkg-descr << 'END-of-findmtu/pkg-descr' XFindMTU is a tool that performs IPv6 path MTU discovery. You can use it Xto debug network problems and to detect IPv6-in-IPv4 tunnels in the path Xto a destination. X XFindMTU only performs IPv6 path MTU discovery. It does not know about XIPv4. X XWWW: http://www.dia.uniroma3.it/~compunet/tunneldiscovery/ END-of-findmtu/pkg-descr echo x - findmtu/distinfo sed 's/^X//' >findmtu/distinfo << 'END-of-findmtu/distinfo' XMD5 (findmtu-0.9.tar.gz) = 5aa9e84714d5ba509b70a0a4be872105 XSIZE (findmtu-0.9.tar.gz) = 12814 END-of-findmtu/distinfo echo x - findmtu/Makefile sed 's/^X//' >findmtu/Makefile << 'END-of-findmtu/Makefile' X# New ports collection makefile for: findmtu X# Date created: 13 July 2004 X# Whom: janos.mohacsi@bsd.hu X# X# $FreeBSD$ X# X XPORTNAME= findmtu XPORTVERSION= 0.9 XCATEGORIES= net ipv6 XMASTER_SITES= http://www.dia.uniroma3.it/~compunet/tunneldiscovery/findmtu/ X XMAINTAINER= janos.mohacsi@bsd.hu XCOMMENT= A tool for performing IPv6 path MTU discovery on *NIX X Xdo-configure: X #Link Makefile for BSD X cd ${WRKSRC} X ${LN} -s ${WRKSRC}/Makefile.rawsocket ${WRKSRC}/Makefile X Xdo-install: X #Install wrapper script X ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \ X ${FILESDIR}/findmtu.sh >${FILESDIR}/findmtu X ${INSTALL_SCRIPT} ${FILESDIR}/findmtu ${PREFIX}/bin/findmtu X #install real program X ${INSTALL_PROGRAM} ${WRKSRC}/findmtu ${PREFIX}/bin/findmtu.real X.ifndef(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/README.freebsd ${DOCSDIR} X.endif X X.include <bsd.port.mk> END-of-findmtu/Makefile echo x - findmtu/pkg-plist sed 's/^X//' >findmtu/pkg-plist << 'END-of-findmtu/pkg-plist' Xbin/findmtu Xbin/findmtu.real X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/README.freebsd X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-findmtu/pkg-plist echo c - findmtu/files mkdir -p findmtu/files > /dev/null 2>&1 echo x - findmtu/files/findmtu.sh sed 's/^X//' >findmtu/files/findmtu.sh << 'END-of-findmtu/files/findmtu.sh' X#!/bin/sh Xif netstat -rn -f inet6 | grep -qv $1; then X # Delete host route. As it is not in the routing table, X # we are sure that it is a cloned route and can be deleted X # safely X route delete -inet6 $i > /dev/null 2> /dev/null Xfi X%%PREFIX%%/bin/findmtu.real $1 END-of-findmtu/files/findmtu.sh exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407131328.i6DDSeAV019315>