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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Aug 4 12:57:24 2012 UTC (8 years, 2 months ago) by patrick
Branch: MAIN
Bump

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

1 patrick 1.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-3.1.3.ebuild,v 1.1 2012/04/23 15:00:45 titanofold 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     # Those turkeys didn't update the directory name!'
47     #S=${WORKDIR}/${MY_P}
48     S="${WORKDIR}/pgpool-II-3.0.4"
49    
50     src_prepare() {
51     sed -i \
52     -e 's:/tmp/:/var/run/postgresql:g' \
53     pgpool.conf.sample pool.h || die
54     sed -i \
55     -e '/ACLOCAL_AMFLAGS/ d' \
56     Makefile.am || die
57     base_src_prepare
58     eautoreconf
59     }
60    
61     src_configure() {
62     econf \
63     --sysconfdir="${EROOT}/etc/${PN}" \
64     --disable-rpath \
65     $(use_enable static-libs static) \
66     $(use_with ssl openssl) \
67     $(use_with pam)
68     }
69    
70     src_install() {
71     base_src_install
72     find "${ED}" -name '*.la' -exec rm -f {} +
73     # move misc data to proper folder
74     mv "${ED}/usr/share/${PN/2/-II}" "${ED}/usr/share/${PN}" || die
75    
76     newinitd "${FILESDIR}/${PN}.initd" ${PN}
77     }

  ViewVC Help
Powered by ViewVC 1.1.20