diff options
Diffstat (limited to 'net/netams')
-rw-r--r-- | net/netams/distinfo | 1 | ||||
-rw-r--r-- | net/netams/files/netams.sh | 26 | ||||
-rw-r--r-- | net/netams/files/patch-Makefile | 55 | ||||
-rw-r--r-- | net/netams/pkg-descr | 9 | ||||
-rw-r--r-- | net/netams/pkg-message | 15 | ||||
-rw-r--r-- | net/netams/pkg-plist | 33 | ||||
-rw-r--r-- | net/netams/scripts/configure.netams | 150 |
7 files changed, 0 insertions, 289 deletions
diff --git a/net/netams/distinfo b/net/netams/distinfo deleted file mode 100644 index 7185e5c4bf87..000000000000 --- a/net/netams/distinfo +++ /dev/null @@ -1 +0,0 @@ -MD5 (netams-3.1.1790.tar.gz) = 87710b6d9ecd5897d26d71e70fd118b6 diff --git a/net/netams/files/netams.sh b/net/netams/files/netams.sh deleted file mode 100644 index 1df303d575ff..000000000000 --- a/net/netams/files/netams.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/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 deleted file mode 100644 index eaf83cd7b7bf..000000000000 --- a/net/netams/files/patch-Makefile +++ /dev/null @@ -1,55 +0,0 @@ ---- Makefile.orig Wed Dec 31 11:43:37 2003 -+++ Makefile Mon Jan 5 17:16:41 2004 -@@ -10,11 +10,11 @@ - # $NetAMS: netams/Makefile,v 1.25.2.4 2003/12/31 08:43:37 jura Exp $ - ########################################################################## - # for FreeBSD, uncomment this --DEFINE = -DFREEBSD -D_THREAD_SAFE --LIB = -lpcap -lcrypt -+DEFINE += -DFREEBSD -+LIB += -lpcap -lcrypt - # - # For FreeBSD-4.x uncomment this --LIB += -pthread -+# LIB += -pthread - # For FreeBSD-5.x uncomment this - # LIB += -lc_r - # -@@ -22,8 +22,8 @@ - # DEFINE+= -DUSE_HASH - # - # MySQL storage support --DEFINE += -DUSE_MYSQL --LIB += -lmysqlclient -L/usr/local/lib/mysql -+# DEFINE += -DUSE_MYSQL -+# LIB += -lmysqlclient -L/usr/local/lib/mysql - # - # PostgreSQL storage support - # DEFINE += -DUSE_POSTGRES -@@ -53,14 +53,14 @@ - # DEFINE += -DIPTBL_NONE - ########################################################################## - # Define here a PATH variables --PATH_TO_CONFIG="/usr/local/etc/netams.cfg" -+PATH_TO_CONFIG="${PREFIX}/etc/netams.conf" - PATH_TO_LOG="/var/log/netams.log" - # - # Uncomment this if you want to log dropped packets - # DEFINE += -DLOG_DROP - # Uncomment this if you want to enable debug features --DEFINE += -DDEBUG --FLAGS += -g -Wall -+# DEFINE += -DDEBUG -+# FLAGS += -g -Wall - # Uncomment this if you want to enable profiler support - # LIB += -lm -pg - # FLAGS += -pg -@@ -81,7 +81,7 @@ - flowmodule.h versions.sh versions_build.dat - - CC = g++ --INCLUDE=/usr/local/include -+INCLUDE = ${LOCALBASE}/include - OBJ = $(SRC:.c=.o) - CFLAGS = $(FLAGS) -I$(INCLUDE) $(DEFINE) - diff --git a/net/netams/pkg-descr b/net/netams/pkg-descr deleted file mode 100644 index 0c3ccce4d17e..000000000000 --- a/net/netams/pkg-descr +++ /dev/null @@ -1,9 +0,0 @@ -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. - -WWW: http://www.netams.com/ diff --git a/net/netams/pkg-message b/net/netams/pkg-message deleted file mode 100644 index 145c670c4467..000000000000 --- a/net/netams/pkg-message +++ /dev/null @@ -1,15 +0,0 @@ --------------------------------------------------------------------------- - -The NetAMS package has been successfully installed. - -To use the programm, make a copy of %%PREFIX%%/etc/rc.d/netams.sh.sample under -%%PREFIX%%/etc/rc.d/netams.sh and do: chmod +x %%PREFIX%%/etc/rc.d/netams.sh. -Check %%EXAMPLESDIR%% for examples. - -A sample configuration file has been installed to %%PREFIX%%/etc as -"netams.conf.sample". This may be renamed to "netams.conf" and edited. - -In order to use the netamsctl programs, a user must copy -%%EXAMPLESDIR%%/.netamsctl.rc to home directory and edit. - --------------------------------------------------------------------------- diff --git a/net/netams/pkg-plist b/net/netams/pkg-plist deleted file mode 100644 index 2b3e1357583d..000000000000 --- a/net/netams/pkg-plist +++ /dev/null @@ -1,33 +0,0 @@ -@unexec if cmp -s %D/etc/netams.conf.sample %D/etc/netams.conf; then rm -f %D/etc/netams.conf; fi -etc/netams.conf.sample -etc/rc.d/netams.sh.sample -libexec/netams -sbin/flowprobe -sbin/ipfw2netflow -bin/netamsctl -%%PORTDOCS%%%%DOCSDIR%%/documentation-en.html -%%PORTDOCS%%%%DOCSDIR%%/diagram-1.gif -%%PORTDOCS%%%%DOCSDIR%%/logo.gif -%%PORTDOCS%%%%DOCSDIR%%/net-1-1a.gif -%%PORTDOCS%%%%DOCSDIR%%/net-1-2a.gif -%%PORTDOCS%%%%DOCSDIR%%/net-1-3a.gif -%%EXAMPLESDIR%%/netams-nat-network.cfg -%%EXAMPLESDIR%%/netams-netflow.cfg -%%EXAMPLESDIR%%/netams-simple.cfg -%%EXAMPLESDIR%%/netams.cfg -%%EXAMPLESDIR%%/netams-quotactl.cfg -%%EXAMPLESDIR%%/.netamsctl.rc -%%EXAMPLESDIR%%/cgi-bin/images/admintool-logo.gif -%%EXAMPLESDIR%%/cgi-bin/images/logo-small.gif -%%EXAMPLESDIR%%/cgi-bin/images/logo.gif -%%EXAMPLESDIR%%/cgi-bin/netams_api.pl -%%EXAMPLESDIR%%/cgi-bin/netams_example.cgi -%%EXAMPLESDIR%%/cgi-bin/netams_graph.cgi -%%EXAMPLESDIR%%/cgi-bin/weblogin.cgi -%%EXAMPLESDIR%%/cgi-bin/weblogin.tem -%%EXAMPLESDIR%%/cgi-bin/admintool.cgi -%%EXAMPLESDIR%%/cgi-bin/login.cgi -%%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm %%EXAMPLESDIR%%/cgi-bin/images -@dirrm %%EXAMPLESDIR%%/cgi-bin -@dirrm %%EXAMPLESDIR%% diff --git a/net/netams/scripts/configure.netams b/net/netams/scripts/configure.netams deleted file mode 100644 index 86c58468cf6f..000000000000 --- a/net/netams/scripts/configure.netams +++ /dev/null @@ -1,150 +0,0 @@ -#!/bin/sh - -if [ -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc ]; then - exit -fi - -tempfile=`mktemp -t checklist` - -if [ "${BATCH}" ]; then - if [ "${WITH_MYSQL41}" ]; then - OPTIONS="${OPTIONS} \"MySQL41\"" - elif [ "${WITH_MYSQL40}" ]; then - OPTIONS="${OPTIONS} \"MySQL40\"" - elif [ "${WITH_MYSQL}" ]; then - OPTIONS="${OPTIONS} \"MySQL\"" - fi - if [ "${WITH_POSTGRES}" ]; then - OPTIONS="${OPTIONS} \"PgSQL\"" - fi - if [ "${WITH_HASH}" ]; then - OPTIONS="$OPTIONS} \"HASH\"" - fi - if [ "${WITH_OPT}" ]; then - OPTIONS="${OPTIONS} \"OPTIMIZED\"" - fi - -else - SET_MYSQL41="OFF" - SET_MYSQL40="OFF" - SET_MYSQL="OFF" - if [ "${WITH_MYSQL41}" -o -f ${PREFIX}/lib/mysql/libmysqlclient.so.14 ] ; then - SET_MYSQL41="ON" - elif [ "${WITH_MYSQL40}" -o -f ${PREFIX}/lib/mysql/libmysqlclient.so.12 ] ; then - SET_MYSQL40="ON" - elif [ "${WITH_MYSQL}" -o -f ${PREFIX}/lib/mysql/libmysqlclient.so ] ; then - SET_MYSQL="ON" - fi - SET_POSTGRES="OFF" - if [ "${WITH_POSTGRES}" -o -f ${PREFIX}/lib/pq.3 ] ; then - SET_POSTGRES="ON" - fi - SET_HASH="OFF" - if [ "${WITH_HASH}" ] ; then - SET_HASH="ON" - fi - SET_DEBUG="ON" - if [ "${WITH_DEBUG}" ] ; then - SET_DEBUG="ON" - fi - SET_OPT="OFF" - if [ "${WITH_OPT}" ] ; then - SET_OPT="ON" - fi - - /usr/bin/dialog --title "NetAMS options" --clear \ - --checklist "\n\ -Please select desired options:" -1 -1 7 \ -MySQL "MySQL 3.23 support" ${SET_MYSQL} \ -MySQL40 "MySQL 4.0 support" ${SET_MYSQL40} \ -MySQL41 "MySQL 4.1 support" ${SET_MYSQL41} \ -PgSQL "PostgreSQL support" ${SET_POSTGRES} \ -HASH "Unix HASH support" ${SET_HASH} \ -DEBUG "Debugging support" ${SET_DEBUG} \ -OPTIMIZED "Enable optimization" ${SET_OPT} \ -2> $tempfile - - retval=$? - - if [ -s $tempfile ]; then - set `cat $tempfile` - fi - rm -f $tempfile - - case $retval in - 0) if [ -z "$*" ]; then - echo "Nothing selected" - fi - ;; - 1) echo "Cancel pressed." - exit 1 - ;; - esac -fi - - -${MKDIR} ${WRKDIRPREFIX}${REALCURDIR} -exec > ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc - -echo "PREFIX= ${PREFIX}" - -while [ "$1" ]; do - case $1 in - \"MySQL41\") - if [ "${DEFMYSQL}" ]; then - echo "MySQL 3.23, 4.0 and 4.1 are mutually exclusive." > /dev/stderr - exit 1 - fi - echo "LIB_DEPENDS+= mysqlclient.14:\${PORTSDIR}/databases/mysql41-client" - DEFMYSQL=1 - ;; - \"MySQL40\") - if [ "${DEFMYSQL}" ]; then - echo "MySQL 3.23, 4.0 and 4.1 are mutually exclusive." > /dev/stderr - exit 1 - fi - echo "LIB_DEPENDS+= mysqlclient.12:\${PORTSDIR}/databases/mysql40-client" - DEFMYSQL=1 - ;; - \"MySQL\") - if [ "${DEFMYSQL}" ]; then - echo "MySQL 3.23, 4.0 and 4.1 are mutually exclusive." > /dev/stderr - exit 1 - fi - echo "LIB_DEPENDS+= mysqlclient.10:\${PORTSDIR}/databases/mysql323-client" - DEFMYSQL=1 - ;; - \"PgSQL\") - echo "LIB_DEPENDS+= pq.3:\${PORTSDIR}/databases/postgresql7" - echo "DEFINE+= -DUSE_POSTGRES" - echo "LIB += -lpq -L${LOCALBASE}/lib" - ;; - \"HASH\") - echo "DEFINE+= -DUSE_HASH" - ;; - \"DEBUG\") - if [ "${DEFOPT}" ]; then - echo "DEBUG and OPTIMIZED are mutually exclusive." > /dev/stderr - exit 1 - fi - echo "DEFINE += -DDEBUG" - echo "FLAGS += -g -Wall" - DEFDEBUG=1 - ;; - \"OPTIMIZED\") - if [ "${DEFDEBUG}" ]; then - echo "DEBUG and OPTIMIZED are mutually exclusive." > /dev/stderr - exit 1 - fi - echo "FLAGS += -O" - DEFOPT=1 - ;; - esac - shift -done - -if [ "${DEFMYSQL}" ]; then -echo "LIB += -lmysqlclient -L${LOCALBASE}/lib/mysql" -echo "DEFINE+= -DUSE_MYSQL" -else -fi |