# $Id: Portfile,v 1.2 2005/04/21 15:57:54 jberry Exp $

PortSystem 1.0

name			arping
version			2.04
categories		net
platforms		darwin
maintainers		mww@opendarwin.org
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 5fbf10272dcb5040cbfb4d540179fb99
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}
}
