Date: Fri, 15 Apr 2005 11:44:23 +0200 (CEST) From: Janos Mohacsi <janos.mohacsi@niif.hu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/79950: [NEW PORT] net-mgmt/nfsen: Web based frontend to nfdump netflow collector Message-ID: <200504150944.j3F9iNZD058655@skye.ki.iif.hu> Resent-Message-ID: <200504150950.j3F9oMjN059854@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 79950 >Category: ports >Synopsis: [NEW PORT] net-mgmt/nfsen: Web based frontend to nfdump netflow collector >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: Fri Apr 15 09:50:19 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Janos Mohacsi >Release: FreeBSD 4.11-STABLE i386 >Organization: NIIF/HUNGARNET >Environment: System: FreeBSD skye.ki.iif.hu 4.11-STABLE FreeBSD 4.11-STABLE #9: Fri Mar 4 14:42:00 CET >Description: NfSen is a graphical web based front end for the nfdump netflow tools. NfSen allows you to: * Display your netflow data: Flows, Packets and Bytes using RRD (Round Robin Database). * Easily navigate through the netflow data. * Process the netflow data within the specified time span. * Create history as well as continuous profiles. * Write your own plugins to process netflow data on a regular interval WWW: http://nfsen.sourceforge.net/ Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- nfsen-1.1rc3.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: # # nfsen # nfsen/Makefile # nfsen/distinfo # nfsen/pkg-descr # nfsen/files # nfsen/files/patch-etc_nfsen-dist.conf # nfsen/pkg-plist # echo c - nfsen mkdir -p nfsen > /dev/null 2>&1 echo x - nfsen/Makefile sed 's/^X//' >nfsen/Makefile << 'END-of-nfsen/Makefile' X# New ports collection makefile for: nfsen X# Date created: 25 March 2005 X# Whom: janos.mohacsi@bsd.hu X# X# $FreeBSD$ X# X XPORTNAME= nfsen XPORTVERSION= 1.1rc3 XCATEGORIES= net-mgmt XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= ${PORTNAME} XDISTNAME= ${PORTNAME}-${PORTVERSION} X XMAINTAINER= janos.mohacsi@bsd.hu XCOMMENT= Web based frontend to nfdump netflow collector X XRUN_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/net/rrdtool \ X nfdump:${PORTSDIR}/net-mgmt/nfdump X XHAS_CONFIGURE= yes XUSE_PERL5= yes XUSE_PHP= session pcre XNO_BUILD= yes X Xdo-configure: X @${SED} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/etc/nfsen-dist.conf > \ X ${WRKSRC}/etc/nfsen.conf X Xdo-install: X @${MKDIR} -m 755 ${PREFIX}/${PORTNAME} X cd ${WRKSRC} ;${PERL} ${WRKSRC}/install.pl X @${ECHO_MSG} "Configure your etc/nfsen.conf correctly to have necessary profiles "; X X.include <bsd.port.mk> END-of-nfsen/Makefile echo x - nfsen/distinfo sed 's/^X//' >nfsen/distinfo << 'END-of-nfsen/distinfo' XMD5 (nfsen-1.1rc3.tar.gz) = 38b595aa6e4013a444ea48fbabd478a6 XSIZE (nfsen-1.1rc3.tar.gz) = 2654426 END-of-nfsen/distinfo echo x - nfsen/pkg-descr sed 's/^X//' >nfsen/pkg-descr << 'END-of-nfsen/pkg-descr' XNfSen is a graphical web based front end for the nfdump netflow tools. X XNfSen allows you to: X X * Display your netflow data: Flows, Packets and Bytes using RRD X (Round Robin Database). X * Easily navigate through the netflow data. X * Process the netflow data within the specified time span. X * Create history as well as continuous profiles. X * Write your own plugins to process netflow data on a regular interval X XWWW: http://nfsen.sourceforge.net/ END-of-nfsen/pkg-descr echo c - nfsen/files mkdir -p nfsen/files > /dev/null 2>&1 echo x - nfsen/files/patch-etc_nfsen-dist.conf sed 's/^X//' >nfsen/files/patch-etc_nfsen-dist.conf << 'END-of-nfsen/files/patch-etc_nfsen-dist.conf' X X$FreeBSD$ X X--- etc/nfsen-dist.conf.orig X+++ etc/nfsen-dist.conf X@@ -20,7 +20,7 @@ X # NfSen base directory: Home of NfSen X # contains all scripts, modules and profile directories: X # bin, libexec, var, profiles X-$BASEDIR = "/data/nfsen"; X+$BASEDIR = "/%%PREFIX%%/nfsen"; X X # nfdump tools path X $PREFIX = '/usr/local/bin'; X@@ -30,7 +30,7 @@ X # This may be a different or the same uid than your web server. X # Note: This user must be in group $WWWGROUP, otherwise nfcapd X # is not able to write data files! X-$USER = "netflow"; X+$USER = "www"; X X # user and group of the web server process X # All netflow processing will be done with this user X@@ -52,15 +52,15 @@ X # Ident strings must be 1 to 19 characters long only, containing characters [a-zA-Z0-9_]. X X %sources = ( X- 'upstream1' => { 'port' => '9995', 'col' => '#0000ff' }, X- 'peer1' => { 'port' => '9996', 'col' => '#ff0000' }, X+# 'upstream1' => { 'port' => '9995', 'col' => '#0000ff' }, X+# 'peer1' => { 'port' => '9996', 'col' => '#ff0000' }, X ); X X # X # NfSen html pages directory: X # All php scripts will be installed here. X # URL: Entry point for nfsen: http://<webserver>/nfsen/nfsen.php X-$HTMLDIR = "/var/www/nfsen/"; X+$HTMLDIR = "/%%PREFIX%%/www/nfsen/"; X X # X # Low water mark: When expiring files, delete files until END-of-nfsen/files/patch-etc_nfsen-dist.conf echo x - nfsen/pkg-plist sed 's/^X//' >nfsen/pkg-plist << 'END-of-nfsen/pkg-plist' Xnfsen/bin/GenGraph.pl Xnfsen/bin/nfsen Xnfsen/bin/nfsen-run Xnfsen/bin/nfsen.rc Xnfsen/bin/testPlugin Xnfsen/etc/nfsen-dist.conf Xnfsen/etc/nfsen-dist.conf.orig Xnfsen/etc/nfsen-shell-param Xnfsen/etc/nfsen.conf Xnfsen/libexec/Log.pm Xnfsen/libexec/NfConf.pm Xnfsen/libexec/NfProfile.pm Xnfsen/libexec/NfSen.pm Xnfsen/libexec/NfSenRRD.pm Xnfsen/libexec/Notification.pm Xnfsen/libexec/PluginTemplate.pm Xnfsen/libexec/demoplugin.pm Xnfsen/profiles/live/profile.dat Xwww/nfsen/conf.php Xwww/nfsen/css-admin.html Xwww/nfsen/css.html Xwww/nfsen/details.php Xwww/nfsen/edit.png Xwww/nfsen/info.php Xwww/nfsen/invisible.gif Xwww/nfsen/navigator.php Xwww/nfsen/nfsen.php Xwww/nfsen/nfsenutil.php Xwww/nfsen/overview.php Xwww/nfsen/pic.gif Xwww/nfsen/pic.php Xwww/nfsen/process.php Xwww/nfsen/profileadmin.php Xwww/nfsen/rrdgraph.php Xwww/nfsen/trash.png X@dirrm www/nfsen X@dirrm nfsen/var/run X@dirrm nfsen/var/filters X@dirrm nfsen/var X@dirrm nfsen/profiles/live X@dirrm nfsen/profiles X@dirrm nfsen/libexec X@dirrm nfsen/etc X@dirrm nfsen/bin X@dirrm nfsen END-of-nfsen/pkg-plist exit --- nfsen-1.1rc3.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504150944.j3F9iNZD058655>