openbsd-ports/net/nfdump/Makefile
sthen 087470f328 import nfdump and nfprofile (the latter as a subpackage since not
everyone needs that, and it pulls in heavier dependencies)

-- -- --
The nfdump tools collect and process netflow data (v5, v7 and v9)
on the command line. They are part of the NfSen project.

nfcapd - netflow capture daemon.  Reads the netflow data from the
network and stores the data into files. Automatically rotate files
every n minutes (typically every 5 minutes). nfcapd reads netflow v5,
v7 and v9 flows transparently. You need one nfcapd process for each
netflow stream.

nfdump - netflow dump.  Reads the netflow data from the files stored
by nfcapd. Its syntax is similar to tcpdump. If you like tcpdump
you will like nfdump. Displays netflow data and can create lots of
top N statistics of flows IP addresses, ports etc in whichever
order you like.

nfreplay - netflow replay.  Reads the netflow data from the files
stored by nfcapd and sends it over the network to another host.

A web front-end, NfSen, is available at http://nfsen.sourceforge.net/
-- -- --
nfprofile is a netflow profiler, which works with the nfdump tools.
It reads the netflow data from the files stored by nfcapd, filters
the netflow data according to the specified filter sets (profiles)
and stores the filtered data into files for later use.
-- -- --

thanks to eric@ for testing/feedback on an earlier version, and to
upstream for rolling a new release including the patches as a result.

"that should be in ports for sure" henning@
2008-05-21 22:28:35 +00:00

54 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2008/05/21 22:28:35 sthen Exp $
COMMENT-main = tools to collect and process netflow data
COMMENT-nfprofile = filters data from nfdump according to profiles
DISTNAME = nfdump-1.5.7
FULLPKGNAME-main = ${DISTNAME}
FULLPKGNAME-nfprofile = ${DISTNAME:S/nfdump/nfprofile/}
CATEGORIES = net
HOMEPAGE = http://nfdump.sourceforge.net/
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=nfdump/}
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
--enable-nfprofile \
--with-rrdpath=${PREFIX} \
--enable-ftconv \
--with-ftpath=${WRKDIR}/flow-tools \
--enable-sflow
MULTI_PACKAGES = -main -nfprofile
LIB_DEPENDS-nfprofile = rrd:rrdtool-*:net/rrdtool
RUN_DEPENDS-nfprofile = :nfdump-*:net/nfdump,-main
BUILD_DEPENDS += ::net/flow-tools:build
post-extract:
@ln -sf ${WRKDIR}/net/flow-tools/flow-tools-* ${WRKDIR}/flow-tools
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nfdump
@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/nfdump
@head -119 ${WRKSRC}/sflow.c > ${PREFIX}/share/doc/nfdump/COPYRIGHT
CONFIGURE_ENV = LDFLAGS="${LDFLAGS} -L${X11BASE}/lib"
REGRESS_TARGET = test
REGRESS_FLAGS = TZ=CET
.include <bsd.port.mk>