# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 65922 2010-04-03 01:45:32Z snc@macports.org $

PortSystem          1.0

name                arping
version             2.09
categories          net
platforms           darwin
maintainers         snc openmaintainer
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           md5     6f6a91c8700fcc7454b4e89480e417e3 \
                    sha1    afa870eaad3bac47a8b627bc3fbdc1471b6cfd72 \
                    rmd160  e00eb0cd7422e7dcabbe5a880cb959b0dcd73e70

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

patchfiles          patch-src-arping.c.diff

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