/[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.2 - (hide annotations) (download)
Sun Apr 17 14:00:57 2011 UTC (9 years, 3 months ago) by titanofold
Branch: MAIN
Changes since 1.1: +4 -2 lines
Fixes bug 356035

(Portage version: 2.1.9.42/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20