/[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.3 - (hide annotations) (download)
Sun Jun 19 18:50:43 2011 UTC (9 years, 1 month ago) by scarabeus
Branch: MAIN
Changes since 1.2: +19 -15 lines
Sync live and release ebuild. Bump to 3.0.4. Remove older.

(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)

1 scarabeus 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 scarabeus 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/pgpool2-9999.ebuild,v 1.2 2011/04/17 14:00:57 titanofold Exp $
4 scarabeus 1.1
5     EAPI=4
6    
7 scarabeus 1.3 [[ ${PV} == 9999 ]] && MY_P=${PN/2/-II} || MY_P="${PN/2/-II}-${PV}"
8    
9 scarabeus 1.1 ECVS_SERVER="cvs.pgfoundry.org:/cvsroot/pgpool"
10     ECVS_MODULE="pgpool-II"
11 scarabeus 1.3 [[ ${PV} == 9999 ]] && SCM_ECLASS="cvs"
12     inherit base autotools ${SCM_ECLASS}
13     unset SCM_ECLASS
14 scarabeus 1.1
15     DESCRIPTION="Connection pool server for PostgreSQL"
16     HOMEPAGE="http://pgpool.projects.postgresql.org/"
17 scarabeus 1.3 [[ ${PV} == 9999 ]] || SRC_URI="http://pgfoundry.org/frs/download.php/3076/${MY_P}.tar.gz"
18 scarabeus 1.1
19     LICENSE="BSD"
20     SLOT="0"
21 scarabeus 1.3 [[ ${PV} == 9999 ]] || KEYWORDS="~amd64 ~x86"
22 scarabeus 1.1 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 titanofold 1.2 sys-devel/bison
31     !!dev-db/pgpool
32     "
33 scarabeus 1.1
34     AUTOTOOLS_IN_SOURCE_BUILD="1"
35    
36     DOCS=(
37     "NEWS"
38     "doc/where_to_send_queries.pdf"
39     )
40     HTML_DOCS=(
41 scarabeus 1.3 "doc/pgpool-en.html"
42     "doc/pgpool.css"
43 scarabeus 1.1 "doc/tutorial-en.html"
44     )
45    
46 scarabeus 1.3 S=${WORKDIR}/${MY_P}
47 scarabeus 1.1
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 scarabeus 1.3 base_src_prepare
56 scarabeus 1.1 eautoreconf
57     }
58    
59     src_configure() {
60 scarabeus 1.3 econf \
61     --sysconfdir=${EROOT}/etc/${PN} \
62     --disable-rpath \
63     $(use_enable static-libs static) \
64     $(use_with ssl openssl) \
65 scarabeus 1.1 $(use_with pam)
66     }
67    
68     src_install() {
69 scarabeus 1.3 base_src_install
70     find "${ED}" -name '*.la' -exec rm -f {} +
71 scarabeus 1.1 # 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