5586d3519b
- modify sample startup script - run in background properly - use variables for progs (grep, perl, kill, ...) - style (use $var consistently, spaces after io redirection) - install startup script as cflowd-flowscan.sh.sample to get an order, cflowd ports startup script will be named cflowd-base.sh.sample, so that cflowd will be started first.
60 lines
2.1 KiB
Makefile
60 lines
2.1 KiB
Makefile
# New ports collection makefile for: flowscan
|
|
# Date created: Di 13 Mär 2001 08:23:55 CET
|
|
# Whom: andreas@freebsd.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= flowscan
|
|
PORTVERSION= 1.006
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://net.doit.wisc.edu/~plonka/FlowScan/
|
|
DISTFILES= FlowScan-${PORTVERSION}.tar.gz
|
|
|
|
MAINTAINER= andreas@freebsd.org
|
|
|
|
BUILD_DEPENDS= ksh:${PORTSDIR}/shells/pdksh \
|
|
rrdtool:${PORTSDIR}/net/rrdtool \
|
|
${LOCALBASE}/sbin/cflowd:${PORTSDIR}/net/cflowd \
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Boulder/Stream.pm:${PORTSDIR}/converters/p5-Boulder \
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/ConfigReader/DirectiveStyle.pm:${PORTSDIR}/devel/p5-ConfigReader \
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/HTML/Table.pm:${PORTSDIR}/www/p5-HTML-Table \
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Cflow.pm:${PORTSDIR}/net/p5-Cflow
|
|
|
|
CFLOWD_FLOWSCAN_PATCH= yes
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}/var/db/flows
|
|
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_SCRIPT} ${FILESDIR}/flowscan.sh \
|
|
/usr/local/etc/rc.d/cflowd-flowscan.sh.sample
|
|
.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
|
|
@ ${MKDIR} -p ${PREFIX}/share/doc/flowscan
|
|
@ ${INSTALL_DATA} ${WRKSRC}/example/crontab \
|
|
${PREFIX}/share/doc/flowscan/crontab.sample
|
|
@ ${INSTALL_DATA} ${WRKSRC}/rc/linux/cflowd \
|
|
${PREFIX}/share/doc/flowscan/cflowd.sample
|
|
@ ${INSTALL_DATA} ${WRKSRC}/rc/linux/flowscan \
|
|
${PREFIX}/share/doc/flowscan/flowscan.sample
|
|
@ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/flowscan
|
|
.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
|
|
@ cat ${.CURDIR}/pkg-message
|
|
|
|
.include <bsd.port.mk>
|