# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# COPYING is GPL 3 but the source files say GPL 2 or later
description network traffic probe
long_description ntop is a network traffic probe that shows the network \
usage, similar to what the popular top Unix command does.
homepage https://www.ntop.org/
master_sites sourceforge:project/ntop/ntop/Stable/
checksums rmd160 6ca48ded21538e7af895b25da935a3069378de70 \
sha256 7e8e84cb14d2173beaca4d4cb991a14d84a4bef84ec37b2276bc363f45c52ef8
depends_build port:gawk \
depends_lib port:libpcap \
move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
patchfiles patch-Makefile.am.diff \
patch-configure.ac.diff \
patch-plugins-Makefile.am.diff
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/autogen.sh
configure.env LOCALEDIR=${prefix}/share/locale \
PYTHON=${prefix}/bin/python2.7-config
configure.cmd ${worksrcpath}/autogen.sh
configure.args --with-rrd-home=${prefix} \
startupitem.executable ${prefix}/bin/ntop @${prefix}/etc/ntop/ntop.conf
destroot.keepdirs ${destroot}${prefix}/var/ntop/rrd