# $Id: Portfile 43062 2008-12-04 01:51:00Z mcalhoun@macports.org $

PortSystem 1.0

name			ipcalc
version			0.38
categories		net
platforms		darwin
maintainers		nomaintainer
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		path:bin/perl:perl5

configure	{
	reinplace "s|/usr/bin/perl -w|${prefix}/bin/perl -w|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}
}
