Date: Sun, 4 May 2003 19:26:53 -0500 (CDT) From: Larry Rosenman <ler@lerctr.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/51773: NEW PORT: net/iog: IO Grapher: graphs byte counts Message-ID: <200305050026.h450QrPp008867@lerlaptop.lerctr.org> Resent-Message-ID: <200305050030.h450UBrH063930@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 51773 >Category: ports >Synopsis: NEW PORT: net/iog: IO Grapher: graphs byte counts >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun May 04 17:30:10 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Larry Rosenman >Release: FreeBSD 4.8-STABLE i386 >Organization: LERCTR Consulting >Environment: System: FreeBSD lerlaptop.lerctr.org 4.8-STABLE FreeBSD 4.8-STABLE #3: Sat May 3 17:17:28 CDT 2003 ler@lerlaptop.lerctr.org:/usr/obj/usr/src/sys/LERLAPTOP i386 >Description: new port for IOGrapher. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # iog # iog/Makefile # iog/distinfo # iog/pkg-install # iog/pkg-descr # iog/pkg-plist # echo c - iog mkdir -p iog > /dev/null 2>&1 echo x - iog/Makefile sed 's/^X//' >iog/Makefile << 'END-of-iog/Makefile' X# New ports collection makefile for: net/iog X# Date created: 4 May 2003 X# Whom: Larry Rosenman <ler@lerctr.org> X# X# $FreeBSD$ X# X XPORTNAME= iog XPORTVERSION= 1.02 XCATEGORIES= net XMASTER_SITES= http://www.dynw.com/iog/ XDISTNAME= iog-${PORTVERSION} XEXTRACT_SUFX= .tgz X XMAINTAINER= ler@lerctr.org XCOMMENT= Graphs Byte Counts for switches/routers/etc X XNO_BUILD= yes XUSE_PERL5= yes XPLIST_SUB+= VERSION=${PORTVERSION} XIOG_USER= iog XIOG_GROUP= www X Xdo-install: X @PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL X @${MKDIR} -m 755 ${PREFIX}/iog/iog-${PORTVERSION} X @${CP} -R ${WRKSRC}/* ${PREFIX}/iog/iog-${PORTVERSION} X @${FIND} ${PREFIX}/iog/iog-${PORTVERSION} -name \*.orig -or \ X -name \*.bak | ${XARGS} ${RM} -f X ${CHOWN} -R ${IOG_USER}:${IOG_GROUP} ${PREFIX}/iog X @if [ -L ${PREFIX}/iog/iog ]; then \ X ${ECHO} "Updating ${PREFIX}/iog/iog symbolic link" ; \ X ${RM} ${PREFIX}/iog/iog ; \ X fi X ${LN} -s ${PREFIX}/iog/iog-${PORTVERSION} \ X ${PREFIX}/iog/iog X X.include <bsd.port.mk> END-of-iog/Makefile echo x - iog/distinfo sed 's/^X//' >iog/distinfo << 'END-of-iog/distinfo' XMD5 (iog-1.02.tgz) = 9f902098de12aae4ea6cb1467944f51a END-of-iog/distinfo echo x - iog/pkg-install sed 's/^X//' >iog/pkg-install << 'END-of-iog/pkg-install' X#!/bin/sh X# $FreeBSD$ X# X Xif [ "$2" != "PRE-INSTALL" ]; then X exit 0 Xfi X XUSER=iog X#group selected to be www since the webserver has to be able to serve it XGROUP=www X Xif ! pw usershow "${USER}" 2>/dev/null 1>&2; then X if pw useradd ${USER} -g ${GROUP} -h - \ X -s "/sbin/nologin" -d "${PREFIX}/iog" \ X -c "iog Monitoring Owner"; \ X then X echo "Added user \"${USER}\"." X else X echo "Adding user \"${USER}\" failed..." X exit 1 X fi Xfi Xexit 0 END-of-iog/pkg-install echo x - iog/pkg-descr sed 's/^X//' >iog/pkg-descr << 'END-of-iog/pkg-descr' XIOG is a network I/O byte grapher made to graph cumulative KB/MB/GB Xtotals for hours/days and months. It is intended to be simple, fast X(support thousands of hosts) and integrate well with MRTG. Data for Xeach host is updated hourly and HTML graphs are created. It uses a Xdata consolidation algorithm which allows for a small, non-growing Xdatabase file for each host. No external graphing libs or Xexecutables are required. X XIOG has been used in several production ISP environments, Xincluding at the authors company, Dynamic Internet (dyni.net). X X-Larry Rosenman <ler@lerctr.org> END-of-iog/pkg-descr echo x - iog/pkg-plist sed 's/^X//' >iog/pkg-plist << 'END-of-iog/pkg-plist' Xiog/iog-%%VERSION%%/Artistic Xiog/iog-%%VERSION%%/BER.pm Xiog/iog-%%VERSION%%/README Xiog/iog-%%VERSION%%/SNMP_Session.pm Xiog/iog-%%VERSION%%/howto-iog.html Xiog/iog-%%VERSION%%/in.gif Xiog/iog-%%VERSION%%/iog Xiog/iog-%%VERSION%%/iog.cfg Xiog/iog-%%VERSION%%/ioglogo.gif Xiog/iog-%%VERSION%%/out.gif Xiog/iog X@DIRRM iog/iog-%%VERSION%% X@DIRRM iog END-of-iog/pkg-plist exit >How-To-Repeat: Install port :-). This is my first port submission, comments/criticisms welcomed. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305050026.h450QrPp008867>