aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/flowviewer/Makefile51
-rw-r--r--net-mgmt/flowviewer/files/pkg-message.in5
-rw-r--r--net-mgmt/flowviewer/pkg-plist15
3 files changed, 39 insertions, 32 deletions
diff --git a/net-mgmt/flowviewer/Makefile b/net-mgmt/flowviewer/Makefile
index f6ce81f1ba86..357ad516601e 100644
--- a/net-mgmt/flowviewer/Makefile
+++ b/net-mgmt/flowviewer/Makefile
@@ -3,7 +3,7 @@
PORTNAME= flowviewer
PORTVERSION= 4.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= SF/${PORTNAME}
DISTNAME= FlowViewer_${DISTVERSION}
@@ -26,25 +26,31 @@ NETFLOWv9_RUN_DEPENDS= rwptoflow:${PORTSDIR}/security/silktools
FLOWVIEWERDIR?= ${PREFIX}/www/flowviewer
-PLIST_SCRIPT= FV.cgi FV_Relay.cgi FlowGrapher.cgi FlowGrapher_Main.cgi \
- FlowGrapher_Replay.cgi FlowGrapher_Sort.cgi \
+FLOWVIEWERSCRIPTS= FV.cgi FV_Relay.cgi FlowGrapher.cgi FlowGrapher_Analyze.cgi \
+ FlowGrapher_Main.cgi FlowGrapher_Replay.cgi FlowGrapher_Sort.cgi \
FlowMonitor.cgi FlowMonitor_Dashboard.cgi FlowMonitor_Display.cgi \
FlowMonitor_DisplayPublic.cgi FlowMonitor_Dumper.cgi \
FlowMonitor_Group.cgi FlowMonitor_Main.cgi FlowMonitor_Management.cgi \
- FlowMonitor_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 \
+ FlowMonitor_Replay.cgi FlowViewer.cgi FlowViewer_Main.cgi \
+ FlowViewer_Replay.cgi FlowViewer_Save.cgi FlowViewer_SaveManage.cgi \
+ FlowViewer_Sort.cgi FlowViewer_UI.pm FlowViewer_Utilities.pm \
FlowMonitor_Collector FlowMonitor_Grapher \
FlowMonitor_Recreate FlowMonitor_Thumbnail FlowViewer_CleanASCache \
FlowViewer_CleanFiles FlowViewer_CleanHostCache FlowViewer_CleanSiLK
-PLIST_DATA= FG_button.png FM_button.png FV_button.png FlowViewer.css
-PLIST_TOOLS= flowcapture_restart resize_rrdtools flowmonitor_grapher_nonlazy \
- date_to_epoch_gm performance_check flowmonitor_restart \
- convert_pre40_filters analyze_flowmonitor_debug flowmonitor_grapher_recent \
- flow-capture-table.conf rsync_monitors epoch_to_date_local rwflowpack_start \
- epoch_to_date_gm rsync_htmls flowmonitor_archive_restore \
- date_to_epoch_local analyze_netflow_packets rsync_flows
+FLOWVIEWERDATA= FG_button.png FM_button.png FV_button.png FlowViewer.css
+SHEBANG_TOOLS= tools/analyze_flowmonitor_debug tools/analyze_netflow_packets \
+ tools/convert_pre40_filters tools/create_ports_file tools/date_to_epoch_gm \
+ tools/date_to_epoch_local tools/epoch_to_date_gm tools/epoch_to_date_local \
+ tools/flowmonitor_archive_restore tools/flowmonitor_grapher_nonlazy \
+ tools/flowmonitor_grapher_recent tools/performance_check tools/resize_rrdtools
+FLOWVIEWERTOOLS= ${SHEBANG_TOOLS} \
+ tools/flowcapture_restart tools/flowmonitor_restart \
+ tools/flow-capture-table.conf tools/rsync_monitors tools/rwflowpack_start \
+ tools/rsync_htmls tools/rsync_flows
+FLOWVIEWERCONFIGS= FlowViewer_Configuration.pm \
+ FlowGrapher_Colors FlowGrapher_Ports \
+ NamedInterfaces_Devices NamedInterfaces_Exporters \
+ dscan.suppress.dst dscan.suppress.src
PLIST_SUB+= FLOWVIEWERDIR="${FLOWVIEWERDIR}" \
WWWOWN=${WWWOWN} \
@@ -53,7 +59,8 @@ SUB_LIST+= "FLOWVIEWERDIR=${FLOWVIEWERDIR}" \
"PKGNAME=${PKGNAME}"
SUB_FILES= pkg-message
-USES= perl5
+USES= perl5 shebangfix
+SHEBANG_FILES= ${FLOWVIEWERSCRIPTS} ${SHEBANG_TOOLS} FlowViewer_Configuration.pm
NO_BUILD= yes
PORTDOCS= README
@@ -69,20 +76,20 @@ post-patch:
do-install:
${MKDIR} ${STAGEDIR}${FLOWVIEWERDIR}
${MKDIR} ${STAGEDIR}${FLOWVIEWERDIR}/tools
- ${INSTALL_DATA} ${WRKSRC}/FlowViewer_Configuration.pm ${STAGEDIR}${FLOWVIEWERDIR}/FlowViewer_Configuration.pm.sample
- ${INSTALL_DATA} ${WRKSRC}/NamedInterfaces_Devices ${STAGEDIR}${FLOWVIEWERDIR}/NamedInterfaces_Devices.sample
- ${INSTALL_DATA} ${WRKSRC}/NamedInterfaces_Exporters ${STAGEDIR}${FLOWVIEWERDIR}/NamedInterfaces_Exporters.sample
${MKDIR} ${STAGEDIR}${FLOWVIEWERDIR}/tmp ${STAGEDIR}${FLOWVIEWERDIR}/reports ${STAGEDIR}${FLOWVIEWERDIR}/graphs \
${STAGEDIR}${FLOWVIEWERDIR}/monitor ${STAGEDIR}${FLOWVIEWERDIR}/working ${STAGEDIR}${FLOWVIEWERDIR}/saves \
${STAGEDIR}${FLOWVIEWERDIR}/names ${STAGEDIR}${FLOWVIEWERDIR}/ipsets ${STAGEDIR}${FLOWVIEWERDIR}/filters \
${STAGEDIR}${FLOWVIEWERDIR}/rrdtools ${STAGEDIR}${FLOWVIEWERDIR}/FlowViewer_Dashboard
-.for i in ${PLIST_SCRIPT}
+.for i in ${FLOWVIEWERCONFIGS}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${FLOWVIEWERDIR}/${i}.sample
+.endfor
+.for i in ${FLOWVIEWERSCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${STAGEDIR}${FLOWVIEWERDIR}
.endfor
-.for i in ${PLIST_TOOLS}
- ${INSTALL_SCRIPT} ${WRKSRC}/tools/${i} ${STAGEDIR}${FLOWVIEWERDIR}/tools
+.for i in ${FLOWVIEWERTOOLS}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${STAGEDIR}${FLOWVIEWERDIR}/tools
.endfor
-.for i in ${PLIST_DATA}
+.for i in ${FLOWVIEWERDATA}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${FLOWVIEWERDIR}/reports
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/net-mgmt/flowviewer/files/pkg-message.in b/net-mgmt/flowviewer/files/pkg-message.in
index 714880457631..30c9e92386b5 100644
--- a/net-mgmt/flowviewer/files/pkg-message.in
+++ b/net-mgmt/flowviewer/files/pkg-message.in
@@ -2,10 +2,7 @@
%%FLOWVIEWERDIR%%
-Please copy FlowViewer_Configuration.pm.sample to FlowViewer_Configuration.pm,
-NamedInterfaces_Devices.sample to NamedInterfaces_Devices,
-NamedInterfaces_Exporters.sample to NamedInterfaces_Exporters
-and edit them to suit your needs.
+Please edit at least FlowViewer_Configuration.pm to suit your needs.
To make FlowViewer available through your web site, I suggest
that you add something like the following to httpd.conf:
diff --git a/net-mgmt/flowviewer/pkg-plist b/net-mgmt/flowviewer/pkg-plist
index f518e6e1498d..7ff00661fc4b 100644
--- a/net-mgmt/flowviewer/pkg-plist
+++ b/net-mgmt/flowviewer/pkg-plist
@@ -1,8 +1,10 @@
%%FLOWVIEWERDIR%%/FV.cgi
%%FLOWVIEWERDIR%%/FV_Relay.cgi
%%FLOWVIEWERDIR%%/FlowGrapher.cgi
-%%FLOWVIEWERDIR%%/FlowGrapher_Colors
+%%FLOWVIEWERDIR%%/FlowGrapher_Analyze.cgi
+@sample %%FLOWVIEWERDIR%%/FlowGrapher_Colors.sample
%%FLOWVIEWERDIR%%/FlowGrapher_Main.cgi
+@sample %%FLOWVIEWERDIR%%/FlowGrapher_Ports.sample
%%FLOWVIEWERDIR%%/FlowGrapher_Replay.cgi
%%FLOWVIEWERDIR%%/FlowGrapher_Sort.cgi
%%FLOWVIEWERDIR%%/FlowMonitor.cgi
@@ -23,7 +25,7 @@
%%FLOWVIEWERDIR%%/FlowViewer_CleanFiles
%%FLOWVIEWERDIR%%/FlowViewer_CleanHostCache
%%FLOWVIEWERDIR%%/FlowViewer_CleanSiLK
-%%FLOWVIEWERDIR%%/FlowViewer_Configuration.pm.sample
+@sample %%FLOWVIEWERDIR%%/FlowViewer_Configuration.pm.sample
%%FLOWVIEWERDIR%%/FlowViewer_Main.cgi
%%FLOWVIEWERDIR%%/FlowViewer_Replay.cgi
%%FLOWVIEWERDIR%%/FlowViewer_Save.cgi
@@ -31,13 +33,14 @@
%%FLOWVIEWERDIR%%/FlowViewer_Sort.cgi
%%FLOWVIEWERDIR%%/FlowViewer_UI.pm
%%FLOWVIEWERDIR%%/FlowViewer_Utilities.pm
-%%FLOWVIEWERDIR%%/NamedInterfaces_Devices.sample
-%%FLOWVIEWERDIR%%/NamedInterfaces_Exporters.sample
-%%FLOWVIEWERDIR%%/dscan.suppress.dst
-%%FLOWVIEWERDIR%%/dscan.suppress.src
+@sample %%FLOWVIEWERDIR%%/NamedInterfaces_Devices.sample
+@sample %%FLOWVIEWERDIR%%/NamedInterfaces_Exporters.sample
+@sample %%FLOWVIEWERDIR%%/dscan.suppress.dst.sample
+@sample %%FLOWVIEWERDIR%%/dscan.suppress.src.sample
%%FLOWVIEWERDIR%%/tools/analyze_flowmonitor_debug
%%FLOWVIEWERDIR%%/tools/analyze_netflow_packets
%%FLOWVIEWERDIR%%/tools/convert_pre40_filters
+%%FLOWVIEWERDIR%%/tools/create_ports_file
%%FLOWVIEWERDIR%%/tools/date_to_epoch_gm
%%FLOWVIEWERDIR%%/tools/date_to_epoch_local
%%FLOWVIEWERDIR%%/tools/epoch_to_date_gm