summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-11-01 06:01:38 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-11-01 06:01:38 +0000
commit007e5e24c35a0c9e6d977a2e392d38976bf486f5 (patch)
tree11aebbfc64383d9f26779220b033ae2687d2f3e8
parentInitial ebuild by me. (diff)
downloadhistorical-007e5e24c35a0c9e6d977a2e392d38976bf486f5.tar.gz
historical-007e5e24c35a0c9e6d977a2e392d38976bf486f5.tar.bz2
historical-007e5e24c35a0c9e6d977a2e392d38976bf486f5.zip
Bump
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64
-rw-r--r--dev-db/pgpool2/ChangeLog8
-rw-r--r--dev-db/pgpool2/Manifest14
-rw-r--r--dev-db/pgpool2/pgpool2-3.2.1.ebuild113
3 files changed, 122 insertions, 13 deletions
diff --git a/dev-db/pgpool2/ChangeLog b/dev-db/pgpool2/ChangeLog
index 9ec68d7d77e8..092a4f55a3c0 100644
--- a/dev-db/pgpool2/ChangeLog
+++ b/dev-db/pgpool2/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-db/pgpool2
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/ChangeLog,v 1.11 2012/08/14 19:50:17 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/ChangeLog,v 1.12 2012/11/01 06:01:25 patrick Exp $
+
+*pgpool2-3.2.1 (01 Nov 2012)
+
+ 01 Nov 2012; Patrick Lauer <patrick@gentoo.org> +pgpool2-3.2.1.ebuild:
+ Bump
*pgpool2-3.2.0-r1 (14 Aug 2012)
@@ -66,4 +71,3 @@
+files/3.0.1-fix_md5_malloc.patch, +files/pgpool2-tmpdir.patch,
+pgpool2-3.0.1.ebuild, +files/pgpool2.initd, +metadata.xml:
Initial commit. Fixes bug #196300. Ebuild made thanks to ccss.cz.
-
diff --git a/dev-db/pgpool2/Manifest b/dev-db/pgpool2/Manifest
index 34b8a410ef99..46b86d78501c 100644
--- a/dev-db/pgpool2/Manifest
+++ b/dev-db/pgpool2/Manifest
@@ -1,18 +1,10 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX pgpool2.confd 649 SHA256 542007a1f5fc377ce921316913526fe08a5b6913d533359a3ec3317b0075b60d SHA512 5f9a4fa1e68161049ad767d64c764fbf70e84a4239e58119455a45a7e45d86ea2d19b617147cf891053e0dad4420c84704d67015334c7d41bad05b260d70e910 WHIRLPOOL 0b28a1731bed4a316f33c2c0f8d95567093b6685e43912a2de05802248d3f6a7044bf391efa1f01a320e978f45764b4c7569f0e5aa73be8291abad264d43964c
AUX pgpool2.initd 2008 SHA256 66ff402aadb09d3876fac5cf9faafce299429b8f5f13ae89ddf2b9d7ebe873fd SHA512 82d6a93f173cd2796828aeb16bc4fca8c329ce89082bc7ed052efdf5a2b74eccb804851ff89b9ef067150cc2773169f76a3f826fe50d34dc5953d90968e42897 WHIRLPOOL b867739bc23076145d0cb69840fe7252cd00d990c22c9f1787e6f8902f8a8da366827830d92722539cdbbdf54b5ab1f1e6e852f22baced7194d1010e5f6eafb3
AUX pgpool_run_paths.patch 7443 SHA256 c75abd28e48c8895e7c00eab800b8497f8b64d55c7f192c2343aab1eb3fee31c SHA512 227716daf9d93d1ca0c749faedca3d1c9e35b64eebe4c61db2e37f94ed2dcc2e97e34118d853b3dbc848e395329c05c026f819a9e5350b4f0e32b269932d68b1 WHIRLPOOL 822b11df3b7940f8557d51f93967e892b7d66ee9cec2c52a62a0ba2848148a52edfab13e0f2d29e24e76328a69be0b11156d64503c22e576dc4fa033cc700e76
DIST pgpool-II-3.2.0.tar.gz 1599391 SHA256 2e41ce78154fc7e9e13eb34f0b60e352d6183de08c4040bea9fbdd914e3e28e0 SHA512 9c9d56bed525c3d8508cde32cd6ac8b13df6dd28366b90157c46c2900eef93fa90254de49b1b574f83fe76525f27a2e8c23d7dcec02cad566aaeff62a6b3282d WHIRLPOOL 25e8f086ea48300affe7195ffcbeee1faa8cde344a99d6caccb0041db04e8040bd2750148c1fde94342b4c544c328f9f97d0b1cf9394443cf37a0d003ace0a90
+DIST pgpool-II-3.2.1.tar.gz 1605959 SHA256 015284c4d83cf8367580fb58469e20330330204d914d00df2fe9ee5a57b3055b SHA512 4b7b947e8d8bdbeabf669323f37f05b38a48a1c397b54875547e85e66e4ea9ec13c6bdbe8d5b996b96db4f85640ca0d2cbc62e74ba0fb56d989d916104a0869f WHIRLPOOL b3bff26e44bb7910e2e74e1e2ab377c9e3e868b509cc958133be26b2bc42d1437cd7292506840d0d1f137d42ebd66f751fbab6f5b47508af94ca363df9cd5722
EBUILD pgpool2-3.2.0-r1.ebuild 2867 SHA256 c509d4d62b40f483c35f58e1406ec53914095c2639b62dc9d805603ab3613e95 SHA512 5604054096ae13406e9e8c962ae3d44ec4a04ddf0994cedbe4b430f115e58d13f84864039fe285235090f420d2fc57278943d39ed74f1ad66d6d2569d12b84d3 WHIRLPOOL 30e00ef119a5331bc5f1d777c6c1195955f602c3cd99f41c4b92b852b521d3b566432f6c0b5f50d24d8c18ea046b525611561482eb0355e4e38c043b824feeae
+EBUILD pgpool2-3.2.1.ebuild 2861 SHA256 53cc41b4e2b3da51cfdf78c4450f8aa04c6d93f1d4aa4b2e7a1ad3092025855e SHA512 10b8a57c1e84fea80586e69f440a6d380bbca2d1f5572f856074ea522b4c57178a4cf28368cfef304a07b244d85dcd33e824ba6fb94e1158ca8a4fd3766616d8 WHIRLPOOL ea36f8a353c4ce461d7f14050285fe13f46ef5694418bc9e1a31c482daf533bc71b6b9d6098abb325a275f31ba392c4c8f1d81269c2ba6cf84d57954574580c6
EBUILD pgpool2-9999.ebuild 1671 SHA256 df98116bdec1057d7f812a10e8280f3611516c380a68116306592c8311388363 SHA512 ec90f1f3fbc2b373696db051b872dbdc1a94ec37ee9cc28c008ce923f8a752dc168af8667d68463eaf663a7814831139f2bf14dbd470ccf53b00c6e29afcc212 WHIRLPOOL d85bdee3ce42900f1ce556c745239846a21764b0b1c83b6dff42b522b0fd075bcfe2a9e76ed3c9087fa538efefb9ffab0ad6d84157bd164b13ad15148f6842e7
-MISC ChangeLog 2463 SHA256 37ce4957333e5f27e1af12ad39311e941b01b2d2fead650c463e63f6507b5150 SHA512 df7bf447c88aa67539b13169130bffe5a75c72c76c36e479eaad58fe0024eb384b17806d12cb4ad83712c9d03f36184eb6cb5db09f79115427224125095bca62 WHIRLPOOL 862986bfd9dce934283d3c6e2c6a4c5accaae678f78a711d760703e5ae3fa0f913f3aedc72da2d46703f6f388b5526a4ffa1f473a340e68bf896c1e29469a224
+MISC ChangeLog 2570 SHA256 84f181e73f10d423e0d7b28a7474b696d595a5af52a8e28b84d4b80771e57af1 SHA512 5c0425ffc562833b99a2eed7dcb5a94c4bd904b527e636a5418d7eae77769736cea290e6499b9af2bd2740472189286866d0be1753c87950f95cc1126ceb1d6c WHIRLPOOL ce20bb43acc3774f8f6a0e29c22272e746a8106786ad62afe07a014cbd5a3868c1bf36c972a2ab1fc7db39285b4b7e2da91f9860e34a5938701bfcdd6a7cb7bc
MISC metadata.xml 259 SHA256 f42aac06ff89f92bbcda31eadabefeed1a3d697f69ab8ae80341bcbf2e3fd530 SHA512 d67ad6e98b318a4eb2caf657e7d326c17afb7ddc841bd415388fbd196e274d68cfb6d362da3f39e2d2f81352fbfa66e8b805c29326024236d4c4f69b87124231 WHIRLPOOL 05314d28fa00f4c699d1d6535810322af91c192d013105f53bc5ebeafa99c182e8501d693efe8c12a1ede11d244f7627656c643a72902412f468f465e39a6c98
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iF4EAREIAAYFAlAqrBwACgkQVxOqA9G7/aC27gEAimxFkUFlIfSDN+LOxv/QIEAh
-FQagw8L1n7bWTKKbq0kA/1jIj10lLK4UHv6uNP24rfC3ovlcpUnvUBe4RcIFm/HE
-=8suj
------END PGP SIGNATURE-----
diff --git a/dev-db/pgpool2/pgpool2-3.2.1.ebuild b/dev-db/pgpool2/pgpool2-3.2.1.ebuild
new file mode 100644
index 000000000000..8f11ebad1cdd
--- /dev/null
+++ b/dev-db/pgpool2/pgpool2-3.2.1.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/pgpool2-3.2.1.ebuild,v 1.1 2012/11/01 06:01:25 patrick Exp $
+
+EAPI=4
+
+[[ ${PV} == 9999 ]] && MY_P=${PN/2/-II} || MY_P="${PN/2/-II}-${PV}"
+
+ECVS_SERVER="cvs.pgfoundry.org:/cvsroot/pgpool"
+ECVS_MODULE="pgpool-II"
+[[ ${PV} == 9999 ]] && SCM_ECLASS="cvs"
+inherit base autotools ${SCM_ECLASS}
+unset SCM_ECLASS
+
+DESCRIPTION="Connection pool server for PostgreSQL"
+HOMEPAGE="http://www.pgpool.net/"
+[[ ${PV} == 9999 ]] || SRC_URI="http://www.pgpool.net/download.php?f=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+[[ ${PV} == 9999 ]] || KEYWORDS="~amd64 ~x86"
+IUSE="memcached pam ssl static-libs"
+
+RDEPEND="
+ dev-db/postgresql-base
+ memcached? ( dev-libs/libmemcached )
+ pam? ( sys-auth/pambase )
+ ssl? ( dev-libs/openssl )
+"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ !!dev-db/pgpool
+"
+
+AUTOTOOLS_IN_SOURCE_BUILD="1"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ enewgroup postgres 70
+ enewuser pgpool -1 -1 -1 postgres
+
+ # We need the postgres user as well so we can set the proper
+ # permissions on the sockets without getting into fights with
+ # PostgreSQL's initialization scripts.
+ enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/pgpool_run_paths.patch"
+
+ local pg_config_manual="$(pg_config --includedir)/pg_config_manual.h"
+ local pgsql_socket_dir=$(grep DEFAULT_PGSOCKET_DIR "${pg_config_manual}" | \
+ sed 's|.*\"\(.*\)\"|\1|g')
+ local pgpool_socket_dir="$(dirname $pgsql_socket_dir)/pgpool"
+
+ sed "s|@PGSQL_SOCKETDIR@|${pgsql_socket_dir}|g" \
+ -i *.conf.sample* pool.h || die
+
+ sed "s|@PGPOOL_SOCKETDIR@|${pgpool_socket_dir}|g" \
+ -i *.conf.sample* pool.h || die
+}
+
+src_configure() {
+ local myconf
+ use memcached && \
+ myconf="--with-memcached=\"${EROOT%/}/usr/include/libmemcached\""
+
+ econf \
+ --disable-rpath \
+ --sysconfdir="${EROOT%/}/etc/${PN}" \
+ $(use_with pam) \
+ $(use_with ssl openssl) \
+ $(use_enable static-libs static) \
+ ${myconf}
+}
+
+src_compile() {
+ emake
+
+ cd sql
+ emake
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ cd sql
+ emake DESTDIR="${D}" install
+ cd "${S}"
+
+ # `contrib' moved to `extension' with PostgreSQL 9.1
+ local pgslot=$(postgresql-config show)
+ if [[ ${pgslot//.} > 90 ]] ; then
+ cd "${ED%/}$(pg_config --sharedir)"
+ mv contrib extension || die
+ cd "${S}"
+ fi
+
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+
+ # Documentation
+ dodoc NEWS TODO doc/where_to_send_queries.{pdf,odg}
+ dohtml -r doc
+
+ # Examples and extras
+ insinto "/usr/share/${PN}"
+ doins doc/{pgpool_remote_start,basebackup.sh,recovery.conf.sample}
+ mv "${ED%/}/usr/share/${PN/2/-II}" "${ED%/}/usr/share/${PN}" || die
+
+ # One more thing: Evil la files!
+ find "${ED}" -name '*.la' -exec rm -f {} +
+}