blob: 43faa9edac91e1d66c45637842865f3204a8e6de (
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
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit autotools-utils
MY_P="${PN/2/-II}-${PV}"
DESCRIPTION="Connection pool server for PostgreSQL"
HOMEPAGE="http://pgpool.projects.postgresql.org/"
SRC_URI="http://pgfoundry.org/frs/download.php/2841/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pam ssl static-libs"
RDEPEND="
dev-db/postgresql-base
pam? ( sys-auth/pambase )
ssl? ( dev-libs/openssl )
"
DEPEND="${DEPEND}
sys-devel/bison"
AUTOTOOLS_IN_SOURCE_BUILD="1"
PATCHES=(
"${FILESDIR}/${PN}-tmpdir.patch"
)
DOCS=(
"NEWS"
"doc/where_to_send_queries.pdf"
)
HTML_DOCS=(
"doc/pgpool-en.html" "doc/pgpool.css"
"doc/tutorial-en.html"
)
S=${WORKDIR}/${MY_P}
src_configure() {
local myeconfargs=(
"--sysconfdir=${EROOT}/etc/${PN}"
"--disable-dependency-tracking"
"--disable-rpath"
$(use_with ssl openssl)
$(use_with pam)
)
autotools-utils_src_configure
}
src_install() {
autotools-utils_src_install
remove_libtool_files all
# move misc data to proper folder
mv "${ED}/usr/share/${PN/2/-II}" "${ED}/usr/share/${PN}" || die
newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
}
|