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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Mar 1 16:50:57 2011 UTC (9 years, 5 months ago) by scarabeus
Branch: MAIN
Version bump drop broken version.

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

1 # Copyright 1999-2011 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.0.2.ebuild,v 1.1 2011/02/28 17:29:05 scarabeus Exp $
4
5 EAPI=4
6
7 MY_P="${PN/2/-II}-${PV}"
8 inherit autotools-utils autotools
9
10 DESCRIPTION="Connection pool server for PostgreSQL"
11 HOMEPAGE="http://pgpool.projects.postgresql.org/"
12 SRC_URI="http://pgfoundry.org/frs/download.php/2958/${MY_P}.tar.gz"
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="pam ssl static-libs"
17
18 RDEPEND="
19 dev-db/postgresql-base
20 pam? ( sys-auth/pambase )
21 ssl? ( dev-libs/openssl )
22 "
23 DEPEND="${DEPEND}
24 sys-devel/bison"
25
26 AUTOTOOLS_IN_SOURCE_BUILD="1"
27
28 DOCS=(
29 "NEWS"
30 "doc/where_to_send_queries.pdf"
31 )
32 HTML_DOCS=(
33 "doc/pgpool-en.html" "doc/pgpool.css"
34 "doc/tutorial-en.html"
35 )
36
37 S="${WORKDIR}/${MY_P}"
38
39 src_prepare() {
40 sed -i \
41 -e 's:/tmp/:/var/run/postgresql:g' \
42 pgpool.conf.sample pool.h || die
43 sed -i \
44 -e '/ACLOCAL_AMFLAGS/ d' \
45 Makefile.am || die
46 autotools-utils_src_prepare
47 eautoreconf
48 }
49
50 src_configure() {
51 local myeconfargs=(
52 "--sysconfdir=${EROOT}/etc/${PN}"
53 "--disable-dependency-tracking"
54 "--disable-rpath"
55 $(use_with ssl openssl)
56 $(use_with pam)
57 )
58 autotools-utils_src_configure
59 }
60
61 src_install() {
62 autotools-utils_src_install
63 remove_libtool_files all
64 # move misc data to proper folder
65 mv "${ED}/usr/share/${PN/2/-II}" "${ED}/usr/share/${PN}" || die
66
67 newinitd "${FILESDIR}/${PN}.initd" ${PN}
68 }

  ViewVC Help
Powered by ViewVC 1.1.20