summaryrefslogtreecommitdiff
path: root/net/tcptrace
diff options
context:
space:
mode:
authorthorpej <thorpej>1997-12-14 21:42:18 +0000
committerthorpej <thorpej>1997-12-14 21:42:18 +0000
commit0aa90fdf053a244d2b70f1a608a66cd00faac692 (patch)
tree2531c64cf8a1701fab1211462f2897b30cffecc2 /net/tcptrace
parent41c5470e11bc33093b0949fa84a6dbdeaf105542 (diff)
downloadpkgsrc-0aa90fdf053a244d2b70f1a608a66cd00faac692.tar.gz
Package for tcptrace, a TCP analysis tool. From FreeBSD.
Diffstat (limited to 'net/tcptrace')
-rw-r--r--net/tcptrace/Makefile30
-rw-r--r--net/tcptrace/files/md51
-rw-r--r--net/tcptrace/patches/patch-aa30
-rw-r--r--net/tcptrace/patches/patch-ab17
-rw-r--r--net/tcptrace/patches/patch-ac15
-rw-r--r--net/tcptrace/pkg/COMMENT1
-rw-r--r--net/tcptrace/pkg/DESCR26
-rw-r--r--net/tcptrace/pkg/PLIST5
8 files changed, 125 insertions, 0 deletions
diff --git a/net/tcptrace/Makefile b/net/tcptrace/Makefile
new file mode 100644
index 00000000000..a2e4125bf99
--- /dev/null
+++ b/net/tcptrace/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: tcptrace
+# Version required: 4.0.2
+# Date created: 3 March 1997
+# Whom: fenner
+#
+# Id: Makefile,v 1.3 1997/07/19 19:43:36 fenner Exp
+#
+
+DISTNAME= tcptrace-4.0.2
+CATEGORIES= net
+MASTER_SITES= http://jarok.cs.ohiou.edu/software/tcptrace/files/4.0.2/
+DISTFILES= tcptrace.tar.gz
+
+MAINTAINER= fenner@FreeBSD.ORG
+
+WRKSRC= ${WRKDIR}/tcptrace
+ALL_TARGET= tcptrace
+
+DOCFILES= COPYRIGHT README README.tput_graphs
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tcptrace ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/tcptrace
+.for file in ${DOCFILES}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/tcptrace
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/tcptrace/files/md5 b/net/tcptrace/files/md5
new file mode 100644
index 00000000000..84f3f61af98
--- /dev/null
+++ b/net/tcptrace/files/md5
@@ -0,0 +1 @@
+MD5 (tcptrace.tar.gz) = 6e23d8585ba8c939cac4863fd7e39876
diff --git a/net/tcptrace/patches/patch-aa b/net/tcptrace/patches/patch-aa
new file mode 100644
index 00000000000..39c56268534
--- /dev/null
+++ b/net/tcptrace/patches/patch-aa
@@ -0,0 +1,30 @@
+--- Makefile.orig Wed Jul 16 14:55:15 1997
++++ Makefile Wed Jul 16 14:58:25 1997
+@@ -38,8 +38,9 @@
+ #
+ #CFLAGS = -g -O3 -fno-builtin -Wall ${INCS} ${DEFINES}
+ #
+-CFLAGS = -g -O3 -fno-builtin -Wall ${INCS} ${DEFINES}
++#CFLAGS = -g -O3 -fno-builtin -Wall ${INCS} ${DEFINES}
+
++CFLAGS += -fno-builtin ${INCS} ${DEFINES}
+
+ # for profiling (under Solaris 5.2)
+ #CFLAGS += -pg
+@@ -68,7 +69,7 @@
+ # for general Unix boxes (I hope)
+ # LDLIBS = -lpcap -lm
+ #
+-LDLIBS = -lnsl -lsocket -lm -lpcap
++LDLIBS = -lpcap -lm
+
+
+
+@@ -86,6 +87,7 @@
+ tcptrace: ${OFILES}
+ ${CC} ${LDFLAGS} ${CFLAGS} ${OFILES} -o tcptrace ${LDLIBS}
+
++install: tcptrace
+
+ #
+ # obvious dependencies
diff --git a/net/tcptrace/patches/patch-ab b/net/tcptrace/patches/patch-ab
new file mode 100644
index 00000000000..0c77ba1c752
--- /dev/null
+++ b/net/tcptrace/patches/patch-ab
@@ -0,0 +1,17 @@
+--- missing.c.orig Sat Jul 19 12:27:08 1997
++++ missing.c Sat Jul 19 12:28:53 1997
+@@ -5,7 +5,14 @@
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#include <sys/time.h>
+ #include <net/if.h>
++#if __FreeBSD__ >= 2
++#include <osreldate.h>
++#if __FreeBSD_version >= 300000
++#include <net/if_var.h>
++#endif
++#endif
+ #include <netinet/in.h>
+ #include <netinet/if_ether.h>
+
diff --git a/net/tcptrace/patches/patch-ac b/net/tcptrace/patches/patch-ac
new file mode 100644
index 00000000000..dcf713683cc
--- /dev/null
+++ b/net/tcptrace/patches/patch-ac
@@ -0,0 +1,15 @@
+--- tcptrace.h.orig Wed Jul 16 08:39:54 1997
++++ tcptrace.h Wed Jul 16 15:00:27 1997
+@@ -38,6 +38,12 @@
+ #include <sys/time.h>
+ #include <sys/socket.h>
+ #include <net/if.h>
++#if __FreeBSD__ >= 2
++#include <osreldate.h>
++#if __FreeBSD_version >= 300000
++#include <net/if_var.h>
++#endif
++#endif
+ #include <netinet/in.h>
+ #include <netinet/in_systm.h>
+ #include <arpa/inet.h>
diff --git a/net/tcptrace/pkg/COMMENT b/net/tcptrace/pkg/COMMENT
new file mode 100644
index 00000000000..62b237093b0
--- /dev/null
+++ b/net/tcptrace/pkg/COMMENT
@@ -0,0 +1 @@
+a TCP dump file analysis tool
diff --git a/net/tcptrace/pkg/DESCR b/net/tcptrace/pkg/DESCR
new file mode 100644
index 00000000000..e86a3f531d1
--- /dev/null
+++ b/net/tcptrace/pkg/DESCR
@@ -0,0 +1,26 @@
+tcptrace a TCP dump file analysis tool written by Shawn Ostermann
+at Ohio University. It is NOT a packet capture program. It reads
+output dump files in the formats of several popular packet capturing
+programs: tcpdump, snoop, etherpeek, and netm
+
+For each connection, it keeps track of elapsed time, bytes/segments
+sent and received, retransmissions, round trip times, window
+advertisements, throughput, etc. Its output format ranges from
+Simple to Long to Very Detailed.
+
+
+It can also produce three different types of graphs, as follows:
+
+ Time Sequence Graph
+ This is the format that Tim Shepard started using at MIT some
+ years ago. It shows segments sent and ACKs returned as a
+ function of time.
+ Instantaneous Throughput
+ This format shows the instantaneous (averaged over a few
+ segments) throughput of the connection as a function of time.
+ Round Trip Times
+ This format shows the round trip times for the ACKs as a
+ function of time.
+
+The graphs produced are viewable only by Tim Shepard's wonderful
+xplot program.
diff --git a/net/tcptrace/pkg/PLIST b/net/tcptrace/pkg/PLIST
new file mode 100644
index 00000000000..3dfba5bbe47
--- /dev/null
+++ b/net/tcptrace/pkg/PLIST
@@ -0,0 +1,5 @@
+bin/tcptrace
+share/doc/tcptrace/COPYRIGHT
+share/doc/tcptrace/README
+share/doc/tcptrace/README.tput_graphs
+@dirrm share/doc/tcptrace