Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2000 19:32:27 +0800 (CST)
From:      tung@turtle.ee.ncku.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/20679: Port of Tcpview-1.0
Message-ID:  <200008171132.TAA14337@turtle.ee.ncku.edu.tw>

next in thread | raw e-mail | index | archive | help

>Number:         20679
>Category:       ports
>Synopsis:       Port of Tcpview-1.0
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 17 04:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     tung@turtle.ee.ncku.edu.tw
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
Distributed System Lab. E.E. National Chung-Keng University, Taiwan, R.O.C.
>Environment:

	

>Description:

	A Motif-based TCP/IP protocol analyzer

>How-To-Repeat:

	

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	tcpview
#	tcpview/files
#	tcpview/files/md5
#	tcpview/patches
#	tcpview/patches/patch-aa
#	tcpview/patches/patch-ab
#	tcpview/pkg
#	tcpview/pkg/PLIST
#	tcpview/pkg/DESCR
#	tcpview/pkg/COMMENT
#	tcpview/Makefile
#
echo c - tcpview
mkdir -p tcpview > /dev/null 2>&1
echo c - tcpview/files
mkdir -p tcpview/files > /dev/null 2>&1
echo x - tcpview/files/md5
sed 's/^X//' >tcpview/files/md5 << 'END-of-tcpview/files/md5'
XMD5 (tcpview-1.0.tar.Z) = d18785cbfab71cb41f908e40abc7eef1
END-of-tcpview/files/md5
echo c - tcpview/patches
mkdir -p tcpview/patches > /dev/null 2>&1
echo x - tcpview/patches/patch-aa
sed 's/^X//' >tcpview/patches/patch-aa << 'END-of-tcpview/patches/patch-aa'
X--- Makefile	Fri Apr 23 05:40:24 1993
X+++ Makefile	Thu Aug 17 19:18:42 2000
X@@ -28,10 +28,10 @@
X #
X # CSLIP and PPP work only under BPF.					
X #
X-DEFINES = 
X+DEFINES = -DCSLIP -DPPP
X CCOPT = -O2
X-INCLUDES = -I..
X-LIB =
X+INCLUDES = -I.. -I/usr/X11R6/include
X+LIB =-ll
X 
X # These are for the Sun4 version
X #CCOPT = -O2 -Bstatic
X@@ -41,20 +41,20 @@
X XLIB= -lXm -lXt -lX11
X 
X # The installed binary is owned by this group.
X-GROUP = staff
X+GROUP = wheel
X 
X # Full pathname of where to install the binaries
X BINDEST = /usr/local/bin
X TCPSLICE_BINDEST = /usr/local/bin
X 
X # Full pathname of where to install tcpview support files
X-TCPVIEW_DIR = /usr/local/tcpview
X-FILTER_DIR = /usr/local/tcpview/filters
X+TCPVIEW_DIR = /usr/local/lib/tcpview
X+FILTER_DIR = /usr/local/lib/tcpview/filters
X 
X # Full pathname of where to install the manual entries
X-TCPDUMP_MANDEST = /usr/man/manl/tcpdump.l
X-TCPVIEW_MANDEST = /usr/man/manl/tcpview.l
X-TCPSLICE_MANDEST = /usr/man/manl/tcpslice.l
X+TCPDUMP_MANDEST = /usr/local/man/man1/tcpdump.1
X+TCPVIEW_MANDEST = /usr/local/man/man1/tcpview.1
X+TCPSLICE_MANDEST = /usr/local/man/man1/tcpslice.1
X 
X # Standard CFLAGS
X STANDARD_CFLAGS = $(CCOPT) $(DEFINES) $(INCLUDES)
X@@ -92,7 +92,8 @@
X # Also, gcc does not remove the .o before forking 'as', which can be a
X # problem if you don't own the file but can write to the directory.
X .c.o:
X-	rm -f $@; $(CC) $(CFLAGS) -c $*.c
X+#	rm -f $@; $(CC) $(CFLAGS) -c $*.c
X+	$(CC) $(CFLAGS) -c $*.c
X 
X # List all C source files here
X 
X@@ -189,7 +190,7 @@
X 	$(CC) $(CFLAGS) -o $@ $(TCPDUMP_OBJ) $(LIB)
X 
X tcpview: $(TCPVIEW_OBJ)
X-	$(CC) $(CFLAGS) -o $@ $(TCPVIEW_OBJ) $(XLIB) $(LIB)
X+	$(CC) $(CFLAGS) -o $@ $(TCPVIEW_OBJ) -L/usr/X11R6/lib $(XLIB) $(LIB)
X 
X tcpslice: $(TCPSLICE_OBJ)
X 	$(CC) $(CFLAGS) -o $@ $(TCPSLICE_OBJ)
X@@ -261,20 +262,21 @@
X 	cd $$dir ; ${MAKE} ${MFLAGS} depend2
X 
X tcplex.c: tcplex.l
X-	rm -f $@
X+#	rm -f $@
X 	$(LEX) $<
X 	mv -f lex.yy.c tcplex.c
X 
X tokdefs.h: tcpgram.c
X tcpgram.c: tcpgram.y
X-	rm -f tcpgram.c tokdefs.h
X+#	rm -f tcpgram.c tokdefs.h
X 	$(YACC) -d $<
X 	mv y.tab.c tcpgram.c
X 	mv y.tab.h tokdefs.h
X 
X version.o: version.c
X version.c version.h: VERSION TCPVIEW_VERSION
X-	rm -f version.c ; sed 's/.*/char version[] = "&";/' VERSION > version.c
X+#	rm -f version.c ; 
X+	sed 's/.*/char version[] = "&";/' VERSION > version.c
X 	sed 's/.*/char tcpview_version[] = "&";/' TCPVIEW_VERSION >> version.c
X 	set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' VERSION` ; \
X 		{ echo '#define VERSION_MAJOR' $$1 ; \
X@@ -287,22 +289,22 @@
X install: force
X 	-mkdir -p $(TCPVIEW_DIR)
X 	-mkdir -p $(FILTER_DIR) 
X-	@dir=$(MD)-$(OS)-tcpdump; set -x; \
X-	cd $$dir ; \
X-	    install -m 755 -g $(GROUP) tcpdump $(DESTDIR)$(BINDEST); \
X-	    install -m 755 tcpslice $(DESTDIR)$(TCPSLICE_BINDEST)
X+#	@dir=$(MD)-$(OS)-tcpdump; set -x; \
X+#	cd $$dir ; \
X+#	    install -m 755 -g $(GROUP) -c tcpdump $(DESTDIR)$(BINDEST); \
X+#	    install -m 755 -c tcpslice $(DESTDIR)$(TCPSLICE_BINDEST)
X 	@dir=$(MD)-$(OS)-tcpview; set -x; \
X 	cd $$dir ; \
X-	    install -m 755 -g $(GROUP) tcpview $(DESTDIR)$(BINDEST); \
X-	    install -m 755 -g $(GROUP) BGP $(FILTER_DIR); \
X-	    install -m 755 -g $(GROUP) telnet $(FILTER_DIR); \
X-	    install -m 755 -g $(GROUP) generic $(FILTER_DIR); \
X+	    install -m 755 -g $(GROUP) -c tcpview $(DESTDIR)$(BINDEST); \
X+	    install -m 755 -g $(GROUP) -c BGP $(FILTER_DIR); \
X+	    install -m 755 -g $(GROUP) -c telnet $(FILTER_DIR); \
X+	    install -m 755 -g $(GROUP) -c generic $(FILTER_DIR); \
X 	cd ../DOC ; \
X 	install -m 666 -c hosts $(TCPVIEW_DIR); \
X 	install -m 666 -c manuf $(TCPVIEW_DIR); \
X-	install -c tcpdump.1 $(DESTDIR)$(TCPDUMP_MANDEST); \
X-	install -c tcpview.1 $(DESTDIR)$(TCPVIEW_MANDEST); \
X-	install -c tcpslice.1 $(DESTDIR)$(TCPSLICE_MANDEST)
X+	install -m 444 -c tcpview.1 $(DESTDIR)$(TCPVIEW_MANDEST); \
X+#	install -m 444 -c tcpdump.1 $(DESTDIR)$(TCPDUMP_MANDEST); \
X+#	install -m 444 -c tcpslice.1 $(DESTDIR)$(TCPSLICE_MANDEST)
X 
X lint:	force
X 	lint -hbxn $(CSRC) | \
X@@ -367,8 +369,3 @@
X 	-../mkdep $(DEFINES) $(INCLUDES) $(TCPVIEW_CSRC) \
X 		tcpgram.c tcplex.c
X 	rm -f $(GEN)
X-
X-
X-
X-
X-
X--- callbacks.c	Fri Apr 23 05:22:59 1993
X+++ callbacks.c	Tue Feb 25 22:14:56 1997
X@@ -66,7 +66,9 @@
X extern Widget hex_text_widget;        /* hex (bottom) window */
X extern Widget packet_label;
X 
X+/*
X extern char *sys_errlist[];
X+*/
X 
X #ifdef __STDC__
X void redisplay_current_list(void);
X--- detail-domain.c	Fri Apr 23 04:39:51 1993
X+++ detail-domain.c	Mon Mar  8 23:30:02 1999
X@@ -199,6 +199,7 @@
X       case T_ANY:		/* matches any type */
X 	strcpy(type_buf, "ANY");
X 	break;
X+#ifdef T_UNSPEC	
X       case T_UINFO:
X 	strcpy(type_buf, "UINFO");
X 	break;
X@@ -211,6 +212,7 @@
X       case T_UNSPEC:
X 	strcpy(type_buf, "UNSPEC");
X         break;
X+#endif        
X       default:
X 	sprintf(type_buf, "%d", type);
X         break;
X@@ -633,6 +635,7 @@
X 	printf("; errors = %s\n", str);
X 	MARK_WINDOW();
X 
X+#ifdef T_UNSPEC
X       case T_UINFO:
X         printf("    UINFO: ");
X         printf("%s\n", cp);
X@@ -654,6 +657,12 @@
X 	MARK_WINDOW();
X         break;
X 
X+      case T_UNSPEC:
X+	printf("    <binary data, see hex dump below>\n");
X+	INCR_PTRS(rdlength);
X+	MARK_WINDOW();
X+	break;
X+#endif
X       case T_WKS:
X         if (rdlength < (int)(sizeof(u_long) + 1))
X             break;
X@@ -730,11 +739,6 @@
X 	break;
X 
X 
X-      case T_UNSPEC:
X-	printf("    <binary data, see hex dump below>\n");
X-	INCR_PTRS(rdlength);
X-	MARK_WINDOW();
X-	break;
X 
X 
X       default:
X--- detail-tcp.c	Fri Apr 23 04:39:55 1993
X+++ detail-tcp.c	Mon Mar  8 23:27:08 1999
X@@ -37,6 +37,7 @@
X #endif
X 
X #include <sys/types.h>
X+#include <sys/param.h>
X #include <netinet/in.h>
X #include <netinet/in_systm.h>
X #include <netinet/ip.h>
X--- detail-udp.c	Fri Apr 23 04:39:55 1993
X+++ detail-udp.c	Mon Mar  8 23:27:39 1999
X@@ -37,6 +37,7 @@
X #endif
X 
X #include <sys/types.h>
X+#include <sys/param.h>
X #include <sys/socket.h>
X #include <netinet/in.h>
X #include <netinet/in_systm.h>
X@@ -50,11 +51,15 @@
X #include <errno.h>
X #include <sys/time.h>
X #include <rpc/types.h>
X+#include <rpc/xdr.h>
X #include <rpc/auth.h>
X #include <rpc/auth_unix.h>
X #include <rpc/svc.h>
X-#include <rpc/xdr.h>
X #include <rpc/rpc_msg.h>
X+#include <sys/ucred.h> 
X+#include <sys/mount.h>
X+#include <nfs/rpcv2.h>
X+#include <nfs/nfsv2.h>
X #include <nfs/nfs.h>
X 
X #include "interface.h"
X--- md-386.c	Thu Jan  1 08:00:00 1970
X+++ md-386.c	Thu Aug 17 19:15:37 2000
X@@ -0,0 +1,6 @@
X+int
X+clock_sigfigs()
X+{
X+	return 3;
X+}
X+
X--- md-386.h	Thu Jan  1 08:00:00 1970
X+++ md-386.h	Thu Aug 17 19:15:33 2000
X@@ -0,0 +1,16 @@
X+#define TCPDUMP_ALIGN
X+
X+#include <machine/endian.h>
X+
X+/* 32-bit data types */
X+/* N.B.: this doesn't address printf()'s %d vs. %ld formats */
X+/*
X+typedef	long	int32;		
X+*/
X+/* signed 32-bit integer */
X+#ifndef	AUTH_UNIX
X+/*
X+typedef	u_long	u_int32;	
X+*/
X+/* unsigned 32-bit integer */
X+#endif
X--- mdtype	Mon Feb 17 13:29:48 1992
X+++ mdtype	Tue Feb 25 23:35:31 1997
X@@ -7,10 +7,18 @@
X if ( -f /bin/arch ) set mach=`/bin/arch`
X if ($mach == "UNKNOWN") then
X 	set temp=`machine`
X-	if ($temp != "") set mach=$temp
X-endif
X+	if ($temp != "") set mach=$temp 
X+endif 
X+
X # Hack, hack...
X if ($mach == "sparc") set mach=sun4
X+
X+# Hack for FreeBSD
X+if ($mach == "UNKNOWN") then
X+	set temp=`uname|grep FreeBSD`
X+	if ($temp != "") set mach=386
X+endif
X+
X echo $mach
X if ($mach == "UNKNOWN") exit 1
X exit 0
X--- ostype.awk	Tue Jan 28 04:37:30 1992
X+++ ostype.awk	Tue Feb 25 21:16:42 1997
X@@ -12,7 +12,7 @@
X 	os = "sunos4"
X }
X 
X-$0 ~ /^4.[1-9]\ ?BSD / {
X+$0 ~ /BSD / {
X 	os = "bsd"
X }
X 
X--- print-domain.c	Fri Apr 23 04:40:15 1993
X+++ print-domain.c	Mon Mar  8 23:20:34 1999
X@@ -137,10 +137,10 @@
X 	case T_HINFO:	printf(" HINFO"); break;
X 	case T_MINFO:	printf(" MINFO"); break;
X 	case T_MX:	printf(" MX"); break;
X+#ifdef T_UNSPEC
X 	case T_UINFO:	printf(" UINFO"); break;
X 	case T_UID:	printf(" UID"); break;
X 	case T_GID:	printf(" GID"); break;
X-#ifdef T_UNSPEC
X 	case T_UNSPEC:	printf(" UNSPEC"); break;
X #endif
X 	case T_AXFR:	printf(" AXFR"); break;
X@@ -213,10 +213,10 @@
X 			}
X #endif
X 			break;
X+#ifdef T_UNSPEC
X 	case T_UINFO:	printf(" UINFO"); break;
X 	case T_UID:	printf(" UID"); break;
X 	case T_GID:	printf(" GID"); break;
X-#ifdef T_UNSPEC
X 	case T_UNSPEC:	printf(" UNSPEC"); break;
X #endif
X 	case T_AXFR:	printf(" AXFR"); break;
X--- print-fddi.c	Fri Apr 23 04:40:16 1993
X+++ print-fddi.c	Tue Feb 25 22:21:53 1997
X@@ -54,6 +54,10 @@
X #include "interface.h"
X #include "addrtoname.h"
X 
X+
X+int     fddipad = 0;      /* for proper alignment of header */   
X+
X+
X /*
X  * NOTE:  This is a very preliminary hack for FDDI support.
X  * There are all sorts of wired in constants & nothing (yet)
X--- print-nfs.c	Fri Apr 23 04:40:18 1993
X+++ print-nfs.c	Mon Mar  8 23:24:45 1999
X@@ -38,10 +38,10 @@
X #include <sys/time.h>
X #include <errno.h>
X #include <rpc/types.h>
X+#include <rpc/xdr.h>
X #include <rpc/auth.h>
X #include <rpc/auth_unix.h>
X #include <rpc/svc.h>
X-#include <rpc/xdr.h>
X #include <rpc/rpc_msg.h>
X 
X #include <ctype.h>
X@@ -54,6 +54,13 @@
X /* These must come after interface.h for BSD. */
X #if BSD >= 199006
X #include <sys/ucred.h>
X+#include <sys/mount.h>
X+/*#include <rpcsvc/nfs_prot.h>*/
X+#define	NFSPROC_WRITECACHE ((unsigned long)(7))
X+#define	NFSPROC_ROOT ((unsigned long)(3))
X+#define	NFSPROC_STATFS ((unsigned long)(17))
X+
X+#include <nfs/rpcv2.h>
X #include <nfs/nfsv2.h>
X #endif
X #include <nfs/nfs.h>
X@@ -250,11 +257,13 @@
X 			return;
X 		break;
X 
X+/*
X #if RFS_ROOT != NFSPROC_NOOP
X 	case RFS_ROOT:
X 		printf(" root");
X 		break;
X #endif
X+*/
X 	case RFS_LOOKUP:
X 		printf(" lookup");
X 		if ((dp = parsereq(rp, length)) != 0 && parsefhn(dp) != 0)
X@@ -277,7 +286,7 @@
X 			return;
X 		}
X 		break;
X-
X+/*
X #if RFS_WRITECACHE != NFSPROC_NOOP
X 	case RFS_WRITECACHE:
X 		printf(" writecache");
X@@ -291,6 +300,7 @@
X 		}
X 		break;
X #endif
X+*/
X 	case RFS_WRITE:
X 		printf(" write");
X 		if ((dp = parsereq(rp, length)) != 0 &&
X--- print-snmp.c	Fri Apr 23 04:40:27 1993
X+++ print-snmp.c	Wed Feb 26 00:13:29 1997
X@@ -1045,7 +1045,7 @@
X   if (!Mib)
X     Mib = read_mib("mib.txt");
X   if (!Mib)
X-    Mib = read_mib("/usr/local/mib/mib.txt");
X+    Mib = read_mib("/usr/local/lib/tcpview/mib/mib.txt");
X   if (!Mib){
X     err_print("Couldn't find mib file\n");
X     exit(2);
X--- print-sunrpc.c	Fri Apr 23 04:40:27 1993
X+++ print-sunrpc.c	Tue Feb 25 21:33:36 1997
X@@ -38,10 +38,10 @@
X #include <sys/time.h>
X #include <errno.h>
X #include <rpc/types.h>
X+#include <rpc/xdr.h>
X #include <rpc/auth.h>
X #include <rpc/auth_unix.h>
X #include <rpc/svc.h>
X-#include <rpc/xdr.h>
X #include <rpc/rpc_msg.h>
X 
X #include <rpc/pmap_prot.h>
X--- print-udp.c	Fri Apr 23 04:40:29 1993
X+++ print-udp.c	Mon Mar  8 23:02:08 1999
X@@ -39,10 +39,10 @@
X #include <errno.h>
X #include <sys/time.h>
X #include <rpc/types.h>
X+#include <rpc/xdr.h>
X #include <rpc/auth.h>
X #include <rpc/auth_unix.h>
X #include <rpc/svc.h>
X-#include <rpc/xdr.h>
X #include <rpc/rpc_msg.h>
X 
X #ifdef TCPVIEW
X@@ -53,6 +53,8 @@
X /* These must come after interface.h for BSD. */
X #if BSD >= 199006
X #include <sys/ucred.h>
X+#include <sys/mount.h>
X+#include <nfs/rpcv2.h>
X #include <nfs/nfsv2.h>
X #endif
X #include <nfs/nfs.h>
X--- tcpview.c	Fri Apr 23 04:40:33 1993
X+++ tcpview.c	Tue Feb 25 23:48:35 1997
X@@ -33,7 +33,7 @@
X 
X #include <stdio.h>
X #include <sys/types.h>
X-#include <sys/limits.h>
X+#include <limits.h>
X #include  <X11/Xlib.h>
X #include  <X11/Intrinsic.h>
X #include  <X11/StringDefs.h>
X@@ -155,13 +155,13 @@
X 
X static XtResource resources[] = {
X   { "hostnames", "Hostnames", XtRString, sizeof(String), 
X-      XtOffset(params_ptr, hostnames), XtRString, "/usr/local/tcpview/hosts" },
X+      XtOffset(params_ptr, hostnames), XtRString, "/usr/local/lib/tcpview/hosts" },
X   { "manuf", "Manuf", XtRString, sizeof(String), 
X-      XtOffset(params_ptr, manuf), XtRString, "/usr/local/tcpview/manuf" },
X+      XtOffset(params_ptr, manuf), XtRString, "/usr/local/lib/tcpview/manuf" },
X   { "services", "Services", XtRString, sizeof(String), 
X       XtOffset(params_ptr, services), XtRString, "/etc/services" },
X   { "filters", "Filters", XtRString, sizeof(String), 
X-      XtOffset(params_ptr, filters), XtRString, "/usr/local/tcpview/filters" },
X+      XtOffset(params_ptr, filters), XtRString, "/usr/local/lib/tcpview/filters" },
X   { "viewer", "Viewer", XtRString, sizeof(String), 
X       XtOffset(params_ptr, viewer), XtRString, "*" },
X   { "printcommand", "Printcommand", XtRString, sizeof(String), 
X--- tv_addrtoname.c	Fri Apr 23 04:40:35 1993
X+++ tv_addrtoname.c	Tue Feb 25 22:05:49 1997
X@@ -110,6 +110,7 @@
X   u_short p;
X };
X 
X+#define IPPROTO_HELLO           63              /* "hello" routing protocol */
X struct ipproto ipproto_db[] = {
X   { "IP", IPPROTO_IP },
X   { "ICMP", IPPROTO_ICMP },
END-of-tcpview/patches/patch-aa
echo x - tcpview/patches/patch-ab
sed 's/^X//' >tcpview/patches/patch-ab << 'END-of-tcpview/patches/patch-ab'
X--- DOC/INSTALL.binaries	Fri Apr 23 05:58:49 1993
X+++ DOC/INSTALL.binaries	Wed Feb 26 00:12:18 1997
X@@ -2,9 +2,9 @@
X Installing Tcpview
X 
X 1. Create a directory for the tcpview support files.  I use 
X-/usr/local/tcpview.  Create /usr/local/tcpview/filters for the filters.
X+/usr/local/lib/tcpview.  Create /usr/local/lib/tcpview/filters for the filters.
X Copy BGP, generic, and telnet from bin to the filters directory. Copy
X-manuf and hosts to /usr/local/tcpview.  Edit the last two files as 
X+manuf and hosts to /usr/local/lib/tcpview.  Edit the last two files as 
X needed.
X 
X 2. Edit a copy of the tcpview resource file, which is DOC/Tcpview.  Change
X@@ -21,7 +21,7 @@
X a copy of MOSY, download the UW-CMU SNMP package on ftp.cac.washington.edu.
X Tcpdump and tcpview will search for the mib file in the following locations,
X using the first one found: the environmental variable "MIBFILE", ./mib.txt,
X-and /usr/local/mib/mib.txt.
X+and /usr/local/lib/tcpview/mib/mib.txt.
X 
X 5. If you are running on an Ultrix system, you will have to run pfconfig
X before you can capture any data.  On a Sun system, you should make
X--- DOC/Tcpview	Tue Mar 30 07:26:25 1993
X+++ DOC/Tcpview	Wed Feb 26 00:30:33 1997
X@@ -1,18 +1,22 @@
X+*.foreground:	brown
X+*.background:	ivory2
X+
X+
X ! These are the fonts used in the summary window.  For best results, choose
X ! fixed fonts where the second font is exactly the same size as the first, only
X ! BOLD
X-*FontList: courier12=chset1, courB12=chset2
X+!*FontList: courier12=chset1, courB12=chset2
X !
X ! This is the directory that contains the external protocol filters
X-! default is /usr/local/tcpview/filters
X-!Tcpview.filters:	/usr/staff/martinh/tcp/filters
X+! default is /usr/local/lib/tcpview/filters
X+Tcpview.filters:	/usr/local/lib/tcpview/filters
X !
X ! Print Command.  Default is "lpr"
X-Tcpview.printcommand:	enscript -2r
X+Tcpview.printcommand:	lpr 
X !
X ! set the height and width of the initial window
X ! There are no defaults
X-Tcpview.height:		800
X+Tcpview.height:		465
X Tcpview.width:		600
X !
X ! this sets the number of visible items in each pane
X@@ -23,11 +27,11 @@
X !
X ! Full pathnames for files containing manufacturer id's, ethernet numbers,
X ! and tcp/udp service mappings.  See sample files for format. 
X-! Defaults are /usr/local/tcpview/manuf, /usr/local/tcpview/hosts, 
X+! Defaults are /usr/local/lib/tcpview/manuf, /usr/local/lib/tcpview/hosts, 
X ! and /etc/services
X-!Tcpview.manuf:		/usr/local/sniffer/manuf
X-!Tcpview.hostnames:	/usr/local/sniffer/ethers
X-!Tcpview.services:	/usr/local/sniffer/services
X+Tcpview.manuf:		/usr/local/lib/tcpview/manuf
X+Tcpview.hostnames:	/usr/local/lib/tcpview/hosts
X+Tcpview.services:	/etc/services
X 
X ! Lookup (using DNS) names of hosts not on your local subnet
X ! default is true.  If 'false', IP numbers will be used on foreign hosts.
X@@ -85,10 +89,3 @@
X !	4 - Print Relative times
X !
X !Tcpview.time:	4
X-
X-
X-
X-
X-
X-
X-
X--- DOC/tcpview.1	Fri Mar 26 04:41:02 1993
X+++ DOC/tcpview.1	Wed Feb 26 00:16:53 1997
X@@ -234,11 +234,11 @@
X .RS
X \fIResource name\fP		\fIDefault\fP
X .PP
X-Tcpview.hostnames:     /usr/local/tcpview/ethers
X+Tcpview.hostnames: /usr/local/lib/tcpview/ethers
X .PP
X-Tcpview.manuf:         /usr/local/tcpview/manuf
X+Tcpview.manuf:     /usr/local/lib/tcpview/manuf
X .PP
X-Tcpview.services:      /etc/services
X+Tcpview.services:  /etc/services
X .PP
X The hostnames file contains DLC-to-name mappings.  It is in the same format 
X as \fISniffer\fP name files.
END-of-tcpview/patches/patch-ab
echo c - tcpview/pkg
mkdir -p tcpview/pkg > /dev/null 2>&1
echo x - tcpview/pkg/PLIST
sed 's/^X//' >tcpview/pkg/PLIST << 'END-of-tcpview/pkg/PLIST'
Xbin/tcpview
Xlib/tcpview/filters/BGP
Xlib/tcpview/filters/telnet
Xlib/tcpview/filters/generic
Xlib/tcpview/hosts
Xlib/tcpview/manuf
X@dirrm lib/tcpview/filters
X@dirrm lib/tcpview
X@cwd /usr/X11R6
Xlib/X11/app-defaults/Tcpview
END-of-tcpview/pkg/PLIST
echo x - tcpview/pkg/DESCR
sed 's/^X//' >tcpview/pkg/DESCR << 'END-of-tcpview/pkg/DESCR'
XTcpview is Motif-based TCP/IP protocol analyzer.
X
XIt is a graphic version conterpart of the tcpdump.
XIt enables the user to analysis the tcp/ip packet with confortable 
Xgraphic interface.
X
Xftp://ftp.cac.washington.edu/pub/noc-tools/tcpview/tcpview-1.0.tar.readme
X
XChung-Kie Tung
Xtung@turtle.ee.ncku.edu.tw
END-of-tcpview/pkg/DESCR
echo x - tcpview/pkg/COMMENT
sed 's/^X//' >tcpview/pkg/COMMENT << 'END-of-tcpview/pkg/COMMENT'
XA Motif-based TCP/IP protocol analyzer
END-of-tcpview/pkg/COMMENT
echo x - tcpview/Makefile
sed 's/^X//' >tcpview/Makefile << 'END-of-tcpview/Makefile'
X# New ports collection makefile for:   tcpview-1.0
X# Date created:        18 Aug 2000
X# Whom:                Chung-Kie Tung <tung@turtle.ee.ncku.edu.tw>
X#
X# $FreeBSD$
X#
X    
XPORTNAME=	tcpview
XPORTVERSION=	1.0
XCATEGORIES=	net
XMASTER_SITES=	ftp://ftp.cac.washington.edu/pub/noc-tools/tcpview/
XEXTRACT_SUFX=	.tar.Z
X
XBUILD_DEPENDS=	bison:${PORTSDIR}/devel/bison
X
XMAINTAINER=	tung@turtle.ee.ncku.edu.tw
X
XMAN1=		tcpview.1
X
XREQUIRES_MOTIF=	yes
X
Xpost-install:
X	strip ${PREFIX}/bin/tcpview; \
X	cp ${WRKSRC}/DOC/Tcpview /usr/X11R6/lib/X11/app-defaults/
X
X.include <bsd.port.mk>
END-of-tcpview/Makefile
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008171132.TAA14337>