diff options
| author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-05 08:20:27 +0000 |
|---|---|---|
| committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-05 08:20:27 +0000 |
| commit | 336ae31855b2c03f448d456e65294c4af46ec1b4 (patch) | |
| tree | b882420483c1bbfe2bc0c2384c9cd94112f929f2 /net/netams/files | |
| parent | - add empty directories (diff) | |
NeTAMS - Network Traffic Accounting and Monitoring Software
NeTAMS is a Network Traffic Accounting and Monitoring Software.
It runs as a daemon under FreeBSD and Linux operating systems.
Collects an IP traffic information flowing via your PC/UNIX
or Cisco router, filters it, aggregates, stores onto HASH/SQL
database, and makes SMTP/HTML reports to site administrator.
Anoter features are flexible policy targets, firewalling,
access control, quotas, scheduler and much much more.
PR: ports/46777
Submitted by: Yuriy N. Shkandybin <jura@happychance.com>
Diffstat (limited to 'net/netams/files')
| -rw-r--r-- | net/netams/files/netams.sh | 26 | ||||
| -rw-r--r-- | net/netams/files/patch-Makefile | 20 | ||||
| -rw-r--r-- | net/netams/files/patch-addon::netams-startup.sh | 22 |
3 files changed, 68 insertions, 0 deletions
diff --git a/net/netams/files/netams.sh b/net/netams/files/netams.sh new file mode 100644 index 000000000000..1df303d575ff --- /dev/null +++ b/net/netams/files/netams.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +case "$1" in + +start) + sleep 3; + /bin/mkdir -p /var/run/netams + if [ -x /usr/local/libexec/netams ]; then + if [ -f /usr/local/etc/netams.conf ]; then + /usr/local/libexec/netams -lf /usr/local/etc/netams.conf >/dev/null && echo -n ' NetAMS' + fi + fi + ;; + +stop) + killall netams + rmdir /var/run/netams + ;; +*) + echo "$0 start | stop" + ;; + +esac + + + diff --git a/net/netams/files/patch-Makefile b/net/netams/files/patch-Makefile new file mode 100644 index 000000000000..99461f5957e3 --- /dev/null +++ b/net/netams/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig Sat Apr 5 00:17:21 2003 ++++ Makefile Sat Apr 5 00:17:52 2003 +@@ -3,7 +3,7 @@ + #*** (c) 1998-2001 Anton Vinokurov, anton@inorg.chem.msu.ru + #*** + #************************************************************************* +-LIB = -pthread -lutil -lpcap -lmysqlclient -L/usr/local/lib/mysql ++LIB = -pthread -lutil -lpcap -lmysqlclient -L${LOCALBASE}/lib/mysql + DEFINE += -DFREEBSD -DFREEBSD_VER=4 -DUSE_MYSQL + ########################################################################## + # for Linux, uncomment this +@@ -40,7 +40,7 @@ + + CC = g++ + FLAGS = -g -pthread -Wall +-INCLUDE=/usr/local/include ++INCLUDE=${LOCALBASE}/include + OBJ = $(SRC:.c=.o) + CFLAGS = $(FLAGS) -I$(INCLUDE) $(DEFINE) -Wall + diff --git a/net/netams/files/patch-addon::netams-startup.sh b/net/netams/files/patch-addon::netams-startup.sh new file mode 100644 index 000000000000..e6e9e99a7e63 --- /dev/null +++ b/net/netams/files/patch-addon::netams-startup.sh @@ -0,0 +1,22 @@ +*** addon/netams-startup.sh.orig Sun Dec 15 14:42:13 2002 +--- addon/netams-startup.sh Mon Dec 16 17:07:08 2002 +*************** +5c5 +< debug=1 +--- +> debug=0 +7,8c7,8 +< configfile=/home/anton/netams/netams.cfg +< appfile=/home/anton/netams/netams +--- +> configfile=/usr/local/etc/netams.conf +> appfile=/usr/local/libexec/netams +10c10 +< path=/tmp +--- +> path=/var/log +87c87 +< +--- +> sleep 3; + |
