aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorseanc <seanc@FreeBSD.org>2003-05-06 16:18:54 +0800
committerseanc <seanc@FreeBSD.org>2003-05-06 16:18:54 +0800
commit47d894434e54d7c8e0f40f1a70cc2d60463c004c (patch)
tree3f53920e423a867a419bf148eaa8f860127bd0ca /net-mgmt
parent403b529dfd30808b2dafb2868ed401f8c888f1b2 (diff)
downloadfreebsd-ports-gnome-47d894434e54d7c8e0f40f1a70cc2d60463c004c.tar.gz
freebsd-ports-gnome-47d894434e54d7c8e0f40f1a70cc2d60463c004c.tar.zst
freebsd-ports-gnome-47d894434e54d7c8e0f40f1a70cc2d60463c004c.zip
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>
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/iog/Makefile44
-rw-r--r--net-mgmt/iog/distinfo1
-rw-r--r--net-mgmt/iog/pkg-descr12
-rw-r--r--net-mgmt/iog/pkg-install24
-rw-r--r--net-mgmt/iog/pkg-plist14
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