aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-04-03 01:51:01 +0000
committerSteve Price <steve@FreeBSD.org>1999-04-03 01:51:01 +0000
commit810e5e4bf05afc2362d16d709d65a6ad187230ef (patch)
tree110832be87acb9123e8ba2a8f990bc563ef1e801
parent801dbcbb547d5e13524351605a40b370ce2aafe4 (diff)
downloadports-810e5e4bf05afc2362d16d709d65a6ad187230ef.tar.gz
ports-810e5e4bf05afc2362d16d709d65a6ad187230ef.zip
Notes
-rw-r--r--net-mgmt/bpft/Makefile24
-rw-r--r--net-mgmt/bpft/distinfo1
-rw-r--r--net-mgmt/bpft/files/patch-aa80
-rw-r--r--net-mgmt/bpft/files/patch-ab19
-rw-r--r--net-mgmt/bpft/files/patch-ac45
-rw-r--r--net-mgmt/bpft/pkg-comment1
-rw-r--r--net-mgmt/bpft/pkg-descr18
-rw-r--r--net-mgmt/bpft/pkg-plist12
-rw-r--r--net/bpft/Makefile24
-rw-r--r--net/bpft/distinfo1
-rw-r--r--net/bpft/files/patch-aa80
-rw-r--r--net/bpft/files/patch-ab19
-rw-r--r--net/bpft/files/patch-ac45
-rw-r--r--net/bpft/pkg-comment1
-rw-r--r--net/bpft/pkg-descr18
-rw-r--r--net/bpft/pkg-plist12
16 files changed, 400 insertions, 0 deletions
diff --git a/net-mgmt/bpft/Makefile b/net-mgmt/bpft/Makefile
new file mode 100644
index 000000000000..182ea9160618
--- /dev/null
+++ b/net-mgmt/bpft/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: bpft
+# Version required: 2.0
+# Date created: 17 March 1999
+# Whom: oddbjorn@tricknology.org
+#
+# $Id$
+#
+
+DISTNAME= bpft-2.0
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.nsk.su/pub/unix/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= oddbjorn@tricknology.org
+
+MAN1= trafshow.1
+
+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/bpft/distinfo b/net-mgmt/bpft/distinfo
new file mode 100644
index 000000000000..c4045debf0e4
--- /dev/null
+++ b/net-mgmt/bpft/distinfo
@@ -0,0 +1 @@
+MD5 (bpft-2.0.tgz) = b7a13bc81e5893931ff4662311ee744f
diff --git a/net-mgmt/bpft/files/patch-aa b/net-mgmt/bpft/files/patch-aa
new file mode 100644
index 000000000000..944bce74e31f
--- /dev/null
+++ b/net-mgmt/bpft/files/patch-aa
@@ -0,0 +1,80 @@
+*** Makefile.orig Wed Oct 30 12:38:00 1996
+--- Makefile Fri Mar 19 23:42:26 1999
+***************
+*** 11,16 ****
+--- 11,17 ----
+
+ # Target directory for install execution files.
+ PATH_BINDIR=/usr/local/bin
++ PATH_SBINDIR=/usr/local/sbin
+
+ # Target directory for install man pages.
+ PATH_MANDIR=/usr/local/man/man1
+***************
+*** 18,24 ****
+ # Trailing slash directory, summary traffic log files will be put there.
+ PATH_TOSAVE=/var/log/
+
+! # Full pathname where locate tarfstat program.
+ PATH_TRAFSTAT=/usr/local/bin/trafstat
+
+ # Where locate trafstatd log file, if you want log then file must exist.
+--- 19,25 ----
+ # Trailing slash directory, summary traffic log files will be put there.
+ PATH_TOSAVE=/var/log/
+
+! # Full pathname where locate trafstat program.
+ PATH_TRAFSTAT=/usr/local/bin/trafstat
+
+ # Where locate trafstatd log file, if you want log then file must exist.
+***************
+*** 56,79 ****
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @(cd trafstatd; echo "Build trafstatd in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+! @(cd traflog; echo "Build tarflog in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @(cd trafshow; echo "Build trafshow in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @echo Done.
+
+ install: all
+! install -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 -o root -g $(GROUP) -m $(MODE) traflog/traflog.format $(PATH_TRAFLOG_FMT)
+ install -s -o root -g $(GROUP) -m $(MODE) trafshow/trafshow $(PATH_BINDIR)
+! install -c -m 644 trafshow/trafshow.1 $(PATH_MANDIR)
+ @echo Done.
+
+ clean:
+--- 57,80 ----
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @(cd trafstatd; echo "Build trafstatd in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+! @(cd traflog; echo "Build traflog in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @(cd trafshow; echo "Build trafshow in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @echo Done.
+
+ install: all
+! install -s -o root -g $(GROUP) -m $(MODE) trafd/trafd $(PATH_SBINDIR)
+! 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_SBINDIR)
+! 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)
+ install -s -o root -g $(GROUP) -m $(MODE) trafshow/trafshow $(PATH_BINDIR)
+! install -c -m 644 trafshow/trafshow.1 $(PATH_MANDIR)
+ @echo Done.
+
+ clean:
diff --git a/net-mgmt/bpft/files/patch-ab b/net-mgmt/bpft/files/patch-ab
new file mode 100644
index 000000000000..ceba57fa1e19
--- /dev/null
+++ b/net-mgmt/bpft/files/patch-ab
@@ -0,0 +1,19 @@
+*** trafd/trafstop.orig Fri Mar 19 21:03:06 1999
+--- trafd/trafstop Fri Mar 19 21:04:13 1999
+***************
+*** 6,12 ****
+ #
+ # usage: trafstop interfaces...
+ #
+! PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
+ WHERE_PID=/var/run/trafd.
+ LOG_FILE=/var/log/traffic.log
+
+--- 6,12 ----
+ #
+ # usage: trafstop interfaces...
+ #
+! PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
+ WHERE_PID=/var/run/trafd.
+ LOG_FILE=/var/log/traffic.log
+
diff --git a/net-mgmt/bpft/files/patch-ac b/net-mgmt/bpft/files/patch-ac
new file mode 100644
index 000000000000..407d0129f48a
--- /dev/null
+++ b/net-mgmt/bpft/files/patch-ac
@@ -0,0 +1,45 @@
+--- lib/addrtoname.c Fri Jan 12 17:42:37 1996
++++ lib/addrtoname.c Thu Jul 25 07:37:56 1996
+@@ -294,8 +294,8 @@
+ #ifdef ETHER_SERVICE
+ if (!nflag) {
+- cp = ETHER_ntohost(ep);
+- if (cp) {
+- tp->e_name = cp;
+- return cp;
++ char buf[128];
++ if (ether_ntohost(buf, ep) == 0) {
++ tp->e_name =strdup(buf);
++ return tp->e_name;
+ }
+ }
+--- lib/gencode.c Wed Jan 10 12:27:13 1996
++++ lib/gencode.c Thu Jul 25 07:43:16 1996
+@@ -841,4 +841,5 @@
+ struct block *b, *tmp;
+ int port, real_proto;
++ static char wrk[6];
+
+ switch (q.addr) {
+@@ -854,6 +855,9 @@
+ case Q_HOST:
+ if (proto == Q_LINK) {
+ /* XXX Should lookup hw addr based on link layer */
+- eaddr = ETHER_hostton(name);
++ if (ether_hostton(name, wrk) == 0)
++ eaddr = wrk;
++ else
++ eaddr = 0;
+ if (eaddr == 0)
+ error("unknown ether host '%s'", name);
+@@ -896,5 +901,9 @@
+
+ case Q_GATEWAY:
+- eaddr = ETHER_hostton(name);
++ /* XXX Should lookup hw addr based on link layer */
++ if (ether_hostton(name, wrk) == 0)
++ eaddr = wrk;
++ else
++ eaddr = 0;
+ if (eaddr == 0)
+ error("unknown ether host: %s", name);
diff --git a/net-mgmt/bpft/pkg-comment b/net-mgmt/bpft/pkg-comment
new file mode 100644
index 000000000000..944ffb6364c2
--- /dev/null
+++ b/net-mgmt/bpft/pkg-comment
@@ -0,0 +1 @@
+The BPF Traffic Collector.
diff --git a/net-mgmt/bpft/pkg-descr b/net-mgmt/bpft/pkg-descr
new file mode 100644
index 000000000000..e5a7b8c6248d
--- /dev/null
+++ b/net-mgmt/bpft/pkg-descr
@@ -0,0 +1,18 @@
+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.
+
+- oddbjorn
+oddbjorn@tricknology.org
diff --git a/net-mgmt/bpft/pkg-plist b/net-mgmt/bpft/pkg-plist
new file mode 100644
index 000000000000..cdf0ae207991
--- /dev/null
+++ b/net-mgmt/bpft/pkg-plist
@@ -0,0 +1,12 @@
+bin/trafdump
+bin/traflog
+bin/trafsave
+bin/trafshow
+bin/trafstart
+bin/trafstat
+bin/trafstop
+etc/traflog.format
+sbin/trafd
+sbin/trafstatd
+share/doc/bpft/README
+@dirrm share/doc/bpft
diff --git a/net/bpft/Makefile b/net/bpft/Makefile
new file mode 100644
index 000000000000..182ea9160618
--- /dev/null
+++ b/net/bpft/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: bpft
+# Version required: 2.0
+# Date created: 17 March 1999
+# Whom: oddbjorn@tricknology.org
+#
+# $Id$
+#
+
+DISTNAME= bpft-2.0
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.nsk.su/pub/unix/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= oddbjorn@tricknology.org
+
+MAN1= trafshow.1
+
+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/bpft/distinfo b/net/bpft/distinfo
new file mode 100644
index 000000000000..c4045debf0e4
--- /dev/null
+++ b/net/bpft/distinfo
@@ -0,0 +1 @@
+MD5 (bpft-2.0.tgz) = b7a13bc81e5893931ff4662311ee744f
diff --git a/net/bpft/files/patch-aa b/net/bpft/files/patch-aa
new file mode 100644
index 000000000000..944bce74e31f
--- /dev/null
+++ b/net/bpft/files/patch-aa
@@ -0,0 +1,80 @@
+*** Makefile.orig Wed Oct 30 12:38:00 1996
+--- Makefile Fri Mar 19 23:42:26 1999
+***************
+*** 11,16 ****
+--- 11,17 ----
+
+ # Target directory for install execution files.
+ PATH_BINDIR=/usr/local/bin
++ PATH_SBINDIR=/usr/local/sbin
+
+ # Target directory for install man pages.
+ PATH_MANDIR=/usr/local/man/man1
+***************
+*** 18,24 ****
+ # Trailing slash directory, summary traffic log files will be put there.
+ PATH_TOSAVE=/var/log/
+
+! # Full pathname where locate tarfstat program.
+ PATH_TRAFSTAT=/usr/local/bin/trafstat
+
+ # Where locate trafstatd log file, if you want log then file must exist.
+--- 19,25 ----
+ # Trailing slash directory, summary traffic log files will be put there.
+ PATH_TOSAVE=/var/log/
+
+! # Full pathname where locate trafstat program.
+ PATH_TRAFSTAT=/usr/local/bin/trafstat
+
+ # Where locate trafstatd log file, if you want log then file must exist.
+***************
+*** 56,79 ****
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @(cd trafstatd; echo "Build trafstatd in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+! @(cd traflog; echo "Build tarflog in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @(cd trafshow; echo "Build trafshow in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @echo Done.
+
+ install: all
+! install -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 -o root -g $(GROUP) -m $(MODE) traflog/traflog.format $(PATH_TRAFLOG_FMT)
+ install -s -o root -g $(GROUP) -m $(MODE) trafshow/trafshow $(PATH_BINDIR)
+! install -c -m 644 trafshow/trafshow.1 $(PATH_MANDIR)
+ @echo Done.
+
+ clean:
+--- 57,80 ----
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @(cd trafstatd; echo "Build trafstatd in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+! @(cd traflog; echo "Build traflog in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @(cd trafshow; echo "Build trafshow in `pwd`"; \
+ $(MAKE) CC=$(CC) CFLAGS='$(CFLAGS)' LIB='$(LIB)')
+ @echo Done.
+
+ install: all
+! install -s -o root -g $(GROUP) -m $(MODE) trafd/trafd $(PATH_SBINDIR)
+! 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_SBINDIR)
+! 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)
+ install -s -o root -g $(GROUP) -m $(MODE) trafshow/trafshow $(PATH_BINDIR)
+! install -c -m 644 trafshow/trafshow.1 $(PATH_MANDIR)
+ @echo Done.
+
+ clean:
diff --git a/net/bpft/files/patch-ab b/net/bpft/files/patch-ab
new file mode 100644
index 000000000000..ceba57fa1e19
--- /dev/null
+++ b/net/bpft/files/patch-ab
@@ -0,0 +1,19 @@
+*** trafd/trafstop.orig Fri Mar 19 21:03:06 1999
+--- trafd/trafstop Fri Mar 19 21:04:13 1999
+***************
+*** 6,12 ****
+ #
+ # usage: trafstop interfaces...
+ #
+! PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
+ WHERE_PID=/var/run/trafd.
+ LOG_FILE=/var/log/traffic.log
+
+--- 6,12 ----
+ #
+ # usage: trafstop interfaces...
+ #
+! PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
+ WHERE_PID=/var/run/trafd.
+ LOG_FILE=/var/log/traffic.log
+
diff --git a/net/bpft/files/patch-ac b/net/bpft/files/patch-ac
new file mode 100644
index 000000000000..407d0129f48a
--- /dev/null
+++ b/net/bpft/files/patch-ac
@@ -0,0 +1,45 @@
+--- lib/addrtoname.c Fri Jan 12 17:42:37 1996
++++ lib/addrtoname.c Thu Jul 25 07:37:56 1996
+@@ -294,8 +294,8 @@
+ #ifdef ETHER_SERVICE
+ if (!nflag) {
+- cp = ETHER_ntohost(ep);
+- if (cp) {
+- tp->e_name = cp;
+- return cp;
++ char buf[128];
++ if (ether_ntohost(buf, ep) == 0) {
++ tp->e_name =strdup(buf);
++ return tp->e_name;
+ }
+ }
+--- lib/gencode.c Wed Jan 10 12:27:13 1996
++++ lib/gencode.c Thu Jul 25 07:43:16 1996
+@@ -841,4 +841,5 @@
+ struct block *b, *tmp;
+ int port, real_proto;
++ static char wrk[6];
+
+ switch (q.addr) {
+@@ -854,6 +855,9 @@
+ case Q_HOST:
+ if (proto == Q_LINK) {
+ /* XXX Should lookup hw addr based on link layer */
+- eaddr = ETHER_hostton(name);
++ if (ether_hostton(name, wrk) == 0)
++ eaddr = wrk;
++ else
++ eaddr = 0;
+ if (eaddr == 0)
+ error("unknown ether host '%s'", name);
+@@ -896,5 +901,9 @@
+
+ case Q_GATEWAY:
+- eaddr = ETHER_hostton(name);
++ /* XXX Should lookup hw addr based on link layer */
++ if (ether_hostton(name, wrk) == 0)
++ eaddr = wrk;
++ else
++ eaddr = 0;
+ if (eaddr == 0)
+ error("unknown ether host: %s", name);
diff --git a/net/bpft/pkg-comment b/net/bpft/pkg-comment
new file mode 100644
index 000000000000..944ffb6364c2
--- /dev/null
+++ b/net/bpft/pkg-comment
@@ -0,0 +1 @@
+The BPF Traffic Collector.
diff --git a/net/bpft/pkg-descr b/net/bpft/pkg-descr
new file mode 100644
index 000000000000..e5a7b8c6248d
--- /dev/null
+++ b/net/bpft/pkg-descr
@@ -0,0 +1,18 @@
+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.
+
+- oddbjorn
+oddbjorn@tricknology.org
diff --git a/net/bpft/pkg-plist b/net/bpft/pkg-plist
new file mode 100644
index 000000000000..cdf0ae207991
--- /dev/null
+++ b/net/bpft/pkg-plist
@@ -0,0 +1,12 @@
+bin/trafdump
+bin/traflog
+bin/trafsave
+bin/trafshow
+bin/trafstart
+bin/trafstat
+bin/trafstop
+etc/traflog.format
+sbin/trafd
+sbin/trafstatd
+share/doc/bpft/README
+@dirrm share/doc/bpft