summaryrefslogtreecommitdiffstats
path: root/net/findmtu
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-07-14 15:30:54 +0000
committerpav <pav@FreeBSD.org>2004-07-14 15:30:54 +0000
commit390df237aa65e3864e363fadcd39655427ad2e0d (patch)
tree932dff3ddba07ac27ef46937dcb5254636ebc514 /net/findmtu
parent1e7adca843375442eb5478c5dfdeff4309293de3 (diff)
downloadFreeBSD-ports-390df237aa65e3864e363fadcd39655427ad2e0d.zip
FreeBSD-ports-390df237aa65e3864e363fadcd39655427ad2e0d.tar.gz
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. PR: ports/68985 Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu>
Diffstat (limited to 'net/findmtu')
-rw-r--r--net/findmtu/Makefile31
-rw-r--r--net/findmtu/distinfo2
-rw-r--r--net/findmtu/files/findmtu.sh8
-rw-r--r--net/findmtu/pkg-descr8
-rw-r--r--net/findmtu/pkg-plist5
5 files changed, 54 insertions, 0 deletions
diff --git a/net/findmtu/Makefile b/net/findmtu/Makefile
new file mode 100644
index 0000000..a2a6740
--- /dev/null
+++ b/net/findmtu/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: findmtu
+# Date created: 13 July 2004
+# Whom: janos.mohacsi@bsd.hu
+#
+# $FreeBSD$
+#
+
+PORTNAME= findmtu
+PORTVERSION= 0.9
+CATEGORIES= net ipv6
+MASTER_SITES= http://www.dia.uniroma3.it/~compunet/tunneldiscovery/findmtu/
+
+MAINTAINER= janos.mohacsi@bsd.hu
+COMMENT= A tool for performing IPv6 path MTU discovery on *NIX
+
+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
+.ifndef(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.freebsd ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/findmtu/distinfo b/net/findmtu/distinfo
new file mode 100644
index 0000000..b633aa7
--- /dev/null
+++ b/net/findmtu/distinfo
@@ -0,0 +1,2 @@
+MD5 (findmtu-0.9.tar.gz) = 5aa9e84714d5ba509b70a0a4be872105
+SIZE (findmtu-0.9.tar.gz) = 12814
diff --git a/net/findmtu/files/findmtu.sh b/net/findmtu/files/findmtu.sh
new file mode 100644
index 0000000..a404f4f
--- /dev/null
+++ b/net/findmtu/files/findmtu.sh
@@ -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
diff --git a/net/findmtu/pkg-descr b/net/findmtu/pkg-descr
new file mode 100644
index 0000000..a1884f2
--- /dev/null
+++ b/net/findmtu/pkg-descr
@@ -0,0 +1,8 @@
+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.
+
+WWW: http://www.dia.uniroma3.it/~compunet/tunneldiscovery/
diff --git a/net/findmtu/pkg-plist b/net/findmtu/pkg-plist
new file mode 100644
index 0000000..c3ca3a8
--- /dev/null
+++ b/net/findmtu/pkg-plist
@@ -0,0 +1,5 @@
+bin/findmtu
+bin/findmtu.real
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/README.freebsd
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud