diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 11:59:22 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 11:59:22 +0100 |
commit | 6abaca02d36f161c81e2d5ee467719a89f88b2c5 (patch) | |
tree | 3caa7c096e2eccd186e20aa71bda508c5c50fb23 /app-emulation/firecracker-bin | |
parent | b49088575eb777ced2551f484da86317332d6087 (diff) |
gentoo resync (2) : 24.07.2021
Diffstat (limited to 'app-emulation/firecracker-bin')
-rw-r--r-- | app-emulation/firecracker-bin/Manifest | 3 | ||||
-rw-r--r-- | app-emulation/firecracker-bin/firecracker-bin-0.24.5.ebuild | 79 |
2 files changed, 82 insertions, 0 deletions
diff --git a/app-emulation/firecracker-bin/Manifest b/app-emulation/firecracker-bin/Manifest index d045e1dd4b37..486ac4afb5f7 100644 --- a/app-emulation/firecracker-bin/Manifest +++ b/app-emulation/firecracker-bin/Manifest @@ -4,7 +4,10 @@ DIST firecracker-v0.24.2-aarch64.tgz 1429004 BLAKE2B 8d5624f6f6f154678ffab945bbb DIST firecracker-v0.24.2-x86_64.tgz 1434481 BLAKE2B d2b81e2b3341317f296c63f14b2699dbf207e2e3a83871e38ef1666c105112788308c773afad61a85f7c6f4009f2373c80f12a52549120d92a42bae54891bf59 SHA512 2a574276296685117acf4e1d425ca75ecb8ad06680ae81e183d73853ff57cbca2f4cf4f42cb013d8d88d18146c0d84d2b098829ca5f6e9402213fecdf539a283 DIST firecracker-v0.24.4-aarch64.tgz 1427501 BLAKE2B 98a9725cfa6fca607081a5c2461980b02417400a58ddce872a45c09b14559b41998dc6707de280c399535262d29dbd5120d5e2eff1b8403f84d66625e97700aa SHA512 fe2d8441a790310f0fecd82fc316e214d9d03f182f3837ac4d5464101954053c5a98976b7178ffe7e6c1e0fbc4a7e7203ccd92e4f8bc74fbccfd889adc7e43cc DIST firecracker-v0.24.4-x86_64.tgz 1435102 BLAKE2B 893d1c8392f76cc45668cc8823daae2895f675cbcdffb3431fe51495964611f61263caeaa7a149c5dd0f29122e8a6f8705e66166b1c6a192c9c97d49b7f915c8 SHA512 42f316de6bf1444cc7163b02dedd1492c21d0583da1a2a5193e3941cc1d6a59c3c79d275df3d903914f30d021a3e6c7d8f7338c12c088426adf22045750b7db3 +DIST firecracker-v0.24.5-aarch64.tgz 1426237 BLAKE2B 11e260d4afcd5f5ebabeb5c773060250a9205a8110ea4f0915d1b8b3eb7fc448a2a99159d73d2bfaa9b1e9ea88258996de73e296b9916c533f9b7eac8c77fc15 SHA512 518f122f277a293b54bd870bb166847e4d7fa87574e47d3cd606d35e260ebd7359806922e09fb86cf16fb2ee3969bbf68b40538150e7064c866710c1803fada8 +DIST firecracker-v0.24.5-x86_64.tgz 1432963 BLAKE2B 70e16dc651ae1071b9f223f0a21eaba6a8ad515d75847698cbf67ac73053cb8c52d67cd46a315e5681dadbab92ecc4d0d43ecbba9928dc2f52a5168c0a889a97 SHA512 746f1af7a37b2ecdd86faee75ee0cacf01aa80aa6f060cc75761f930df0da9a6f6597fea4235035ba10f6198909b5b2f7a834571c52d73e647611f9be8fa0967 EBUILD firecracker-bin-0.24.1.ebuild 2472 BLAKE2B c861aa7b0ec6df2acfad0aea68d3cec2b51b60bf2443a8e30ba0721a9ffc8294ef935037d02837d7944a77e4addf0a575409606dc4ee7d22d9dd23b9c882580c SHA512 bd9eac40684cae9d08954088f8d6e801397a976d6babc923ecb263179fb2e7635092469cb980a9ef8bf95613bcd5d3dbf44a3c5de607ee21a3d5de61ad2ffe4e EBUILD firecracker-bin-0.24.2.ebuild 2442 BLAKE2B d8ff1267cc871f8878867c9dde0841c46f6898c562fe0170fae71c49083ca3716c2025e594c6ce1955240af99b3a7067b562e7e6e1aabb27ad2ebb91c337a248 SHA512 b8ea078a51f85b419bd5b567cb9e59d18a952f19f230f2bc0db05028d407bd1d05b1b7b0a057cd731b026a7cc25242c94e5c551ce1e728948151e0f8612c59cf EBUILD firecracker-bin-0.24.4.ebuild 2472 BLAKE2B c861aa7b0ec6df2acfad0aea68d3cec2b51b60bf2443a8e30ba0721a9ffc8294ef935037d02837d7944a77e4addf0a575409606dc4ee7d22d9dd23b9c882580c SHA512 bd9eac40684cae9d08954088f8d6e801397a976d6babc923ecb263179fb2e7635092469cb980a9ef8bf95613bcd5d3dbf44a3c5de607ee21a3d5de61ad2ffe4e +EBUILD firecracker-bin-0.24.5.ebuild 2472 BLAKE2B 21f2b037baf114eaa0e8593efd48669db00742919a5bc8f102f9de0d5d67fde010ff8eb9b78751d963ce92754f87d87bc253ac1b7b903bd55ddf6e130cc49283 SHA512 5127b2ba73fae49b8f8a4e3fc4163ef1253a4b41323df9c149b0be8dccb8bba30b13470c0894a254fec20820bc31382a23a5cd2d22adee44486822781e8b8b1c MISC metadata.xml 415 BLAKE2B 2e3287fc3b97cbe52c6ae404b2bf3c691e162a8f44ff75f720a56679e52327c0817860251d01e3bac8971cfafb7e9536f3c277fa77316547892361c6e669b8a4 SHA512 9762208fed64d628db75d544de99085643aa2fe1cb44c09bf93a2d3224932abeef7351d1332709e9851ab2346224d573d607171db64086c08cb56bfe0e25425d diff --git a/app-emulation/firecracker-bin/firecracker-bin-0.24.5.ebuild b/app-emulation/firecracker-bin/firecracker-bin-0.24.5.ebuild new file mode 100644 index 000000000000..23b5841d8c5e --- /dev/null +++ b/app-emulation/firecracker-bin/firecracker-bin-0.24.5.ebuild @@ -0,0 +1,79 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info + +DESCRIPTION="Secure and fast microVMs for serverless computing (static build)" +HOMEPAGE="https://firecracker-microvm.github.io https://github.com/firecracker-microvm/firecracker" +SRC_URI=" + amd64? ( + https://github.com/firecracker-microvm/firecracker/releases/download/v${PV}/firecracker-v${PV}-x86_64.tgz + ) + arm64? ( + https://github.com/firecracker-microvm/firecracker/releases/download/v${PV}/firecracker-v${PV}-aarch64.tgz + )" + +LICENSE="|| ( Apache-2.0 MIT Apache-2.0-with-LLVM-exceptions ) MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RESTRICT="test strip" + +RDEPEND="!app-emulation/firecracker + acct-group/kvm" + +QA_PREBUILT="/usr/bin/firecracker + /usr/bin/jailer" + +S="${WORKDIR}" + +pkg_pretend() { + if use kernel_linux && kernel_is lt 4 14; then + eerror "Firecracker requires a host kernel of 4.14 or higher." + elif use kernel_linux; then + if ! linux_config_exists; then + eerror "Unable to check your kernel for KVM support" + else + CONFIG_CHECK="~KVM ~TUN ~BRIDGE ~VHOST_VSOCK" + ERROR_KVM="You must enable KVM in your kernel to continue" + ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in" + ERROR_KVM_AMD+=" your kernel configuration." + ERROR_KVM_INTEL="If you have an Intel CPU, you must enable" + ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration." + ERROR_TUN="You will need the Universal TUN/TAP driver compiled" + ERROR_TUN+=" into your kernel or loaded as a module to use" + ERROR_TUN+=" virtual network devices." + ERROR_BRIDGE="You will also need support for 802.1d" + ERROR_BRIDGE+=" Ethernet Bridging for some network configurations." + ERROR_VHOST_VSOCK="To use AF_VSOCK sockets for communication" + ERROR_VHOST_VSOCK+=" between host and guest, you will need to enable" + ERROR_VHOST_VSOCK+=" the vhost virtio-vsock driver in your kernel." + + if use amd64 || use amd64-linux; then + if grep -q AuthenticAMD /proc/cpuinfo; then + CONFIG_CHECK+=" ~KVM_AMD" + elif grep -q GenuineIntel /proc/cpuinfo; then + CONFIG_CHECK+=" ~KVM_INTEL" + fi + fi + + # Now do the actual checks setup above + check_extra_config + fi + fi +} + +src_compile() { :; } + +src_install() { + if use amd64; then + my_arch=x86_64 + elif use arm64; then + my_arch=aarch64 + fi + + newbin "release-v${PV}/firecracker-v${PV}-${my_arch}" firecracker + newbin "release-v${PV}/jailer-v${PV}-${my_arch}" jailer +} |