/[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 - (hide 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 titanofold 1.4 # Copyright 1999-2012 Gentoo Foundation
2 scarabeus 1.1 # Distributed under the terms of the GNU General Public License v2
3 titanofold 1.4 # $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/pgpool2-9999.ebuild,v 1.3 2011/06/19 18:50:43 scarabeus 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 titanofold 1.4 --sysconfdir="${EROOT}/etc/${PN}" \
62 scarabeus 1.3 --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