# -*- 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.24
revision            0
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  e95612c20676c744aefd7b150afb5a2ee110b0be \
                    sha256  69060a3be150e54dc571f5c600b85dd9f37d76f7df1b23cd5c131b2c1412c218 \
                    size    194230

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

post-destroot {
    xinstall -m 755 ${worksrcpath}/extra/arping-scan-net.sh \
        ${destroot}${prefix}/sbin/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+)+)
