aboutsummaryrefslogtreecommitdiffstats
path: root/net/trafd
diff options
context:
space:
mode:
Diffstat (limited to 'net/trafd')
-rw-r--r--net/trafd/Makefile22
-rw-r--r--net/trafd/distinfo1
-rw-r--r--net/trafd/files/patch-aa21
-rw-r--r--net/trafd/pkg-comment1
-rw-r--r--net/trafd/pkg-descr21
-rw-r--r--net/trafd/pkg-plist11
6 files changed, 77 insertions, 0 deletions
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