# $Id: Portfile 30239 2007-10-23 01:55:09Z jmpp@macports.org $

PortSystem 1.0

name			arping
version			2.05
categories		net
platforms		darwin
maintainers		nomaintainer
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	ftp://ftp.habets.pp.se/pub/synscan/
checksums		md5 96e7c2ce8ae09046e264a314eeaac4dd
patchfiles		patch-arping.c

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

use_configure	no

build.cmd		gcc arping-2/arping.c -I${prefix}/include/libnet \
					-I${prefix}/include -L${prefix}/lib -lnet -lpcap
build.target	-o arping

destroot	{
	xinstall -m 755 -s ${worksrcpath}/arping ${destroot}${prefix}/bin
	xinstall -m 755 ${worksrcpath}/arping-scan-net.sh \
		${destroot}${prefix}/bin/arping-scan-net
	xinstall -m 644 ${worksrcpath}/arping.8 ${destroot}${prefix}/share/man/man8/
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} LICENSE README \
		${destroot}${prefix}/share/doc/${name}
}
