aboutsummaryrefslogtreecommitdiffstats
path: root/net/tcptraceroute
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-10-08 07:08:41 +0800
committeredwin <edwin@FreeBSD.org>2003-10-08 07:08:41 +0800
commitf5fefe68533a39040661d80b895c300935e0943d (patch)
tree8beaec3e53cf38cc4a19a876f4c4166240208ad2 /net/tcptraceroute
parentd2671b93a451a00132ec1ac6aa0411d191a18f7a (diff)
downloadfreebsd-ports-gnome-f5fefe68533a39040661d80b895c300935e0943d.tar.gz
freebsd-ports-gnome-f5fefe68533a39040661d80b895c300935e0943d.tar.zst
freebsd-ports-gnome-f5fefe68533a39040661d80b895c300935e0943d.zip
tcptraceroute.c compile fails with: missing terminating " character
PR: ports/56620 Submitted by: none <supraexpress@globaleyes.net>
Diffstat (limited to 'net/tcptraceroute')
-rw-r--r--net/tcptraceroute/files/patch-Makefile4
-rw-r--r--net/tcptraceroute/files/patch-tcptraceroute.c26
2 files changed, 28 insertions, 2 deletions
diff --git a/net/tcptraceroute/files/patch-Makefile b/net/tcptraceroute/files/patch-Makefile
index 7abce3a75413..6564b05352a2 100644
--- a/net/tcptraceroute/files/patch-Makefile
+++ b/net/tcptraceroute/files/patch-Makefile
@@ -9,8 +9,8 @@
-DESTDIR=/usr/local/bin
+CC?= cc
+CFLAGS?= -O -pipe -Wall
-+LNETINC= -I/usr/local/include
-+LNETLIB= -L/usr/local/lib
++LNETINC= -I${LOCALBASE}/include
++LNETLIB= -L${LOCALBASE}/lib
+
+BINDIR= ${PREFIX}/sbin
+MANDIR= ${PREFIX}/man
diff --git a/net/tcptraceroute/files/patch-tcptraceroute.c b/net/tcptraceroute/files/patch-tcptraceroute.c
new file mode 100644
index 000000000000..28f15e1b7051
--- /dev/null
+++ b/net/tcptraceroute/files/patch-tcptraceroute.c
@@ -0,0 +1,26 @@
+--- tcptraceroute.c.orig Tue Oct 7 16:04:50 2003
++++ tcptraceroute.c Tue Oct 7 16:05:22 2003
+@@ -391,9 +391,9 @@
+ void usage(void)
+ {
+ printf("\n%s\n%s\n", VERSION, BANNER);
+- fatal("Usage: %s [-nNFSAE] [-i <interface>] [-f <first ttl>]
+- [-l <packet length>] [-q <number of queries>] [-t <tos>]
+- [-m <max ttl>] [-pP] <source port>] [-s <source address>]
++ fatal("Usage: %s [-nNFSAE] [-i <interface>] [-f <first ttl>] \
++ [-l <packet length>] [-q <number of queries>] [-t <tos>] \
++ [-m <max ttl>] [-pP] <source port>] [-s <source address>] \
+ [-w <wait time>] <host> [destination port] [packet length]\n\n", name);
+ }
+
+@@ -1182,8 +1182,8 @@
+ if (! (pcap = pcap_open_live(device, offset + SNAPLEN, 0, 10, errbuf)))
+ fatal("pcap_open_live failed: %s", errbuf);
+
+- safe_snprintf(filter, TEXTSIZE, "
+- (tcp and src host %s and src port %d and dst host %s)
++ safe_snprintf(filter, TEXTSIZE, " \
++ (tcp and src host %s and src port %d and dst host %s) \
+ or ((icmp[0] == 11 or icmp[0] == 3) and dst host %s)",
+ iptos(dst_ip), dst_prt, iptos(src_ip), iptos(src_ip));
+