/[gentoo-x86]/dev-db/pgpool2/pgpool2-9999.ebuild
Gentoo

Contents of /dev-db/pgpool2/pgpool2-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Apr 23 15:00:45 2012 UTC (8 years, 3 months ago) by titanofold
Branch: MAIN
Changes since 1.3: +3 -3 lines
Version bump. Fixes bug 410059. Fixed minor syntax.

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/pgpool2-9999.ebuild,v 1.3 2011/06/19 18:50:43 scarabeus Exp $
4
5 EAPI=4
6
7 [[ ${PV} == 9999 ]] && MY_P=${PN/2/-II} || MY_P="${PN/2/-II}-${PV}"
8
9 ECVS_SERVER="cvs.pgfoundry.org:/cvsroot/pgpool"
10 ECVS_MODULE="pgpool-II"
11 [[ ${PV} == 9999 ]] && SCM_ECLASS="cvs"
12 inherit base autotools ${SCM_ECLASS}
13 unset SCM_ECLASS
14
15 DESCRIPTION="Connection pool server for PostgreSQL"
16 HOMEPAGE="http://pgpool.projects.postgresql.org/"
17 [[ ${PV} == 9999 ]] || SRC_URI="http://pgfoundry.org/frs/download.php/3076/${MY_P}.tar.gz"
18
19 LICENSE="BSD"
20 SLOT="0"
21 [[ ${PV} == 9999 ]] || KEYWORDS="~amd64 ~x86"
22 IUSE="pam ssl static-libs"
23
24 RDEPEND="
25 dev-db/postgresql-base
26 pam? ( sys-auth/pambase )
27 ssl? ( dev-libs/openssl )
28 "
29 DEPEND="${DEPEND}
30 sys-devel/bison
31 !!dev-db/pgpool
32 "
33
34 AUTOTOOLS_IN_SOURCE_BUILD="1"
35
36 DOCS=(
37 "NEWS"
38 "doc/where_to_send_queries.pdf"
39 )
40 HTML_DOCS=(
41 "doc/pgpool-en.html"
42 "doc/pgpool.css"
43 "doc/tutorial-en.html"
44 )
45
46 S=${WORKDIR}/${MY_P}
47
48 src_prepare() {
49 sed -i \
50 -e 's:/tmp/:/var/run/postgresql:g' \
51 pgpool.conf.sample pool.h || die
52 sed -i \
53 -e '/ACLOCAL_AMFLAGS/ d' \
54 Makefile.am || die
55 base_src_prepare
56 eautoreconf
57 }
58
59 src_configure() {
60 econf \
61 --sysconfdir="${EROOT}/etc/${PN}" \
62 --disable-rpath \
63 $(use_enable static-libs static) \
64 $(use_with ssl openssl) \
65 $(use_with pam)
66 }
67
68 src_install() {
69 base_src_install
70 find "${ED}" -name '*.la' -exec rm -f {} +
71 # move misc data to proper folder
72 mv "${ED}/usr/share/${PN/2/-II}" "${ED}/usr/share/${PN}" || die
73
74 newinitd "${FILESDIR}/${PN}.initd" ${PN}
75 }

  ViewVC Help
Powered by ViewVC 1.1.20