SUMMARY="Reliable, high performace TCP/HTTP load balancer"
DESCRIPTION="
HAProxy is a free, very fast and reliable solution offering high availability, \
load balancing, and proxying for TCP and HTTP-based applications. It is \
particularly suited for web sites crawling under very high loads while needing \
persistence or Layer7 processing."
HOMEPAGE="http://www.haproxy.org/"
COPYRIGHT="2012 Willy Tarreau"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://www.haproxy.org/download/2.5/src/haproxy-$portVersion.tar.gz"
CHECKSUM_SHA256="d6fa3c66f707ff93b5bd27ce69e70a8964d7b7078548b51868d47d7df3943fe4"

ARCHITECTURES="all !x86_gcc2"

PROVIDES="
	haproxy = $portVersion
	cmd:haproxy = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:cmp
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make TARGET=haiku PREFIX="$prefix"
}

INSTALL()
{
	mkdir -p "${sbinDir}"
	mkdir -p "${manDir}"
	mkdir -p "${docDir}"


	make install DESTDIR="" \
		PREFIX="$prefix"\
		SBINDIR="${sbinDir}" \
		MANDIR="${manDir}" \
		DOCDIR="${docDir}"
}
