summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2013-08-26 05:28:44 +0000
committerPatrick Lauer <patrick@gentoo.org>2013-08-26 05:28:44 +0000
commit2b8cd7acb16b95798fc84fd0d994b4d5d233f656 (patch)
tree239037a9aac9a578f3c13774f665b3aaf0ba81e5 /dev-db
parentFix version set wrong in tarball. (diff)
downloadhistorical-2b8cd7acb16b95798fc84fd0d994b4d5d233f656.tar.gz
historical-2b8cd7acb16b95798fc84fd0d994b4d5d233f656.tar.bz2
historical-2b8cd7acb16b95798fc84fd0d994b4d5d233f656.zip
Bump
Package-Manager: portage-2.2.1/cvs/Linux x86_64
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/pgpool2/ChangeLog7
-rw-r--r--dev-db/pgpool2/Manifest4
-rw-r--r--dev-db/pgpool2/pgpool2-3.2.5.ebuild107
-rw-r--r--dev-db/slony1/ChangeLog7
-rw-r--r--dev-db/slony1/Manifest15
-rw-r--r--dev-db/slony1/slony1-2.1.4.ebuild74
6 files changed, 200 insertions, 14 deletions
diff --git a/dev-db/pgpool2/ChangeLog b/dev-db/pgpool2/ChangeLog
index 1780c67cc4e6..945968953be5 100644
--- a/dev-db/pgpool2/ChangeLog
+++ b/dev-db/pgpool2/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-db/pgpool2
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/ChangeLog,v 1.19 2013/05/10 08:21:43 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/ChangeLog,v 1.20 2013/08/26 05:28:36 patrick Exp $
+
+*pgpool2-3.2.5 (26 Aug 2013)
+
+ 26 Aug 2013; Patrick Lauer <patrick@gentoo.org> +pgpool2-3.2.5.ebuild:
+ Bump
10 May 2013; Patrick Lauer <patrick@gentoo.org> pgpool2-3.2.3.ebuild,
pgpool2-3.2.4.ebuild, pgpool2-9999.ebuild:
diff --git a/dev-db/pgpool2/Manifest b/dev-db/pgpool2/Manifest
index 427a50f650db..54647795d86e 100644
--- a/dev-db/pgpool2/Manifest
+++ b/dev-db/pgpool2/Manifest
@@ -3,8 +3,10 @@ AUX pgpool2.initd 2286 SHA256 8fe6a5d284b619050c5dc075428003acf3154fe9f1abf8cdde
AUX pgpool_run_paths.patch 7443 SHA256 c75abd28e48c8895e7c00eab800b8497f8b64d55c7f192c2343aab1eb3fee31c SHA512 227716daf9d93d1ca0c749faedca3d1c9e35b64eebe4c61db2e37f94ed2dcc2e97e34118d853b3dbc848e395329c05c026f819a9e5350b4f0e32b269932d68b1 WHIRLPOOL 822b11df3b7940f8557d51f93967e892b7d66ee9cec2c52a62a0ba2848148a52edfab13e0f2d29e24e76328a69be0b11156d64503c22e576dc4fa033cc700e76
DIST pgpool-II-3.2.3.tar.gz 1563129 SHA256 cb3b62957afe506e4b420bdc0b959f829d62c708fdce1a17d99a8521c586a5e5 SHA512 55748db315bb005efea173586845c0924eb1f4e5597d55a997446b6e9e01219575698b1b0d8de376e3aebc0cf497adbac19429908002f124aafee7e7bd269e01 WHIRLPOOL 0d7620d643924bb9347208abda27a15b62181756bdadea3ba823df8539f8541c6ad136f7301e8c1fd16a3a27a81e512979103e8b8202115b234ef7e4d46f1910
DIST pgpool-II-3.2.4.tar.gz 1627417 SHA256 c4ebc6fe1ff0936bcfdfcd0b23e07b956bab24b7b5ee744fc9347c091f08a818 SHA512 fd05bffac69ee4a8c51ef87a04ccc02027422780474dd39ffbd966570a1deaef0d432fc58c92d62eed863740f5f482106df1f4df69f71aec5df0a2619a65fc96 WHIRLPOOL 1a70a7ac7cd7481177b2153f95dad80aac155030850dc1d930497f2fa50b29dff16c63a53eeb9c4d643e6b28762a240e58af408cfa980376c646a1514fcc3041
+DIST pgpool-II-3.2.5.tar.gz 1643267 SHA256 aecac952fd3d292584c9aa359d72f89b144c29f45c9f848cb030e46215a814f7 SHA512 c6dd033462de7f56724f7416fca3ee3e25835f113604fb03b97deee2e3ab25a07cfd9aea33ec36211aa0ec41c2bcea31ca9befe0cfe8f6389a39c2f6495388b6 WHIRLPOOL 5db077d51c5aa8692ba23c0f5ad3b3291c42448724cf633db13850d9b22df256c2aedc15b95fe74a33e486e09f4cc6a37daed0d39becff38acd40fa52b78ab8d
EBUILD pgpool2-3.2.3.ebuild 2607 SHA256 7aced5863f0cbaf4bd1eeb9ee73d54377238c7231e1ab6c5a7d23b55ce3946a1 SHA512 ec5c3f49dfa5c8e8029d53365b5a0c16a042c1a46a0943046988005884c2512d8f1a0f2c1e5613a976e5bf0ae50b6ea67c59d3094cf3e8fe0fe31620226c12ec WHIRLPOOL 92a341b232fe41a6319d92a341602dd432e692283679c867ffba835daa16db18d9af06f8c0c236920a8db6a8703b97dcfe098fc57860c12aa53dd22b64862200
EBUILD pgpool2-3.2.4.ebuild 2607 SHA256 39043384d795be9f54af6a933275e2f2f1d59dfb0ff89db4fe8b61044819f7d6 SHA512 f1b4ac9d943a79442135a7a98b7519db80e8a634465754682003b7a42d2302d84bec166460cc52ccf1d75328600e34ff8a4bae82dd753e779d5a05cb75546647 WHIRLPOOL 0aac1e41564ccbfca717269e1fa765698ce0d892dfdc269bef7ae1dadaa581f330bc7d5889252ab641544c79e5959e704d6a5be36dd286f496223e6bf9961f0d
+EBUILD pgpool2-3.2.5.ebuild 2607 SHA256 37fa6a951c88a85f40aaa706f0b773e6b44263f44ed74387d86c9940fb99657e SHA512 5395a2afe8cf28a938297e9aaa9e0d55e2e3b7eeef02aac57fba289c48be0a7b5cd13d3296cfd0dc1b0afdfb193baf22a62a25831453f0a86008011a1878e531 WHIRLPOOL 4939b038ddefa832ee578ccc25e9d4887bbe40afe349fde4fa7d1e7c10356a0a7be6c3521740e89406eca1965e9b1d6d1bfecba9031dee24bcf5fa93dea37d04
EBUILD pgpool2-9999.ebuild 2948 SHA256 70a5cd2ce56e37d975cb402bbb76f4d5cf855db238fc5468a898855a6f83bfff SHA512 da40c5ced9a7cbbb7d5af1bbcfc5273d4315d9ca00b6595920de9f979703d6758f6417410557d4f7d0f315bced452b2c1dbbce592f00cea3b32e8c5453b4b9e8 WHIRLPOOL 2bc3897c42c5a54540113525005687327f8fdb4609340a8f94bc17caeb9fe425782dac8c52b2f184abd136a0911323ede50f024fb595885f206b9c17b90d1242
-MISC ChangeLog 3615 SHA256 6e6f200a51058198ec7cd96dfde13e9a9ab3fb34b115843bc35b8cb1b259a015 SHA512 7faad5cbf1e963d694c1f4fb9ca34051755958d96c5a8411e8922f196410006768920467131c2cb5b1ec56c3851b09b4c259b3d5252bdb44228d8544227c8d77 WHIRLPOOL 7577459e8a39f963e052a5e7551ab825d289ad50c296e59b76dc5c4b45d36726f362da7eb46fa163b55edd5acbb2300db78d291fb26adef062c125341bafda0b
+MISC ChangeLog 3726 SHA256 fbd824d3fd384b275ad5b43b1f84febebfc806add16a8a4260f30b4b9ec2a270 SHA512 7a30d1e2e5016b99e410673a40d655fc7d51cd6c26d748cb9723e54042451445f315633fc6c9ee522b898ec8e291ae028b29681d30ad5aa9933040859077a1d4 WHIRLPOOL 4ec2f8e4deda7d3a47c3c186b6bd60164aa257374e5b25d9a79b285badad84bcb7dc569e2e19b2244aa00062a307683ba41f62d202dca4c30651e83cc29dfa09
MISC metadata.xml 259 SHA256 f42aac06ff89f92bbcda31eadabefeed1a3d697f69ab8ae80341bcbf2e3fd530 SHA512 d67ad6e98b318a4eb2caf657e7d326c17afb7ddc841bd415388fbd196e274d68cfb6d362da3f39e2d2f81352fbfa66e8b805c29326024236d4c4f69b87124231 WHIRLPOOL 05314d28fa00f4c699d1d6535810322af91c192d013105f53bc5ebeafa99c182e8501d693efe8c12a1ede11d244f7627656c643a72902412f468f465e39a6c98
diff --git a/dev-db/pgpool2/pgpool2-3.2.5.ebuild b/dev-db/pgpool2/pgpool2-3.2.5.ebuild
new file mode 100644
index 000000000000..a81f185c06f5
--- /dev/null
+++ b/dev-db/pgpool2/pgpool2-3.2.5.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/pgpool2-3.2.5.ebuild,v 1.1 2013/08/26 05:28:36 patrick Exp $
+
+EAPI=4
+
+MY_P="${PN/2/-II}-${PV}"
+
+inherit base user
+
+DESCRIPTION="Connection pool server for PostgreSQL"
+HOMEPAGE="http://www.pgpool.net/"
+SRC_URI="http://www.pgpool.net/download.php?f=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+
+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
+"
+
+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\""
+ use pam && myconf+=' --with-pam'
+
+ econf \
+ --disable-rpath \
+ --sysconfdir="${EROOT%/}/etc/${PN}" \
+ $(use_with ssl openssl) \
+ $(use_enable static-libs static) \
+ ${myconf}
+}
+
+src_compile() {
+ emake
+
+ emake -C sql
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ emake DESTDIR="${D}" -C sql 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 {} +
+}
diff --git a/dev-db/slony1/ChangeLog b/dev-db/slony1/ChangeLog
index 579d9e10adff..0dc6e59b4637 100644
--- a/dev-db/slony1/ChangeLog
+++ b/dev-db/slony1/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-db/slony1
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/ChangeLog,v 1.44 2013/06/07 00:39:59 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/ChangeLog,v 1.45 2013/08/26 05:27:35 patrick Exp $
+
+*slony1-2.1.4 (26 Aug 2013)
+
+ 26 Aug 2013; Patrick Lauer <patrick@gentoo.org> +slony1-2.1.4.ebuild:
+ Bump
07 Jun 2013; Aaron W. Swenson <titanofold@gentoo.org> -slony1-2.1.1.ebuild,
-slony1-2.1.2.ebuild:
diff --git a/dev-db/slony1/Manifest b/dev-db/slony1/Manifest
index 0df08f4da0f9..bf7df0a4735f 100644
--- a/dev-db/slony1/Manifest
+++ b/dev-db/slony1/Manifest
@@ -1,19 +1,12 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX slony1-2.1.1-ldflags.patch 974 SHA256 a412b1d77fcb715aa0840b5ea7063363eb14a1a6cba850d7852914f9eb3d52b8 SHA512 0b5d317dc6d198f314000bf6a9de2936f0ad7512eaefc65a3c88cb549db19def46b2ec673fd33602f80732aa1fcbb6ea5b8b6bf4ab085ce221f4d472651a486e WHIRLPOOL 5b814eb7d9612ba98a55cca2489987fda32bb43d31247ca796d63aebfb5df4b826eabe08cf6e8e5ad626513dd8bce933d694b08c70c68a6da7ae38d6f030fa9a
AUX slony1-2.1.2-ldflags.patch 467 SHA256 92b688972b183656d9b1c2f0a85873727e52c70c1be7d7bf49e3b566f6ffd935 SHA512 202570d6ac0563789a20cdb529d5d1e0f9a8bade99ae30d9aa8f61e76db78d56b2617ce414fcae31b4a2b9518e8f21cf7161accee93a4dd4681397f88117426c WHIRLPOOL 3b598aca98744bc2082948689bfe7eb2063e369a97be1187ffade172e20e8f38547dad9a5cd4c6d6fe4d96d1ddc202ae8dca4324fe48a5e2877a0bcf2bb99baf
AUX slony1.conf 355 SHA256 f722568539e1dbb3a86aa65a2c44582780841823dbc6957ff9861a48ec38a0e3 SHA512 769c47812dbc27b2d688e262b9287cbf975fbb5bbcbed8ccf65781edc1437e13e4be5c923f3b77b47fc81589bb429018489bec5235d03361e1032b356ad638ae WHIRLPOOL 25e0dd3924075f35fa6abaa51172076f3ab2480b8abc98229fb10f66331a5f555dcf753dfa9d45c445a565093145e63a3a27cdc92b82a48b5f271a44196ea5ef
AUX slony1.init 720 SHA256 e25c1e302d6e578c56ae88a7c24cdb1042f7dc986f00565b5e7d933d8224e08a SHA512 5c83eff781c2c3bfcadf26f657fc6420b6934a4531a10b2fc08a490a96b663aebac4f3cfc533e05ad87b300cb8a0f5ad577b4326bac538082dd549b10b7a80f6 WHIRLPOOL 20c47887b77165f22ff6599f81e44b165d703b3da44b1ea8c7f43bbf54cc5403abcceda4890082e024b3f23d16880f7af74eac252ba95b06412d2bf30235e4e6
DIST slony1-2.1.3-docs.tar.bz2 1314210 SHA256 8588df1b06086809ce0fef7e1348405bf701c959e2b0affda9d6305f201d6fb4 SHA512 a37bc8432d19833c9cbcc7494c783fabce6d2b5feedf4001e031ff5e5039630497e9b7e4ca4d237d53f41109368cd33708400e64f0c2f45cef3a9916ad9cf4e7 WHIRLPOOL 7d7e0db61956919f5d4fdf96a946b81e9b3502f2c8e5f6fc9b525cb89c37d44cadf349f607fd13a89561c87d1ca2bd722e4ca57b250f809b9c25cd1c56bd523b
DIST slony1-2.1.3.tar.bz2 1512693 SHA256 048b94c990afceb892f8f6631268bb66e93a3c630afc694b3a09f051c338790b SHA512 f02320e3bb85848b93bc43a7d4e0dbb367afcb8af2100cda840888dcd219fead78bd1ac927493bd173cef2bc1195ba4f860679eed0606dd0a2cf9652d671b493 WHIRLPOOL 51641f4dfa78210ab0ecc2827932dc06389867c18df6dfb61d8b43c03ad00d2ac09c529e4171ece07139a803ef45f12c15ac14da39e6bb269bb5a0d7a0270943
+DIST slony1-2.1.4-docs.tar.bz2 1360684 SHA256 e7d8c1939e0e2cf34614940f62c4fc0ce1a52b6b495d8cb2dc2d249756257fc5 SHA512 87d9db938a849171c15d70213ac770f0daf34a930e141411c8a0a9d5f5ca6375c6c0a2ebd88edfbf4144dc81ccaab6494ae8762e3bff863551aa9846d6abc545 WHIRLPOOL 14c455ddcfb64d26d1613d0a6372cd86ad2906d7c1ea438c64075292920cd53b80601a8f5c45d0605b2c878b7dbdc308a385eadd02d557f6d982eedecd0c764a
+DIST slony1-2.1.4.tar.bz2 1515755 SHA256 90dc746bb9f12a051f9f563365e693ffd81f07a2353debfc4b8a4d0884ca72a4 SHA512 b882146a158adee27f360fc34d3c64144efe3c3a7d63574a4450cb1eb3dac7d75df19d17e75ffc72f656d27b5c5b7fc64bc536de9753a36fe96848b562e42883 WHIRLPOOL c0b95f72049b7f90caf1c2259c8f97411f0b1f1d5c9a6cc4fd6b1b2e677dec3fbbea84ffaffb0ba15caa40203923c8272ac6cccae8e08a51f83c62b765ce2580
EBUILD slony1-2.1.3.ebuild 1944 SHA256 222c30c5b98527416ee1b0f86bdcee53e60c67514c3467c7bbe7bbb806f6c627 SHA512 e931c5780c4c87a3348cdd3be097a36eedefde630a6d7da3ff07c3ec404e0053bbeda0bae460470b4dde3672e2ed014b42665901df9079642ac441990d1a8506 WHIRLPOOL d703a78c871bb4568de3bbfb0053e7789ce401d87f7bf131b78e4a273fdb2a4323c3534dbb660a8d4c42b28e448d2705c488791d28e561a502e4e3568d125a05
-MISC ChangeLog 6193 SHA256 3b9ed2021dd0e5f1a087538c2fb70487af53c69e3f8f76a0f1d2f28548e93d3e SHA512 97cc981ddbc8a1d4dcafd0576424a0dbcec873b0d45634d6a024c4bf2fd5deedf61a4934d16d725ee1a6573e478ac1f6d544ed50e87d48fbf43a1ddc6d2c9898 WHIRLPOOL e49604554e871aeb455c46cc57092f60b63aafc50dd69bff7d6ef4f14407dbbb124da14a478b88699d47cc8f9118900e2874621ed36f86442c21209e5c8250df
+EBUILD slony1-2.1.4.ebuild 1961 SHA256 cd389329607dd6819617db1cd1e4add9e76b9d5978752ef8b770ef1f74e7f2ca SHA512 2fd10050812e830e46224e605b4d8cedb4665a065615387e0fb3ca7686bd0034631a9eb9d0b32e4e18396c4c77c4eb75f4c9400b02b5e1f5da37406d9c2edc02 WHIRLPOOL 6b54ac612ab8ff04f2b88ff6aab256e7c673f6af720b7e53400cccc95b3c80df0e70583e7c1c1db02688c35651105cec528cf2fda4068a82d91c28aa6d589d2f
+MISC ChangeLog 6299 SHA256 5899fc50011f959a706c3650397fb24d722ebaaf8beca3b53dd4042e2cad5349 SHA512 41507a2b8d4f0a72e3ebe4bf333cdb9f0e52743808be9daf6ffea91bbcae2c6c39a7b180de6b973bcd61358c0034af2c8d3f3a60ddc161cd63386fe3aaaf89b5 WHIRLPOOL 866fec49d6423f5230504bb1ad95481392f22d36f27e44ed97105d18b2caba117143511535bcf53e6287f759d1aac9317f43ad62124d24439d081b27492678f0
MISC metadata.xml 164 SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b SHA512 45b3f5ba6ebbeb2f990e5612b545bee41bb8c9f29e7f31de34021384760fcfc4694de0782fc0bdf556fe81ed3b334fc96c33563b0fddc2545484099a2cd76bb2 WHIRLPOOL 5fd1b0fc651f51ed3d1715cff87d86e7c0fe9c7825529069c7c3fed13641aee24bee1971b6e1057797b7b191ef0d50a1ea68c9f24588872d7d960787f9f02bfa
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iF4EAREIAAYFAlGxK+gACgkQVxOqA9G7/aA2QQD/b/9SO0vyxKUgfm/MuQ6qqbiW
-7VJNvSUkId27+WtpqGABAJkltYRvO3nby2+WK+GAJSKNmPEfT/EBXZribgzq7LI/
-=vNn4
------END PGP SIGNATURE-----
diff --git a/dev-db/slony1/slony1-2.1.4.ebuild b/dev-db/slony1/slony1-2.1.4.ebuild
new file mode 100644
index 000000000000..53c74f809b45
--- /dev/null
+++ b/dev-db/slony1/slony1-2.1.4.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/slony1-2.1.4.ebuild,v 1.1 2013/08/26 05:27:35 patrick Exp $
+
+EAPI="4"
+
+inherit eutils versionator
+
+IUSE="doc perl"
+
+DESCRIPTION="A replication system for the PostgreSQL Database Management System"
+HOMEPAGE="http://slony.info/"
+
+# ${P}-docs.tar.bz2 contains man pages as well as additional documentation
+MAJ_PV=$(get_version_component_range 1-2)
+SRC_URI="http://main.slony.info/downloads/${MAJ_PV}/source/${P}.tar.bz2
+ http://main.slony.info/downloads/${MAJ_PV}/source/${P}-docs.tar.bz2"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND="|| (
+ dev-db/postgresql-server:9.2
+ dev-db/postgresql-server:9.1
+ dev-db/postgresql-server:9.0
+ dev-db/postgresql-server:8.4
+ dev-db/postgresql-server:8.3
+ )
+ dev-db/postgresql-base[threads]
+ perl? ( dev-perl/DBD-Pg )
+"
+
+pkg_setup() {
+ local PGSLOT="$(postgresql-config show)"
+ if [[ ${PGSLOT//.} < 83 ]] ; then
+ eerror "You must build ${CATEGORY}/${PN} against PostgreSQL 8.3 or higher."
+ eerror "Set an appropriate slot with postgresql-config."
+ die "postgresql-config not set to 8.3 or higher."
+ fi
+
+# if [[ ${PGSLOT//.} > 90 ]] ; then
+# ewarn "You are building ${CATEGORY}/${PN} against a version of PostgreSQL greater than 9.0."
+# ewarn "This is neither supported here nor upstream."
+# ewarn "Any bugs you encounter should be reported upstream."
+# fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-2.1.2-ldflags.patch"
+}
+
+src_configure() {
+ local myconf
+ use perl && myconf='--with-perltools'
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc HISTORY-1.1 INSTALL README SAMPLE TODO UPGRADING doc/howto/*.txt
+
+ # gone:
+ #doman "${S}"/doc/adminguide/man{1,7}/*
+
+ if use doc ; then
+ cd "${S}"/doc
+ dohtml -r *
+ fi
+
+ newinitd "${FILESDIR}"/slony1.init slony1
+ newconfd "${FILESDIR}"/slony1.conf slony1
+}