# $Id: Portfile,v 1.1 2004/10/28 18:37:57 mww Exp $

PortSystem 1.0

name			ipcalc
version			0.38
categories		net
platforms		darwin
maintainers		mww@opendarwin.org
description		calculates various network masks etc. from given ip-address
long_description	ipcalc takes an IP address and netmask and calculates the \
				resulting broadcast, network, Cisco wildcard mask, and host \
				range. By giving a second netmask, you can design sub- and \
				supernetworks. It is also intended to be a teaching tool and \
				presents the results as easy-to-understand binary values.

homepage		http://jodies.de/ipcalc/
master_sites	http://jodies.de/ipcalc-archive/
checksums		md5 9b95b0b6b9425e78b08f648eefeb84e0

depends_run		bin:perl:perl5.8

configure	{
	reinplace "s|/usr/bin/perl -w|/usr/bin/env perl|g" ${worksrcpath}/ipcalc
}

build			{}

destroot	{
	xinstall -m 755 ${worksrcpath}/ipcalc ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/changelog \
		${destroot}${prefix}/share/doc/${name}
}
