diff options
author | Will Andrews <will@FreeBSD.org> | 2004-01-07 06:39:57 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2004-01-07 06:39:57 +0000 |
commit | efd39c1777dea4461c6409573c0870de0b3f194c (patch) | |
tree | aa3d7da10a4a591b8d7ac68524abd9974e449937 /net/rtg | |
parent | Add gnome2-hacker-tools, a meta-port of development applications for (diff) |
Add rtg 0.7.4, a flexible, high-performance SNMP statistics monitoring
system.
Submitted by: Brad Davis <so14k@so14k.com>
Notes
Notes:
svn path=/head/; revision=97541
Diffstat (limited to 'net/rtg')
-rw-r--r-- | net/rtg/Makefile | 30 | ||||
-rw-r--r-- | net/rtg/distinfo | 1 | ||||
-rw-r--r-- | net/rtg/files/patch-configure | 43 | ||||
-rw-r--r-- | net/rtg/files/patch-etc-Makefile.in | 31 | ||||
-rw-r--r-- | net/rtg/pkg-descr | 19 | ||||
-rw-r--r-- | net/rtg/pkg-plist | 18 |
6 files changed, 142 insertions, 0 deletions
diff --git a/net/rtg/Makefile b/net/rtg/Makefile new file mode 100644 index 000000000000..fff6992e63b9 --- /dev/null +++ b/net/rtg/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: rtg +# Date created: 6 January 2004 +# Whom: Brad Davis <so14k@so14k.com> +# +# $FreeBSD$ +# + +PORTNAME= rtg +PORTVERSION= 0.7.4 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= rtg + +MAINTAINER= so14k@so14k.com +COMMENT= A flexible, high-performance SNMP statistics monitoring system + +BUILD_DEPENDS= \ + ${LOCALBASE}/lib/mysql/libmysqlclient_r.a:${PORTSDIR}/databases/mysql41-client \ + ${LOCALBASE}/sbin/snmpd:${PORTSDIR}/net/net-snmp + +MAN1= rtgplot.1 rtgpoll.1 + +USE_REINPLACE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/rtg + +pre-configure: + ${REINPLACE_CMD} -e "s,-pthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure + +.include <bsd.port.mk> diff --git a/net/rtg/distinfo b/net/rtg/distinfo new file mode 100644 index 000000000000..75d17b78d91d --- /dev/null +++ b/net/rtg/distinfo @@ -0,0 +1 @@ +MD5 (rtg-0.7.4.tar.gz) = c61ff1323701e2771bb5ff9cf67f1b77 diff --git a/net/rtg/files/patch-configure b/net/rtg/files/patch-configure new file mode 100644 index 000000000000..c5c6f5bd80df --- /dev/null +++ b/net/rtg/files/patch-configure @@ -0,0 +1,43 @@ +--- configure.ori Tue Jan 6 22:43:17 2004 ++++ configure Tue Jan 6 22:47:06 2004 +@@ -328,6 +328,8 @@ + libexecdir='${exec_prefix}/libexec' + datadir='${prefix}/share' + sysconfdir='${prefix}/etc' ++etcdir='${prefix}/etc/rtg' ++webdir='${prefix}/www/data' + sharedstatedir='${prefix}/com' + localstatedir='${prefix}/var' + libdir='${exec_prefix}/lib' +@@ -558,6 +560,12 @@ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + ++ -etcdir=* | --etcdir=* ) ++ etcdir=$ac_optarg ;; ++ ++ -webdir=* | --webdir=* ) ++ webdir=$ac_optarg ;; ++ + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) +@@ -654,7 +662,8 @@ + + # Be sure to have absolute paths. + for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ +- localstatedir libdir includedir oldincludedir infodir mandir ++ localstatedir libdir includedir oldincludedir infodir mandir \ ++ etcdir webdir + do + eval ac_val=$`echo $ac_var` + case $ac_val in +@@ -5310,6 +5319,8 @@ + s,@libexecdir@,$libexecdir,;t t + s,@datadir@,$datadir,;t t + s,@sysconfdir@,$sysconfdir,;t t ++s,@etcdir@,$etcdir,;t t ++s,@webdir@,$webdir,;t t + s,@sharedstatedir@,$sharedstatedir,;t t + s,@localstatedir@,$localstatedir,;t t + s,@libdir@,$libdir,;t t diff --git a/net/rtg/files/patch-etc-Makefile.in b/net/rtg/files/patch-etc-Makefile.in new file mode 100644 index 000000000000..70e6a26a9fd1 --- /dev/null +++ b/net/rtg/files/patch-etc-Makefile.in @@ -0,0 +1,31 @@ +--- etc/Makefile.in.orig Thu Oct 2 09:59:32 2003 ++++ etc/Makefile.in Tue Jan 6 22:58:25 2004 +@@ -84,8 +84,8 @@ + install_sh = @install_sh@ + + top_builddir = .. +-etcdir = /etc +-webdir = /web ++etcdir = @etcdir@ ++webdir = @webdir@ + reportsdir = /bin + + ETC = rtg.conf rtgtargmkr.pl routers createdb BER.pm \ +@@ -220,13 +220,13 @@ + all: + + install: installdirs +- @for i in $(ETC) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(etcdir) ; echo "install: installed $$i in $(prefix)$(etcdir)" ; done +- @for i in $(WEB) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(webdir) ; echo "install: installed $$i in $(prefix)$(webdir)" ; done ++ @for i in $(ETC) ; do $(INSTALL) $(srcdir)/$$i $(etcdir) ; echo "install: installed $$i in $(etcdir)" ; done ++ @for i in $(WEB) ; do $(INSTALL) $(srcdir)/$$i $(webdir) ; echo "install: installed $$i in $(webdir)" ; done + @for i in $(REPORTS) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(reportsdir) ; echo "install: installed $$i in $(prefix)$(reportsdir)" ; done + + installdirs: +- $(mkinstalldirs) $(prefix)$(etcdir) +- $(mkinstalldirs) $(prefix)$(webdir) ++ $(mkinstalldirs) $(etcdir) ++ $(mkinstalldirs) $(webdir) + $(mkinstalldirs) $(prefix)$(reportsdir) + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/net/rtg/pkg-descr b/net/rtg/pkg-descr new file mode 100644 index 000000000000..52a0fddcef7d --- /dev/null +++ b/net/rtg/pkg-descr @@ -0,0 +1,19 @@ +RTG is a flexible, scalable, high-performance SNMP statistics monitoring +system. It is designed for enterprises and service providers who need to +collect time-series SNMP data from a large number of targets quickly. All +collected data is inserted into a relational database that provides a common +interface for applications to generate complex queries and reports. RTG +includes utilities that generate configuration and target files, traffic +reports, 95th percentile reports and graphical data plots. These utilities may +be used to produce a web-based interface to the data. + +The unique features of RTG are: + * Runs as a daemon, incurring no cron or kernel startup overhead + * Written entirely in C for speed, incurring no interpreter overhead + * Multi-threaded for asynchronous polling and database insertion + * Inserts data into a relational database where complex queries and reports + may be generated + * Performs no data averaging in order to support billing, etc. + * Can poll at sub-one-minute intervals + +WWW: http://rtg.sourceforge.net diff --git a/net/rtg/pkg-plist b/net/rtg/pkg-plist new file mode 100644 index 000000000000..b6c76a69c71c --- /dev/null +++ b/net/rtg/pkg-plist @@ -0,0 +1,18 @@ +bin/95.pl +bin/report.pl +bin/rtgplot +bin/rtgpoll +contrib/README +contrib/rtgtargmkr-with-modules-0.2.tar.gz +include/common.h +include/rtg.h +include/rtgplot.h +share/nls/POSIX +share/nls/en_US.US-ASCII +www/data/95.php +www/data/common.php +www/data/rtg.php +www/data/rtg.png +www/data/rtgback.png +www/data/view.php +@dirrm contrib |