2001-03-13 20:14:44 -05:00
|
|
|
|
# New ports collection makefile for: flowscan
|
2001-03-13 18:20:57 -05:00
|
|
|
|
# Date created: Di 13 M<>r 2001 08:23:55 CET
|
|
|
|
|
# Whom: andreas@freebsd.org
|
|
|
|
|
#
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
#
|
|
|
|
|
|
2001-03-13 20:14:44 -05:00
|
|
|
|
PORTNAME= flowscan
|
2001-03-13 18:20:57 -05:00
|
|
|
|
PORTVERSION= 1.006
|
2001-03-25 11:56:55 -05:00
|
|
|
|
PORTREVISION= 5
|
2001-03-13 18:20:57 -05:00
|
|
|
|
CATEGORIES= net
|
2001-03-17 19:27:16 -05:00
|
|
|
|
MASTER_SITES= http://net.doit.wisc.edu/~plonka/FlowScan/
|
|
|
|
|
DISTFILES= FlowScan-${PORTVERSION}.tar.gz
|
2001-03-13 18:20:57 -05:00
|
|
|
|
|
2001-08-16 05:45:22 -04:00
|
|
|
|
MAINTAINER= lyngbol@wheel.dk
|
2001-03-13 18:20:57 -05:00
|
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ksh:${PORTSDIR}/shells/pdksh \
|
|
|
|
|
rrdtool:${PORTSDIR}/net/rrdtool \
|
2001-03-20 05:08:43 -05:00
|
|
|
|
${LOCALBASE}/sbin/cflowd:${PORTSDIR}/net/cflowd \
|
2001-03-21 12:48:55 -05:00
|
|
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Boulder/Stream.pm:${PORTSDIR}/converters/p5-Boulder \
|
2001-03-25 04:20:58 -05:00
|
|
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/ConfigReader/DirectiveStyle.pm:${PORTSDIR}/devel/p5-ConfigReader \
|
2001-03-13 18:20:57 -05:00
|
|
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/HTML/Table.pm:${PORTSDIR}/www/p5-HTML-Table \
|
2001-03-25 18:52:12 -05:00
|
|
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Cflow.pm:${PORTSDIR}/net/p5-Cflow \
|
2001-03-25 17:06:39 -05:00
|
|
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Net/Patricia.pm:${PORTSDIR}/net/p5-Net-Patricia
|
2001-03-25 11:56:55 -05:00
|
|
|
|
RUN_DEPENDS= gmake:${PORTSDIR}/devel/gmake
|
2001-03-13 18:20:57 -05:00
|
|
|
|
|
|
|
|
|
CFLOWD_FLOWSCAN_PATCH= yes
|
|
|
|
|
HAS_CONFIGURE= yes
|
- completely new functionalities, so bumped port revision
this was overdue, since this complex port needs more docu,
explanation, preparation, etc ...
- installation directory moved
from ${PREFIX}/var/flows to ${PREFIX}/var/db/flows
to match our typical /var filesystem layout, but since I want
to package this port, I don't want to write into /var/filesystem
its up to the user, to move the data around later if he has a large
/var and likes the data to reside there.
- create needed directories in ${PREFIX}/var/db/flows (bin and graphs)
use a .keep_me file, so that things are packaged properly
- install needed documentation
the INSTALL file is essential as well as the various example file.
NOPORTDOCS only covers unneeded files, which are not crucial for
installation
- the ${PREFIX}/var/db/flows/bin directory carries the sample files
for the flowscan script. Therefore those sample files reside there.
Other sample files like the crontab settings are up to the user, so
they reside in ${PREFIX}/share/doc/flowscan
- install a sample rc file in ${PREFIX}/etc/rc.d, its deactivated, since
this is a port that needs thinking and handcrafting config files before
use...
- added a pkg-message file, that explains pre-requisites (cisco configuration)
and other post installation tasks as well as a BIG WARNING, that enabling
Netflow Switching and Netflow Data Export on your Cisco CORE or DISTRIBUTION
routers might affect the routers switching performance.
You should know IF you need to do it and if its o.k. IF you enable it.
- output pkg-message on port based installation as well since the warnings
are important.
- updated PLIST
2001-03-25 06:48:48 -05:00
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}/var/db/flows
|
2001-03-15 02:56:55 -05:00
|
|
|
|
WRKSRC= ${WRKDIR}/FlowScan-${PORTVERSION}
|
2001-03-13 18:20:57 -05:00
|
|
|
|
|
|
|
|
|
pre-install:
|
2001-03-25 15:41:45 -05:00
|
|
|
|
@ ${MKDIR} ${PREFIX}/var/db/flows/bin
|
|
|
|
|
@ ${MKDIR} ${PREFIX}/var/db/flows/graphs
|
- completely new functionalities, so bumped port revision
this was overdue, since this complex port needs more docu,
explanation, preparation, etc ...
- installation directory moved
from ${PREFIX}/var/flows to ${PREFIX}/var/db/flows
to match our typical /var filesystem layout, but since I want
to package this port, I don't want to write into /var/filesystem
its up to the user, to move the data around later if he has a large
/var and likes the data to reside there.
- create needed directories in ${PREFIX}/var/db/flows (bin and graphs)
use a .keep_me file, so that things are packaged properly
- install needed documentation
the INSTALL file is essential as well as the various example file.
NOPORTDOCS only covers unneeded files, which are not crucial for
installation
- the ${PREFIX}/var/db/flows/bin directory carries the sample files
for the flowscan script. Therefore those sample files reside there.
Other sample files like the crontab settings are up to the user, so
they reside in ${PREFIX}/share/doc/flowscan
- install a sample rc file in ${PREFIX}/etc/rc.d, its deactivated, since
this is a port that needs thinking and handcrafting config files before
use...
- added a pkg-message file, that explains pre-requisites (cisco configuration)
and other post installation tasks as well as a BIG WARNING, that enabling
Netflow Switching and Netflow Data Export on your Cisco CORE or DISTRIBUTION
routers might affect the routers switching performance.
You should know IF you need to do it and if its o.k. IF you enable it.
- output pkg-message on port based installation as well since the warnings
are important.
- updated PLIST
2001-03-25 06:48:48 -05:00
|
|
|
|
|
|
|
|
|
post-install:
|
2001-03-25 15:41:45 -05:00
|
|
|
|
# sample startup script
|
- completely new functionalities, so bumped port revision
this was overdue, since this complex port needs more docu,
explanation, preparation, etc ...
- installation directory moved
from ${PREFIX}/var/flows to ${PREFIX}/var/db/flows
to match our typical /var filesystem layout, but since I want
to package this port, I don't want to write into /var/filesystem
its up to the user, to move the data around later if he has a large
/var and likes the data to reside there.
- create needed directories in ${PREFIX}/var/db/flows (bin and graphs)
use a .keep_me file, so that things are packaged properly
- install needed documentation
the INSTALL file is essential as well as the various example file.
NOPORTDOCS only covers unneeded files, which are not crucial for
installation
- the ${PREFIX}/var/db/flows/bin directory carries the sample files
for the flowscan script. Therefore those sample files reside there.
Other sample files like the crontab settings are up to the user, so
they reside in ${PREFIX}/share/doc/flowscan
- install a sample rc file in ${PREFIX}/etc/rc.d, its deactivated, since
this is a port that needs thinking and handcrafting config files before
use...
- added a pkg-message file, that explains pre-requisites (cisco configuration)
and other post installation tasks as well as a BIG WARNING, that enabling
Netflow Switching and Netflow Data Export on your Cisco CORE or DISTRIBUTION
routers might affect the routers switching performance.
You should know IF you need to do it and if its o.k. IF you enable it.
- output pkg-message on port based installation as well since the warnings
are important.
- updated PLIST
2001-03-25 06:48:48 -05:00
|
|
|
|
@ ${INSTALL_SCRIPT} ${FILESDIR}/flowscan.sh \
|
2001-03-25 10:54:48 -05:00
|
|
|
|
${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
|
2001-03-25 15:41:45 -05:00
|
|
|
|
# sample Makefile to generate graphs
|
2001-03-25 10:54:48 -05:00
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/graphs.mf \
|
|
|
|
|
${PREFIX}/var/db/flows/graphs/Makefile.sample
|
2001-03-25 15:41:45 -05:00
|
|
|
|
# sample config files
|
- completely new functionalities, so bumped port revision
this was overdue, since this complex port needs more docu,
explanation, preparation, etc ...
- installation directory moved
from ${PREFIX}/var/flows to ${PREFIX}/var/db/flows
to match our typical /var filesystem layout, but since I want
to package this port, I don't want to write into /var/filesystem
its up to the user, to move the data around later if he has a large
/var and likes the data to reside there.
- create needed directories in ${PREFIX}/var/db/flows (bin and graphs)
use a .keep_me file, so that things are packaged properly
- install needed documentation
the INSTALL file is essential as well as the various example file.
NOPORTDOCS only covers unneeded files, which are not crucial for
installation
- the ${PREFIX}/var/db/flows/bin directory carries the sample files
for the flowscan script. Therefore those sample files reside there.
Other sample files like the crontab settings are up to the user, so
they reside in ${PREFIX}/share/doc/flowscan
- install a sample rc file in ${PREFIX}/etc/rc.d, its deactivated, since
this is a port that needs thinking and handcrafting config files before
use...
- added a pkg-message file, that explains pre-requisites (cisco configuration)
and other post installation tasks as well as a BIG WARNING, that enabling
Netflow Switching and Netflow Data Export on your Cisco CORE or DISTRIBUTION
routers might affect the routers switching performance.
You should know IF you need to do it and if its o.k. IF you enable it.
- output pkg-message on port based installation as well since the warnings
are important.
- updated PLIST
2001-03-25 06:48:48 -05:00
|
|
|
|
.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
|
2001-03-25 15:41:45 -05:00
|
|
|
|
# important docu files
|
|
|
|
|
@ ${MKDIR} ${PREFIX}/share/doc/flowscan
|
- completely new functionalities, so bumped port revision
this was overdue, since this complex port needs more docu,
explanation, preparation, etc ...
- installation directory moved
from ${PREFIX}/var/flows to ${PREFIX}/var/db/flows
to match our typical /var filesystem layout, but since I want
to package this port, I don't want to write into /var/filesystem
its up to the user, to move the data around later if he has a large
/var and likes the data to reside there.
- create needed directories in ${PREFIX}/var/db/flows (bin and graphs)
use a .keep_me file, so that things are packaged properly
- install needed documentation
the INSTALL file is essential as well as the various example file.
NOPORTDOCS only covers unneeded files, which are not crucial for
installation
- the ${PREFIX}/var/db/flows/bin directory carries the sample files
for the flowscan script. Therefore those sample files reside there.
Other sample files like the crontab settings are up to the user, so
they reside in ${PREFIX}/share/doc/flowscan
- install a sample rc file in ${PREFIX}/etc/rc.d, its deactivated, since
this is a port that needs thinking and handcrafting config files before
use...
- added a pkg-message file, that explains pre-requisites (cisco configuration)
and other post installation tasks as well as a BIG WARNING, that enabling
Netflow Switching and Netflow Data Export on your Cisco CORE or DISTRIBUTION
routers might affect the routers switching performance.
You should know IF you need to do it and if its o.k. IF you enable it.
- output pkg-message on port based installation as well since the warnings
are important.
- updated PLIST
2001-03-25 06:48:48 -05:00
|
|
|
|
@ ${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
|
2001-03-25 15:41:45 -05:00
|
|
|
|
# less important docu files
|
- completely new functionalities, so bumped port revision
this was overdue, since this complex port needs more docu,
explanation, preparation, etc ...
- installation directory moved
from ${PREFIX}/var/flows to ${PREFIX}/var/db/flows
to match our typical /var filesystem layout, but since I want
to package this port, I don't want to write into /var/filesystem
its up to the user, to move the data around later if he has a large
/var and likes the data to reside there.
- create needed directories in ${PREFIX}/var/db/flows (bin and graphs)
use a .keep_me file, so that things are packaged properly
- install needed documentation
the INSTALL file is essential as well as the various example file.
NOPORTDOCS only covers unneeded files, which are not crucial for
installation
- the ${PREFIX}/var/db/flows/bin directory carries the sample files
for the flowscan script. Therefore those sample files reside there.
Other sample files like the crontab settings are up to the user, so
they reside in ${PREFIX}/share/doc/flowscan
- install a sample rc file in ${PREFIX}/etc/rc.d, its deactivated, since
this is a port that needs thinking and handcrafting config files before
use...
- added a pkg-message file, that explains pre-requisites (cisco configuration)
and other post installation tasks as well as a BIG WARNING, that enabling
Netflow Switching and Netflow Data Export on your Cisco CORE or DISTRIBUTION
routers might affect the routers switching performance.
You should know IF you need to do it and if its o.k. IF you enable it.
- output pkg-message on port based installation as well since the warnings
are important.
- updated PLIST
2001-03-25 06:48:48 -05:00
|
|
|
|
.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
|
2001-03-25 15:41:45 -05:00
|
|
|
|
# info
|
|
|
|
|
@ ${CAT} ${.CURDIR}/pkg-message
|
2001-03-13 18:20:57 -05:00
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|