summaryrefslogtreecommitdiff
path: root/net/flowscan/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/flowscan/Makefile')
-rw-r--r--net/flowscan/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/net/flowscan/Makefile b/net/flowscan/Makefile
index ed3c83927f37..31af328cd2a8 100644
--- a/net/flowscan/Makefile
+++ b/net/flowscan/Makefile
@@ -7,7 +7,7 @@
PORTNAME= flowscan
PORTVERSION= 1.006
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= http://net.doit.wisc.edu/~plonka/FlowScan/
DISTFILES= FlowScan-${PORTVERSION}.tar.gz
@@ -30,16 +30,25 @@ WRKSRC= ${WRKDIR}/FlowScan-${PORTVERSION}
pre-install:
@ ${MKDIR} -p ${PREFIX}/var/db/flows/bin
@ ${MKDIR} -p ${PREFIX}/var/db/flows/graphs
- @ ${TOUCH} ${PREFIX}/var/db/flows/graphs/.keep_me
post-install:
+ # install sample startup script
@ ${INSTALL_SCRIPT} ${FILESDIR}/flowscan.sh \
- /usr/local/etc/rc.d/cflowd-flowscan.sh.sample
+ ${PREFIX}/etc/rc.d/cflowd-flowscan.sh.sample
+ # overwrite cflowd startup script, since we need some additional
+ # parameters !
+ @ ${INSTALL_SCRIPT} ${FILESDIR}/cflowd.sh \
+ ${PREFIX}/etc/rc.d/cflowd-base.sh.sample
+ # install sample Makefile to generate graphs
+ @ ${INSTALL_DATA} ${WRKSRC}/graphs.mf \
+ ${PREFIX}/var/db/flows/graphs/Makefile.sample
+ # install sample config files
.for i in CampusIO.cf Napster_subnets.boulder SubNetIO.cf flowscan.cf \
local_nets.boulder our_subnets.boulder
@ ${INSTALL_DATA} ${WRKSRC}/cf/${i} \
${PREFIX}/var/db/flows/bin/${i}.sample
.endfor
+ # install important docu files
@ ${MKDIR} -p ${PREFIX}/share/doc/flowscan
@ ${INSTALL_DATA} ${WRKSRC}/example/crontab \
${PREFIX}/share/doc/flowscan/crontab.sample
@@ -48,12 +57,14 @@ post-install:
@ ${INSTALL_DATA} ${WRKSRC}/rc/linux/flowscan \
${PREFIX}/share/doc/flowscan/flowscan.sample
@ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/flowscan
+ # install less important docu files
.if !defined(NOPORTDOCS)
@ ${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
.for i in README README.html INSTALL.html TODO
@ ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/flowscan
.endfor
.endif
+ # installation info
@ cat ${.CURDIR}/pkg-message
.include <bsd.port.mk>