annotate dev-db/pgpool-II/pgpool-II-2.2.ebuild @ 120:17e88fb0f6f2

fix pgpool shutdown
author holger@hoho.dyndns.org
date Fri, 20 Mar 2009 12:50:28 +0100
parents 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}
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
17 cd ${S}
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
18 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
19 }
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 src_compile() {
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
22 econf --with-pgsql=/usr/include/postgresql || die
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
23 emake || die
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
24 }
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 src_install () {
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
27 einstall || die
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
28 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
29 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
30 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
31 dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
32 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
33 }
64fce6b4ea9c fixed and updated ebuild for pgpool-II
holger@hoho.dyndns.org
parents:
diff changeset
34