ports/99451: [new port] net-mgmt/ipacco - Web based tool to analyze Cisco IP accounting data

Babak Farrokhi babak at farrokhi.net
Sun Jun 25 13:20:31 UTC 2006


>Number:         99451
>Category:       ports
>Synopsis:       [new port] net-mgmt/ipacco - Web based tool to analyze Cisco IP accounting data
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 25 13:20:22 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Babak Farrokhi
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:


System: FreeBSD 6.1-STABLE #1: Fri May 12 21:09:54 IRDT 2006
    root at home.farrokhi.net:/usr/obj/usr/src/sys/HOME



>Description:


Web based tool to analyze Cisco IP accounting data


>How-To-Repeat:





>Fix:


--- ipacco.shar begins here ---
# 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:
#
#	ipacco
#	ipacco/Makefile
#	ipacco/distinfo
#	ipacco/pkg-descr
#	ipacco/pkg-plist
#	ipacco/files
#	ipacco/files/pkg-message.in
#
echo c - ipacco
mkdir -p ipacco > /dev/null 2>&1
echo x - ipacco/Makefile
sed 's/^X//' >ipacco/Makefile << 'END-of-ipacco/Makefile'
X# New ports collection makefile for:	ipacco
X# Date created:		25 June 2006
X# Whom:			Babak Farrokhi <babak at farrokhi.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ipacco
XPORTVERSION=	0.2.0.1
XCATEGORIES=	net-mgmt www
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	ipacco
X
XMAINTAINER=	babak at farrokhi.net
XCOMMENT=	Web based tool to analyze Cisco IP accounting data
X
XRUN_DEPENDS=	${TCL_LIBDIR}/mysqltcl:${PORTSDIR}/databases/mysqltcl \
X		${LOCALBASE}/lib/tcllib1.7/pkgIndex.tcl:${PORTSDIR}/devel/tcllib \
X		tclx83:${PORTSDIR}/lang/tclX
X
XNO_BUILD=	yes
XUSE_PHP=	mysql gd
XUSE_TCL=	yes
X
XIPACCO?=	www/${PORTNAME}
XIPACCO_WEB=	${PREFIX}/${IPACCO}
XPLIST_SUB+=	IPACCO_WEB=${IPACCO}
XSUB_LIST+=	IPACCO_WEB=${IPACCO} \
X		PORTDOCS=${PORTDOCS} \
X		PORTNAME=${PORTNAME}
X
XSUB_FILES=	pkg-message
X
X.if !defined(NOPORTDOCS)
XPORTDOCS1=	INSTALL.html INSTALL.txt RELNOTES.html RELNOTES.txt
XPORTDOCS2=	README.html README.txt LICENSE CreateDB.sql
X.endif
X
Xpre-install:
X	@${FIND} ${WRKSRC} -name '*.bak' -type f -print0 | ${XARGS} -0 ${RM} -f
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|/usr/bin/tclsh|${TCLSH}|' \
X	    ${WRKSRC}/datapump/ipacco-datapump.tcl
X	@${REINPLACE_CMD} -e 's|\<?=|\<?php print|g' \
X	    ${WRKSRC}/html/*.php
X
Xdo-install:
X	-@${MKDIR} ${IPACCO_WEB}
X	@${MKDIR} ${PREFIX}/etc/${PORTNAME}
X	@${CP} -R ${WRKSRC}/html/* ${IPACCO_WEB}
X	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${IPACCO_WEB}
X	@${INSTALL_DATA} ${WRKSRC}/datapump/ipacco-datapump.cfg ${PREFIX}/etc/${PORTNAME}
X	@${INSTALL_SCRIPT} ${WRKSRC}/datapump/ipacco-datapump.tcl ${PREFIX}/sbin
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for f in ${PORTDOCS1}
X	@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
X.endfor
X.for f in ${PORTDOCS2}
X	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.endfor
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-ipacco/Makefile
echo x - ipacco/distinfo
sed 's/^X//' >ipacco/distinfo << 'END-of-ipacco/distinfo'
XMD5 (ipacco-0.2.0.1.tar.gz) = 4413b19275c3f0357e0d3e3d5cbdac45
XSHA256 (ipacco-0.2.0.1.tar.gz) = 8d91d783ea534f46c928f77d262962ccfb6e3ecd522c02f0262ac348bcc11636
XSIZE (ipacco-0.2.0.1.tar.gz) = 65754
END-of-ipacco/distinfo
echo x - ipacco/pkg-descr
sed 's/^X//' >ipacco/pkg-descr << 'END-of-ipacco/pkg-descr'
XIPAcco is a free software package that helps a network admin 
Xto collect, visualize and analyze IP accounting data from the 
XCisco routers. 
XCisco routers themselves are capable of collecting IP accounting 
Xinformation . i.e. an unordered set of IP source-destination 
Xpairs along with a byte and packet counters corresponding to all 
Xnetwork traffic flows that passed through the router's interfaces. 
XThese data can be a useful source for various analysis procedures 
Xand billing systems but by itself, in their raw form they are 
Xrather difficult to read and understand. In addition, a router 
Xcannot keep a lot of data . its memory is needed for purposes 
Xother than remembering what traffic, from what sources and where 
Xit forwarded two month ago.
X
XWWW:	http://ipacco.sourceforge.net/
X
X- Babak Farrokhi
Xbabak at farrokhi.net
END-of-ipacco/pkg-descr
echo x - ipacco/pkg-plist
sed 's/^X//' >ipacco/pkg-plist << 'END-of-ipacco/pkg-plist'
Xetc/ipacco/ipacco-datapump.cfg
Xsbin/ipacco-datapump.tcl
X%%PORTDOCS%%%%DOCSDIR%%/CreateDB.sql
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL.html
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL.txt
X%%PORTDOCS%%%%DOCSDIR%%/LICENSE
X%%PORTDOCS%%%%DOCSDIR%%/README.html
X%%PORTDOCS%%%%DOCSDIR%%/README.txt
X%%PORTDOCS%%%%DOCSDIR%%/RELNOTES.html
X%%PORTDOCS%%%%DOCSDIR%%/RELNOTES.txt
X%%IPACCO_WEB%%/AddrCondition.php
X%%IPACCO_WEB%%/AddrFilter.php
X%%IPACCO_WEB%%/AddrGraph.php
X%%IPACCO_WEB%%/BrightnessPicker.php
X%%IPACCO_WEB%%/BrightnessSelector.php
X%%IPACCO_WEB%%/ByAddress.php
X%%IPACCO_WEB%%/ByTime.php
X%%IPACCO_WEB%%/ChangeSettings.php
X%%IPACCO_WEB%%/ColorBrightnessPicker.php
X%%IPACCO_WEB%%/ColorPicker.php
X%%IPACCO_WEB%%/ColorSelector.php
X%%IPACCO_WEB%%/Colors.php
X%%IPACCO_WEB%%/Globals.php
X%%IPACCO_WEB%%/Help.php
X%%IPACCO_WEB%%/IPAcco.css
X%%IPACCO_WEB%%/MainMenu.php
X%%IPACCO_WEB%%/PageBottom.php
X%%IPACCO_WEB%%/PageHeader.php
X%%IPACCO_WEB%%/PageMiddle.php
X%%IPACCO_WEB%%/PageTop.php
X%%IPACCO_WEB%%/ServerError.php
X%%IPACCO_WEB%%/Settings.php
X%%IPACCO_WEB%%/SiteDefs.php
X%%IPACCO_WEB%%/TimeGraph.php
X%%IPACCO_WEB%%/TimeSelector.php
X%%IPACCO_WEB%%/Utils.php
X%%IPACCO_WEB%%/help/AddressFiltering.html
X%%IPACCO_WEB%%/help/AddressGraph.html
X%%IPACCO_WEB%%/help/Overview.html
X%%IPACCO_WEB%%/help/Settings.html
X%%IPACCO_WEB%%/help/StatusPage.html
X%%IPACCO_WEB%%/help/TimeGraph.html
X%%IPACCO_WEB%%/help/TimeNavigation.html
X%%IPACCO_WEB%%/images/ArrowLeftButton.png
X%%IPACCO_WEB%%/images/ArrowLeftButtonDisabled.png
X%%IPACCO_WEB%%/images/ArrowRightButton.png
X%%IPACCO_WEB%%/images/ColorPicker.png
X%%IPACCO_WEB%%/images/MinusButton.png
X%%IPACCO_WEB%%/images/MinusButtonDisabled.png
X%%IPACCO_WEB%%/images/PlusButton.png
X%%IPACCO_WEB%%/images/php-power-black.gif
X%%IPACCO_WEB%%/images/poweredbymysql-88.png
X%%IPACCO_WEB%%/index.html
X%%IPACCO_WEB%%/index.php
X at dirrm %%IPACCO_WEB%%/images
X at dirrm %%IPACCO_WEB%%/help
X at dirrmtry %%IPACCO_WEB%%
X at dirrm etc/ipacco
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-ipacco/pkg-plist
echo c - ipacco/files
mkdir -p ipacco/files > /dev/null 2>&1
echo x - ipacco/files/pkg-message.in
sed 's/^X//' >ipacco/files/pkg-message.in << 'END-of-ipacco/files/pkg-message.in'
X
X--------------------------------------------------
X
X1- Import database schema to your mysql:
X    mysql -u root -p < %%DOCSDIR%%%%PORTDOCS%%/CreateDB.sql
X
X2- Configure mysql parameters in 
X    %%PREFIX%%/etc/%%PORTNAME%%/ipacco-datapump.cfg
X    and
X    %%PREFIX%%/%%IPACCO_WEB%%/SiteDefs.php 
X
X3- Read the instructions and configure your cisco routers:
X    %%DOCSDIR%%/README.txt
X
X4- Add datapump agent to your /etc/crontab file:
X    */5 * * * * root %%PREFIX%%/sbin/ipacco-datapump.tcl \
X    -c %%PREFIX%%/etc/%%PORTNAME%%/ipacco-datapump.cfg > /dev/null 2>&1
X
X--------------------------------------------------
X    
END-of-ipacco/files/pkg-message.in
exit

--- ipacco.shar ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list