# $Id: Portfile 94651 2012-06-26 01:36:34Z ryandesign@macports.org $

PortSystem	1.0

name			nfdump
version			1.6.6
categories		net
maintainers		markd openmaintainer
license			BSD
platforms		darwin

description		Part of the NfSen project, the nfdump tools are command-line programs to \
			collect and process netflow data.
long_description	${description}

homepage		http://nfdump.sourceforge.net/
master_sites		sourceforge:project/nfdump/stable/nfdump-${version}

checksums		rmd160  63d5aec9e7f6d2ee151a88451e52ac86263996e4 \
			sha256  32e74310c2ca1a622dcca5dd63d0bed40e13d851ba62fff249887682ed77e485

depends_lib	port:rrdtool

configure.cflags-append -std=gnu89
configure.args	--enable-sflow \
		--enable-nfprofile \
		--with-rrdpath=${prefix}

post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${name}
        xinstall -m 644 -W ${worksrcpath} BSD-license.txt ChangeLog README ToDo \
                ${destroot}${prefix}/share/doc/${name}
}

variant flowtools description {Enable support for flow-tools} {
	depends_lib-append	port:flow-tools
	configure.args-append	--enable-ftconv \
				--with-ftpath=${prefix}
}

livecheck.regex		/${name}-(\[0-9.\]+)${extract.suffix}
