aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormandree <mandree@FreeBSD.org>2014-10-11 09:00:45 +0800
committermandree <mandree@FreeBSD.org>2014-10-11 09:00:45 +0800
commitba755e2edcf7a28a8b09e0fdfd43f2ebf9f4006f (patch)
tree42c48e5eed57d61d4038379498abdc19e80258c9 /net
parent611d1604514df92257c625ae5c8cbf1374dbe0f4 (diff)
downloadfreebsd-ports-gnome-ba755e2edcf7a28a8b09e0fdfd43f2ebf9f4006f.tar.gz
freebsd-ports-gnome-ba755e2edcf7a28a8b09e0fdfd43f2ebf9f4006f.tar.zst
freebsd-ports-gnome-ba755e2edcf7a28a8b09e0fdfd43f2ebf9f4006f.zip
Revive net/tcptraceroute-devel port, with a new maintainer.
Update MASTER_SITES, add LICENSE. NOTE: this has some minor changes over the original submission, detailed in the PR. PR: 193511 Submitted by: C. Hutchinson <portmaster@bsdforge.com>
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/tcptraceroute-devel/Makefile37
-rw-r--r--net/tcptraceroute-devel/distinfo2
-rw-r--r--net/tcptraceroute-devel/files/patch-configure46
-rw-r--r--net/tcptraceroute-devel/pkg-descr18
-rw-r--r--net/tcptraceroute-devel/pkg-plist2
6 files changed, 106 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 7a74e9d06739..a72055d8340c 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1143,6 +1143,7 @@
SUBDIR += tcpstat
SUBDIR += tcptrace
SUBDIR += tcptraceroute
+ SUBDIR += tcptraceroute-devel
SUBDIR += tcpview
SUBDIR += tcpwatch
SUBDIR += tcpxd
diff --git a/net/tcptraceroute-devel/Makefile b/net/tcptraceroute-devel/Makefile
new file mode 100644
index 000000000000..f541a1189f49
--- /dev/null
+++ b/net/tcptraceroute-devel/Makefile
@@ -0,0 +1,37 @@
+# Created by: josh.carroll@gmail.com
+# $FreeBSD$
+
+PORTNAME= tcptraceroute
+DISTVERSION= 1.5beta7
+PORTREVISION= 1
+CATEGORIES= net
+MASTER_SITES= http://BSDforge.com/projects/source/net/tcptraceroute/ \
+ http://pflog.net/tcptraceroute/
+PKGNAMESUFFIX= -devel
+
+MAINTAINER= portmaster@bsdforge.com
+COMMENT= Traceroute implementation using TCP packets
+
+LICENSE= GPLv2
+
+LIB_DEPENDS= libnet.so:${PORTSDIR}/net/libnet
+
+CONFLICTS= tcptraceroute-1.4*
+
+PORTDOCS= tcptraceroute.1.html tcptraceroute.lsm AUTHORS \
+ COPYING ChangeLog NEWS README examples.txt
+
+OPTIONS_DEFINE= DOCS
+USES= gmake
+GNU_CONFIGURE= yes
+
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
+
+CONFIGURE_ARGS= --with-libpcap=/usr --bindir=${PREFIX}/sbin
+
+post-install:
+ @${CHMOD} u+s ${STAGEDIR}${PREFIX}/sbin/tcptraceroute
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
+
+.include <bsd.port.mk>
diff --git a/net/tcptraceroute-devel/distinfo b/net/tcptraceroute-devel/distinfo
new file mode 100644
index 000000000000..a54bf38cd78d
--- /dev/null
+++ b/net/tcptraceroute-devel/distinfo
@@ -0,0 +1,2 @@
+SHA256 (tcptraceroute-1.5beta7.tar.gz) = aed5b163ed4886f04242b46005a6cb4876ef38ad72001a94facb62a99dc99c57
+SIZE (tcptraceroute-1.5beta7.tar.gz) = 119119
diff --git a/net/tcptraceroute-devel/files/patch-configure b/net/tcptraceroute-devel/files/patch-configure
new file mode 100644
index 000000000000..9fe536ac4aa0
--- /dev/null
+++ b/net/tcptraceroute-devel/files/patch-configure
@@ -0,0 +1,46 @@
+--- configure.old 2006-03-28 20:49:55.000000000 -0500
++++ configure 2007-12-13 13:57:42.000000000 -0500
+@@ -3713,38 +3713,11 @@
+
+ fi;
+
+-LIBNET_CONFIG="libnet-config" # relative, using $PATH
+-
+-# Check whether --with-libnet or --without-libnet was given.
+-if test "${with_libnet+set}" = set; then
+- withval="$with_libnet"
+-
+- LIBNETCC=""
+- LIBNETLD=""
+-
+- test -x "$withval/bin/libnet-config" && LIBNET_CONFIG="$withval/bin/libnet-config"
+- test -x "$withval/libnet-config" && LIBNET_CONFIG="$withval/libnet-config"
+-
+- test -f "$withval/libnet.h" && LIBNETCC="$LIBNETCC -I$withval"
+- test -f "$withval/include/libnet.h" && LIBNETCC="$LIBNETCC -I$withval/include"
+-
+- test -f "$withval/libnet.a" && LIBNETLD="$LIBNETLD -L$withval"
+- test -f "$withval/lib/libnet.a" && LIBNETLD="$LIBNETLD -L$withval/lib"
+-
+- if test -z "$LIBNETCC" -o -z "$LIBNETLD"
+- then
+- { { echo "$as_me:$LINENO: error: No valid libnet library found in $withval" >&5
+-echo "$as_me: error: No valid libnet library found in $withval" >&2;}
+- { (exit 1); exit 1; }; }
+- else
+- CPPFLAGS="$CPPFLAGS $LIBNETCC"
+- LDFLAGS="$LDFLAGS $LIBNETLD"
+- { echo "$as_me:$LINENO: using libnet in $withval" >&5
+-echo "$as_me: using libnet in $withval" >&6;}
+- fi
+-
+-fi;
+-
++LIBNET_CONFIG="libnet11-config" # relative, using $PATH
++LIBNETCC=`$LIBNET_CONFIG --cflags`
++LIBNETLD=`$LIBNET_CONFIG --libs`
++CPPFLAGS="$CPPFLAGS $LIBNETCC"
++LDFLAGS="$LDFLAGS $LIBNETLD"
+
+ echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
+ echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
diff --git a/net/tcptraceroute-devel/pkg-descr b/net/tcptraceroute-devel/pkg-descr
new file mode 100644
index 000000000000..38d576fcb1d6
--- /dev/null
+++ b/net/tcptraceroute-devel/pkg-descr
@@ -0,0 +1,18 @@
+tcptraceroute is a traceroute implementation using TCP packets.
+
+The more traditional traceroute(8) sends out either UDP or ICMP ECHO
+packets with a TTL of one, and increments the TTL until the destination
+has been reached. By printing the gateways that generate ICMP time
+exceeded messages along the way, it is able to determine the path
+packets are taking to reach the destination.
+
+The problem is that with the widespread use of firewalls on the modern
+Internet, many of the packets that traceroute(8) sends out end up being
+filtered, making it impossible to completely trace the path to the
+destination. However, in many cases, these firewalls will permit inbound
+TCP packets to specific ports that hosts sitting behind the firewall are
+listening for connections on. By sending out TCP SYN packets instead of
+UDP or ICMP ECHO packets, tcptraceroute is able to bypass the most
+common firewall filters.
+
+WWW: http://BSDforge.com/projects/net/tcptraceroute/
diff --git a/net/tcptraceroute-devel/pkg-plist b/net/tcptraceroute-devel/pkg-plist
new file mode 100644
index 000000000000..3b1aa394ef83
--- /dev/null
+++ b/net/tcptraceroute-devel/pkg-plist
@@ -0,0 +1,2 @@
+sbin/tcptraceroute
+man/man1/tcptraceroute.1.gz