diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 2004-02-23 04:42:13 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 2004-02-23 04:42:13 +0000 |
commit | 60aab665670e50cb18bba45ee25f2ed091759741 (patch) | |
tree | 924c1af9c149083e0626ceb279b67ad6ca69e630 /net/trafd | |
parent | BROKEN on !i386: Does not compile (diff) |
Say hello to the new "net-mgmt" category. There are probably more
ports that belong here than the ones I have identified and moved in
this, first, pass.
Approved in principle by: marcus
Diffstat (limited to 'net/trafd')
-rw-r--r-- | net/trafd/distinfo | 1 | ||||
-rw-r--r-- | net/trafd/files/patch-aa | 71 | ||||
-rw-r--r-- | net/trafd/files/patch-ab | 7 | ||||
-rw-r--r-- | net/trafd/files/patch-ac | 7 | ||||
-rw-r--r-- | net/trafd/files/patch-ad | 7 | ||||
-rw-r--r-- | net/trafd/files/patch-ae | 7 | ||||
-rw-r--r-- | net/trafd/files/patch-ah | 39 | ||||
-rw-r--r-- | net/trafd/files/trafd.sh.sample | 54 | ||||
-rw-r--r-- | net/trafd/pkg-descr | 21 | ||||
-rw-r--r-- | net/trafd/pkg-plist | 18 |
10 files changed, 0 insertions, 232 deletions
diff --git a/net/trafd/distinfo b/net/trafd/distinfo deleted file mode 100644 index dcebcedf0a57..000000000000 --- a/net/trafd/distinfo +++ /dev/null @@ -1 +0,0 @@ -MD5 (trafd-3.0.1.tgz) = 6a5abb246e95b68f0d53ebf789bda4fb diff --git a/net/trafd/files/patch-aa b/net/trafd/files/patch-aa deleted file mode 100644 index 250fb8c59302..000000000000 --- a/net/trafd/files/patch-aa +++ /dev/null @@ -1,71 +0,0 @@ ---- Makefile.orig Thu Nov 25 03:38:29 1999 -+++ Makefile Thu Feb 17 00:51:02 2000 -@@ -12,22 +12,22 @@ - # - - # Target directory for install execution files. --PATH_BINDIR=/usr/local/bin -+PATH_BINDIR=${PREFIX}/bin - - # Target directory for install man pages. --PATH_MANDIR=/usr/local/man/man1 -+PATH_MANDIR=${MANPREFIX}/man1 - - # Trailing slash directory, summary traffic log files will be put there. --PATH_TOSAVE=/var/trafd/ -+PATH_TOSAVE=${PREFIX}/var/trafd/ - - # Full pathname where locate tarfstat program. --PATH_TRAFSTAT=/usr/local/bin/trafstat -+PATH_TRAFSTAT=${PREFIX}/bin/trafstat - - # Where locate trafstatd log file, if you want log then file must exist. --PATH_TRAFSTAT_LOG=/var/log/trafstat.log -+PATH_TRAFSTAT_LOG=${PREFIX}/var/log/trafstat.log - - # File with user defined descriptions of the traflog output format. --PATH_TRAFLOG_FMT=/usr/local/etc/traflog.format -+PATH_TRAFLOG_FMT=${PREFIX}/etc/traflog.format - - # Only group wheel can execute binary files. - SHELL = /bin/sh -@@ -35,8 +35,8 @@ - GROUP = wheel - - # This options intended for BSD/OS V2. --CC = gcc --FLAGS = -O2 -+CC ?= gcc -+#FLAGS = -O2 - DEFINE = -DRETSIGTYPE=void -DRETSIGVAL= - #DEFINE += -DHAVE_FCNTL_H=1 - #DEFINE += -DHAVE_MEMORY_H=1 -@@ -45,7 +45,7 @@ - LDFLAGS = -L../lib -lbpft -lpcap -lcurses -ltermcap -ll - - INCLUDE = -I../include --CFLAGS = ${FLAGS} ${INCLUDE} ${DEFINE} \ -+CFLAGS += ${INCLUDE} ${DEFINE} \ - -DPATH_TOSAVE=\"${PATH_TOSAVE}\"\ - -DPATH_TRAFSTAT=\"${PATH_TRAFSTAT}\"\ - -DPATH_TRAFSTAT_LOG=\"${PATH_TRAFSTAT_LOG}\"\ -@@ -69,10 +69,15 @@ - 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 -o root -g ${GROUP} -m ${MODE} traflog/traflog.format ${PATH_TRAFLOG_FMT} -+ ${BSD_INSTALL_PROGRAM} trafd/trafd ${PATH_BINDIR} -+ ${BSD_INSTALL_SCRIPT} trafd/trafstart ${PATH_BINDIR} -+ ${BSD_INSTALL_SCRIPT} trafd/trafstop ${PATH_BINDIR} -+ ${BSD_INSTALL_SCRIPT} trafd/trafsave ${PATH_BINDIR} -+ ${BSD_INSTALL_SCRIPT} trafd/trafdump ${PATH_BINDIR} -+ ${BSD_INSTALL_PROGRAM} trafstat/trafstat ${PATH_BINDIR} -+ ${BSD_INSTALL_PROGRAM} trafstatd/trafstatd ${PATH_BINDIR} -+ ${BSD_INSTALL_PROGRAM} traflog/traflog ${PATH_BINDIR} -+ ${BSD_INSTALL_SCRIPT} traflog/traflog.format ${PATH_TRAFLOG_FMT} - @echo Done. - - clean: diff --git a/net/trafd/files/patch-ab b/net/trafd/files/patch-ab deleted file mode 100644 index 37b96f3f6542..000000000000 --- a/net/trafd/files/patch-ab +++ /dev/null @@ -1,7 +0,0 @@ ---- trafd/trafdump.orig Tue Feb 8 00:14:22 2000 -+++ trafd/trafdump Tue Feb 8 00:15:05 2000 -@@ -1,3 +1,4 @@ -+#!/bin/sh - # - # trafdump Copyright (c)1993 CAD lab - # diff --git a/net/trafd/files/patch-ac b/net/trafd/files/patch-ac deleted file mode 100644 index 3bd0c67318ad..000000000000 --- a/net/trafd/files/patch-ac +++ /dev/null @@ -1,7 +0,0 @@ ---- trafd/trafsave.orig Tue Feb 8 00:14:31 2000 -+++ trafd/trafsave Tue Feb 8 00:15:15 2000 -@@ -1,3 +1,4 @@ -+#!/bin/sh - # - # trafsave Copyright (c)1993 CAD lab - # diff --git a/net/trafd/files/patch-ad b/net/trafd/files/patch-ad deleted file mode 100644 index d03435051373..000000000000 --- a/net/trafd/files/patch-ad +++ /dev/null @@ -1,7 +0,0 @@ ---- trafd/trafstart.orig Tue Feb 8 00:14:42 2000 -+++ trafd/trafstart Tue Feb 8 00:15:38 2000 -@@ -1,3 +1,4 @@ -+#!/bin/sh - # - # trafstart Copyright (c)1993 CAD lab - # diff --git a/net/trafd/files/patch-ae b/net/trafd/files/patch-ae deleted file mode 100644 index b583de35ce86..000000000000 --- a/net/trafd/files/patch-ae +++ /dev/null @@ -1,7 +0,0 @@ ---- trafd/trafstop.orig Tue Feb 8 00:14:49 2000 -+++ trafd/trafstop Tue Feb 8 00:15:51 2000 -@@ -1,3 +1,4 @@ -+#!/bin/sh - # - # trafstop Copyright (c)1993 CAD lab - # diff --git a/net/trafd/files/patch-ah b/net/trafd/files/patch-ah deleted file mode 100644 index 832f7e5333d7..000000000000 --- a/net/trafd/files/patch-ah +++ /dev/null @@ -1,39 +0,0 @@ ---- trafd/traffic.c.buggy Mon Aug 7 18:45:54 2000 -+++ trafd/traffic.c Mon Aug 7 18:46:42 2000 -@@ -253,7 +253,7 @@ - t.p_port = tp->th_sport, t.who_srv = 1; - else if (tp->th_sport > tp->th_dport) - t.p_port = tp->th_dport, t.who_srv = 2; -- else if (tp->th_sport = tp->th_dport) -+ else if (tp->th_sport == tp->th_dport) - t.p_port = tp->th_sport, t.who_srv = 3; - if (t.p_port > IPPORT_RESERVED) { - if (s_port_big[tp->th_sport & (IPPORT_RESERVED-1)] & IPPROTO_TCP) { -@@ -263,7 +263,7 @@ - t.p_port = tp->th_dport; - t.who_srv = 2; - } -- if (tp->th_sport = tp->th_dport) t.who_srv = 3; -+ if (tp->th_sport == tp->th_dport) t.who_srv = 3; - } - traf_add(insertentry(&t), t.n_bytes, t.n_psize); - -@@ -300,7 +300,7 @@ - t.p_port = up->uh_sport, t.who_srv = 1; - else if (up->uh_sport > up->uh_dport) - t.p_port = up->uh_dport, t.who_srv = 2; -- else if (up->uh_sport = up->uh_dport) -+ else if (up->uh_sport == up->uh_dport) - t.p_port = up->uh_sport, t.who_srv = 3; - if (t.p_port > IPPORT_RESERVED) { - if (s_port_big[up->uh_sport & (IPPORT_RESERVED-1)] & IPPROTO_UDP) { -@@ -310,7 +310,7 @@ - t.p_port = up->uh_dport; - t.who_srv = 2; - } -- if (up->uh_sport = up->uh_dport) t.who_srv = 3; -+ if (up->uh_sport == up->uh_dport) t.who_srv = 3; - } - traf_add(insertentry(&t), t.n_bytes, t.n_psize); - - diff --git a/net/trafd/files/trafd.sh.sample b/net/trafd/files/trafd.sh.sample deleted file mode 100644 index daf53e8c4b1b..000000000000 --- a/net/trafd/files/trafd.sh.sample +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh -# - -# PROVIDE: trafd -# REQUIRE: netif routing -# KEYWORD: FreeBSD shutdown - -# -# Add the following lines to /etc/rc.conf to enable trafd: -# -#trafd_enable="YES" -#trafd_ifaces="fxp0 fxp1 fxp2" -#trafd_flags="" -#trafd_log="/var/log/traffic.log" -# - -. %%RC_SUBR%% - -name="trafd" -rcvar=`set_rcvar` -command="/usr/local/bin/trafd" -start_cmd="trafd_start" -stop_cmd="trafd_stop" - -trafd_enable=${trafd_enable:-"NO"} -trafd_log=${trafd_log:-"/var/log/traffic.log"} -load_rc_config $name - -trafd_start() -{ - echo 'Starting trafd.' - if checkyesno ${rcvar} && [ "x${trafd_ifaces}" != "x" ]; then - for iface in ${trafd_ifaces}; do - ${command} -i ${iface} ${trafd_flags} - done - else - warn '$trafd_ifaces is not set.' - fi -} - -trafd_stop() -{ - echo 'Stopping trafd.' - for iface in ${trafd_ifaces}; do - read rc_pid < /var/run/trafd.$iface - if [ -n "${rc_pid}" ]; then - kill -TERM ${rc_pid} - wait_for_pids ${rc_pid} - echo "$(date +"%b %e %H:%M:%S") $(hostname -s) trafstop:" "'('${iface}')' signaling to shutdown" >> ${trafd_log} - fi - done -} - -run_rc_command "$1" diff --git a/net/trafd/pkg-descr b/net/trafd/pkg-descr deleted file mode 100644 index d4d4190e1098..000000000000 --- a/net/trafd/pkg-descr +++ /dev/null @@ -1,21 +0,0 @@ -trafd 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/trafd/README after installation for more -information. - -To use trafd, 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 deleted file mode 100644 index b0d384d59596..000000000000 --- a/net/trafd/pkg-plist +++ /dev/null @@ -1,18 +0,0 @@ -bin/trafd -bin/trafdump -bin/traflog -bin/trafsave -bin/trafstart -bin/trafstat -bin/trafstatd -bin/trafstop -etc/traflog.format -etc/rc.d/trafd.sh.sample -%%PORTDOCS%%share/doc/trafd/README -%%PORTDOCS%%@dirrm share/doc/trafd -@exec mkdir %D/var 2>/dev/null || true -@exec mkdir %D/var/log 2>/dev/null || true -@exec mkdir %D/var/trafd 2>/dev/null || true -@unexec rmdir %D/var/trafd 2>/dev/null || true -@unexec rmdir %D/var/log 2>/dev/null || true -@unexec rmdir %D/var 2>/dev/null || true |