# $Id: Portfile 50277 2009-04-28 18:35:25Z jmr@macports.org $

PortSystem 1.0

name			balance
version			3.34
categories		net
platforms		darwin
maintainers		nomaintainer
description		simple but powerful generic TCP proxy
long_description	Balance is a simple but powerful generic TCP proxy with \
			round-robin load balancing and failover mechanisms. Its behaviour \
			can be controlled at runtime using a simple command line syntax.

homepage		http://balance.sourceforge.net/
master_sites	http://www.inlab.de/
checksums		sha1 5980542f3ef28e9f2b97476d0e239a82f4917a37

use_configure	no

build.args		CFLAGS="-O2 -DBalanceBSD" \
				CC=${configure.cc}

destroot {
	xinstall -m 755 -d ${destroot}${prefix}/bin \
		${destroot}${prefix}/share/man/man1
	xinstall -m 755 ${worksrcpath}/balance ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/balance.1 ${destroot}${prefix}/share/man/man1
}
