From 47c2d01f64d48bbf219bba4f11654a4cd297d27c Mon Sep 17 00:00:00 2001 From: Andrea Postiglione Date: Sun, 17 Apr 2022 21:30:19 +0200 Subject: [PATCH] sys-cluster/booth first release Signed-off-by: Andrea Postiglione --- sys-cluster/booth/Manifest | 1 + sys-cluster/booth/booth-1.0_p20210730.ebuild | 70 ++++++++++++++++++++ sys-cluster/booth/metadata.xml | 19 ++++++ 3 files changed, 90 insertions(+) create mode 100644 sys-cluster/booth/Manifest create mode 100644 sys-cluster/booth/booth-1.0_p20210730.ebuild create mode 100644 sys-cluster/booth/metadata.xml diff --git a/sys-cluster/booth/Manifest b/sys-cluster/booth/Manifest new file mode 100644 index 0000000000..6c4223fa7f --- /dev/null +++ b/sys-cluster/booth/Manifest @@ -0,0 +1 @@ +DIST booth-1.0_p20210730.tar.gz 148323 BLAKE2B 5b3594cd64b29131d6e7a7073949c1fa7ff13e76f7ae5e7b5594d212e532979af43fac9affb969ed4a12e92476f32e08250d27fd8fdc303628f7a3dc0520558f SHA512 8a1ef09385b77d89d503325a8edf18a28e75c36e611017993c059258f30bf68b5c48c1685cfcb2a04b2628cffe4682a73750b93cf609fe3317abd7fa4898eb81 diff --git a/sys-cluster/booth/booth-1.0_p20210730.ebuild b/sys-cluster/booth/booth-1.0_p20210730.ebuild new file mode 100644 index 0000000000..bab4d6e6f2 --- /dev/null +++ b/sys-cluster/booth/booth-1.0_p20210730.ebuild @@ -0,0 +1,70 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools systemd + +COMMIT="95d854b32a7cb20cb9a0e90c71d8cc269657304d" + +DESCRIPTION="The Booth Cluster Ticket Manager" +HOMEPAGE="https://github.com/ClusterLabs/booth" +SRC_URI="https://github.com/ClusterLabs/${PN}/archive/${COMMIT}.tar.gz -> ${PF}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+glue test" + +RDEPEND=" + acct-group/haclient + acct-user/hacluster + dev-libs/libxml2 + sys-cluster/pacemaker + sys-libs/zlib + + || ( + dev-libs/libgcrypt + app-crypt/mhash + ) + + glue? ( sys-cluster/cluster-glue ) + !glue? ( + dev-libs/glib + sys-apps/systemd + sys-cluster/libqb + ) +" +DEPEND="${RDEPEND}" + +RESTRICT="!test? ( test )" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myconf=( + --disable-coverage + --disable-fatal-warnings + --enable-user-flags + + --with-initddir="${EPREFIX}/etc/init.d" + --with-ocfdir="${EPREFIX}/usr/$(get_libdir)/ocd" + + $(use_with glue) + $(use_with test run-build-tests) + ) + econf "${myconf[@]}" +} + +src_install() { + default + + insinto "/usr/$(get_libdir)/firewalld/services" + doins contrib/geo-cluster.firewalld.xml + + systemd_dounit conf/booth{@,-arbitrator}.service +} diff --git a/sys-cluster/booth/metadata.xml b/sys-cluster/booth/metadata.xml new file mode 100644 index 0000000000..02f63f3f8f --- /dev/null +++ b/sys-cluster/booth/metadata.xml @@ -0,0 +1,19 @@ + + + + + + + + + ClusterLabs/booth + + +The Booth Cluster Ticket Manager +Booth manages tickets which authorize cluster sites located in geographically dispersed locations to run resources. It facilitates support of geographically distributed clustering in Pacemaker. +Booth is based on the Raft consensus algorithm. Though the implementation is not complete (there is no log) and there are a few additions and modifications, booth guarantees that a ticket is always available at just one site as long as it has exclusive control of the tickets. + + + Use libraries from sys-cluster/cluster-glue + +