Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 305261
Collapse All | Expand All

(-)haproxy-1.3.22-r1.ebuild (-9 / +22 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.3.22-r1.ebuild,v 1.1 2009/12/05 09:04:28 mrness Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.3.22-r1.ebuild,v 1.1 2009/12/05 09:04:28 mrness Exp $
4
4
5
inherit versionator eutils
5
inherit eutils versionator
6
6
7
DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
7
DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
8
HOMEPAGE="http://haproxy.1wt.eu"
8
HOMEPAGE="http://haproxy.1wt.eu"
Lines 11-17 SRC_URI="http://haproxy.1wt.eu/download/ Link Here
11
LICENSE="GPL-2 LGPL-2.1"
11
LICENSE="GPL-2 LGPL-2.1"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~amd64 ~ppc ~x86"
13
KEYWORDS="~amd64 ~ppc ~x86"
14
IUSE="pcre"
14
IUSE="examples pcre vim-syntax"
15
15
16
DEPEND="pcre? ( dev-libs/libpcre )"
16
DEPEND="pcre? ( dev-libs/libpcre )"
17
RDEPEND="${DEPEND}"
17
RDEPEND="${DEPEND}"
Lines 23-45 pkg_setup() { Link Here
23
23
24
src_compile() {
24
src_compile() {
25
	local ARGS="TARGET=linux26"
25
	local ARGS="TARGET=linux26"
26
26
	use pcre && ARGS="${ARGS} USE_PCRE=1"
27
	use pcre && ARGS="${ARGS} USE_PCRE=1"
28
27
	use kernel_linux && ARGS="${ARGS} USE_LINUX_SPLICE=1"
29
	use kernel_linux && ARGS="${ARGS} USE_LINUX_SPLICE=1"
28
	use kernel_linux && ARGS="${ARGS} USE_LINUX_TPROXY=1"
30
	use kernel_linux && ARGS="${ARGS} USE_LINUX_TPROXY=1"
29
	emake ADDINC="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${ARGS}
31
32
	emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${ARGS} || die
30
}
33
}
31
34
32
src_install() {
35
src_install() {
33
	exeinto /usr/bin
36
	dobin haproxy || die
34
	doexe haproxy
37
	newinitd "${FILESDIR}/haproxy.initd" haproxy || die
35
	newinitd "${FILESDIR}/haproxy.initd" haproxy
36
38
37
	# Don't install useless files
39
	# Don't install useless files
38
	rm examples/build.cfg doc/*gpl.txt
40
	rm examples/build.cfg doc/*gpl.txt
39
41
40
	dodoc CHANGELOG ROADMAP TODO doc/*.txt
42
	dodoc CHANGELOG ROADMAP TODO doc/{configuration,haproxy-en}.txt
41
	docinto examples
43
	doman doc/haproxy.1
42
	dodoc examples/*.cfg
44
45
	if use examples;
46
	then
47
		docinto examples
48
		dodoc examples/*.cfg || die
49
	fi
50
51
	if use vim-syntax;
52
	then
53
		insinto /usr/share/vim/vimfiles/syntax
54
		doins examples/haproxy.vim || die
55
	fi
43
}
56
}
44
57
45
pkg_postinst() {
58
pkg_postinst() {

Return to bug 305261