aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/argus-clients
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2004-05-17 21:16:48 +0000
committerStefan Eßer <se@FreeBSD.org>2004-05-17 21:16:48 +0000
commit226bb126c36bab3532f878c1374772006bec7399 (patch)
tree227c971f74d2dd6a63a26e182b44b11af2eceda2 /net-mgmt/argus-clients
parent6f965e98697c5c6d9f761a79bec4adf2520f4826 (diff)
downloadports-226bb126c36bab3532f878c1374772006bec7399.tar.gz
ports-226bb126c36bab3532f878c1374772006bec7399.zip
This port builds the Argus clients, which used to be bundled
with the Argus daemon, until release 2.0.6 of Argus.
Notes
Notes: svn path=/head/; revision=109372
Diffstat (limited to 'net-mgmt/argus-clients')
-rw-r--r--net-mgmt/argus-clients/Makefile80
-rw-r--r--net-mgmt/argus-clients/distinfo2
-rw-r--r--net-mgmt/argus-clients/files/patch-2.0.6-fix-2004-05-10189
-rw-r--r--net-mgmt/argus-clients/files/patch-configure11
-rw-r--r--net-mgmt/argus-clients/pkg-descr15
-rw-r--r--net-mgmt/argus-clients/pkg-plist71
6 files changed, 368 insertions, 0 deletions
diff --git a/net-mgmt/argus-clients/Makefile b/net-mgmt/argus-clients/Makefile
new file mode 100644
index 000000000000..89d0c775f3df
--- /dev/null
+++ b/net-mgmt/argus-clients/Makefile
@@ -0,0 +1,80 @@
+# New ports collection makefile for: argus-clients
+# Date created: 24 March 2004
+# Whom: Stefan Esser <se@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= argus-clients
+PORTVERSION= 2.0.6
+CATEGORIES= net-mgmt security
+MASTER_SITES= http://qosient.com/argus/src/ \
+ ftp://qosient.com/pub/argus/src/
+
+MAINTAINER= se@freebsd.org
+COMMENT= Client programs for the argus IP network transaction auditing tool
+
+.if defined(WITH_SASL)
+LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
+.endif
+
+USE_BISON= true
+GNU_CONFIGURE= true
+CONFIGURE_ARGS= --exec-prefix=${PREFIX}
+.if defined(WITH_SASL)
+CONFIGURE_ARGS+= --with-sasl=${PREFIX}
+CFLAGS+= -I${PREFIX}/include/sasl
+.endif
+
+DOCSDIR?= ${PREFIX}/share/doc/argus-2.0
+EXAMPLESDIR?= ${PREFIX}/share/examples/argus-2.0
+
+MAN1= ra.1 racount.1 ragator.1 rahosts.1 ramon.1 ranonymize.1 rapolicy.1 \
+ rasort.1 rastrip.1 raxml.1
+MAN5= rarc.5
+
+do-install:
+.for i in ra racount ragator ragrep rahistogram rahosts \
+ ramon ranonymize rapath rapolicy rarpwatch raseq \
+ rasort rasrvstats rastrip ratop raxml
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/$i ${PREFIX}/bin/$i
+.endfor
+.for i in argusbug ragraph
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/$i ${PREFIX}/bin/$i
+.endfor
+.for i in argus_client.a argus_common.a argus_parse.a
+ ${INSTALL_DATA} ${WRKSRC}/lib/$i ${PREFIX}/lib/$i
+.endfor
+ ${MKDIR} ${PREFIX}/argus/archive
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/argus
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/argus
+ ${MKDIR} ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/include/cons_def.h ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/include/cons_out.h ${PREFIX}/include
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/support/README ${EXAMPLESDIR}
+.for i in Archive Config System Tools Xml
+ ${MKDIR} ${EXAMPLESDIR}/$i
+ ${INSTALL_DATA} ${WRKSRC}/support/$i/* ${EXAMPLESDIR}/$i
+.endfor
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}/html/man
+.for i in README COPYING CREDITS doc/CHANGES doc/FAQ doc/HOW-TO
+ ${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
+.endfor
+.for i in hosts_access.5.html hosts_options.5.html ra.1.html \
+ racount.1.html ragator.1.html ramon.1.html rarc.5.html \
+ rasort.1.html raxml.1.html tcpd.8.html tcpdump.1.html
+ ${INSTALL_DATA} ${WRKSRC}/doc/html/man/$i ${DOCSDIR}/html/man
+.endfor
+.endif
+.if !defined(NOMAN)
+.for i in ${MAN1}
+ ${INSTALL_DATA} ${WRKSRC}/man/man1/$i ${PREFIX}/man/man1
+.endfor
+.for i in ${MAN5}
+ ${INSTALL_DATA} ${WRKSRC}/man/man5/$i ${PREFIX}/man/man5
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/argus-clients/distinfo b/net-mgmt/argus-clients/distinfo
new file mode 100644
index 000000000000..f2c0af4cd28f
--- /dev/null
+++ b/net-mgmt/argus-clients/distinfo
@@ -0,0 +1,2 @@
+MD5 (argus-clients-2.0.6.tar.gz) = 6a0b11043e70de20c93f23655a28b80d
+SIZE (argus-clients-2.0.6.tar.gz) = 691629
diff --git a/net-mgmt/argus-clients/files/patch-2.0.6-fix-2004-05-10 b/net-mgmt/argus-clients/files/patch-2.0.6-fix-2004-05-10
new file mode 100644
index 000000000000..c01e71d91738
--- /dev/null
+++ b/net-mgmt/argus-clients/files/patch-2.0.6-fix-2004-05-10
@@ -0,0 +1,189 @@
+diff -u3 -r ./ChangeLog /tmp/1/argus-clients-2.0.6.fixes.1/ChangeLog
+--- ./ChangeLog Fri Dec 5 17:46:00 2003
++++ /tmp/1/argus-clients-2.0.6.fixes.1/ChangeLog Mon May 10 19:12:28 2004
+@@ -1,3 +1,8 @@
++Mon May 10 13:11:35 EDT 2004
++ argus-clients-2.0.6.fixes.1
++ Modified RaAutoCorrection to be off by default (fixes ragator).
++ Turned off reporting ArgusAgrStruct in raxml().
++
+ Fri Dec 5 11:43:08 EST 2003
+ argus-clients-2.0.6
+ Minor modification for compat.h and BSD.
+diff -u3 -r ./MANIFEST /tmp/1/argus-clients-2.0.6.fixes.1/MANIFEST
+--- ./MANIFEST Thu May 6 15:39:48 2004
++++ /tmp/1/argus-clients-2.0.6.fixes.1/MANIFEST Mon May 10 19:12:55 2004
+@@ -21,10 +21,10 @@
+
+ Argus Clients distribution.
+ .:
+-total 332
++total 328
+ -rw-rw-r-- 1 argus argus 17992 Jun 4 2001 COPYING
+ -rw-rw-r-- 1 argus argus 764 Mar 24 2003 CREDITS
+--rw-rw-r-- 1 argus argus 16161 Dec 5 11:46 ChangeLog
++-rw-rw-r-- 1 argus argus 16346 May 10 13:12 ChangeLog
+ -rw-rw-r-- 1 argus argus 6669 Mar 26 2003 INSTALL
+ -rw-rw-r-- 1 argus argus 16245 May 6 09:39 MANIFEST
+ -rw-rw-r-- 1 argus argus 6096 Jul 10 2003 Makefile.in
+@@ -33,18 +33,18 @@
+ -rw-rw-r-- 1 argus argus 14644 May 6 09:39 aclocal.m4
+ -rwxrwxr-x 1 argus argus 173518 May 6 09:39 configure
+ -rw-rw-r-- 1 argus argus 2240 Oct 24 2002 configure.in
+-drwxrwxr-x 3 argus argus 4096 May 6 09:34 bin
+-drwxrwxr-x 3 argus argus 4096 May 6 09:34 clients
+-drwxrwxr-x 3 argus argus 4096 May 6 09:34 common
++drwxrwxr-x 3 argus argus 4096 May 10 13:12 bin
++drwxrwxr-x 3 argus argus 4096 May 10 13:12 clients
++drwxrwxr-x 3 argus argus 4096 May 10 13:12 common
+ drwxrwxr-x 3 argus argus 4096 Dec 5 21:49 config
+ drwxrwxr-x 5 argus argus 4096 Dec 5 21:49 contrib
+ drwxrwxr-x 4 argus argus 4096 Dec 5 21:49 doc
+-drwxrwxr-x 5 argus argus 4096 Jan 13 17:40 include
+-drwxrwxr-x 3 argus argus 4096 May 6 09:34 lib
++drwxrwxr-x 5 argus argus 4096 May 10 11:40 include
++drwxrwxr-x 3 argus argus 4096 May 10 13:12 lib
+ drwxrwxr-x 6 argus argus 4096 Dec 5 21:49 man
+-drwxrwxr-x 3 argus argus 4096 May 6 09:34 ragraph
+-drwxrwxr-x 4 argus argus 4096 May 6 09:34 ragrep
+-drwxrwxr-x 3 argus argus 4096 May 6 09:34 ratop
++drwxrwxr-x 3 argus argus 4096 May 10 13:12 ragraph
++drwxrwxr-x 4 argus argus 4096 May 10 13:12 ragrep
++drwxrwxr-x 3 argus argus 4096 May 10 13:12 ratop
+ drwxrwxr-x 8 argus argus 4096 Dec 5 21:49 support
+
+ ./bin:
+@@ -80,13 +80,13 @@
+ -rw-rw-r-- 1 argus argus 15501 Mar 27 2003 rastrip.c
+ -rw-rw-r-- 1 argus argus 1375 Mar 26 2003 rastrip.h
+ -rw-rw-r-- 1 argus argus 8090 Mar 27 2003 ratemplate.c
+--rw-rw-r-- 1 argus argus 35052 Mar 27 2003 raxml.c
++-rw-rw-r-- 1 argus argus 35058 May 10 11:46 raxml.c
+
+ ./common:
+ total 636
+ -rwxrwxr-x 1 argus argus 4517 Jul 10 2003 Makefile.in
+ -rw-rw-r-- 1 argus argus 16122 Dec 6 12:47 argus_auth.c
+--rw-rw-r-- 1 argus argus 137243 Mar 27 2003 argus_client.c
++-rw-rw-r-- 1 argus argus 137439 May 10 09:41 argus_client.c
+ -rw-rw-r-- 1 argus argus 134325 Mar 26 2003 argus_filter.c
+ -rw-rw-r-- 1 argus argus 143199 Dec 6 12:42 argus_parse.c
+ -rw-rw-r-- 1 argus argus 110901 Dec 6 12:43 argus_util.c
+@@ -203,7 +203,7 @@
+ total 284
+ -rw-rw-r-- 1 argus argus 17956 Oct 9 2002 CflowdFlowPdu.h
+ -rw-rw-r-- 1 argus argus 4036 Mar 26 2003 argus-namedb.h
+--rw-rw-r-- 1 argus argus 42631 Jan 13 17:40 argus_client.h
++-rw-rw-r-- 1 argus argus 42631 May 10 11:40 argus_client.h
+ -rw-rw-r-- 1 argus argus 11614 Mar 26 2003 argus_def.h
+ -rw-rw-r-- 1 argus argus 8082 Mar 26 2003 argus_filter.h
+ -rw-rw-r-- 1 argus argus 9203 Mar 26 2003 argus_out.h
+@@ -313,7 +313,7 @@
+ total 24
+ -rw-rw-r-- 1 argus argus 2569 Mar 26 2003 README
+ drwxrwxr-x 3 argus argus 4096 Dec 5 21:49 Archive
+-drwxrwxr-x 3 argus argus 4096 Dec 5 21:49 Config
++drwxrwxr-x 3 argus argus 4096 May 10 09:39 Config
+ drwxrwxr-x 3 argus argus 4096 Dec 5 21:49 System
+ drwxrwxr-x 3 argus argus 4096 Dec 5 21:49 Tools
+ drwxrwxr-x 3 argus argus 4096 Dec 5 21:49 Xml
+diff -u3 -r ./VERSION /tmp/1/argus-clients-2.0.6.fixes.1/VERSION
+--- ./VERSION Fri Dec 5 17:46:42 2003
++++ /tmp/1/argus-clients-2.0.6.fixes.1/VERSION Mon May 10 19:13:02 2004
+@@ -1 +1 @@
+-2.0.6
++2.0.6.fixes.1
+diff -u3 -r ./clients/raxml.c /tmp/1/argus-clients-2.0.6.fixes.1/clients/raxml.c
+--- ./clients/raxml.c Thu Mar 27 15:55:39 2003
++++ /tmp/1/argus-clients-2.0.6.fixes.1/clients/raxml.c Mon May 10 17:46:16 2004
+@@ -430,7 +430,9 @@
+ RaXMLPrintMetricsData(argus);
+ RaXMLPrintTimeData(argus);
+ RaXMLPrintUsrData(argus);
++/*
+ RaXMLPrintAgrData (argus);
++*/
+ }
+
+ #if defined(__OpenBSD__)
+diff -u3 -r ./common/argus_client.c /tmp/1/argus-clients-2.0.6.fixes.1/common/argus_client.c
+--- ./common/argus_client.c Thu Mar 27 15:55:39 2003
++++ /tmp/1/argus-clients-2.0.6.fixes.1/common/argus_client.c Mon May 10 15:41:34 2004
+@@ -2174,6 +2174,7 @@
+ }
+
+
++int RaParseProtoField = 1;
+ struct RaPolicyStruct *
+ RaParsePolicyEntry (char *str)
+ {
+@@ -2249,32 +2250,35 @@
+ break;
+
+ case RA_POLICYPROTO:
+- switch (type) {
+- case RA_FLOWLIST:
+- if (isdigit((int)*ptr)) {
+- retn->proto = atoi(ptr);
+- } else {
+- if (*ptr == '*') {
+- retn->proto = 0xFF;
++ if (RaParseProtoField) {
++ switch (type) {
++ case RA_FLOWLIST:
++ if (isdigit((int)*ptr)) {
++ retn->proto = atoi(ptr);
+ } else {
+- struct protoent *proto;
+- if ((proto = getprotobyname(ptr)) != NULL)
+- retn->proto = proto->p_proto;
+- else
+- error++;
++ if (*ptr == '*') {
++ retn->proto = 0xFF;
++ } else {
++ struct protoent *proto;
++ if ((proto = getprotobyname(ptr)) != NULL)
++ retn->proto = proto->p_proto;
++ else {
++ error++;
++ }
++ }
+ }
+- }
+- break;
++ break;
+
+- case RA_MODELIST:
+- if ((strstr(ptr, "yes")) != NULL)
+- retn->proto = 0xFF;
+- else
+- if ((strstr(ptr, "no")) != NULL)
+- retn->proto = 0x00;
++ case RA_MODELIST:
++ if ((strstr(ptr, "yes")) != NULL)
++ retn->proto = 0xFF;
+ else
+- error++;
+- break;
++ if ((strstr(ptr, "no")) != NULL)
++ retn->proto = 0x00;
++ else
++ error++;
++ break;
++ }
+ }
+ break;
+
+diff -u3 -r ./include/argus_client.h /tmp/1/argus-clients-2.0.6.fixes.1/include/argus_client.h
+--- ./include/argus_client.h Tue Jan 13 23:40:11 2004
++++ /tmp/1/argus-clients-2.0.6.fixes.1/include/argus_client.h Mon May 10 17:40:32 2004
+@@ -285,7 +285,7 @@
+ int RaCumulativeMerge = 1;
+ int RaPrintActualValues = 1;
+ int RaReportAggregation = 1;
+-int RaAutoCorrection = 1;
++int RaAutoCorrection = 0;
+
+ int RaAllocHashTableHeaders = 0;
+ int RaAllocArgusRecordStore = 0;
diff --git a/net-mgmt/argus-clients/files/patch-configure b/net-mgmt/argus-clients/files/patch-configure
new file mode 100644
index 000000000000..326d11dd81c2
--- /dev/null
+++ b/net-mgmt/argus-clients/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure~ Sat May 15 23:07:07 2004
++++ configure Sat May 15 23:08:40 2004
+@@ -4025,7 +4025,7 @@
+
+ if test -d ${with_sasl}; then
+ ac_cv_sasl_where_lib=${with_sasl}/lib
+- ac_cv_sasl_where_inc=${with_sasl}/include
++ ac_cv_sasl_where_inc=${with_sasl}/include/sasl
+
+ SASLFLAGS="-I$ac_cv_sasl_where_inc"
+ LIB_SASL="-L$ac_cv_sasl_where_lib"
diff --git a/net-mgmt/argus-clients/pkg-descr b/net-mgmt/argus-clients/pkg-descr
new file mode 100644
index 000000000000..80e8053dee96
--- /dev/null
+++ b/net-mgmt/argus-clients/pkg-descr
@@ -0,0 +1,15 @@
+Client programs that read, parse and process Argus data, and comprise
+the client part of the Audit Record Generation and Utilization System.
+
+Argus is a generic IP network transaction auditing tool that has been used
+by thousands of sites to perform a number of powerful network management
+tasks that are currently not possible using commercial network management
+tools.
+
+Argus runs as an application level daemon, promiscuously reading network
+datagrams from a specified interface, and generates network traffic audit
+records for the network activity that it encounters. It is the way that
+Argus categorizes and reports on network activity that makes this tool
+unique and powerful.
+
+WWW: http://www.qosient.com/argus/
diff --git a/net-mgmt/argus-clients/pkg-plist b/net-mgmt/argus-clients/pkg-plist
new file mode 100644
index 000000000000..4ae427f646dc
--- /dev/null
+++ b/net-mgmt/argus-clients/pkg-plist
@@ -0,0 +1,71 @@
+argus/COPYING
+argus/README
+bin/argusbug
+bin/ra
+bin/racount
+bin/ragator
+bin/ragraph
+bin/ragrep
+bin/rahistogram
+bin/rahosts
+bin/ramon
+bin/ranonymize
+bin/rapath
+bin/rapolicy
+bin/rarpwatch
+bin/raseq
+bin/rasort
+bin/rasrvstats
+bin/rastrip
+bin/ratop
+bin/raxml
+include/cons_def.h
+include/cons_out.h
+lib/argus_client.a
+lib/argus_common.a
+lib/argus_parse.a
+%%EXAMPLESDIR%%/Archive/argusarchive
+%%EXAMPLESDIR%%/Config/excel.rc
+%%EXAMPLESDIR%%/Config/policy.conf
+%%EXAMPLESDIR%%/Config/ragator.conf
+%%EXAMPLESDIR%%/Config/rarc
+%%EXAMPLESDIR%%/README
+%%EXAMPLESDIR%%/System/crontab
+%%EXAMPLESDIR%%/System/magic
+%%EXAMPLESDIR%%/Tools/ArgusPortNum.dat
+%%EXAMPLESDIR%%/Tools/Makefile
+%%EXAMPLESDIR%%/Tools/parsePortNum.c
+%%EXAMPLESDIR%%/Xml/ArgusRecord.biz
+%%EXAMPLESDIR%%/Xml/ArgusRecord.dtd
+%%EXAMPLESDIR%%/Xml/ArgusRecord.sox
+%%EXAMPLESDIR%%/Xml/ArgusRecord.xdr
+%%EXAMPLESDIR%%/Xml/ArgusRecord.xsd
+%%EXAMPLESDIR%%/Xml/ArgusRecordSample.xml
+%%EXAMPLESDIR%%/Xml/README
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/CREDITS
+%%PORTDOCS%%%%DOCSDIR%%/FAQ
+%%PORTDOCS%%%%DOCSDIR%%/HOW-TO
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/html/man/hosts_access.5.html
+%%PORTDOCS%%%%DOCSDIR%%/html/man/hosts_options.5.html
+%%PORTDOCS%%%%DOCSDIR%%/html/man/ra.1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/man/racount.1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/man/ragator.1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/man/ramon.1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/man/rarc.5.html
+%%PORTDOCS%%%%DOCSDIR%%/html/man/rasort.1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/man/raxml.1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/man/tcpd.8.html
+%%PORTDOCS%%%%DOCSDIR%%/html/man/tcpdump.1.html
+@dirrm %%EXAMPLESDIR%%/Xml
+@dirrm %%EXAMPLESDIR%%/Tools
+@dirrm %%EXAMPLESDIR%%/System
+@dirrm %%EXAMPLESDIR%%/Config
+@dirrm %%EXAMPLESDIR%%/Archive
+@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/man
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@unexec rmdir %D/argus/archive %D/argus >/dev/null 2>&1 || true