ports/187029: update net-mgmt/flowviewer to 4.3

Pavel Timofeev timp87 at gmail.com
Tue Feb 25 10:50:00 UTC 2014


>Number:         187029
>Category:       ports
>Synopsis:       update net-mgmt/flowviewer to 4.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 25 10:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Pavel Timofeev
>Release:        10.0-RELEASE amd64
>Organization:
OCS
>Environment:
>Description:
Here is update of our port's FlowViewer version to latest 4.3 (with some corrections in paths).
Hope it will be in port ASAP!
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile.orig	2014-02-25 14:34:25.000000000 +0400
+++ Makefile	2014-02-25 14:35:45.000000000 +0400
@@ -2,7 +2,7 @@
 # $FreeBSD: head/net-mgmt/flowviewer/Makefile 342572 2014-02-04 16:31:28Z sunpoet $
 
 PORTNAME=	flowviewer
-PORTVERSION=	4.2.2
+PORTVERSION=	4.3
 CATEGORIES=	net-mgmt
 MASTER_SITES=	SF/${PORTNAME}
 DISTNAME=	FlowViewer_${DISTVERSION}
@@ -26,12 +26,12 @@
 FLOWVIEWERDIR?=	${STAGEDIR}${PREFIX}/www/flowviewer
 
 PLIST_SCRIPT=	FV.cgi FV_Relay.cgi FlowGrapher.cgi FlowGrapher_Main.cgi \
-		FlowGrapher_Relay.cgi FlowGrapher_Replay.cgi FlowGrapher_Sort.cgi \
+		FlowGrapher_Replay.cgi FlowGrapher_Sort.cgi \
 		FlowTracker.cgi FlowTracker_Dashboard.cgi FlowTracker_Display.cgi \
 		FlowTracker_DisplayPublic.cgi FlowTracker_Dumper.cgi \
 		FlowTracker_Group.cgi FlowTracker_Main.cgi FlowTracker_Management.cgi \
-		FlowTracker_Relay.cgi FlowTracker_Replay.cgi FlowViewer.cgi \
-		FlowViewer_Main.cgi FlowViewer_Relay.cgi FlowViewer_Replay.cgi \
+		FlowTracker_Replay.cgi FlowViewer.cgi dscan.suppress.dst dscan.suppress.src \
+		FlowViewer_Main.cgi FlowViewer_Replay.cgi \
 		FlowViewer_Save.cgi FlowViewer_SaveManage.cgi FlowViewer_Sort.cgi \
 		FlowViewer_UI.pm FlowViewer_Utilities.pm FlowGrapher_Colors \
 		FlowTracker_AltDashboard FlowTracker_Collector FlowTracker_Grapher \
@@ -40,11 +40,11 @@
 		NamedInterfaces_Devices NamedInterfaces_Exporters
 PLIST_DATA=	FG_button.png FT_button.png FV_button.png FlowViewer.css
 PLIST_TOOLS=	flowcapture_restart resize_rrdtools flowtracker_grapher_nonlazy \
-		date_to_epoch_gm performance_check edc_rwflowappend flowtracker_restart \
+		date_to_epoch_gm performance_check flowtracker_restart \
 		convert_pre40_filters analyze_flowtracker_debug flowtracker_grapher_recent \
 		flow-capture-table.conf rsync_trackings epoch_to_date_local rwflowpack_start \
-		edc_rwreceiver epoch_to_date_gm rsync_htmls flowtracker_archive_restore \
-		date_to_epoch_local analyze_netflow_packets rsync_flows copy_netflow_jpl
+		epoch_to_date_gm rsync_htmls flowtracker_archive_restore \
+		date_to_epoch_local analyze_netflow_packets rsync_flows
 
 PLIST_SUB+=	FLOWVIEWERDIR="${FLOWVIEWERDIR:S,^${STAGEDIR}${PREFIX}/,,}"
 SUB_LIST+=	"FLOWVIEWERDIR=${FLOWVIEWERDIR}" \
