From 652e2b134c419aae993915caf26cd7d8e27d5250 Mon Sep 17 00:00:00 2001 From: Joonas Niilola Date: Fri, 23 Oct 2020 08:57:39 +0300 Subject: dev-libs/raft: new package - C implementation of the Raft consensus protocol, - dep of lxd. Signed-off-by: Joonas Niilola --- dev-libs/raft/Manifest | 1 + dev-libs/raft/metadata.xml | 19 +++++++++++++++++ dev-libs/raft/raft-0.9.25.ebuild | 44 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 dev-libs/raft/Manifest create mode 100644 dev-libs/raft/metadata.xml create mode 100644 dev-libs/raft/raft-0.9.25.ebuild (limited to 'dev-libs/raft') diff --git a/dev-libs/raft/Manifest b/dev-libs/raft/Manifest new file mode 100644 index 00000000000..244ae96fe1f --- /dev/null +++ b/dev-libs/raft/Manifest @@ -0,0 +1 @@ +DIST raft-0.9.25.tar.gz 313444 BLAKE2B a2a15287cef28b03b012ea372d83e7d0b70bc561f5996eb36fb5ef898261188ee8dfef1aa1619333ada2c8f20a37aa1af3f68a1d97c11919d521544c89629e55 SHA512 8709a909c527b7062072165356dcc012cf7af6cf85e3a3be515220ea4a863637dd06e7c4376af4284006bce65034002d1639ca52ac1ce108be2efa0725a82b70 diff --git a/dev-libs/raft/metadata.xml b/dev-libs/raft/metadata.xml new file mode 100644 index 00000000000..c96395f9024 --- /dev/null +++ b/dev-libs/raft/metadata.xml @@ -0,0 +1,19 @@ + + + + + juippis@gentoo.org + Joonas Niilola + + + virtualization@gentoo.org + Gentoo Virtualization Project + + + The library has modular design: its core part implements only the core + Raft algorithm logic, in a fully platform independent way. On top of that, + a pluggable interface defines the I/O implementation for networking + (send/receive RPC messages) and disk persistence (store log entries and + snapshots). + + diff --git a/dev-libs/raft/raft-0.9.25.ebuild b/dev-libs/raft/raft-0.9.25.ebuild new file mode 100644 index 00000000000..7bf600d3ba3 --- /dev/null +++ b/dev-libs/raft/raft-0.9.25.ebuild @@ -0,0 +1,44 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="C implementation of the Raft consensus protocol" +HOMEPAGE="https://github.com/canonical/raft" +SRC_URI="https://github.com/canonical/raft/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3-with-linking-exception" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +RESTRICT="!test? ( test )" + +DEPEND="dev-libs/libuv" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + # ACCESS DENIED issue, #723208 + sed -i 's#zfs version 2>/dev/null | cut -f 2 -d - | head -1#< /sys/module/zfs/version cut -f 1#' configure.ac || die + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-uv + + --disable-benchmark + --disable-debug + --disable-example + --disable-sanitize + + $(use_enable test fixture) + ) + + econf "${myeconfargs[@]}" +} -- cgit v1.2.3-18-g5258