annotate dev-db/pgpool-II/pgpool-II-2.2.1.ebuild @ 129:c6e067be5b97

bump pgpool to 2.2.1
author holger@hoho.dyndns.org
date Mon, 27 Apr 2009 12:32:30 +0200
parents dev-db/pgpool-II/pgpool-II-2.2.ebuild@64fce6b4ea9c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
119
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
1 # Copyright 1999-2007 Gentoo Foundation
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
3
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
4 DESCRIPTION="New generation connection pool server for PostgreSQL"
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
5 HOMEPAGE="http://pgpool.projects.postgresql.org/"
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
6 SRC_URI="http://pgfoundry.org/frs/download.php/2108/${P}.tar.gz"
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
7
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
8 LICENSE="BSD"
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
9 SLOT="0"
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
10 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
11 IUSE=""
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
12
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
13 DEPEND="dev-db/postgresql-base"
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
14
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
15 src_unpack() {
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
16 unpack ${A}
129
c6e067be5b97 bump pgpool to 2.2.1
holger@hoho.dyndns.org
parents: 119
diff changeset
17 S="${WORKDIR}/${PN}-2.2"
119
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
18 cd ${S}
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
19 sed -i -e "/^logdir/s:/tmp:/var/run:g" pgpool.conf.sample || die
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
20 }
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
21
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
22 src_compile() {
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
23 econf --with-pgsql=/usr/include/postgresql || die
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
24 emake || die
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
25 }
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
26
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
27 src_install () {
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
28 einstall || die
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
29 mv ${D}/etc/pcp.conf.sample ${D}/etc/pcp.conf
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
30 mv ${D}/etc/pgpool.conf.sample ${D}/etc/pgpool.conf
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
31 mv ${D}/etc/pool_hba.conf.sample ${D}/etc/pool_hba.conf
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
32 dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
33 newinitd "${FILESDIR}/pgpool-II.init" pgpool-II || die "Inserting init.d-file failed"
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
34 }
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
35