1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

IPAcco is a free software package that helps a network admin

to collect, visualize and analyze IP accounting data from the
Cisco routers.
Cisco routers themselves are capable of collecting IP accounting
information . i.e. an unordered set of IP source-destination
pairs along with a byte and packet counters corresponding to all
network traffic flows that passed through the router's interfaces.
These data can be a useful source for various analysis procedures
and billing systems but by itself, in their raw form they are
rather difficult to read and understand. In addition, a router
cannot keep a lot of data . its memory is needed for purposes
other than remembering what traffic, from what sources and where
it forwarded two month ago.

WWW:	http://ipacco.sourceforge.net/

- Babak Farrokhi
babak@farrokhi.net

PR:		ports/99451
Submitted by:	Babak Farrokhi <babak@farrokhi.net>
This commit is contained in:
Ion-Mihai Tetcu 2006-07-02 19:26:42 +00:00
parent 30caf16853
commit 1622717d49
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=166773
6 changed files with 169 additions and 0 deletions

View File

@ -63,6 +63,7 @@
SUBDIR += ifgraph
SUBDIR += iftop
SUBDIR += iog
SUBDIR += ipacco
SUBDIR += ipacctd
SUBDIR += ipaudit
SUBDIR += ipcad

68
net-mgmt/ipacco/Makefile Normal file
View File

@ -0,0 +1,68 @@
# New ports collection makefile for: ipacco
# Date created: 25 June 2006
# Whom: Babak Farrokhi <babak@farrokhi.net>
#
# $FreeBSD$
#
PORTNAME= ipacco
PORTVERSION= 0.2.0.1
CATEGORIES= net-mgmt www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ipacco
MAINTAINER= babak@farrokhi.net
COMMENT= Web based tool to analyze Cisco IP accounting data
RUN_DEPENDS= ${LOCALBASE}/include/tclExtend.h:${PORTSDIR}/lang/tclX \
${TCL_LIBDIR}/mysqltcl:${PORTSDIR}/databases/mysqltcl \
${LOCALBASE}/lib/tcllib1.7/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
NO_BUILD= yes
USE_PHP= mysql gd
USE_TCL= yes
IPACCO?= www/${PORTNAME}
IPACCO_WEB= ${PREFIX}/${IPACCO}
PLIST_SUB+= IPACCO_WEB=${IPACCO}
SUB_LIST+= IPACCO_WEB=${IPACCO} \
PORTDOCS=${PORTDOCS} \
PORTNAME=${PORTNAME}
SUB_FILES= pkg-message
.if !defined(NOPORTDOCS)
PORTDOCS1= INSTALL.html INSTALL.txt RELNOTES.html RELNOTES.txt
PORTDOCS2= README.html README.txt LICENSE CreateDB.sql
.endif
pre-install:
@${FIND} ${WRKSRC} -name '*.bak' -type f -print0 | ${XARGS} -0 ${RM} -f
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/tclsh|${TCLSH}|' \
${WRKSRC}/datapump/ipacco-datapump.tcl
@${REINPLACE_CMD} -e 's|\<?=|\<?php print|g' \
${WRKSRC}/html/*.php
do-install:
-@${MKDIR} ${IPACCO_WEB}
@${MKDIR} ${PREFIX}/etc/${PORTNAME}
@${CP} -R ${WRKSRC}/html/* ${IPACCO_WEB}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${IPACCO_WEB}
@${INSTALL_DATA} ${WRKSRC}/datapump/ipacco-datapump.cfg \
${PREFIX}/etc/${PORTNAME}
@${INSTALL_SCRIPT} ${WRKSRC}/datapump/ipacco-datapump.tcl \
${PREFIX}/sbin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS1}
@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
.endfor
.for f in ${PORTDOCS2}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

3
net-mgmt/ipacco/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (ipacco-0.2.0.1.tar.gz) = 4413b19275c3f0357e0d3e3d5cbdac45
SHA256 (ipacco-0.2.0.1.tar.gz) = 8d91d783ea534f46c928f77d262962ccfb6e3ecd522c02f0262ac348bcc11636
SIZE (ipacco-0.2.0.1.tar.gz) = 65754

View File

@ -0,0 +1,20 @@
--------------------------------------------------
1- Import database schema to your mysql:
mysql -u root -p < %%DOCSDIR%%%%PORTDOCS%%/CreateDB.sql
2- Configure mysql parameters in
%%PREFIX%%/etc/%%PORTNAME%%/ipacco-datapump.cfg
and
%%PREFIX%%/%%IPACCO_WEB%%/SiteDefs.php
3- Read the instructions and configure your cisco routers:
%%DOCSDIR%%/README.txt
4- Add datapump agent to your /etc/crontab file:
*/5 * * * * root %%PREFIX%%/sbin/ipacco-datapump.tcl \
-c %%PREFIX%%/etc/%%PORTNAME%%/ipacco-datapump.cfg > /dev/null 2>&1
--------------------------------------------------

