diff options
author | steve <steve@FreeBSD.org> | 2000-01-29 13:37:41 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2000-01-29 13:37:41 +0800 |
commit | 27b3587c2dc011805593a91065660bf86c4fbfdc (patch) | |
tree | b728cea835f3e9912ab4da2bd7d9ac570b2cf466 /net | |
parent | 799e91473e1d30d1d5e0daa6277c9e67c4929029 (diff) | |
download | freebsd-ports-gnome-27b3587c2dc011805593a91065660bf86c4fbfdc.tar.gz freebsd-ports-gnome-27b3587c2dc011805593a91065660bf86c4fbfdc.tar.zst freebsd-ports-gnome-27b3587c2dc011805593a91065660bf86c4fbfdc.zip |
Adding trafd version 3.0.
The BPF traffic collector.
PR: 16294
Submitted by: Michael Vasilenko <acid@stu.cn.ua>
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/trafd/Makefile | 22 | ||||
-rw-r--r-- | net/trafd/distinfo | 1 | ||||
-rw-r--r-- | net/trafd/files/patch-aa | 21 | ||||
-rw-r--r-- | net/trafd/pkg-comment | 1 | ||||
-rw-r--r-- | net/trafd/pkg-descr | 21 | ||||
-rw-r--r-- | net/trafd/pkg-plist | 11 |
7 files changed, 78 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 4ea1dabc3ee6..5e2a20d4314f 100644 --- a/net/Makefile +++ b/net/Makefile @@ -190,6 +190,7 @@ SUBDIR += tn3270 SUBDIR += tn5250 SUBDIR += traceroute + SUBDIR += trafd SUBDIR += trafshow SUBDIR += ttcp SUBDIR += ttt diff --git a/net/trafd/Makefile b/net/trafd/Makefile new file mode 100644 index 000000000000..5d4e8b6f7776 --- /dev/null +++ b/net/trafd/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: trafd +# Version required: 3.0 +# Date created: 22 January 2000 +# Whom: Michael Vasilenko <acid@stu.cn.ua> +# +# $FreeBSD$ +# + +DISTNAME= trafd-3.0 +CATEGORIES= net +MASTER_SITES= ftp://ftp.riss-telecom.ru/pub/dev/trafd/ +EXTRACT_SUFX= .tgz + +MAINTAINER= ports@FreeBSD.org + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/bpft + ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/bpft/README +.endif + +.include <bsd.port.mk> diff --git a/net/trafd/distinfo b/net/trafd/distinfo new file mode 100644 index 000000000000..9d255dda9b90 --- /dev/null +++ b/net/trafd/distinfo @@ -0,0 +1 @@ +MD5 (trafd-3.0.tgz) = 7880a8de300414e6afefc8f9fcc1f69e diff --git a/net/trafd/files/patch-aa b/net/trafd/files/patch-aa new file mode 100644 index 000000000000..8a703a73dc9e --- /dev/null +++ b/net/trafd/files/patch-aa @@ -0,0 +1,21 @@ +--- Makefile.orig Sun Jan 23 16:02:11 2000 ++++ Makefile Sun Jan 23 16:02:35 2000 +@@ -64,14 +64,14 @@ + @echo "Done." + + install: all +- install -s -o root -g ${GROUP} -m ${MODE} trafd/trafd ${PATH_BINDIR} ++ install -c -s -o root -g ${GROUP} -m ${MODE} trafd/trafd ${PATH_BINDIR} + install -c -o root -g ${GROUP} -m ${MODE} trafd/trafstart ${PATH_BINDIR} + install -c -o root -g ${GROUP} -m ${MODE} trafd/trafstop ${PATH_BINDIR} + install -c -o root -g ${GROUP} -m ${MODE} trafd/trafsave ${PATH_BINDIR} + install -c -o root -g ${GROUP} -m ${MODE} trafd/trafdump ${PATH_BINDIR} +- install -s -o root -g ${GROUP} -m ${MODE} trafstat/trafstat ${PATH_BINDIR} +- install -s -o root -g ${GROUP} -m ${MODE} trafstatd/trafstatd ${PATH_BINDIR} +- install -s -o root -g ${GROUP} -m ${MODE} traflog/traflog ${PATH_BINDIR} ++ install -c -s -o root -g ${GROUP} -m ${MODE} trafstat/trafstat ${PATH_BINDIR} ++ install -c -s -o root -g ${GROUP} -m ${MODE} trafstatd/trafstatd ${PATH_BINDIR} ++ install -c -s -o root -g ${GROUP} -m ${MODE} traflog/traflog ${PATH_BINDIR} + install -c -o root -g ${GROUP} -m ${MODE} traflog/traflog.format ${PATH_TRAFLOG_FMT} + @echo Done. + diff --git a/net/trafd/pkg-comment b/net/trafd/pkg-comment new file mode 100644 index 000000000000..f2898ca78fed --- /dev/null +++ b/net/trafd/pkg-comment @@ -0,0 +1 @@ +The BPF Traffic Collector diff --git a/net/trafd/pkg-descr b/net/trafd/pkg-descr new file mode 100644 index 000000000000..b09137875231 --- /dev/null +++ b/net/trafd/pkg-descr @@ -0,0 +1,21 @@ +bpft is a superset of trafshow, and extends it by adding a daemon +which collects data about network connections (src, dst, protocol +and length). The resulting data can be dumped to a file for later +processing. + +Read /usr/local/share/doc/bpft/README after installation for more +information. + +To use bpft, 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 6.1 of the Handbook for details. + +On FreeBSD 4.0 or later versions, use the following line instead: + +pseudo-device bpf 4 # Berkeley packet filter + +- oddbjorn <oddbjorn@tricknology.org> diff --git a/net/trafd/pkg-plist b/net/trafd/pkg-plist new file mode 100644 index 000000000000..b6a9dcf01cc9 --- /dev/null +++ b/net/trafd/pkg-plist @@ -0,0 +1,11 @@ +bin/trafd +bin/trafdump +bin/traflog +bin/trafsave +bin/trafstart +bin/trafstat +bin/trafstatd +bin/trafstop +etc/traflog.format +share/doc/bpft/README +@dirrm share/doc/bpft |