summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2017-04-22 17:05:04 +0200
committerUltrabug <ultrabug@gentoo.org>2017-04-22 17:05:47 +0200
commitc25516b4a30d9c254d23852a5e033f43174a1a02 (patch)
treea1f838bc3b37dcfdb1db04964b2502bf59299b24 /sys-cluster/corosync
parentsys-process/tini: remove old version (diff)
downloadgentoo-c25516b4a30d9c254d23852a5e033f43174a1a02.tar.gz
gentoo-c25516b4a30d9c254d23852a5e033f43174a1a02.tar.bz2
gentoo-c25516b4a30d9c254d23852a5e033f43174a1a02.zip
sys-cluster/corosync: version bump
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'sys-cluster/corosync')
-rw-r--r--sys-cluster/corosync/Manifest1
-rw-r--r--sys-cluster/corosync/corosync-2.4.2.ebuild83
2 files changed, 84 insertions, 0 deletions
diff --git a/sys-cluster/corosync/Manifest b/sys-cluster/corosync/Manifest
index 8a9599f5ca6e..7b8b36af5285 100644
--- a/sys-cluster/corosync/Manifest
+++ b/sys-cluster/corosync/Manifest
@@ -4,3 +4,4 @@ DIST corosync-1.4.7.tar.gz 420596 SHA256 89d82641e3ddf28d906b74c7fd220844d617a84
DIST corosync-2.3.3.tar.gz 411784 SHA256 36a13f50e5f653837ab84e91676f001c2aedbc81ea84d3c7e017e740ea6f5a0a SHA512 66b479b2114641f02cd910f1bc3458948d5634b82e2019d7b1ea919f5bbb4817e91dddc33de061ff01dc4f12a3622b3418b7787e81a6f340d23043857cc9442f WHIRLPOOL 0cfdfcebf0956b420b81e6d9e04a12bdfbe639d07f793037f3ab7ee733508a1d48c53a00edcb78fab5700e00db07e150c1b4c12440394f1496d29238ba4615b5
DIST corosync-2.3.4.tar.gz 420184 SHA256 e5e9ee995dfabba4d2347f7d9a5ff85bde1e62f96e1c79dbd7022be2c5b425f4 SHA512 30914552b8af69ce37a5ea98f17a41f30fa01204ca8beee8218d94b8421769504b90c8e62f1e7222afb6429ead8a2d09ca36e71461c767a2b9bf662637f78bb0 WHIRLPOOL 39338ae185c7b97ca33d948f806f720bd9296bbbbff605b1bbd0a2eb6c595c5dee37ebe144d51eca0a049a0d0fa874c93b7110b222adc19008b1469d827be282
DIST corosync-2.3.5.tar.gz 428253 SHA256 ed8e234f8465d8bb1fbd09a4bca035ef5fd23c249a1278c8398c99e2040c0548 SHA512 212a95d8a68a2941f27c9ec22750a88598744d6fd4db6b46abe0b4cdfa988d3906f760bdf67c403d8c6d0a04da64f29ec744fb68ca51c7269ba58e306553cee9 WHIRLPOOL 7739d932859a1a4552048319d9dbbcb15223f305c236f87c5c4d82cabeb80a53010ab2d42b33a7d8b266c0045bbacd8ba42d452a2b55522f1426693bc669faca
+DIST v2.4.2.tar.gz 547204 SHA256 0dd0ee718253c18c5090e0304eec72a7be8b18b6fe5e03de59ce095fa08c8b63 SHA512 45a4d2570d5d096e6f42070f701fdb2aaed26812b6a75f73ea415cf409b33343f8bc090b4fcf851ab971ca4b17925f239c31a3d9eafe4841dfbeb56537b2c78c WHIRLPOOL d4227909e4a85eca29edcd33111179789f6d6d3879c493fc54a81e38a02b5bea90e12100ceb8408bb66d6ced4477f824d24743c5e2ac91fb49e43bd8279a0b3c
diff --git a/sys-cluster/corosync/corosync-2.4.2.ebuild b/sys-cluster/corosync/corosync-2.4.2.ebuild
new file mode 100644
index 000000000000..877b4d25440b
--- /dev/null
+++ b/sys-cluster/corosync/corosync-2.4.2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="OSI Certified implementation of a complete cluster engine"
+HOMEPAGE="http://www.corosync.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz"
+
+LICENSE="BSD-2 public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="doc infiniband static-libs systemd xml"
+
+# TODO: support those new configure flags
+# --enable-augeas : Install the augeas lens for corosync.conf
+# --enable-snmp : SNMP protocol support
+# --enable-watchdog : Watchdog support
+RDEPEND="!sys-cluster/heartbeat
+ infiniband? (
+ sys-fabric/libibverbs:*
+ sys-fabric/librdmacm:*
+ )
+ dev-libs/nss
+ >=sys-cluster/libqb-0.14.4"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( sys-apps/groff )"
+
+PATCHES=( "${FILESDIR}/${PN}-2.3.4-docs.patch" )
+
+DOCS=( README.recovery SECURITY AUTHORS )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ default
+ # appends lib to localstatedir automatically
+ # FIXME: install just shared libs --disable-static does not work
+ econf_opts=(
+ --localstatedir=/var \
+ --docdir=/usr/share/doc/${PF} \
+ $(use_enable infiniband rdma) \
+ $(use_enable systemd) \
+ $(use_enable xml xmlconf)
+ )
+ use doc && econf_opts+=( --enable-doc )
+ econf "${econf_opts[@]}"
+}
+
+src_install() {
+ default
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+
+ if use systemd; then
+ rm "${D}"/lib/systemd/system/corosync-notifyd.service || die
+ else
+ rm "${D}"/etc/init.d/corosync-notifyd || die
+ fi
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotate ${PN}
+
+ keepdir /var/lib/corosync
+ use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.{,l}a || die
+
+}
+
+pkg_postinst() {
+ if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then
+ ewarn "!! IMPORTANT !!"
+ ewarn " "
+ ewarn "Migrating from a previous version of corosync can be dangerous !"
+ ewarn " "
+ ewarn "Make sure you backup your cluster configuration before proceeding"
+ ewarn " "
+ fi
+}