freebsd-ports/net-mgmt/TkTopNetFlows/Makefile
2014-11-24 22:35:08 +00:00

40 lines
1.3 KiB
Makefile

# Created by: vfom@narod.ru
# $FreeBSD$
PORTNAME= TkTopNetFlows
PORTVERSION= 0.4
PORTREVISION= 7
CATEGORIES= net-mgmt
MASTER_SITES= http://vfom.narod.ru/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= GUI tool for NetFlow data visualisation
OPTIONS_DEFINE= DOCS
LIB_DEPENDS+= libBLT25.so:${PORTSDIR}/x11-toolkits/blt \
libTktable2.10.so:${PORTSDIR}/x11-toolkits/tktable
RUN_DEPENDS= flowdumper:${PORTSDIR}/net-mgmt/p5-Cflow
NO_BUILD= yes
USES= perl5 shebangfix tk:85
SHEBANG_FILES= flow_Server.pl view_definitions.pl.example
PORTDOCS= *
PLIST_SUB= PORTVERSION=${PORTVERSION}
post-patch:
${REINPLACE_CMD} -e 's|/usr/local/bin/wish8.4|${WISH}|' \
${WRKSRC}/TkTopNetFlows.tcl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/TkTopNetFlows.tcl ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/TkTopNetFlowsHist.tcl ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/flow_Server.pl ${STAGEDIR}${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/flow_Server.sh ${STAGEDIR}${PREFIX}/etc/rc.d
${INSTALL_SCRIPT} ${WRKSRC}/view_definitions.pl.example ${STAGEDIR}${PREFIX}/etc
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}-${PORTVERSION}
${INSTALL_SCRIPT} ${WRKSRC}/TkTopNetFlows_lib.tcl ${STAGEDIR}${PREFIX}/lib/${PORTNAME}-${PORTVERSION}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>