summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/trafd/Makefile22
-rw-r--r--net-mgmt/trafd/distinfo1
-rw-r--r--net-mgmt/trafd/files/patch-aa21
-rw-r--r--net-mgmt/trafd/pkg-comment1
-rw-r--r--net-mgmt/trafd/pkg-descr21
-rw-r--r--net-mgmt/trafd/pkg-plist11
-rw-r--r--net/Makefile1
-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
13 files changed, 155 insertions, 0 deletions
diff --git a/net-mgmt/trafd/Makefile b/net-mgmt/trafd/Makefile
new file mode 100644
index 0000000..5d4e8b6
--- /dev/null
+++ b/net-mgmt/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-mgmt/trafd/distinfo b/net-mgmt/trafd/distinfo
new file mode 100644
index 0000000..9d255dd
--- /dev/null
+++ b/net-mgmt/trafd/distinfo
@@ -0,0 +1 @@
+MD5 (trafd-3.0.tgz) = 7880a8de300414e6afefc8f9fcc1f69e
diff --git a/net-mgmt/trafd/files/patch-aa b/net-mgmt/trafd/files/patch-aa
new file mode 100644
index 0000000..8a703a7
--- /dev/null
+++ b/net-mgmt/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-mgmt/trafd/pkg-comment b/net-mgmt/trafd/pkg-comment
new file mode 100644
index 0000000..f2898ca7
--- /dev/null
+++ b/net-mgmt/trafd/pkg-comment
@@ -0,0 +1 @@
+The BPF Traffic Collector
diff --git a/net-mgmt/trafd/pkg-descr b/net-mgmt/trafd/pkg-descr
new file mode 100644
index 0000000..b091378
--- /dev/null
+++ b/net-mgmt/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-mgmt/trafd/pkg-plist b/net-mgmt/trafd/pkg-plist
new file mode 100644
index 0000000..b6a9dcf
--- /dev/null
+++ b/net-mgmt/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
diff --git a/net/Makefile b/net/Makefile
index 4ea1dab..5e2a20d 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 0000000..5d4e8b6
--- /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 0000000..9d255dd
--- /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 0000000..8a703a7
--- /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 0000000..f2898ca7
--- /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 0000000..b091378
--- /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 0000000..b6a9dcf
--- /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
OpenPOWER on IntegriCloud