# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-info DESCRIPTION="The Reliable, High Performance TCP/HTTP Load Balancer" HOMEPAGE="http://haproxy.1wt.eu" SRC_URI="http://haproxy.1wt.eu/download/1.2/src/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc pcre" DEPEND="" RDEPEND=" pcre? ( >=dev-libs/libpcre-3.1 ) " src_compile() { ARGS="TARGET=linux${KV_MAJOR}${KV_MINOR}" use pcre && ARGS="${ARGS} REGEX=pcre" . /etc/make.conf make ${MAKEOPTS} ADDINC="${CFLAGS}" ${ARGS} } src_install() { # binary exeinto /usr/bin doexe haproxy # documentation use doc && dodoc README CHANGELOG ROADMAP TODO doc/* # init.d newinitd ${FILESDIR}/init-1.2 haproxy # config file insinto /etc/haproxy doins ${FILESDIR}/haproxy.cfg }