mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add rtg 0.7.4, a flexible, high-performance SNMP statistics monitoring
system. Submitted by: Brad Davis <so14k@so14k.com>
This commit is contained in:
parent
60ff86c775
commit
efd39c1777
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97541
7 changed files with 143 additions and 0 deletions
|
@ -627,6 +627,7 @@
|
|||
SUBDIR += rrdtool
|
||||
SUBDIR += rshell
|
||||
SUBDIR += rsync
|
||||
SUBDIR += rtg
|
||||
SUBDIR += ruby-dict
|
||||
SUBDIR += ruby-icmp
|
||||
SUBDIR += ruby-jabber4r
|
||||
|
|
30
net/rtg/Makefile
Normal file
30
net/rtg/Makefile
Normal file
|
@ -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>
|
1
net/rtg/distinfo
Normal file
1
net/rtg/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (rtg-0.7.4.tar.gz) = c61ff1323701e2771bb5ff9cf67f1b77
|
43
net/rtg/files/patch-configure
Normal file
43
net/rtg/files/patch-configure
Normal file
|
@ -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
|
31
net/rtg/files/patch-etc-Makefile.in
Normal file
31
net/rtg/files/patch-etc-Makefile.in
Normal file
|
@ -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.
|
19
net/rtg/pkg-descr
Normal file
19
net/rtg/pkg-descr
Normal file
|
@ -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
|
18
net/rtg/pkg-plist
Normal file
18
net/rtg/pkg-plist
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue