summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-02-09 08:18:38 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2011-02-09 08:18:38 +0000
commitdb4d9a00d2ab6ecd18561f486e4d227cbcbcf37e (patch)
treef6e57404e6006e4da219335db3e26ab2815aa899 /dev-db/pgpool2
parentx86 stable wrt bug #353856 (diff)
downloadgentoo-2-db4d9a00d2ab6ecd18561f486e4d227cbcbcf37e.tar.gz
gentoo-2-db4d9a00d2ab6ecd18561f486e4d227cbcbcf37e.tar.bz2
gentoo-2-db4d9a00d2ab6ecd18561f486e4d227cbcbcf37e.zip
Add live ebuild for testing.
(Portage version: 2.2.0_alpha22/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/pgpool2')
-rw-r--r--dev-db/pgpool2/ChangeLog7
-rw-r--r--dev-db/pgpool2/pgpool2-9999.ebuild69
2 files changed, 75 insertions, 1 deletions
diff --git a/dev-db/pgpool2/ChangeLog b/dev-db/pgpool2/ChangeLog
index 179e1ea30aed..78164cbb38a6 100644
--- a/dev-db/pgpool2/ChangeLog
+++ b/dev-db/pgpool2/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-db/pgpool2
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/ChangeLog,v 1.1 2011/01/26 16:49:09 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/ChangeLog,v 1.2 2011/02/09 08:18:38 scarabeus Exp $
+
+*pgpool2-9999 (09 Feb 2011)
+
+ 09 Feb 2011; Tomáš Chvátal <scarabeus@gentoo.org> +pgpool2-9999.ebuild:
+ Add live ebuild for testing.
*pgpool2-3.0.1 (26 Jan 2011)
diff --git a/dev-db/pgpool2/pgpool2-9999.ebuild b/dev-db/pgpool2/pgpool2-9999.ebuild
new file mode 100644
index 000000000000..65a5ff83cc0a
--- /dev/null
+++ b/dev-db/pgpool2/pgpool2-9999.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/pgpool2-9999.ebuild,v 1.1 2011/02/09 08:18:38 scarabeus Exp $
+
+EAPI=4
+
+ECVS_SERVER="cvs.pgfoundry.org:/cvsroot/pgpool"
+ECVS_MODULE="pgpool-II"
+inherit autotools-utils cvs autotools
+
+DESCRIPTION="Connection pool server for PostgreSQL"
+HOMEPAGE="http://pgpool.projects.postgresql.org/"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE="pam ssl static-libs"
+
+RDEPEND="
+ dev-db/postgresql-base
+ pam? ( sys-auth/pambase )
+ ssl? ( dev-libs/openssl )
+"
+DEPEND="${DEPEND}
+ sys-devel/bison"
+
+AUTOTOOLS_IN_SOURCE_BUILD="1"
+
+DOCS=(
+ "NEWS"
+ "doc/where_to_send_queries.pdf"
+)
+HTML_DOCS=(
+ "doc/pgpool-en.html" "doc/pgpool.css"
+ "doc/tutorial-en.html"
+)
+
+S="${WORKDIR}/pgpool-II/"
+
+src_prepare() {
+ sed -i \
+ -e 's:/tmp/:/var/run/postgresql:g' \
+ pgpool.conf.sample pool.h || die
+ sed -i \
+ -e '/ACLOCAL_AMFLAGS/ d' \
+ Makefile.am || die
+ autotools-utils_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ "--sysconfdir=${EROOT}/etc/${PN}"
+ "--disable-dependency-tracking"
+ "--disable-rpath"
+ $(use_with ssl openssl)
+ $(use_with pam)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ remove_libtool_files all
+ # move misc data to proper folder
+ mv "${ED}/usr/share/${PN/2/-II}" "${ED}/usr/share/${PN}" || die
+
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+}