# $Id: Portfile 73273 2010-11-08 17:29:39Z markd@macports.org $

PortSystem	1.0

name			nfdump
version			1.6.2
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     480e008be8ba038ce776e42af441d664 \
			sha1    9632b4f3b18bf540dc3d5022641913e0ef49b467 \
			rmd160  69ff28a7d2ea7a05978611762ced9554ab0d9f34

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>}
