# -*- 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

PortSystem          1.0

name                etherape
version             0.9.20
revision            0
categories          net
license             GPL-2+
maintainers         nomaintainer
description         graphical network monitor
long_description    EtherApe is a graphical network monitor for Unix modeled after \
                    etherman. Featuring link layer, ip and TCP modes, it displays network \
                    activity graphically. Hosts and links change in size with traffic. \
                    Color coded protocols display. It supports Ethernet, FDDI, Token \
                    Ring, ISDN, PPP and SLIP devices. It can filter traffic to be shown, \
                    and can read traffic from a file as well as live from the network.
homepage            https://etherape.sourceforge.net
master_sites        sourceforge

checksums           rmd160  2c6aae91fa136d3cc4a25921b31b31ad69297548 \
                    sha256  f54b10b56397075c98a1f192e2b30817e212581b0929dd0304e15fa8eaf59f96 \
                    size    1480790

depends_build-append \
                    port:gnome-doc-utils \
                    port:itstool \
                    port:pkgconfig

depends_lib-append  port:c-ares \
                    port:desktop-file-utils \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:goocanvas2 \
                    port:libglade2 \
                    port:libgnomeui \
                    port:libpcap \
                    port:rarian

patchfiles          patch-src-names-eth_resolv.c.diff

configure.args-append \
                    --with-c-ares \
                    --disable-silent-rules \
                    --disable-scrollkeeper

post-activate {
    system "${prefix}/bin/scrollkeeper-update"
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
}
