diff options
author | Sean Chittenden <seanc@FreeBSD.org> | 2003-05-06 08:18:54 +0000 |
---|---|---|
committer | Sean Chittenden <seanc@FreeBSD.org> | 2003-05-06 08:18:54 +0000 |
commit | 2de8119d14ebfcf9ec18f9054d834ff8b3ab741a (patch) | |
tree | 1fbe766afcc18d5abc8d5621094782fe538bf8d0 /net-mgmt/iog | |
parent | Fix plist. (diff) |
Add IOG, an SNMP Input/Output Grapher. Similar to MRTG or cricket only
much more simple to configure and more basic in its output.
PR: ports/51773
Submitted by: Larry Rosenman <ler@lerctr.org>
Notes
Notes:
svn path=/head/; revision=80240
Diffstat (limited to 'net-mgmt/iog')
-rw-r--r-- | net-mgmt/iog/Makefile | 44 | ||||
-rw-r--r-- | net-mgmt/iog/distinfo | 1 | ||||
-rw-r--r-- | net-mgmt/iog/pkg-descr | 12 | ||||
-rw-r--r-- | net-mgmt/iog/pkg-install | 24 | ||||
-rw-r--r-- | net-mgmt/iog/pkg-plist | 14 |
5 files changed, 95 insertions, 0 deletions
diff --git a/net-mgmt/iog/Makefile b/net-mgmt/iog/Makefile new file mode 100644 index 000000000000..68c825ae9fa5 --- /dev/null +++ b/net-mgmt/iog/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: net/iog +# Date created: 4 May 2003 +# Whom: Larry Rosenman <ler@lerctr.org> +# +# $FreeBSD$ +# + +PORTNAME= iog +PORTVERSION= 1.02 +CATEGORIES= net +MASTER_SITES= http://www.dynw.com/iog/ +DISTNAME= iog-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= ler@lerctr.org +COMMENT= Graphs Byte Counts for switches/routers/etc + +NO_BUILD= yes +USE_PERL5= yes +PLIST_SUB+= VERSION=${PORTVERSION} +IOG_USER= iog +IOG_GROUP= www + +IOGDIR= ${PREFIX}/iog/iog-${PORTVERSION} + +do-install: + @PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL + @${MKDIR} -m 755 ${IOGDIR} + @${CHMOD} 0600 ${WRKSRC}/iog.cfg + @${CP} ${WRKSRC}/iog.cfg ${WRKSRC}/iog.cfg.sample + @${CP} -R ${WRKSRC}/* ${IOGDIR} + @if [ ! -x ${IOGDIR}/iog.cfg ]; then \ + ${CP} ${IOGDIR}/iog.cfg.sample ${IOGDIR}/iog.cfg ; \ + fi + @${FIND} ${IOGDIR} -name \*.orig -or \ + -name \*.bak | ${XARGS} ${RM} -f + ${CHOWN} -R ${IOG_USER}:${IOG_GROUP} ${PREFIX}/iog + @if [ -L ${PREFIX}/iog/iog ]; then \ + ${ECHO} "Updating ${PREFIX}/iog/iog symbolic link" ; \ + ${RM} ${PREFIX}/iog/iog ; \ + fi + ${LN} -sf ${IOGDIR} ${PREFIX}/iog/iog + +.include <bsd.port.mk> diff --git a/net-mgmt/iog/distinfo b/net-mgmt/iog/distinfo new file mode 100644 index 000000000000..ce604024a095 --- /dev/null +++ b/net-mgmt/iog/distinfo @@ -0,0 +1 @@ +MD5 (iog-1.02.tgz) = 9f902098de12aae4ea6cb1467944f51a diff --git a/net-mgmt/iog/pkg-descr b/net-mgmt/iog/pkg-descr new file mode 100644 index 000000000000..e5d199449cee --- /dev/null +++ b/net-mgmt/iog/pkg-descr @@ -0,0 +1,12 @@ +IOG is a network I/O byte grapher made to graph cumulative KB/MB/GB +totals for hours/days and months. It is intended to be simple, fast +(support thousands of hosts) and integrate well with MRTG. Data for +each host is updated hourly and HTML graphs are created. It uses a +data consolidation algorithm which allows for a small, non-growing +database file for each host. No external graphing libs or +executables are required. + +IOG has been used in several production ISP environments, +including at the authors company, Dynamic Internet (dyni.net). + +-Larry Rosenman <ler@lerctr.org> diff --git a/net-mgmt/iog/pkg-install b/net-mgmt/iog/pkg-install new file mode 100644 index 000000000000..ce43dfee9316 --- /dev/null +++ b/net-mgmt/iog/pkg-install @@ -0,0 +1,24 @@ +#!/bin/sh +# $FreeBSD$ +# + +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +USER=iog +# group selected to be www since the webserver has to be able to serve it +GROUP=www + +if ! pw usershow "${USER}" 2>/dev/null 1>&2; then + if pw useradd ${USER} -g ${GROUP} -h - \ + -s "/sbin/nologin" -d "${PREFIX}/iog" \ + -c "iog Monitoring Owner"; \ + then + echo "Added user \"${USER}\"." + else + echo "Adding user \"${USER}\" failed..." + exit 1 + fi +fi +exit 0 diff --git a/net-mgmt/iog/pkg-plist b/net-mgmt/iog/pkg-plist new file mode 100644 index 000000000000..ec2d11df47a9 --- /dev/null +++ b/net-mgmt/iog/pkg-plist @@ -0,0 +1,14 @@ +iog/iog-%%VERSION%%/Artistic +iog/iog-%%VERSION%%/BER.pm +iog/iog-%%VERSION%%/README +iog/iog-%%VERSION%%/SNMP_Session.pm +iog/iog-%%VERSION%%/howto-iog.html +iog/iog-%%VERSION%%/in.gif +iog/iog-%%VERSION%%/iog +@unexec if cmp -s %D/iog/iog-%%VERSION%%/iog.cfg %D/iog/iog-%%VERSION%%/iog.cfg.sample; then rm -f %D/iog/iog-%%VERSION%%/iog.cfg; fi +iog/iog-%%VERSION%%/iog.cfg.sample +iog/iog-%%VERSION%%/ioglogo.gif +iog/iog-%%VERSION%%/out.gif +iog/iog +@unexec rmdir %D/iog/iog-%%VERSION%% 2>/dev/null || true +@unexec rmdir %D/iog 2>/dev/null || true |