@@ -86,7 +86,7 @@
 	@${INSTALL_SCRIPT} ${WRKSRC}/tools/${i} ${FLOWVIEWERDIR}/tools
 .endfor
 .for i in ${PLIST_DATA}
-	@${INSTALL_DATA} ${WRKSRC}/${i} ${FLOWVIEWERDIR}
+	@${INSTALL_DATA} ${WRKSRC}/${i} ${FLOWVIEWERDIR}/reports
 .endfor
 
 .if ${PORT_OPTIONS:MDOCS}
--- distinfo.orig	2014-02-25 14:34:25.000000000 +0400
+++ distinfo	2014-02-25 14:35:45.000000000 +0400
@@ -1,2 +1,2 @@
-SHA256 (FlowViewer_4.2.2.tar) = b39f01e199c0b57f928576ae487afcf14d1899c9f7dc47e2af30303e9d1c1b9c
-SIZE (FlowViewer_4.2.2.tar) = 1013760
+SHA256 (FlowViewer_4.3.tar) = 740086dbf4b70aed625c650caddd4c010ea49d035253165b6087f2c12dc9188a
+SIZE (FlowViewer_4.3.tar) = 1024000
--- pkg-plist.orig	2014-02-25 14:34:25.000000000 +0400
+++ pkg-plist	2014-02-25 14:35:45.000000000 +0400
@@ -1,12 +1,8 @@
-%%FLOWVIEWERDIR%%/FG_button.png
-%%FLOWVIEWERDIR%%/FT_button.png
 %%FLOWVIEWERDIR%%/FV.cgi
 %%FLOWVIEWERDIR%%/FV_Relay.cgi
-%%FLOWVIEWERDIR%%/FV_button.png
 %%FLOWVIEWERDIR%%/FlowGrapher.cgi
 %%FLOWVIEWERDIR%%/FlowGrapher_Colors
 %%FLOWVIEWERDIR%%/FlowGrapher_Main.cgi
-%%FLOWVIEWERDIR%%/FlowGrapher_Relay.cgi
 %%FLOWVIEWERDIR%%/FlowGrapher_Replay.cgi
 %%FLOWVIEWERDIR%%/FlowGrapher_Sort.cgi
 %%FLOWVIEWERDIR%%/FlowTracker.cgi
@@ -21,18 +17,15 @@
 %%FLOWVIEWERDIR%%/FlowTracker_Main.cgi
 %%FLOWVIEWERDIR%%/FlowTracker_Management.cgi
 %%FLOWVIEWERDIR%%/FlowTracker_Recreate
-%%FLOWVIEWERDIR%%/FlowTracker_Relay.cgi
 %%FLOWVIEWERDIR%%/FlowTracker_Replay.cgi
 %%FLOWVIEWERDIR%%/FlowTracker_Thumbnail
 %%FLOWVIEWERDIR%%/FlowViewer.cgi
-%%FLOWVIEWERDIR%%/FlowViewer.css
 %%FLOWVIEWERDIR%%/FlowViewer_CleanASCache
 %%FLOWVIEWERDIR%%/FlowViewer_CleanFiles
 %%FLOWVIEWERDIR%%/FlowViewer_CleanHostCache
 %%FLOWVIEWERDIR%%/FlowViewer_CleanSiLK
 %%FLOWVIEWERDIR%%/FlowViewer_Configuration.pm.dist
 %%FLOWVIEWERDIR%%/FlowViewer_Main.cgi
-%%FLOWVIEWERDIR%%/FlowViewer_Relay.cgi
 %%FLOWVIEWERDIR%%/FlowViewer_Replay.cgi
 %%FLOWVIEWERDIR%%/FlowViewer_Save.cgi
 %%FLOWVIEWERDIR%%/FlowViewer_SaveManage.cgi
