# -*- 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                arping
version             2.20
categories          net
platforms           darwin
maintainers         {snc @nerdling} openmaintainer
license             GPL-2
description         utility to find out if an IP address is already taken on a LAN
long_description    Arping is a util to find out if a specific IP address on \
                    the LAN is 'taken' and what MAC address owns it.

homepage            http://www.habets.pp.se/synscan/programs.php?prog=arping
master_sites        http://www.habets.pp.se/synscan/files/
checksums           rmd160  5aba327531093d93c09002eafccbc3f0954eab0f \
                    sha256  34e108923cb601ebdc954062d3ff0bdd44d6eff087895af48994398f08025785 \
                    size    179007

depends_lib         port:libnet11 \
                    lib:libpcap.DP:libpcap

post-destroot {
    xinstall -m 755 ${worksrcpath}/src/arping ${destroot}${prefix}/bin
    xinstall -m 755 ${worksrcpath}/extra/arping-scan-net.sh \
        ${destroot}${prefix}/bin/arping-scan-net
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} LICENSE README \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.url       ${homepage}
livecheck.type      regex
livecheck.regex     ${name}-(\\d+(\\.\\d+)+)