/[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.1 - (hide annotations) (download)
Wed Feb 9 08:18:38 2011 UTC (9 years, 6 months ago) by scarabeus
Branch: MAIN
Add live ebuild for testing.

(Portage version: 2.2.0_alpha22/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     # $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/pgpool2-3.0.1.ebuild,v 1.1 2011/01/26 16:49:09 scarabeus Exp $
4    
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     sys-devel/bison"
26    
27     AUTOTOOLS_IN_SOURCE_BUILD="1"
28    
29     DOCS=(
30     "NEWS"
31     "doc/where_to_send_queries.pdf"
32     )
33     HTML_DOCS=(
34     "doc/pgpool-en.html" "doc/pgpool.css"
35     "doc/tutorial-en.html"
36     )
37    
38     S="${WORKDIR}/pgpool-II/"
39    
40     src_prepare() {
41     sed -i \
42     -e 's:/tmp/:/var/run/postgresql:g' \
43     pgpool.conf.sample pool.h || die
44     sed -i \
45     -e '/ACLOCAL_AMFLAGS/ d' \
46     Makefile.am || die
47     autotools-utils_src_prepare
48     eautoreconf
49     }
50    
51     src_configure() {
52     local myeconfargs=(
53     "--sysconfdir=${EROOT}/etc/${PN}"
54     "--disable-dependency-tracking"
55     "--disable-rpath"
56     $(use_with ssl openssl)
57     $(use_with pam)
58     )
59     autotools-utils_src_configure
60     }
61    
62     src_install() {
63     autotools-utils_src_install
64     remove_libtool_files all
65     # move misc data to proper folder
66     mv "${ED}/usr/share/${PN/2/-II}" "${ED}/usr/share/${PN}" || die
67    
68     newinitd "${FILESDIR}/${PN}.initd" ${PN}
69     }

  ViewVC Help
Powered by ViewVC 1.1.20