diff options
author | itojun <itojun> | 2000-08-11 05:34:08 +0000 |
---|---|---|
committer | itojun <itojun> | 2000-08-11 05:34:08 +0000 |
commit | 7b67dacc128e6d61eabfd4005e3f44a69530e578 (patch) | |
tree | 97f170273e7d833f316ca312f7a45c0f065529c7 | |
parent | 98a64cfb043adfb9b12068cd15ccbc9d27a44c0e (diff) | |
download | pkgsrc-7b67dacc128e6d61eabfd4005e3f44a69530e578.tar.gz |
trafshow 3.1
-rw-r--r-- | net/trafshow/Makefile | 36 | ||||
-rw-r--r-- | net/trafshow/files/md5 | 1 | ||||
-rw-r--r-- | net/trafshow/patches/patch-ac | 11 | ||||
-rw-r--r-- | net/trafshow/patches/patch-af | 13 | ||||
-rw-r--r-- | net/trafshow/pkg/COMMENT | 1 | ||||
-rw-r--r-- | net/trafshow/pkg/DESCR | 17 | ||||
-rw-r--r-- | net/trafshow/pkg/PLIST | 2 |
7 files changed, 81 insertions, 0 deletions
diff --git a/net/trafshow/Makefile b/net/trafshow/Makefile new file mode 100644 index 00000000000..1b2b8dd3a49 --- /dev/null +++ b/net/trafshow/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: trafshow +# Date created: 25 September 1996 +# Whom: igor@zynaps.ru +# +# $FreeBSD: ports/net/trafshow/Makefile,v 1.14 2000/06/28 12:53:15 alex Exp $ +# + +PORTNAME= trafshow +PORTVERSION= 3.1 +CATEGORIES= net +MASTER_SITES= ftp://ftp.nsk.su/pub/RinetSoftware/ +EXTRACT_SUFX= .tgz + +MAINTAINER= jseger@FreeBSD.org + +.include <bsd.port.pre.mk> +.if ${OSVERSION} < 400010 +LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses +.endif + +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" +ALL_TARGET= trafshow + +MAN1= trafshow.1 + +post-patch: + @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow + +.include <bsd.port.post.mk> diff --git a/net/trafshow/files/md5 b/net/trafshow/files/md5 new file mode 100644 index 00000000000..f404b24464c --- /dev/null +++ b/net/trafshow/files/md5 @@ -0,0 +1 @@ +MD5 (trafshow-3.1.tgz) = 085b99f160002a269b358aab1c5004f0 diff --git a/net/trafshow/patches/patch-ac b/net/trafshow/patches/patch-ac new file mode 100644 index 00000000000..c15ab541f4d --- /dev/null +++ b/net/trafshow/patches/patch-ac @@ -0,0 +1,11 @@ +--- color.c.orig Mon Jan 24 10:59:01 2000 ++++ color.c Mon Jan 24 10:57:36 2000 +@@ -336,7 +336,7 @@ + error(1, "init_color_mask: getpwuid"); + (void) sprintf(buf, "%s/.%s", pw->pw_dir, program_name); + if ((fp = fopen(buf, "r")) == NULL) { +- (void) strcpy(buf, "/etc/"); ++ (void) strcpy(buf, "%%PREFIX%%/etc/"); + (void) strcat(buf, program_name); + if ((fp = fopen(buf, "r")) == NULL) return 0; + } diff --git a/net/trafshow/patches/patch-af b/net/trafshow/patches/patch-af new file mode 100644 index 00000000000..dba73df91ae --- /dev/null +++ b/net/trafshow/patches/patch-af @@ -0,0 +1,13 @@ +--- Makefile.in.orig Mon Aug 24 13:54:16 1998 ++++ Makefile.in Tue May 2 00:51:47 2000 +@@ -28,8 +28,8 @@ + + PROG = trafshow + CC = @CC@ +-CCOPT = @V_CCOPT@ +-INCLS = -I. @V_INCLS@ ++CCOPT = @CFLAGS@ ++INCLS = -I. @CPPFLAGS@ + DEFS = @DEFS@ + + CFLAGS = $(CCOPT) $(DEFS) $(INCLS) diff --git a/net/trafshow/pkg/COMMENT b/net/trafshow/pkg/COMMENT new file mode 100644 index 00000000000..bef4f100764 --- /dev/null +++ b/net/trafshow/pkg/COMMENT @@ -0,0 +1 @@ +Full screen visualization of the network traffic diff --git a/net/trafshow/pkg/DESCR b/net/trafshow/pkg/DESCR new file mode 100644 index 00000000000..cd1260b6aaa --- /dev/null +++ b/net/trafshow/pkg/DESCR @@ -0,0 +1,17 @@ +TrafShow continuously display the information regarding packet +traffic on the configured network interface that match the boolean +expression. It periodically sort and updates this information. It +may be useful for locating suspicious network traffic on the net. + +To use TrafShow, your kernel must be rebuilt with the following line +added to your kernel config file (/sys/i386/conf/<YourMachine>): + +pseudo-device bpfilter 4 # Berkeley packet filter + +The number after bpfilter is the number of interfaces that can be +examined simultaneously. See section 5.8.3 of Handbook for details. + +WWW: http://www.rinetsoft.nsk.su/trafshow/index_en.html + +- Igor +igor@zynaps.ru diff --git a/net/trafshow/pkg/PLIST b/net/trafshow/pkg/PLIST new file mode 100644 index 00000000000..19aa4ae4556 --- /dev/null +++ b/net/trafshow/pkg/PLIST @@ -0,0 +1,2 @@ +bin/trafshow +etc/trafshow |