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:
parent
25fd5d0e8b
commit
03136b4d11
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370621
@ -1143,6 +1143,7 @@
|
||||
SUBDIR += tcpstat
|
||||
SUBDIR += tcptrace
|
||||
SUBDIR += tcptraceroute
|
||||
SUBDIR += tcptraceroute-devel
|
||||
SUBDIR += tcpview
|
||||
SUBDIR += tcpwatch
|
||||
SUBDIR += tcpxd
|
||||
|
37
net/tcptraceroute-devel/Makefile
Normal file
37
net/tcptraceroute-devel/Makefile
Normal 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>
|
2
net/tcptraceroute-devel/distinfo
Normal file
2
net/tcptraceroute-devel/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (tcptraceroute-1.5beta7.tar.gz) = aed5b163ed4886f04242b46005a6cb4876ef38ad72001a94facb62a99dc99c57
|
||||
SIZE (tcptraceroute-1.5beta7.tar.gz) = 119119
|
46
net/tcptraceroute-devel/files/patch-configure
Normal file
46
net/tcptraceroute-devel/files/patch-configure
Normal 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
|
18
net/tcptraceroute-devel/pkg-descr
Normal file
18
net/tcptraceroute-devel/pkg-descr
Normal 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/
|
2
net/tcptraceroute-devel/pkg-plist
Normal file
2
net/tcptraceroute-devel/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
sbin/tcptraceroute
|
||||
man/man1/tcptraceroute.1.gz
|
Loading…
Reference in New Issue
Block a user