diff --git a/net/argus-clients/Makefile b/net/argus-clients/Makefile new file mode 100644 index 00000000000..dc321138ee0 --- /dev/null +++ b/net/argus-clients/Makefile @@ -0,0 +1,39 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/06/30 05:20:42 steven Exp $ + +COMMENT= utilities to read and parse Argus data + +DISTNAME= argus-clients-3.0.0 +CATEGORIES= net + +HOMEPAGE= http://qosient.com/argus/ +MASTER_SITES= http://qosient.com/argus/src/ + +MAINTAINER= Steven Mestdagh + +# GPLv2 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB= c m ncurses + +NO_REGRESS= Yes + +CONFIGURE_STYLE=gnu +MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config +BUILD_DEPENDS= ::devel/bison + +MAKE_FLAGS= CCOPT="${CFLAGS}" + +post-extract: + @find ${WRKSRC} -name '.gdb_history' -exec rm -f {} \; + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/argus/ + mv ${PREFIX}/argus/* ${PREFIX}/share/argus/ + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/argus-clients/ + cd ${WRKSRC}/support && tar cf - . | \ + tar -C ${PREFIX}/share/examples/argus-clients/ -xf - + +.include diff --git a/net/argus-clients/distinfo b/net/argus-clients/distinfo new file mode 100644 index 00000000000..10798f0e296 --- /dev/null +++ b/net/argus-clients/distinfo @@ -0,0 +1,5 @@ +MD5 (argus-clients-3.0.0.tar.gz) = aSIMiYwKOtYSKS6uzexw0g== +RMD160 (argus-clients-3.0.0.tar.gz) = 7aS8rsXsU1KP6yM24xGr5xm3tDg= +SHA1 (argus-clients-3.0.0.tar.gz) = 0wVb7YBQzH4T8wxg7BdoPljU4Tw= +SHA256 (argus-clients-3.0.0.tar.gz) = 87WzfGmw63879WGiVwmQDile4V3mkADUx9FlaE6+eD0= +SIZE (argus-clients-3.0.0.tar.gz) = 1421803 diff --git a/net/argus-clients/patches/patch-clients_Makefile_in b/net/argus-clients/patches/patch-clients_Makefile_in new file mode 100644 index 00000000000..520b1ad3cdd --- /dev/null +++ b/net/argus-clients/patches/patch-clients_Makefile_in @@ -0,0 +1,20 @@ +$OpenBSD: patch-clients_Makefile_in,v 1.1.1.1 2008/06/30 05:20:42 steven Exp $ +--- clients/Makefile.in.orig Wed Jun 25 23:35:01 2008 ++++ clients/Makefile.in Wed Jun 25 23:38:04 2008 +@@ -141,13 +141,13 @@ all: $(PROGS) + $(CC) $(CCOPT) -o $@ ratree.o $(LIB) $(COMPATLIB) + + @INSTALL_BIN@/raports: raports.pl +- $(INSTALL) raports.pl $@ ++ cp raports.pl $@ + + @INSTALL_BIN@/rahosts: rahosts.pl +- $(INSTALL) rahosts.pl $@ ++ cp rahosts.pl $@ + + @INSTALL_BIN@/radark: radark.pl +- $(INSTALL) radark.pl $@ ++ cp radark.pl $@ + + @INSTALL_BIN@/ratemplate: ratemplate.o $(LIB) + $(CC) $(CCOPT) -o $@ ratemplate.o $(LIB) $(COMPATLIB) diff --git a/net/argus-clients/patches/patch-common_argus_util_c b/net/argus-clients/patches/patch-common_argus_util_c new file mode 100644 index 00000000000..2d8dc572f5c --- /dev/null +++ b/net/argus-clients/patches/patch-common_argus_util_c @@ -0,0 +1,14 @@ +$OpenBSD: patch-common_argus_util_c,v 1.1.1.1 2008/06/30 05:20:42 steven Exp $ +--- common/argus_util.c.orig Wed Jun 25 23:43:02 2008 ++++ common/argus_util.c Wed Jun 25 23:43:26 2008 +@@ -15424,8 +15424,8 @@ ArgusLog (int priority, char *fmt, ...) + *tptr++ = buf[i]; + } + +- memset(buf, 0, MAXSTRLEN); +- strncpy(buf, tbuf, MAXSTRLEN); ++ memset(buf, 0, sizeof(buf)); ++ strncpy(buf, tbuf, sizeof(buf)); + } + + syslog (priority, buf); diff --git a/net/argus-clients/pkg/DESCR b/net/argus-clients/pkg/DESCR new file mode 100644 index 00000000000..a00ce34b9e2 --- /dev/null +++ b/net/argus-clients/pkg/DESCR @@ -0,0 +1,2 @@ +Argus data clients support a range of operations on binary flow data +from Argus, such as sorting, aggregation, archival and reporting. diff --git a/net/argus-clients/pkg/PLIST b/net/argus-clients/pkg/PLIST new file mode 100644 index 00000000000..1c792fa8efa --- /dev/null +++ b/net/argus-clients/pkg/PLIST @@ -0,0 +1,65 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/06/30 05:20:42 steven Exp $ +@comment argus/ +@comment bin/argusbug +@bin bin/ra +@bin bin/rabins +@bin bin/racluster +@bin bin/racount +bin/radark +@bin bin/radump +@bin bin/rafilteraddr +bin/ragraph +@bin bin/ragrep +@bin bin/rahisto +bin/rahosts +@bin bin/ralabel +@bin bin/ranonymize +@bin bin/rapath +@bin bin/rapolicy +bin/raports +@bin bin/rasort +@bin bin/rasplit +@bin bin/rastream +@bin bin/rastrip +@bin bin/ratemplate +@bin bin/ratimerange +@bin bin/ratop +@bin bin/ratree +@man man/man1/ra.1 +@man man/man1/rabins.1 +@man man/man1/racluster.1 +@man man/man1/racount.1 +@man man/man1/ragraph.1 +@man man/man1/ragrep.1 +@man man/man1/rahisto.1 +@man man/man1/rasort.1 +@man man/man1/rasplit.1 +@man man/man1/rastream.1 +@man man/man1/rastrip.1 +@man man/man5/racluster.5 +@man man/man5/radium.conf.5 +@man man/man5/rarc.5 +@man man/man8/radium.8 +@bin sbin/radium +share/argus/ +@comment share/argus/archive/ +share/argus/delegated-ipv4-latest +@comment share/argus/lib/ +@comment share/argus/rarc +share/examples/argus-clients/ +share/examples/argus-clients/Config/ +share/examples/argus-clients/Config/delegated-ipv4-latest +share/examples/argus-clients/Config/excel.rc +share/examples/argus-clients/Config/ra.print.all.conf +share/examples/argus-clients/Config/racluster.conf +share/examples/argus-clients/Config/radium.conf +share/examples/argus-clients/Config/ragetcountrycodes.sh +share/examples/argus-clients/Config/ranonymize.conf +share/examples/argus-clients/Config/rarc +share/examples/argus-clients/Config/rastream.sh +share/examples/argus-clients/Startup/ +share/examples/argus-clients/Startup/radium +share/examples/argus-clients/System/ +share/examples/argus-clients/System/magic +share/examples/argus-clients/System/protocols +share/examples/argus-clients/Xml/