60436d8357
The nfdump tools collect and process netflow data on the command line. Nfdump tools: nfcapd - netflow collector daemon nfdump - netflow dump nfprofile - netflow profiler nfreplay - netflow replay nfclean.pl - cleanup old data - installed as example ft2nfdump - read flow-tools format - optional tool sfcapd - sflow collector daemon - optional tool
40 lines
1 KiB
Makefile
40 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2007/07/29 21:33:42 seb Exp $
|
|
#
|
|
|
|
DISTNAME= nfdump-1.5.2
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nfdump/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://nfdump.sourceforge.net/
|
|
COMMENT= Tools to collect and process netflow data
|
|
|
|
GNU_CONFIGURE= yes
|
|
TEST_TARGET= test
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.nfdump
|
|
PKG_SUPPORTED_OPTIONS= nfdump-ftconv nfdump-sflow
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST
|
|
|
|
.if !empty(PKG_OPTIONS:Mnfdump-ftconv)
|
|
CONFIGURE_ARGS+= --enable-ftconv
|
|
CONFIGURE_ARGS+= --with-ftpath=${BUILDLINK_PREFIX.flow-tools}
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.ftconv
|
|
. include "../../net/flow-tools/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mnfdump-sflow)
|
|
CONFIGURE_ARGS+= --enable-sflow
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.sflow
|
|
.endif
|
|
|
|
EGDIR= ${PREFIX}/share/examples/nfdump
|
|
INSTALLATION_DIRS= share/examples/nfdump
|
|
REPLACE_PERL+= nfclean.pl
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/nfclean.pl ${EGDIR}/nfclean.pl
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|