aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/Makefile1
-rw-r--r--net-mgmt/flowviewer/Makefile72
-rw-r--r--net-mgmt/flowviewer/distinfo3
-rw-r--r--net-mgmt/flowviewer/files/patch-config42
-rw-r--r--net-mgmt/flowviewer/files/pkg-message.in22
-rw-r--r--net-mgmt/flowviewer/pkg-descr11
-rw-r--r--net-mgmt/flowviewer/pkg-plist19
7 files changed, 170 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index 2a651e870160..5e2db0a58bc5 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -56,6 +56,7 @@
SUBDIR += flow-tools
SUBDIR += flowd
SUBDIR += flowscan
+ SUBDIR += flowviewer
SUBDIR += fprobe
SUBDIR += gps
SUBDIR += grepcidr
diff --git a/net-mgmt/flowviewer/Makefile b/net-mgmt/flowviewer/Makefile
new file mode 100644
index 000000000000..574917aa42ee
--- /dev/null
+++ b/net-mgmt/flowviewer/Makefile
@@ -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>
diff --git a/net-mgmt/flowviewer/distinfo b/net-mgmt/flowviewer/distinfo
new file mode 100644
index 000000000000..83377cfa33dc
--- /dev/null
+++ b/net-mgmt/flowviewer/distinfo
@@ -0,0 +1,3 @@
+MD5 (FlowViewer_3.0.tar) = 4b6ae0a9a85feeab827a99c1b0dc478b
+SHA256 (FlowViewer_3.0.tar) = f5af17819e9be4689a641766cbc409c466cb84876b13f9dd7a205fcc9634a657
+SIZE (FlowViewer_3.0.tar) = 225280
diff --git a/net-mgmt/flowviewer/files/patch-config b/net-mgmt/flowviewer/files/patch-config
new file mode 100644
index 000000000000..1ce3cfa2be57
--- /dev/null
+++ b/net-mgmt/flowviewer/files/patch-config
@@ -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";
diff --git a/net-mgmt/flowviewer/files/pkg-message.in b/net-mgmt/flowviewer/files/pkg-message.in
new file mode 100644
index 000000000000..5b7ea9dc55db
--- /dev/null
+++ b/net-mgmt/flowviewer/files/pkg-message.in
@@ -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
diff --git a/net-mgmt/flowviewer/pkg-descr b/net-mgmt/flowviewer/pkg-descr
new file mode 100644
index 000000000000..9e50c5cc6918
--- /dev/null
+++ b/net-mgmt/flowviewer/pkg-descr
@@ -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/
diff --git a/net-mgmt/flowviewer/pkg-plist b/net-mgmt/flowviewer/pkg-plist
new file mode 100644
index 000000000000..a498c3a15345
--- /dev/null
+++ b/net-mgmt/flowviewer/pkg-plist
@@ -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%%