# $Id$

PortSystem 1.0

name			balance
version			3.52
categories		net
license			GPL-2
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		md5     dd43b243290471536b7689382b7bb8d4 \
				sha1    b916f4366d7608914469c148f87efc22a4f90222 \
				rmd160  d9a462e2ef12e6c2af40b05855011827cf8564a5

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
}