# $Id: Portfile,v 1.3 2006/02/19 17:08:24 mww Exp $

PortSystem 1.0

name		nbtstat
version		20041203
categories	net
platforms	darwin
maintainers	mww@opendarwin.org
description	grabs NetBIOS name table from a remote machine
long_description	nbtstat provides the basic functionality of the \
			nbtstat utility that is available on Windows. It grabs \
			the NetBIOS name table from a remote machine.

homepage	http://www.watersheep.org/~jim/
master_sites	http://www.watersheep.org/~jim/perl/
distfiles	${name}.pl
dist_subdir	${name}/${version}
checksums	sha1 e2aa2c62c06485d257cae5e243dc4408aff92023

depends_run	bin:perl:perl5.8

extract	{
	file mkdir ${worksrcpath}
	file copy ${distpath}/${distfiles} ${worksrcpath}/nbtstat
}

configure	{
	reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
		${worksrcpath}/nbtstat
}

build	{}

destroot	{
	xinstall -m 755 ${worksrcpath}/nbtstat ${destroot}${prefix}/bin
}
