aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/flowviewer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/flowviewer/Makefile')
-rw-r--r--net-mgmt/flowviewer/Makefile72
1 files changed, 72 insertions, 0 deletions
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>