mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Adding trafd version 3.0.
The BPF traffic collector. PR: 16294 Submitted by: Michael Vasilenko <acid@stu.cn.ua>
This commit is contained in:
parent
7cd2b8f306
commit
83c80603a1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25217
13 changed files with 155 additions and 0 deletions
22
net-mgmt/trafd/Makefile
Normal file
22
net-mgmt/trafd/Makefile
Normal file
|
@ -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>
|
1
net-mgmt/trafd/distinfo
Normal file
1
net-mgmt/trafd/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (trafd-3.0.tgz) = 7880a8de300414e6afefc8f9fcc1f69e
|
21
net-mgmt/trafd/files/patch-aa
Normal file
21
net-mgmt/trafd/files/patch-aa
Normal file
|
@ -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.
|
||||
|
1
net-mgmt/trafd/pkg-comment
Normal file
1
net-mgmt/trafd/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
The BPF Traffic Collector
|
21
net-mgmt/trafd/pkg-descr
Normal file
21
net-mgmt/trafd/pkg-descr
Normal file
|
@ -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>
|
11
net-mgmt/trafd/pkg-plist
Normal file
11
net-mgmt/trafd/pkg-plist
Normal file
|
@ -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
|
|
@ -190,6 +190,7 @@
|
|||
SUBDIR += tn3270
|
||||
SUBDIR += tn5250
|
||||
SUBDIR += traceroute
|
||||
SUBDIR += trafd
|
||||
SUBDIR += trafshow
|
||||
SUBDIR += ttcp
|
||||
SUBDIR += ttt
|
||||
|
|
22
net/trafd/Makefile
Normal file
22
net/trafd/Makefile
Normal file
|
@ -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>
|
1
net/trafd/distinfo
Normal file
1
net/trafd/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (trafd-3.0.tgz) = 7880a8de300414e6afefc8f9fcc1f69e
|
21
net/trafd/files/patch-aa
Normal file
21
net/trafd/files/patch-aa
Normal file
|
@ -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.
|
||||
|
1
net/trafd/pkg-comment
Normal file
1
net/trafd/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
The BPF Traffic Collector
|
21
net/trafd/pkg-descr
Normal file
21
net/trafd/pkg-descr
Normal file
|
@ -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>
|
11
net/trafd/pkg-plist
Normal file
11
net/trafd/pkg-plist
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue