# -*- 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
# $Id: Portfile 90318 2012-03-01 22:42:42Z snc@macports.org $

PortSystem          1.0

name                arping
version             2.11
categories          net
platforms           darwin
maintainers         snc openmaintainer
license             GPL-2
description         utility to find out if a MAC 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  0e109e2e850a4fde4d49bb0b53fb5e8588a6ebed \
                    sha256  32e33c9d44c900c47f260d3ab5757466d8a7d3c282b3b35fb98e0fd068f25cb1

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