View | Details | Raw Unified | Return to bug 193511
Collapse All | Expand All

(-)tcptraceroute-devel/Makefile (+39 lines)
Line 0 Link Here
1
# Created by: josh.carroll@gmail.com
2
# $FreeBSD$
3
4
PORTNAME=	tcptraceroute
5
DISTVERSION=	1.5beta7
6
PORTREVISION=	1
7
CATEGORIES=	net
8
MASTER_SITES=	http://BSDforge.com/projects/source/net/tcptraceroute/ \
9
		http://pflog.net/tcptraceroute/
10
PKGNAMESUFFIX=	-devel
11
12
MAINTAINER=	portmaster@bsdforge.com
13
COMMENT=	Traceroute implementation using TCP packets
14
15
LICENSE=	GPLv2
16
17
LIB_DEPENDS=	libnet.so:${PORTSDIR}/net/libnet
18
19
CONFLICTS=	tcptraceroute-1.4*
20
21
PORTDOCS=	tcptraceroute.1.html tcptraceroute.lsm AUTHORS \
22
COPYING ChangeLog NEWS README examples.txt
23
24
OPTIONS_DEFINE=	DOCS
25
USES=		gmake
26
GNU_CONFIGURE=	yes
27
28
LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet11-config
29
30
CONFIGURE_ARGS=	--with-libpcap=/usr --bindir=${PREFIX}/sbin
31
32
pre-install:
33
	@${CHMOD} u+s ${WRKSRC}/tcptraceroute
34
	${INSTALL_PROGRAM} ${WRKSRC}/tcptraceroute ${STAGEDIR}${PREFIX}/sbin/
35
post-install:
36
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
37
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
38
39
.include <bsd.port.mk>
(-)tcptraceroute-devel/distinfo (+2 lines)
Line 0 Link Here
1
SHA256 (tcptraceroute-1.5beta7.tar.gz) = aed5b163ed4886f04242b46005a6cb4876ef38ad72001a94facb62a99dc99c57
2
SIZE (tcptraceroute-1.5beta7.tar.gz) = 119119
(-)tcptraceroute-devel/files/patch-configure (+46 lines)
Line 0 Link Here
1
--- configure.old	2006-03-28 20:49:55.000000000 -0500
2
+++ configure	2007-12-13 13:57:42.000000000 -0500
3
@@ -3713,38 +3713,11 @@
4
 
5
 fi;
6
 
7
-LIBNET_CONFIG="libnet-config"	# relative, using $PATH
8
-
9
-# Check whether --with-libnet or --without-libnet was given.
10
-if test "${with_libnet+set}" = set; then
11
-  withval="$with_libnet"
12
-
13
-		LIBNETCC=""
14
-		LIBNETLD=""
15
-
16
-		test -x "$withval/bin/libnet-config" &&	LIBNET_CONFIG="$withval/bin/libnet-config"
17
-		test -x "$withval/libnet-config"	 &&	LIBNET_CONFIG="$withval/libnet-config"
18
-
19
-		test -f "$withval/libnet.h"			&&	LIBNETCC="$LIBNETCC -I$withval"
20
-		test -f "$withval/include/libnet.h"	&&	LIBNETCC="$LIBNETCC -I$withval/include"
21
-
22
-		test -f "$withval/libnet.a"			&&	LIBNETLD="$LIBNETLD -L$withval"
23
-		test -f "$withval/lib/libnet.a"		&&	LIBNETLD="$LIBNETLD -L$withval/lib"
24
-
25
-		if test -z "$LIBNETCC" -o -z "$LIBNETLD"
26
-		then
27
-			{ { echo "$as_me:$LINENO: error: No valid libnet library found in $withval" >&5
28
-echo "$as_me: error: No valid libnet library found in $withval" >&2;}
29
-   { (exit 1); exit 1; }; }
30
-		else
31
-			CPPFLAGS="$CPPFLAGS $LIBNETCC"
32
-			LDFLAGS="$LDFLAGS $LIBNETLD"
33
-			{ echo "$as_me:$LINENO: using libnet in $withval" >&5
34
-echo "$as_me: using libnet in $withval" >&6;}
35
-		fi
36
-
37
-fi;
38
-
39
+LIBNET_CONFIG="libnet11-config"	# relative, using $PATH
40
+LIBNETCC=`$LIBNET_CONFIG --cflags`
41
+LIBNETLD=`$LIBNET_CONFIG --libs`
42
+CPPFLAGS="$CPPFLAGS $LIBNETCC"
43
+LDFLAGS="$LDFLAGS $LIBNETLD"
44
 
45
 echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
46
 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
(-)tcptraceroute-devel/pkg-descr (+18 lines)
Line 0 Link Here
1
tcptraceroute is a traceroute implementation using TCP packets.
2
3
The more  traditional traceroute(8)  sends out either  UDP or  ICMP ECHO
4
packets with a TTL of one,  and increments the TTL until the destination
5
has  been reached.  By printing  the  gateways that  generate ICMP  time
6
exceeded  messages along  the  way, it  is able  to  determine the  path
7
packets are taking to reach the destination.
8
9
The problem is  that with the widespread use of  firewalls on the modern
10
Internet, many of the packets that  traceroute(8) sends out end up being
11
filtered,  making it  impossible to  completely  trace the  path to  the
12
destination. However, in many cases, these firewalls will permit inbound
13
TCP packets to specific ports that hosts sitting behind the firewall are
14
listening for connections on. By sending  out TCP SYN packets instead of
15
UDP  or ICMP  ECHO packets,  tcptraceroute is  able to  bypass the  most
16
common firewall filters.
17
18
WWW: http://BSDforge.com/projects/net/tcptraceroute/
(-)tcptraceroute-devel/pkg-plist (+3 lines)
Line 0 Link Here
1
sbin/tcptraceroute
2
man/man1/tcptraceroute.1.gz
3
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 193511