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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jun 19 18:50:43 2011 UTC (9 years, 1 month ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Sync live and release ebuild. Bump to 3.0.4. Remove older.

(Portage version: 2.2.0_alpha41/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.3-r1.ebuild,v 1.1 2011/04/17 14:00:57 titanofold 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 !!dev-db/pgpool
26 "
27
28 AUTOTOOLS_IN_SOURCE_BUILD="1"
29
30 DOCS=(
31 "NEWS"
32 "doc/where_to_send_queries.pdf"
33 )
34 HTML_DOCS=(
35 "doc/pgpool-en.html" "doc/pgpool.css"
36 "doc/tutorial-en.html"
37 )
38
39 S="${WORKDIR}/${MY_P}"
40
41 src_prepare() {
42 sed -i \
43 -e 's:/tmp/:/var/run/postgresql:g' \
44 pgpool.conf.sample pool.h || die
45 sed -i \
46 -e '/ACLOCAL_AMFLAGS/ d' \
47 Makefile.am || die
48 autotools-utils_src_prepare
49 eautoreconf
50 }
51
52 src_configure() {
53 local myeconfargs=(
54 "--sysconfdir=${EROOT}/etc/${PN}"
55 "--disable-dependency-tracking"
56 "--disable-rpath"
57 $(use_with ssl openssl)
58 $(use_with pam)
59 )
60 autotools-utils_src_configure
61 }
62
63 src_install() {
64 autotools-utils_src_install
65 remove_libtool_files all
66 # move misc data to proper folder
67 mv "${ED}/usr/share/${PN/2/-II}" "${ED}/usr/share/${PN}" || die
68
69 newinitd "${FILESDIR}/${PN}.initd" ${PN}
70 }

  ViewVC Help
Powered by ViewVC 1.1.20