From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-db/slony1/Manifest | 18 +++++++ dev-db/slony1/files/slony1-2.1.2-ldflags.patch | 17 ++++++ dev-db/slony1/files/slony1.conf | 11 ++++ dev-db/slony1/files/slony1.init | 36 +++++++++++++ dev-db/slony1/metadata.xml | 8 +++ dev-db/slony1/slony1-2.1.3.ebuild | 70 +++++++++++++++++++++++++ dev-db/slony1/slony1-2.1.4.ebuild | 72 ++++++++++++++++++++++++++ dev-db/slony1/slony1-2.2.5-r1.ebuild | 62 ++++++++++++++++++++++ dev-db/slony1/slony1-2.2.6.ebuild | 62 ++++++++++++++++++++++ 9 files changed, 356 insertions(+) create mode 100644 dev-db/slony1/Manifest create mode 100644 dev-db/slony1/files/slony1-2.1.2-ldflags.patch create mode 100644 dev-db/slony1/files/slony1.conf create mode 100644 dev-db/slony1/files/slony1.init create mode 100644 dev-db/slony1/metadata.xml create mode 100644 dev-db/slony1/slony1-2.1.3.ebuild create mode 100644 dev-db/slony1/slony1-2.1.4.ebuild create mode 100644 dev-db/slony1/slony1-2.2.5-r1.ebuild create mode 100644 dev-db/slony1/slony1-2.2.6.ebuild (limited to 'dev-db/slony1') diff --git a/dev-db/slony1/Manifest b/dev-db/slony1/Manifest new file mode 100644 index 000000000000..88cd803ce61f --- /dev/null +++ b/dev-db/slony1/Manifest @@ -0,0 +1,18 @@ +AUX slony1-2.1.2-ldflags.patch 467 SHA256 92b688972b183656d9b1c2f0a85873727e52c70c1be7d7bf49e3b566f6ffd935 SHA512 202570d6ac0563789a20cdb529d5d1e0f9a8bade99ae30d9aa8f61e76db78d56b2617ce414fcae31b4a2b9518e8f21cf7161accee93a4dd4681397f88117426c WHIRLPOOL 3b598aca98744bc2082948689bfe7eb2063e369a97be1187ffade172e20e8f38547dad9a5cd4c6d6fe4d96d1ddc202ae8dca4324fe48a5e2877a0bcf2bb99baf +AUX slony1.conf 249 SHA256 06b0b8ca71edc5d4e68b022ba8e56f4f9a8dac46f2b5a6a8350fa21cae3dedcb SHA512 3ef2b9a326cb237aa6ceaf4f161d9ff183c291f423b7ad29cb9102a67de849dbf5a52120ecc756efc5a8d226f0860a2517ced64ab44f135e62cb2e53611775a8 WHIRLPOOL 1c47170fbc72735ad971a8553fbebf2cad551ee2652d3771adf59c60669e82f8443f9f43e3ed7a071181f66742977047593ee212942c52e9e4223b735a2cb53a +AUX slony1.init 615 SHA256 1ba2574edaba914de9e876deec1bceaf93a48d8475aba07e55c38967c5feed78 SHA512 d450bba5f65372509e542f138d297202371bcaf78332ba13de72ddf937fcffe419083dddc5032c7bafd51993fbc677b37262e1b1e938e9e3c927e130c0a7c693 WHIRLPOOL d2fcd96633f766514600b69ed860b47c13744132935d0ae5648b5217bfa918531670daf899e966af5f7b60d3467fa53391db3ace5485118d8f319affdfcd176a +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 +DIST slony1-2.2.5-docs.tar.bz2 1449297 SHA256 7afd749215ca63d5f808c2c199096d4d665923b277edaf75b01e4a8bfdf90472 SHA512 cdd08fcea56f29e8e944cd975b613747cfcab75e70d88afdec79b2ede96dc2d1b35b294cd12c522780e513b4cd26c43da401d9570ca67759dbb2271797a380ac WHIRLPOOL 18206b34d03cb685389398f00d681707471b0cbf9cb3dcefb4cc99b24c35f37c10acc32e573a1c255f85881700efde9e1c8c3948596ebc84fbf5254af866b147 +DIST slony1-2.2.5.tar.bz2 1466439 SHA256 6f6dbd9619c615ed68bf6341a8158e42fc0adf6f5b609e6f8e4a0a0e37815241 SHA512 06c5d8c136b1560aa6a3b1b7bfbad09fb6bbff7e3c530ceaf0279d4564dd1518c69647368deac9eb19ea5059a2d78fef26f62bd34315f5f3415ca0f5cb0992aa WHIRLPOOL 3b9b96c41fbe9da03362a866d3bc81da38be82625a9d25378b69cf322ba6aba05fc15f0725ba3f878e4a9d2b5e6609e50ad6d602f480e6e1482d1953135ecb14 +DIST slony1-2.2.6-docs.tar.bz2 1450956 SHA256 418030209a677845127871eb37d324317acd68a5cfda1e0301ec6f0776c39118 SHA512 b5a870d5688ca24c0a9012d7da539917c74ee697f1b1ae663ead3cb1032345c0d8f5fc5bddc2ca2fec5d738fb9ca74822343cce8739b3b4b478928f26d214a0d WHIRLPOOL bae6e88360d3026feed4029ca9b222966631a3b5608876072de4a1955c9607762dae434281fa3762184e133b5aa2f9a3dff264f1e15caaad7c51ea4e73c778fa +DIST slony1-2.2.6.tar.bz2 1465709 SHA256 79cf246741bc3f95f6890f2dbed5712d6e5a127bf1f442cf8af102d23de0919c SHA512 5aeadb9ed72b83d303596e4f8513409a1f826f25fe283ca6aa969a7563172bbc5f5360f876fa87780f6a6fc70cb55688a2daf678b9cf91972a3c403cb76184b8 WHIRLPOOL 464c52f2063abcd33a0df0f266b538605584accff5461fea2780df96290c4607783b3a49d636f5f8d83622a6f1b5bbbac463be6f829a7c85f06ba6f406859007 +EBUILD slony1-2.1.3.ebuild 1773 SHA256 49979aff78944aee150f823654055720b62d56e26027c36ccfd8e21ffc205345 SHA512 feff51265613b44f13878516bbd8f5f2c1b5d1cb7e858b71163a5bf8c18bf325c99b708fd3aaf45b81a2219941eb4040066593bcec1d65cdd604e91cfea6838a WHIRLPOOL 5c5a630dcca6f7361d26468ddb632e967f624685e5f7d7e19ca2c6b56e5c9a8dde80f459954be0c4d34d39d299b4ecf547e2383a69d91322b92f38a19ecdaaa9 +EBUILD slony1-2.1.4.ebuild 1819 SHA256 226a6845807a4323604a00ce3271f47540ed1b0d88c264d23153d0fdf8713a9b SHA512 3c878c1e8e2f2906d7ae9b96602a3431304aff3f081e372fbecf830dbe7c1d487e0f5ea7176076ef0e096081cf2b06e15eefd34089e3f3fcdf31626f631460ad WHIRLPOOL ca159a6967edd825ff98d72e9f0221e3d5f16ba9990d4df670a4e655a89bfc772e0330b29d1da8b9b3fcf666c73ccb6baf5147b0874ccb353beba6aaa0f07d8d +EBUILD slony1-2.2.5-r1.ebuild 1629 SHA256 c8a51ac038797be93f77af6fb47de249f8639a80147f6af98cd1133f541cba9c SHA512 3ef05022f6c1af203a1dbedf4df3ac2fd6912eaf80b612331134c4503eaf0b9e49efb02f58576e577aa2a6b52d747910bd5f1bf791b907b57f68bbb3f80156f4 WHIRLPOOL 575fabfc66c984002162d2d2a0ac300412347268db37fd26c562cb7dbe77fafe52246220ba64b1abd2b711748ea44f10427c74844eea92d98d27bb1e52f7cdae +EBUILD slony1-2.2.6.ebuild 1632 SHA256 960b7414772e5eef2451431fa46d5edae980049fca8c3d115f2fae907bb0e1b0 SHA512 bcc1dec8a81be086505b1196b990e6af7294619ae723ac1381ba1a84d95f589f8985a790c1b536a76d1af44a769f8aba042539b9ee872d715bc1d0c53ea0a006 WHIRLPOOL 5a117f9badb1c1e53ecf8128feb340a12687ec2def278994107a9054360a9d49a8df2916ba80f7ab3880690b391384affe2aea3d4e303fccc36efa1dc3c5b58d +MISC ChangeLog 3593 SHA256 484ed1254e8e4510f8cdcf6e99fdf3c085a40fcc7ca16125a24933203afd6ec1 SHA512 54d7038ada50956de574226a09469a95e65aeacc29d6541dd7c906eb68a7b8f04d139f00bf6e1cfe28c3b197d4f07811795556766333c8578b09649971759d4f WHIRLPOOL 770e3ffb1a772050c7c84f5463cedb6ca8c6bd751e203a9f628c4044946603b628b8d52b02c47cb07d8e7c3da73da36178f26de2c24bc9675d017c992c51dae8 +MISC ChangeLog-2015 7522 SHA256 1beae2cd26717609d247d0aa333445888d7ebdf324266781ddb6a68b31872bf0 SHA512 aa5a4c45cb810cebb3d8857d67206b49fbb96b85c76eb5896cc49a2b1582db0e1d861c3a44b3494358ad513a078424692a21d12eae38ed57229270641601adb5 WHIRLPOOL 5fbbbeda3b99ed5a66c495630e395daf8eb27ecc4207770fe4bbb359850c08a99996032a83521aa3262df60e06001535eb3816a18589f4838a82993a0f86ba67 +MISC metadata.xml 280 SHA256 5660ba07e5d7576fce822b35f72d04dcf8a747816e9cf5e5d553242f5b7d9a41 SHA512 efb5fb6652ac8cd75fff4eea8b2b044a2c9201cce2faf3bbe13a97565d150e64f9ba0dd8bb691a44a1b6726455306ea8b6c1b121678a721a82e7ea8b6589c94f WHIRLPOOL eea3f820c4a7f73d6fc893f55c9408f1c27da41bc9e8aa2c07bdd9e884d54945f2eaeb47230411f03160a09ca5f3da762df6f977fed5995a4ffe413b4bce53af diff --git a/dev-db/slony1/files/slony1-2.1.2-ldflags.patch b/dev-db/slony1/files/slony1-2.1.2-ldflags.patch new file mode 100644 index 000000000000..038b2ee20fb5 --- /dev/null +++ b/dev-db/slony1/files/slony1-2.1.2-ldflags.patch @@ -0,0 +1,17 @@ +diff -Naur a/makefiles/Makefile.linux b/makefiles/Makefile.linux +--- a/makefiles/Makefile.linux 2012-01-25 14:13:40.000000000 -0500 ++++ b/makefiles/Makefile.linux 2012-02-22 06:15:45.652523000 -0500 +@@ -12,9 +12,9 @@ + endif + + %.so: %.o +- $(CC) -shared -o $@ $< ++ $(CC) $(LDFLAGS) -shared -o $@ $< + + %.o: %.c +- $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c -o $@ $< + +-sqlmansect = 7 +\ No newline at end of file ++sqlmansect = 7 diff --git a/dev-db/slony1/files/slony1.conf b/dev-db/slony1/files/slony1.conf new file mode 100644 index 000000000000..a660b0b16c40 --- /dev/null +++ b/dev-db/slony1/files/slony1.conf @@ -0,0 +1,11 @@ +# /etc/conf.d/slony1: + +# Configuration file for /etc/init.d/slony1 + +USER=postgres +CLUSTER=your_cluster_name +DBUSER=postgres +DBNAME=your_database_name +DBHOST=localhost +LOGFILE=/var/lib/postgresql/data/slony1.log +LOGLEVEL=1 # 1(minimum)..4(maximum) diff --git a/dev-db/slony1/files/slony1.init b/dev-db/slony1/files/slony1.init new file mode 100644 index 000000000000..d85c99c733f0 --- /dev/null +++ b/dev-db/slony1/files/slony1.init @@ -0,0 +1,36 @@ +#!/sbin/openrc-run +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need postgresql +} + +start() { + ebegin "Starting slony1" + /usr/bin/slon -p /var/run/slony1.pid -d $LOGLEVEL $CLUSTER "dbname=$DBNAME user=$DBUSER host=$DBHOST" >> $LOGFILE 2>&1 & + + while : + do + cnt=$(($cnt + 1)) + if [ -f "/var/run/slony1.pid" ]; then + ret=0 + break + fi + + if [ $cnt -eq 30 ]; then + eerror "Please see log file: $LOGFILE" + ret=1 + break + fi + sleep 1 + done + eend $ret +} + +stop() { + ebegin "Stopping slony1" + kill `cat /var/run/slony1.pid` + eend $? +} + diff --git a/dev-db/slony1/metadata.xml b/dev-db/slony1/metadata.xml new file mode 100644 index 000000000000..711734ad7566 --- /dev/null +++ b/dev-db/slony1/metadata.xml @@ -0,0 +1,8 @@ + + + + + pgsql-bugs@gentoo.org + PostgreSQL and Related Package Development + + diff --git a/dev-db/slony1/slony1-2.1.3.ebuild b/dev-db/slony1/slony1-2.1.3.ebuild new file mode 100644 index 000000000000..24e4a2e232ba --- /dev/null +++ b/dev-db/slony1/slony1-2.1.3.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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:9.2[server] + dev-db/postgresql:9.1[server] + dev-db/postgresql:9.0[server] + ) + dev-db/postgresql[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 + + 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 +} 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..8106707b7c93 --- /dev/null +++ b/dev-db/slony1/slony1-2.1.4.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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:9.3[server] + dev-db/postgresql:9.2[server] + dev-db/postgresql:9.1[server] + dev-db/postgresql:9.0[server] + ) + dev-db/postgresql[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 +} diff --git a/dev-db/slony1/slony1-2.2.5-r1.ebuild b/dev-db/slony1/slony1-2.2.5-r1.ebuild new file mode 100644 index 000000000000..a312de46f7a1 --- /dev/null +++ b/dev-db/slony1/slony1-2.2.5-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +POSTGRES_COMPAT=( 9.{2..6} ) +POSTGRES_USEDEP="server,threads" + +inherit eutils postgres-multi 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="${POSTGRES_DEP} + perl? ( dev-perl/DBD-Pg ) +" + +RDEPEND=${DEPEND} + +REQUIRE_USE="${POSTGRES_REQ_USE}" + +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 INSTALL README SAMPLE TODO UPGRADING share/slon.conf-sample + + if use doc ; then + cd "${S}"/doc + dohtml -r * + fi + + 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 $? +} diff --git a/dev-db/slony1/slony1-2.2.6.ebuild b/dev-db/slony1/slony1-2.2.6.ebuild new file mode 100644 index 000000000000..59ee59bcec1c --- /dev/null +++ b/dev-db/slony1/slony1-2.2.6.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +POSTGRES_COMPAT=( 9.{2..6} 10 ) +POSTGRES_USEDEP="server,threads" + +inherit eutils postgres-multi 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="${POSTGRES_DEP} + perl? ( dev-perl/DBD-Pg ) +" + +RDEPEND=${DEPEND} + +REQUIRE_USE="${POSTGRES_REQ_USE}" + +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 INSTALL README SAMPLE TODO UPGRADING share/slon.conf-sample + + if use doc ; then + cd "${S}"/doc + dohtml -r * + fi + + 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 $? +} -- cgit v1.2.3