62d1b1e1c5
features: * Understands NetFlow protocol v.1, v.5, v.7 and v.9 (including IPv6 flows) * Supports both IPv4 and IPv6 transport of flows * Secure: flowd is privilege separated to limit the impact of any compromise * Supports filtering and tagging of flows, using a packet filter-like syntax * Stores recorded flow data in a compact binary format which supports run-time choice over which flow fields are stored * Ships with both Perl and Python interfaces for reading and parsing the on-disk record format * Is licensed under a liberal BSD-like license PR: ports/73722 Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu>
71 lines
1.5 KiB
Makefile
71 lines
1.5 KiB
Makefile
# New ports collection makefile for: flowd
|
|
# Date created: 9 October 2004
|
|
# Whom: Janos Mohacsi <janos.mohacsi@bsd.hu>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= flowd
|
|
PORTVERSION= 0.7
|
|
CATEGORIES= net-mgmt ipv6
|
|
MASTER_SITES= http://www2.mindrot.org/files/flowd/
|
|
|
|
MAINTAINER= janos.mohacsi@bsd.hu
|
|
COMMENT= The clowd is a small, fast and secure NetFlow collector
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
MAN8= flowd.8 flowd-reader.8
|
|
MAN5= flowd.conf.5
|
|
PORTDOCS= README INSTALL
|
|
|
|
.if defined(WITH_PERL)
|
|
USE_PERL5= yes
|
|
PLIST_SUB+= WITH_PERL=""
|
|
#MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
|
#MAN3= Flowd.3
|
|
.else
|
|
PLIST_SUB+= WITH_PERL="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_PYTHON)
|
|
USE_PYTHON= yes
|
|
PLIST_SUB+= WITH_PYTHON=""
|
|
.else
|
|
PLIST_SUB+= WITH_PYTHON="@comment "
|
|
.endif
|
|
|
|
pre-extract:
|
|
@${ECHO_MSG} ""
|
|
.if defined(WITH_PERL)
|
|
@${ECHO_MSG} "Build with perl bindings."
|
|
.else
|
|
@${ECHO_MSG} "You can enable perl bindings by defining WITH_PERL"
|
|
.endif
|
|
@${ECHO_MSG} ""
|
|
.if defined(WITH_PYTHON)
|
|
@${ECHO_MSG} "Build with Python bindings."
|
|
.else
|
|
@${ECHO_MSG} "You can enable Python bindings by defining WITH_PYTHON."
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
|
|
.if defined(WITH_PERL)
|
|
cd ${WRKSRC}/Flowd && \
|
|
${PERL} Makefile.PL && \
|
|
${GMAKE} && \
|
|
${GMAKE} install
|
|
.endif
|
|
|
|
.if defined(WITH_PYTHON)
|
|
cd ${WRKSRC} && \
|
|
${PYTHON_CMD} setup.py build && \
|
|
${PYTHON_CMD} setup.py install
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|