18
net-mgmt/ipacco/pkg-descr Normal file
View File

@ -0,0 +1,18 @@
IPAcco is a free software package that helps a network admin
to collect, visualize and analyze IP accounting data from the
Cisco routers.
Cisco routers themselves are capable of collecting IP accounting
information . i.e. an unordered set of IP source-destination
pairs along with a byte and packet counters corresponding to all
network traffic flows that passed through the router's interfaces.
These data can be a useful source for various analysis procedures
and billing systems but by itself, in their raw form they are
rather difficult to read and understand. In addition, a router
cannot keep a lot of data . its memory is needed for purposes
other than remembering what traffic, from what sources and where
it forwarded two month ago.
WWW: http://ipacco.sourceforge.net/
- Babak Farrokhi
babak@farrokhi.net

59
net-mgmt/ipacco/pkg-plist Normal file
View File

@ -0,0 +1,59 @@
etc/ipacco/ipacco-datapump.cfg
sbin/ipacco-datapump.tcl
%%PORTDOCS%%%%DOCSDIR%%/CreateDB.sql
%%PORTDOCS%%%%DOCSDIR%%/INSTALL.html
%%PORTDOCS%%%%DOCSDIR%%/INSTALL.txt
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
%%PORTDOCS%%%%DOCSDIR%%/README.html
%%PORTDOCS%%%%DOCSDIR%%/README.txt
%%PORTDOCS%%%%DOCSDIR%%/RELNOTES.html
%%PORTDOCS%%%%DOCSDIR%%/RELNOTES.txt
%%IPACCO_WEB%%/AddrCondition.php
%%IPACCO_WEB%%/AddrFilter.php
%%IPACCO_WEB%%/AddrGraph.php
%%IPACCO_WEB%%/BrightnessPicker.php
%%IPACCO_WEB%%/BrightnessSelector.php
%%IPACCO_WEB%%/ByAddress.php
%%IPACCO_WEB%%/ByTime.php
%%IPACCO_WEB%%/ChangeSettings.php
%%IPACCO_WEB%%/ColorBrightnessPicker.php
%%IPACCO_WEB%%/ColorPicker.php
%%IPACCO_WEB%%/ColorSelector.php
%%IPACCO_WEB%%/Colors.php
%%IPACCO_WEB%%/Globals.php
%%IPACCO_WEB%%/Help.php
%%IPACCO_WEB%%/IPAcco.css
%%IPACCO_WEB%%/MainMenu.php
%%IPACCO_WEB%%/PageBottom.php
%%IPACCO_WEB%%/PageHeader.php
%%IPACCO_WEB%%/PageMiddle.php
%%IPACCO_WEB%%/PageTop.php
%%IPACCO_WEB%%/ServerError.php
%%IPACCO_WEB%%/Settings.php
%%IPACCO_WEB%%/SiteDefs.php
%%IPACCO_WEB%%/TimeGraph.php
%%IPACCO_WEB%%/TimeSelector.php
%%IPACCO_WEB%%/Utils.php
%%IPACCO_WEB%%/help/AddressFiltering.html
%%IPACCO_WEB%%/help/AddressGraph.html
%%IPACCO_WEB%%/help/Overview.html
%%IPACCO_WEB%%/help/Settings.html
%%IPACCO_WEB%%/help/StatusPage.html
%%IPACCO_WEB%%/help/TimeGraph.html
%%IPACCO_WEB%%/help/TimeNavigation.html
%%IPACCO_WEB%%/images/ArrowLeftButton.png
%%IPACCO_WEB%%/images/ArrowLeftButtonDisabled.png
%%IPACCO_WEB%%/images/ArrowRightButton.png
%%IPACCO_WEB%%/images/ColorPicker.png
%%IPACCO_WEB%%/images/MinusButton.png
%%IPACCO_WEB%%/images/MinusButtonDisabled.png
%%IPACCO_WEB%%/images/PlusButton.png
%%IPACCO_WEB%%/images/php-power-black.gif
%%IPACCO_WEB%%/images/poweredbymysql-88.png
%%IPACCO_WEB%%/index.html
%%IPACCO_WEB%%/index.php
@dirrm %%IPACCO_WEB%%/images
@dirrm %%IPACCO_WEB%%/help
@dirrmtry %%IPACCO_WEB%%
@dirrm etc/ipacco
%%PORTDOCS%%@dirrm %%DOCSDIR%%