pkg-descr

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

pkg-install

#!/bin/sh
# $FreeBSD: ports/net-mgmt/iog/pkg-install,v 1.1 2003/05/06 08:18:54 seanc Exp $
#

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

pkg-plist

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%%/index.php
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
@dirrmtry iog/iog-%%VERSION%%
@dirrmtry iog