2012-10-26 08:01:27 +02:00
|
|
|
# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
|
2004-11-12 21:52:09 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= flowd
|
2009-05-31 20:42:14 +02:00
|
|
|
PORTVERSION= 0.9.1
|
2010-12-20 20:15:50 +01:00
|
|
|
PORTREVISION= 2
|
2004-11-12 21:52:09 +01:00
|
|
|
CATEGORIES= net-mgmt ipv6
|
2012-10-26 08:01:27 +02:00
|
|
|
MASTER_SITES= GOOGLE_CODE \
|
2010-12-20 20:15:50 +01:00
|
|
|
http://www2.mindrot.org/files/flowd/
|
2004-11-12 21:52:09 +01:00
|
|
|
|
2014-07-24 17:36:50 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-10-26 08:01:27 +02:00
|
|
|
COMMENT= Small, fast, and secure NetFlow collector
|
2004-11-12 21:52:09 +01:00
|
|
|
|
2012-10-26 08:01:27 +02:00
|
|
|
OPTIONS_DEFINE= PERL PYTHON
|
|
|
|
OPTIONS_DEFAULT=PERL
|
2010-12-20 20:15:50 +01:00
|
|
|
|
2012-10-26 08:01:27 +02:00
|
|
|
PERL_DESC= Install flowd perl module
|
|
|
|
PYTHON_DESC= Install flowd Python support
|
2010-12-20 20:15:50 +01:00
|
|
|
|
2013-09-14 17:39:55 +02:00
|
|
|
USES= gmake
|
2004-11-12 21:52:09 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-01-08 11:25:53 +01:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var
|
2009-07-13 18:22:56 +02:00
|
|
|
USE_RC_SUBR= flowd
|
2004-11-12 21:52:09 +01:00
|
|
|
MAN8= flowd.8 flowd-reader.8
|
|
|
|
MAN5= flowd.conf.5
|
|
|
|
PORTDOCS= README INSTALL
|
2010-12-20 20:15:50 +01:00
|
|
|
FLOWD_USER= _flowd
|
|
|
|
USERS= ${FLOWD_USER}
|
|
|
|
GROUPS= ${FLOWD_USER}
|
2004-11-12 21:52:09 +01:00
|
|
|
|
2013-09-21 00:24:43 +02:00
|
|
|
NO_STAGE= yes
|
2012-10-26 08:01:27 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2013-09-14 17:39:55 +02:00
|
|
|
USES+= perl5
|
2012-10-26 08:01:27 +02:00
|
|
|
PLIST_SUB+= PERL=""
|
2009-10-15 23:26:58 +02:00
|
|
|
MAN3= Flowd.3
|
2004-11-12 21:52:09 +01:00
|
|
|
.else
|
2012-10-26 08:01:27 +02:00
|
|
|
PLIST_SUB+= PERL="@comment "
|
2004-11-12 21:52:09 +01:00
|
|
|
.endif
|
|
|
|
|
2012-10-26 08:01:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
2004-11-12 21:52:09 +01:00
|
|
|
USE_PYTHON= yes
|
2012-10-26 08:01:27 +02:00
|
|
|
PLIST_SUB+= PYTHON=""
|
2009-10-15 23:26:58 +02:00
|
|
|
INSTALLS_EGGINFO= yes
|
2004-11-12 21:52:09 +01:00
|
|
|
.else
|
2012-10-26 08:01:27 +02:00
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
2004-11-12 21:52:09 +01:00
|
|
|
.endif
|
|
|
|
|
2005-01-26 06:13:28 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s;%%FLOWD_USER%%;${FLOWD_USER};g" \
|
|
|
|
${WRKSRC}/flowd.h
|
2010-12-20 20:15:50 +01:00
|
|
|
${REINPLACE_CMD} -i '' -e 's|/usr/bin/perl|${PERL}|' \
|
|
|
|
${WRKSRC}/tools/flowinsert.pl \
|
|
|
|
${WRKSRC}/tools/wormsuspects.pl
|
2005-01-26 06:13:28 +01:00
|
|
|
|
2004-11-12 21:52:09 +01:00
|
|
|
post-install:
|
2012-10-26 08:01:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-11-12 21:52:09 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2012-10-26 08:01:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2005-06-04 02:43:20 +02:00
|
|
|
cd ${WRKSRC}/Flowd-perl && \
|
2010-12-20 20:15:50 +01:00
|
|
|
${PERL} Makefile.PL INSTALLSITEMAN3DIR=${MAN3PREFIX}/man/man3 PREFIX=${PREFIX} && \
|
2014-06-25 07:35:31 +02:00
|
|
|
${MAKE_CMD} && \
|
|
|
|
${MAKE_CMD} install;
|
2013-06-12 19:45:02 +02:00
|
|
|
-@${RM} -f ${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod
|
2004-11-12 21:52:09 +01:00
|
|
|
.endif
|
|
|
|
|
2012-10-26 08:01:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
2004-11-12 21:52:09 +01:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${PYTHON_CMD} setup.py build && \
|
|
|
|
${PYTHON_CMD} setup.py install
|
|
|
|
.endif
|
|
|
|
|
2012-10-26 08:01:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2010-12-20 20:15:50 +01:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@( cd ${WRKSRC}/tools && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/ )
|
|
|
|
.endif
|
2005-01-26 06:13:28 +01:00
|
|
|
|
2007-10-04 04:24:29 +02:00
|
|
|
.include <bsd.port.mk>
|