diff options
author | Aaron W. Swenson <titanofold@gentoo.org> | 2020-12-16 06:14:50 -0500 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2020-12-16 06:14:50 -0500 |
commit | 742004212b14e3a8b7b5910cdc295029ea7af7b9 (patch) | |
tree | 0de79d16d58dac490c718aa15833eac67c6b3017 /dev-db/slony1 | |
parent | dev-python/pyopencl: Stabilize 2020.2.2 amd64, #758557 (diff) | |
download | gentoo-742004212b14e3a8b7b5910cdc295029ea7af7b9.tar.gz gentoo-742004212b14e3a8b7b5910cdc295029ea7af7b9.tar.bz2 gentoo-742004212b14e3a8b7b5910cdc295029ea7af7b9.zip |
dev-db/slony1: Bump to 2.2.10
Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>
Diffstat (limited to 'dev-db/slony1')
-rw-r--r-- | dev-db/slony1/Manifest | 2 | ||||
-rw-r--r-- | dev-db/slony1/slony1-2.2.10.ebuild | 74 |
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-db/slony1/Manifest b/dev-db/slony1/Manifest index bd159cdfd870..5d9a2618bdd0 100644 --- a/dev-db/slony1/Manifest +++ b/dev-db/slony1/Manifest @@ -1,3 +1,5 @@ +DIST slony1-2.2.10-docs.tar.bz2 1445193 BLAKE2B 071f5faf2f7cae822b484f13ede6a8ede5278a065c55d2199f38e2dd195922cbc78982633316792978b968295d69e36651ae0367682ad45afab295e61e5329fa SHA512 d603abccc1ec7922fe8025ab178e6d12b28ffc763848be8d1f9fc93519b9928aa65ed6bcc1d678f2ad9f79818de06da39ec1f69d60de61c5e6fe42137c7c3112 +DIST slony1-2.2.10.tar.bz2 1464652 BLAKE2B a07a830501be13f33fc189128851cee02c8d8ca51a8a54f6b97028d65eb17937817c9ab6b5ebbcaa092e96fb00f57959806e5003e016df5e7034583de601084c SHA512 1b41addb7a0be0a130c2efcab1b241e3158d10a5a6e203d83f28353e303dd524e224ab9c04a7e37a0f89cd944237b90feeb8910eb35f717926aa3ad28dbe2d0f DIST slony1-2.2.6-docs.tar.bz2 1450956 BLAKE2B 949d0736eb9ab021767b80b4240e30a8cd11daa218cac6d722827a8db98f2b54cc093031e02d0cd14cb1eb60d56dc160dcd1c2e0708e7228fdac31ef26d2fcf4 SHA512 b5a870d5688ca24c0a9012d7da539917c74ee697f1b1ae663ead3cb1032345c0d8f5fc5bddc2ca2fec5d738fb9ca74822343cce8739b3b4b478928f26d214a0d DIST slony1-2.2.6.tar.bz2 1465709 BLAKE2B 87e581638aab5ac9f51437fc43b65f200c29e012fa2b5331d4a7972359bb345c8d5aec9917fbc348ce8338115f8270d6e55025905aa5aba642090a8486d0a3fc SHA512 5aeadb9ed72b83d303596e4f8513409a1f826f25fe283ca6aa969a7563172bbc5f5360f876fa87780f6a6fc70cb55688a2daf678b9cf91972a3c403cb76184b8 DIST slony1-2.2.7-docs.tar.bz2 252020 BLAKE2B 315d54c008fca121fac12385602e729c7bb6a7a90db502165625c1138da6b87f147410555ca6bc315ba766fd6fed22b6c5dcbe06c9481dd37b9e9c8832209b02 SHA512 7735aae634788acae77eb2cc64f51a851e3b804fb1ca860eddc237734aa6182bd7dfcdae485cd89682c413f55003ea67d91c4c24922b4fdef79ac34793022e56 diff --git a/dev-db/slony1/slony1-2.2.10.ebuild b/dev-db/slony1/slony1-2.2.10.ebuild new file mode 100644 index 000000000000..0e854d2ba2ca --- /dev/null +++ b/dev-db/slony1/slony1-2.2.10.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +POSTGRES_COMPAT=( 9.{5..6} {10..13} ) +POSTGRES_USEDEP="server,threads" + +inherit postgres-multi + +IUSE="doc perl" + +DESCRIPTION="A replication system for the PostgreSQL Database Management System" +HOMEPAGE="https://slony.info/" + +MAJ_PV=$(ver_cut 1-2) +SRC_URI="https://slony.info/downloads/${MAJ_PV}/source/${P}.tar.bz2 + doc? ( https://slony.info/downloads/${MAJ_PV}/source/${P}-docs.tar.bz2 ) +" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND="${POSTGRES_DEP} + perl? ( dev-perl/DBD-Pg ) +" +RDEPEND=${DEPEND} + +REQUIRE_USE="${POSTGRES_REQ_USE}" + +# Testing requires a more complex setup than we benefit from being able +# to perform. +# https://slony.info/documentation/2.2/testing.html +RESTRICT="test" + +src_unpack() { + unpack ${P}.tar.bz2 + + if use doc ; then + # The docs tarball will unpack over the source directory. So, we + # clear the adminguide directory now to make it easier to + # install later. + rm ${P}/doc/adminguide/* || die + unpack ${P}-docs.tar.bz2 + fi +} + +src_configure() { + local slot_bin_dir="/usr/$(get_libdir)/postgresql-@PG_SLOT@/bin" + use perl && myconf=" --with-perltools=\"${slot_bin_dir}\"" + postgres-multi_foreach econf ${myconf} \ + --with-pgconfigdir="${slot_bin_dir}" \ + --with-slonybindir="${slot_bin_dir}" +} + +src_install() { + postgres-multi_foreach emake DESTDIR="${D}" install + + dodoc README SAMPLE TODO UPGRADING share/slon.conf-sample + use doc && postgres-multi_forbest dodoc -r doc/adminguide + + newinitd "${FILESDIR}"/slony1.init slony1 + newconfd "${FILESDIR}"/slony1.conf slony1 +} + +pkg_postinst() { + # Slony-I installs its executables into a directory that is + # processed by the PostgreSQL eselect module. Call it here so that + # the symlinks will be created. + ebegin "Refreshing PostgreSQL $(postgresql-config show) symlinks" + postgresql-config update + eend $? +} |