# $Id: Portfile 61634 2009-12-17 06:30:48Z ryandesign@macports.org $

PortSystem	1.0

name			nfdump
version			1.5.8
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
checksums		md5     f314513652df18259f8303c542918cbb \
			sha1    73a18f3eabb7f928d8ed9c2a305914c953f9457e \
			rmd160  3b91874088cec70eae697fa45f9e8c2832da43b9

patchfiles	patch-configure \
		patch-ft2nfdump.c

depends_lib	port:rrdtool

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 {
	depends_lib-append	port:flow-tools
	configure.args-append	--enable-ftconv \
				--with-ftpath=${prefix}

}

livecheck.regex	{(?i)<title>stable nfdump-(.*) released.*</title>}
