diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/tcptrace/Makefile | 21 | ||||
-rw-r--r-- | net/tcptrace/PLIST | 3 | ||||
-rw-r--r-- | net/tcptrace/distinfo | 10 | ||||
-rw-r--r-- | net/tcptrace/patches/patch-aa | 60 | ||||
-rw-r--r-- | net/tcptrace/patches/patch-ab | 16 | ||||
-rw-r--r-- | net/tcptrace/patches/patch-ac | 24 |
6 files changed, 69 insertions, 65 deletions
diff --git a/net/tcptrace/Makefile b/net/tcptrace/Makefile index 47b6bd71f74..a7f8d65b86a 100644 --- a/net/tcptrace/Makefile +++ b/net/tcptrace/Makefile @@ -1,22 +1,27 @@ -# $NetBSD: Makefile,v 1.17 2003/07/17 22:51:55 grant Exp $ +# $NetBSD: Makefile,v 1.18 2003/08/20 08:28:56 grant Exp $ # FreeBSD Id: Makefile,v 1.3 1997/07/19 19:43:36 fenner Exp # -DISTNAME= tcptrace.5.2.1 -PKGNAME= tcptrace-5.2.1 -WRKSRC= ${WRKDIR}/tcptrace_5.2.1 +DISTNAME= tcptrace-6.4.2 CATEGORIES= net -MASTER_SITES= http://jarok.cs.ohiou.edu/software/tcptrace/files/5.2.1/ +MASTER_SITES= http://www.tcptrace.org/download/ MAINTAINER= tech-pkg@NetBSD.org -HOMEPAGE= http://jarok.cs.ohiou.edu/software/tcptrace/tcptrace.html +HOMEPAGE= http://www.tcptrace.org/ COMMENT= TCP dump file analysis tool GNU_CONFIGURE= yes +USE_BUILDLINK2= yes ALL_TARGET= tcptrace -DOCFILES= COPYRIGHT README README.tput_graphs +DOCFILES= COPYRIGHT FAQ README README.tput_graphs + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +LDFLAGS+= -lnsl -lsocket -lm +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/tcptrace ${PREFIX}/bin @@ -26,4 +31,6 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/tcptrace .endfor +.include "../../archivers/bzip2/buildlink2.mk" +.include "../../net/libpcap/buildlink2.mk" .include "../../mk/bsd.pkg.mk" diff --git a/net/tcptrace/PLIST b/net/tcptrace/PLIST index 2ed8ca9d902..7578b7c2475 100644 --- a/net/tcptrace/PLIST +++ b/net/tcptrace/PLIST @@ -1,7 +1,8 @@ -@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:59:29 zuntum Exp $ +@comment $NetBSD: PLIST,v 1.2 2003/08/20 08:28:56 grant Exp $ bin/tcptrace man/man1/tcptrace.1 share/doc/tcptrace/COPYRIGHT +share/doc/tcptrace/FAQ share/doc/tcptrace/README share/doc/tcptrace/README.tput_graphs @dirrm share/doc/tcptrace diff --git a/net/tcptrace/distinfo b/net/tcptrace/distinfo index 08ed25b6922..4a882bb04c4 100644 --- a/net/tcptrace/distinfo +++ b/net/tcptrace/distinfo @@ -1,7 +1,5 @@ -$NetBSD: distinfo,v 1.3 2003/01/12 21:07:44 tron Exp $ +$NetBSD: distinfo,v 1.4 2003/08/20 08:28:56 grant Exp $ -SHA1 (tcptrace.5.2.1.tar.gz) = 838f81a2f5537631c16af6ca49b69863f43d2bd3 -Size (tcptrace.5.2.1.tar.gz) = 1178005 bytes -SHA1 (patch-aa) = b338e2dada6cb3b1fee66d8d28b909cc5e6858fc -SHA1 (patch-ab) = 39483cb6be4bde804f62c5b437aaafa29af05fca -SHA1 (patch-ac) = 5caa809ef1accda51ee1d5275f18181fc9beba1e +SHA1 (tcptrace-6.4.2.tar.gz) = eb20557b9fe8ab6ec9e748e0bc72be057b835543 +Size (tcptrace-6.4.2.tar.gz) = 3384329 bytes +SHA1 (patch-aa) = 80b211dadb9ea9ebebf854e544d3694412baeac6 diff --git a/net/tcptrace/patches/patch-aa b/net/tcptrace/patches/patch-aa index 3efe9e29e23..cb21464bd34 100644 --- a/net/tcptrace/patches/patch-aa +++ b/net/tcptrace/patches/patch-aa @@ -1,12 +1,50 @@ -$NetBSD: patch-aa,v 1.6 1999/09/15 15:43:13 drochner Exp $ ---- Makefile.in.orig Wed Sep 8 03:31:58 1999 -+++ Makefile.in Wed Sep 15 16:40:36 1999 -@@ -179,7 +179,7 @@ - # easily. +$NetBSD: patch-aa,v 1.7 2003/08/20 08:28:57 grant Exp $ + +--- Makefile.in.orig 2003-04-04 09:38:48.000000000 +1000 ++++ Makefile.in +@@ -1,4 +1,4 @@ +-# ++# + # Makefile for tcptrace # - filt_parser.c: filt_parser.y filter.h -- bison -vd -p filtyy filt_parser.y -o filt_parser.c -+ yacc -vd -p filtyy -o filt_parser.c filt_parser.y - cp filt_parser.c flex_bison - cp filt_parser.h flex_bison - filt_scanner.c: filt_scanner.l filter.h filt_parser.h + srcdir = @srcdir@ +@@ -34,8 +34,8 @@ DEFINES += -DBUNZIP2="\"bunzip2\"" + # + ################################################################## + PCAP_LDLIBS = @V_PCAP_LDLIBS@ +-PCAP_INCS = -I/usr/local/include -I. -I../pcap -I/usr/include/pcap +-PCAP_LDFLAGS = -L/usr/local/lib -Llib -Lpcap -L../pcap -L./cygwin-libs ++PCAP_INCS = -I. ++PCAP_LDFLAGS = -Llib -L./cygwin-libs + + + +@@ -118,8 +118,8 @@ DEFINES += -DGROK_NETSCOUT + # + ################################################################## + # Pathname of directory to install the binary +-BINDIR = /usr/local/bin +-MANDIR = /usr/local/man/ ++BINDIR = ${PREFIX}/bin ++MANDIR = ${PREFIX}/man + + + ################################################################## +@@ -140,7 +140,7 @@ INCLS = -I. @V_INCLS@ ${PCAP_INCS} + # Probably want full optimization + # FreeBSD needs -Ae + # HP needs -Ae +-CFLAGS = $(CCOPT) $(DEFINES) @DEFS@ @V_DEFINES@ $(INCLS) ++CFLAGS += $(CCOPT) $(DEFINES) @DEFS@ @V_DEFINES@ $(INCLS) + + # Standard LIBS + LDLIBS = @LIBS@ ${PCAP_LDLIBS} +@@ -185,7 +185,7 @@ tcptrace: ${OFILES} + # your machine, just hack in a quick string below in place of the command. + version.o: ${CFILES} Makefile + ${CC} ${CFLAGS} -o version.o -c $(srcdir)/version.c \ +- -DBUILT_USER="\"`whoami`\"" -DBUILT_HOST="\"`hostname`\"" -DBUILT_DATE="\"`date`\"" ++ -DBUILT_USER="\"${USER}\"" -DBUILT_HOST="\"${HOST}\"" -DBUILT_DATE="\"`date`\"" + + # + # special rules for scanner/parser diff --git a/net/tcptrace/patches/patch-ab b/net/tcptrace/patches/patch-ab deleted file mode 100644 index 01fff35537a..00000000000 --- a/net/tcptrace/patches/patch-ab +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-ab,v 1.3 2003/01/12 21:07:45 tron Exp $ - ---- tcptrace.h.orig Thu Aug 12 19:33:10 1999 -+++ tcptrace.h Sun Jan 12 22:03:30 2003 -@@ -484,10 +484,7 @@ - - - /* external routine decls */ --double sqrt(double x); --char *ether_ntoa(struct ether_addr *e); --void free(void *); --int finite(double); -+char *my_ether_ntoa(struct ether_addr *e); - - - /* global routine decls */ diff --git a/net/tcptrace/patches/patch-ac b/net/tcptrace/patches/patch-ac deleted file mode 100644 index 67684572179..00000000000 --- a/net/tcptrace/patches/patch-ac +++ /dev/null @@ -1,24 +0,0 @@ -$NetBSD: patch-ac,v 1.3 2003/01/12 21:07:45 tron Exp $ - ---- print.c.orig Wed Sep 8 00:40:15 1999 -+++ print.c Sun Jan 12 22:05:19 2003 -@@ -110,8 +110,8 @@ - printeth_packet( - struct ether_header *pep) - { -- printf("\tETH Srce: %s\n", ether_ntoa((struct ether_addr *)&pep->ether_shost)); -- printf("\tETH Dest: %s\n", ether_ntoa((struct ether_addr *)&pep->ether_dhost)); -+ printf("\tETH Srce: %s\n", my_ether_ntoa((struct ether_addr *)&pep->ether_shost)); -+ printf("\tETH Dest: %s\n", my_ether_ntoa((struct ether_addr *)&pep->ether_dhost)); - - printf( - hex?"\t Type: 0x%x %s\n":"\t Type: %d %s\n", -@@ -708,7 +708,7 @@ - /* and it messes up my cross-platform testing. I'll just do it the */ - /* "one true" way! :-) */ - char * --ether_ntoa (struct ether_addr *e) -+my_ether_ntoa (struct ether_addr *e) - { - unsigned char *pe; - static char buf[30]; |