@@ -41,14 +34,13 @@
 %%FLOWVIEWERDIR%%/FlowViewer_Utilities.pm
 %%FLOWVIEWERDIR%%/NamedInterfaces_Devices
 %%FLOWVIEWERDIR%%/NamedInterfaces_Exporters
+%%FLOWVIEWERDIR%%/dscan.suppress.dst
+%%FLOWVIEWERDIR%%/dscan.suppress.src
 %%FLOWVIEWERDIR%%/tools/analyze_flowtracker_debug
 %%FLOWVIEWERDIR%%/tools/analyze_netflow_packets
 %%FLOWVIEWERDIR%%/tools/convert_pre40_filters
-%%FLOWVIEWERDIR%%/tools/copy_netflow_jpl
 %%FLOWVIEWERDIR%%/tools/date_to_epoch_gm
 %%FLOWVIEWERDIR%%/tools/date_to_epoch_local
-%%FLOWVIEWERDIR%%/tools/edc_rwflowappend
-%%FLOWVIEWERDIR%%/tools/edc_rwreceiver
 %%FLOWVIEWERDIR%%/tools/epoch_to_date_gm
 %%FLOWVIEWERDIR%%/tools/epoch_to_date_local
 %%FLOWVIEWERDIR%%/tools/flow-capture-table.conf
@@ -63,6 +55,10 @@
 %%FLOWVIEWERDIR%%/tools/rsync_htmls
 %%FLOWVIEWERDIR%%/tools/rsync_trackings
 %%FLOWVIEWERDIR%%/tools/rwflowpack_start
+%%FLOWVIEWERDIR%%/reports/FG_button.png
+%%FLOWVIEWERDIR%%/reports/FT_button.png
+%%FLOWVIEWERDIR%%/reports/FV_button.png
+%%FLOWVIEWERDIR%%/reports/FlowViewer.css
 @dirrmtry %%FLOWVIEWERDIR%%/working
 @dirrmtry %%FLOWVIEWERDIR%%/tracker
 @dirrm %%FLOWVIEWERDIR%%/tools
--- files/patch-FlowViewer__Configuration.pm.orig	2014-02-25 14:34:25.000000000 +0400
+++ files/patch-FlowViewer__Configuration.pm	2014-02-25 14:35:36.000000000 +0400
@@ -1,6 +1,11 @@
---- FlowViewer_Configuration.pm.orig	2013-11-20 17:01:30.000000000 +0600
-+++ FlowViewer_Configuration.pm	2013-11-20 17:14:57.000000000 +0600
-@@ -59,28 +59,28 @@
+--- FlowViewer_Configuration.pm.orig	2014-02-24 17:44:27.000000000 +0400
++++ FlowViewer_Configuration.pm	2014-02-24 17:54:45.000000000 +0400
+@@ -56,31 +56,31 @@
+ 
+ # Service
+ 
+-$FlowViewer_service      = "https";           # (http, or https)
++$FlowViewer_service      = "http";           # (http, or https)
  
  # Directories and Files:
  
@@ -10,29 +15,28 @@
 -$graphs_short            = "/FlowGrapher";
 -$tracker_directory       = "/var/www/html/FlowTracker";
 -$tracker_short           = "/FlowTracker";
+-$cgi_bin_directory       = "/var/www/cgi-bin/FlowViewer_4.3";
+-$cgi_bin_short           = "/cgi-bin/FlowViewer_4.3";
+-$work_directory          = "/var/www/cgi-bin/FlowViewer_4.3/Flow_Working";
+-$save_directory          = "/var/www/html/FlowViewer_Saves";
+-$save_short              = "/FlowViewer_Saves";
+-$names_directory         = "/var/www/cgi-bin/FlowViewer_4.3";
+-$filter_directory        = "/var/www/cgi-bin/FlowTracker_Files/FlowTracker_Filters";  
+-$rrdtool_directory       = "/var/www/cgi-bin/FlowTracker_Files/FlowTracker_RRDtool";
+-$dashboard_directory     = "/var/www/html/FlowViewer_Dashboard";
 +$reports_directory       = "%%FLOWVIEWERDIR%%/reports";
 +$reports_short           = "/FlowViewer/reports";
 +$graphs_directory        = "%%FLOWVIEWERDIR%%/graphs";
 +$graphs_short            = "/FlowViewer/graphs";
 +$tracker_directory       = "%%FLOWVIEWERDIR%%/tracker";
 +$tracker_short           = "/FlowViewer/tracker";
