summaryrefslogtreecommitdiff
blob: 7c1d0f9fe3c2433175861482ab7d6ea8272b6cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/dbbalancer/dbbalancer-0.4.4.ebuild,v 1.11 2004/06/24 21:51:56 agriffis Exp $

DESCRIPTION="Load balancing multithreaded PostgreSQL connection pool.
Also has a replication mode to keep in sync the load balanced backend
servers."
HOMEPAGE="http://sourceforge.net/projects/dbbalancer"
SRC_URI="mirror://sourceforge/dbbalancer/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND=">=dev-db/postgresql-7.2.3-r1
	>=dev-libs/ace-5.2.4-r1
	>=app-text/openjade-1.3.1-r5
	=app-text/docbook-dsssl-stylesheets-1.77"

S="${WORKDIR}/DBBalancer"

src_unpack() {
	unpack ${A}
	cd ${S}
	patch ./Makefile.in ${FILESDIR}/${P}-Makefile.in-gentoo.diff
	patch ./src/tests/postgres_cc/pgtest.cc ${FILESDIR}/${P}-pgtest.cc-gentoo.diff
	patch ./docs/manual/chapter2.sgml ${FILESDIR}/${P}-chapter2.sgml-gentoo.diff
	patch ./docs/manual/chapter6.sgml ${FILESDIR}/${P}-chapter6.sgml-gentoo.diff
}

#		--with-pq++=/usr \
src_compile() {
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--with-ACE=/usr \
		--with-pq=/usr \
		--with-pq-include=/usr/include/postgresql \
		--with-jade=/usr/bin/jade \
		--with-docbook=/usr/share/sgml/docbook/dsssl-stylesheets-1.77 \
			|| die "./configure failed"
	emake || die "emake failed"
	export SANDBOX_DISABLED=1
}

src_install() {
	dosbin ${WORKDIR}/DBBalancer/dbbalancerd
}