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

Diff of /dev-db/pgpool2/pgpool2-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20