- $old_tracker_directory   = "/var/www/html/FlowTracker_4.2";
--$cgi_bin_directory       = "/var/www/cgi-bin/FlowViewer_4.2.1";
--$cgi_bin_short           = "/cgi-bin/FlowViewer_4.2.1";
--$work_directory          = "/var/www/cgi-bin/FlowViewer_4.2.1/Flow_Working";
--$save_directory          = "/var/www/html/FlowViewer_Saves";
--$save_short              = "/FlowViewer_Saves";
--$names_directory         = "/var/www/cgi-bin/FlowViewer_4.2.1";
--$filter_directory        = "/var/www/cgi-bin/FlowTracker_Files/FlowTracker_Filters";  
--$rrdtool_directory       = "/var/www/cgi-bin/FlowTracker_Files/FlowTracker_RRDtool";
--$dashboard_directory     = "/var/www/html/FlowViewer_Dashboard";
 +$cgi_bin_directory       = "%%FLOWVIEWERDIR%%";
 +$cgi_bin_short           = "/FlowViewer";
 +$work_directory          = "%%FLOWVIEWERDIR%%/working";
 +$save_directory          = "%%FLOWVIEWERDIR%%/saves";
-+$save_short              = "/FlowViewer/Saves";
++$save_short              = "/FlowViewer/saves";
 +$names_directory         = "%%FLOWVIEWERDIR%%/names";
-+$filter_directory        = "%%FLOWVIEWERDIR%%/filters";
++$filter_directory        = "%%FLOWVIEWERDIR%%/filters";  
 +$rrdtool_directory       = "%%FLOWVIEWERDIR%%/rrdtools";
 +$dashboard_directory     = "%%FLOWVIEWERDIR%%/FlowViewer_Dashboard";
  $dashboard_short         = "/FlowViewer_Dashboard";
@@ -41,8 +45,8 @@
 -$exporter_directory      = "/data/flows/all_routers";
 -$flow_bin_directory      = "/usr/local/flow-tools/bin";
 -$rrdtool_bin_directory   = "/usr/bin";
-+$flow_data_directory     = "%%PREFIX%%/var/netflow/";
-+$exporter_directory      = "%%PREFIX%%/var/netflow/all_routers";
++$flow_data_directory     = "/var/db/flows";
++$exporter_directory      = "/var/db/flows/all_routers";
 +$flow_bin_directory      = "%%PREFIX%%/bin";
 +$rrdtool_bin_directory   = "%%PREFIX%%/bin";
  
@@ -52,7 +56,7 @@
  # Tracking parameters
   
  $actives_webpage    = "index.html";
--$log_directory      = "/var/www/cgi-bin/FlowViewer_4.2.1/logs";
+-$log_directory      = "/var/www/cgi-bin/FlowViewer_4.3/logs";
 +$log_directory      = "%%FLOWVIEWERDIR%%/logs";
  $log_collector_short= "Y";
  $log_collector_med  = "N";
--- files/pkg-message.in.orig	2014-02-25 14:34:25.000000000 +0400
+++ files/pkg-message.in	2014-02-25 14:35:36.000000000 +0400
@@ -19,4 +19,6 @@
 	Deny from all
     </Directory>
 
+Then point your browser to 'http://myserver.domain.org/FlowViewer/FV.cgi'
+
 You can find additional information in the %%DOCSDIR%%/README file


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


More information about the freebsd-ports-bugs mailing list