1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

FlowViewer, FlowGrapher, and now FlowTracker are tools that provide an easy

web-based user interface for selecting, viewing, graphing, and now tracking
NetFlow data stored using Mark Fullmer's flow-tools software.

The user is able to filter data (inclusion or exclusion) by device, IP address
range, port, router interface, autonomous system (AS), specified time interval,
and now by protocols, TOS field, and TCP flags. Many of the flow-tools reports
are configured as drop-down selections. Users are also able to save reports and
graphs for later viewing.

WWW: http://ensight.eos.nasa.gov/FlowViewer/

PR:		ports/104554
Submitted by:	Alex Samorukov, samm at os2.kiev.ua
This commit is contained in:
Alejandro Pulver 2006-10-31 22:20:49 +00:00
parent 343344257f
commit 80e3bd12bf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=175955
7 changed files with 170 additions and 0 deletions

View File

@ -56,6 +56,7 @@
SUBDIR += flow-tools
SUBDIR += flowd
SUBDIR += flowscan
SUBDIR += flowviewer
SUBDIR += fprobe
SUBDIR += gps
SUBDIR += grepcidr

View File

@ -0,0 +1,72 @@
# New ports collection makefile for: flowviewer
# Date created: Oct 15, 2006
# Whom: Alex Samorukov, samm@os2.kiev.ua
#
# $FreeBSD$
PORTNAME= flowviewer
PORTVERSION= 3.0
CATEGORIES= net-mgmt
MASTER_SITES= http://ensight.eos.nasa.gov/FlowViewer/
DISTNAME= FlowViewer_${DISTVERSION}
EXTRACT_SUFX= .tar
MAINTAINER= samm@os2.kiev.ua
COMMENT= Web-based user interface for the flow-tools NetFlow data
RUN_DEPENDS= ${SITE_PERL}/GD/Graph/linespoints.pm:${PORTSDIR}/graphics/p5-GD-Graph \
flow-cat:${PORTSDIR}/net-mgmt/flow-tools
.ifndef WITHOUT_WWWDIR
FLOWVIEWERDIR?= ${PREFIX}/www/flowviewer
.else
FLOWVIEWERDIR?= ${PREFIX}/flowviewer
.endif
PLIST_SUB+= FLOWVIEWERDIR="${FLOWVIEWERDIR:S,^${PREFIX}/,,}"
SUB_LIST+= "FLOWVIEWERDIR=${FLOWVIEWERDIR}" \
"PKGNAME=${PKGNAME}"
SUB_FILES= pkg-message
USE_PERL5= yes
NO_BUILD= yes
.if !defined(NOPORTDOCS)
PORTDOC_FILES= README
.endif
post-patch:
@${REINPLACE_CMD} -E \
-e "s|%%PREFIX%%|${PREFIX}|" \
${WRKSRC}/FlowViewer_Configuration.pm
@${REINPLACE_CMD} -E \
-e "s|%%FLOWVIEWERDIR%%|${FLOWVIEWERDIR}|" \
${WRKSRC}/FlowViewer_Configuration.pm
do-install:
@${MKDIR} ${FLOWVIEWERDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/FlowGrapher.cgi ${FLOWVIEWERDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/FlowGrapher_Main.cgi ${FLOWVIEWERDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/FlowTracker.cgi ${FLOWVIEWERDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/FlowTracker_Main.cgi ${FLOWVIEWERDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/FlowViewer.cgi ${FLOWVIEWERDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/FlowViewer_Main.cgi ${FLOWVIEWERDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/FlowViewer_Save.cgi ${FLOWVIEWERDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/FlowViewer_Utilities.pm ${FLOWVIEWERDIR}
@${INSTALL_DATA} ${WRKSRC}/FlowViewer_Configuration.pm ${FLOWVIEWERDIR}/FlowViewer_Configuration.pm.dist
@${INSTALL_SCRIPT} ${WRKSRC}/FlowTracker_Collector ${FLOWVIEWERDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/FlowTracker_Grapher ${FLOWVIEWERDIR}
@${INSTALL_DATA} ${WRKSRC}/FlowGrapher_Colors ${FLOWVIEWERDIR}
@${INSTALL_DATA} ${WRKSRC}/FlowGrapher.png ${FLOWVIEWERDIR}
@${INSTALL_DATA} ${WRKSRC}/FlowTracker.png ${FLOWVIEWERDIR}
@${INSTALL_DATA} ${WRKSRC}/FlowTracker_Links.png ${FLOWVIEWERDIR}
@${INSTALL_DATA} ${WRKSRC}/FlowViewer.png ${FLOWVIEWERDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (FlowViewer_3.0.tar) = 4b6ae0a9a85feeab827a99c1b0dc478b
SHA256 (FlowViewer_3.0.tar) = f5af17819e9be4689a641766cbc409c466cb84876b13f9dd7a205fcc9634a657
SIZE (FlowViewer_3.0.tar) = 225280

View File

@ -0,0 +1,42 @@
--- FlowViewer_Configuration.pm.dist Tue Oct 17 23:39:53 2006
+++ FlowViewer_Configuration.pm Wed Oct 18 00:19:10 2006
@@ -43,22 +43,25 @@
# Directories and Files:
-$reports_directory = "/htp/htdocs/FlowViewer";
-$reports_short = "/FlowViewer";
-$graphs_directory = "/htp/htdocs/FlowGrapher";
-$graphs_short = "/FlowGrapher";
-$tracker_directory = "/htp/htdocs/FlowTracker";
-$tracker_short = "/FlowTracker";
-$cgi_bin_directory = "/htp/cgi-bin/FlowViewer_3.0";
-$cgi_bin_short = "/cgi-bin/FlowViewer_3.0";
-$work_directory = "/tmp";
+$reports_directory = "%%FLOWVIEWERDIR%%/reports";
+$reports_short = "/FlowViewer/reports";
+$graphs_directory = "%%FLOWVIEWERDIR%%/graphs";
+$graphs_short = "/FlowViewer/graphs";
+$tracker_directory = "%%FLOWVIEWERDIR%%/tracker";
+$tracker_short = "/FlowViewer/tracker";
+$cgi_bin_directory = "%%FLOWVIEWERDIR%%";
+$cgi_bin_short = "/FlowViewer";
+$reports_directory = "%%FLOWVIEWERDIR%%/reports";
+$reports_short = "/FlowViewer/reports";
+$graphs_directory = "%%FLOWVIEWERDIR%%/graphs";
+$graphs_short = "/FlowViewer/graphs";
$names_directory = "/tmp";
-$filter_directory = "/htp/cgi-bin/Flow_Temp/FlowTracker_Filters";
-$rrdtool_directory = "/htp/cgi-bin/Flow_Temp/FlowTracker_RRDtool";
+$filter_directory = "%%FLOWVIEWERDIR%%/tracker_filters";
+$rrdtool_directory = "%%FLOWVIEWERDIR%%/tracket_rrdtools";
-$flow_data_directory = "/htp/flows";
-$flow_bin_directory = "/usr/bin";
-$rrdtool_bin_directory = "/usr/local/rrdtool-1.2.12/bin";
+$flow_data_directory = "%%PREFIX%%/var/netflow/";
+$flow_bin_directory = "%%PREFIX%%/bin";
+$rrdtool_bin_directory = "%%PREFIX%%/bin";
$tracker_webpage = "index.html";
$trackings_title = "Your System Here";

View File

@ -0,0 +1,22 @@
%%PKGNAME%% has been installed into:
%%FLOWVIEWERDIR%%
Please copy FlowViewer_Configuration.pm.dist to FlowViewer_Configuration.pm
and edit it to suit your needs.
To make FlowViewer available through your web site, I suggest
that you add something like the following to httpd.conf:
Alias /FlowViewer/ "%%FLOWVIEWERDIR%%"
<Directory "%%FLOWVIEWERDIR%%">
Options +ExecCGI
AddHandler cgi-script .cgi
Order allow,deny
Allow from 127.0.0.1 .example.com
Deny from all
</Directory>
You can find additional information in the %%DOCSDIR%%/README file

View File

@ -0,0 +1,11 @@
FlowViewer, FlowGrapher, and now FlowTracker are tools that provide an easy
web-based user interface for selecting, viewing, graphing, and now tracking
NetFlow data stored using Mark Fullmer's flow-tools software.
The user is able to filter data (inclusion or exclusion) by device, IP address
range, port, router interface, autonomous system (AS), specified time interval,
and now by protocols, TOS field, and TCP flags. Many of the flow-tools reports
are configured as drop-down selections. Users are also able to save reports and
graphs for later viewing.
WWW: http://ensight.eos.nasa.gov/FlowViewer/

View File

@ -0,0 +1,19 @@
%%FLOWVIEWERDIR%%/FlowGrapher.cgi
%%FLOWVIEWERDIR%%/FlowGrapher_Main.cgi
%%FLOWVIEWERDIR%%/FlowTracker.cgi
%%FLOWVIEWERDIR%%/FlowTracker_Main.cgi
%%FLOWVIEWERDIR%%/FlowViewer.cgi
%%FLOWVIEWERDIR%%/FlowViewer_Main.cgi
%%FLOWVIEWERDIR%%/FlowViewer_Save.cgi
%%FLOWVIEWERDIR%%/FlowViewer_Utilities.pm
%%FLOWVIEWERDIR%%/FlowViewer_Configuration.pm.dist
%%FLOWVIEWERDIR%%/FlowTracker_Collector
%%FLOWVIEWERDIR%%/FlowTracker_Grapher
%%FLOWVIEWERDIR%%/FlowGrapher_Colors
%%FLOWVIEWERDIR%%/FlowGrapher.png
%%FLOWVIEWERDIR%%/FlowTracker.png
%%FLOWVIEWERDIR%%/FlowTracker_Links.png
%%FLOWVIEWERDIR%%/FlowViewer.png
%%PORTDOCS%%%%DOCSDIR%%/README
@dirrm %%FLOWVIEWERDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%