1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

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>
This commit is contained in:
Matthias Andree 2014-10-11 01:00:45 +00:00
parent 25fd5d0e8b
commit 03136b4d11
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370621
6 changed files with 106 additions and 0 deletions

View File

@ -1143,6 +1143,7 @@
SUBDIR += tcpstat SUBDIR += tcpstat
SUBDIR += tcptrace SUBDIR += tcptrace
SUBDIR += tcptraceroute SUBDIR += tcptraceroute
SUBDIR += tcptraceroute-devel
SUBDIR += tcpview SUBDIR += tcpview
SUBDIR += tcpwatch SUBDIR += tcpwatch
SUBDIR += tcpxd SUBDIR += tcpxd

View File

@ -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>

View File

@ -0,0 +1,2 @@
SHA256 (tcptraceroute-1.5beta7.tar.gz) = aed5b163ed4886f04242b46005a6cb4876ef38ad72001a94facb62a99dc99c57
SIZE (tcptraceroute-1.5beta7.tar.gz) = 119119

View File

@ -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

View File

@ -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/

View File

@ -0,0 +1,2 @@
sbin/tcptraceroute
man/man1/tcptraceroute.1.gz