blob: ae1d8b662a245cfa206102a39d1b07e636b22f38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
DESCRIPTION="Connection pool server for PostgreSQL."
HOMEPAGE="http://pgpool.projects.postgresql.org/"
SRC_URI="http://pgfoundry.org/frs/download.php/1254/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
IUSE=""
DEPEND="dev-db/libpq"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd pgpool-3.2
#sed -i -e "/^logdir/s:/tmp:/var/run:g" pgpool.conf.sample || die "sed failed"
}
src_compile() {
pwd
ls
cd work/pgpool-3.2
econf --with-pgsql=/usr/include/postgresql || die "econf failed"
emake || die "emake failed"
}
src_install () {
pwd
ls
cd /var/tmp/portage/dev-db/pgpool-3.2.0/work/pgpool-3.2
einstall || die "einstall failed"
mv -f "${D}/etc/pgpool.conf.sample" "${D}/etc/pgpool.conf"
dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO
exeinto /etc/init.d
newexe "${FILESDIR}/${PN}.init" ${PN}
}
|