summaryrefslogtreecommitdiff
path: root/app-emulation/firecracker-bin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-emulation/firecracker-bin
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'app-emulation/firecracker-bin')
-rw-r--r--app-emulation/firecracker-bin/Manifest3
-rw-r--r--app-emulation/firecracker-bin/firecracker-bin-1.1.0.ebuild83
2 files changed, 86 insertions, 0 deletions
diff --git a/app-emulation/firecracker-bin/Manifest b/app-emulation/firecracker-bin/Manifest
index 52419d33e999..1c05fcb85c9a 100644
--- a/app-emulation/firecracker-bin/Manifest
+++ b/app-emulation/firecracker-bin/Manifest
@@ -8,9 +8,12 @@ DIST firecracker-v0.25.2-aarch64.tgz 1750770 BLAKE2B 8b34e8be4965e048e51ef60c893
DIST firecracker-v0.25.2-x86_64.tgz 1773163 BLAKE2B dd1287cbbc2955368011417b56d24d7ab4d44b5d102a38541b5038d7a400dad71393ba25ab831cacf0aca8c1e6e344f56fb668af88ebb4c379941bed152a5e71 SHA512 24d7a466019e786ded7eb6747108123c1f177e86d3197738ffc646a2f27f642576e052a8b52a0b75fa3b53de6e0a2828defa5dbba62b208e8c262248240c5059
DIST firecracker-v1.0.0-aarch64.tgz 1645541 BLAKE2B 4ddc94567209078cd6449f52b77ec56514d7a6a284f3ca9736379070ec0048b5ae03159903ca7c85ba08732f4c341d4140165479b289be6cecc0de02e94bbd60 SHA512 3294d4f86b493841e00be26b8843add4cd04bd73a9006b22def101c5aa064489bd3287bdc1b3bcb6a4534205c36aeefe26f28a0fa934ae655cd24ac397175f09
DIST firecracker-v1.0.0-x86_64.tgz 1670233 BLAKE2B a715514f8497a694d29c33872f3521c11098f7b86e035b7ebe4ba9d912b60be9f1b6ecd03e60fa515223f72b7962613907855bb63d64650a8a62e2c23acd0233 SHA512 ecfae6adde808bbb1829c3fcf47e7ffe5eeeeca6d68c73b8d631015c09463b4912d5d66f46e0a68fef671498875567e14631ae370a5049d70f2976cf7fb93314
+DIST firecracker-v1.1.0-aarch64.tgz 1872949 BLAKE2B 41d898e3b22a7e53ce3581d1e74b970b393c2677ced7a7f9ceb70f39a3e89214c849728b005b26c38668364f36f8b9c7ec7661d60886f5ea3b7a154625d6ec83 SHA512 b04a4d9a0b1e7606efad5c1a019c346c7ac725d8acb92b393bcf0669f0ae690385e673ea81f44b171854dcc065d3fb59fbddd3e91db6eac78de05713a4d8505e
+DIST firecracker-v1.1.0-x86_64.tgz 1896567 BLAKE2B 4f3cee9c144e152c15d64d80c708a1969bc57fdc951f8fe54f40a778b83a1ef7141cd0a6abe6014c20aa20958f0e02749712ebfb39896006e0291d94a12d743e SHA512 ca7efe3208560e4e7e50a4b57f875cea0677383f3867bf961747c44aa51ebe66abfc104e5c0e80783d286c95d38b97751c6cda1840942f463c0749c9340fee5a
EBUILD firecracker-bin-0.24.5.ebuild 2250 BLAKE2B b41fd6a717d476261973d9da6d096b0faae767ad7b37eee4122744b2e5affef47b172b80aa798d7e53d588f630bc061708b5189756ceb30b59bebadb97256224 SHA512 0eacee8d8a3ff5b13526cb7d21183a0ace74ed2de1c1c096861f0da614c9845f7b73943a624a3933beb59546578494d16b259e3dc45514e3790101b478b95586
EBUILD firecracker-bin-0.25.0.ebuild 2250 BLAKE2B b41fd6a717d476261973d9da6d096b0faae767ad7b37eee4122744b2e5affef47b172b80aa798d7e53d588f630bc061708b5189756ceb30b59bebadb97256224 SHA512 0eacee8d8a3ff5b13526cb7d21183a0ace74ed2de1c1c096861f0da614c9845f7b73943a624a3933beb59546578494d16b259e3dc45514e3790101b478b95586
EBUILD firecracker-bin-0.25.1.ebuild 2519 BLAKE2B 059f73103611a59403d32518ee826e135970ff7ea17a6f6b8431f87054d3a6f6d99e6153b0d9b587532b3f70862a646c83a59d376887551f388eb97c9f532460 SHA512 04b0222724aaec3079331bfb377a13e9ad90e5962da6a508f05bf0516914b95fed67a103d48ee1d33fbda8fb1eebe32568837c17c190acaca68ab85eae9921aa
EBUILD firecracker-bin-0.25.2.ebuild 2519 BLAKE2B 059f73103611a59403d32518ee826e135970ff7ea17a6f6b8431f87054d3a6f6d99e6153b0d9b587532b3f70862a646c83a59d376887551f388eb97c9f532460 SHA512 04b0222724aaec3079331bfb377a13e9ad90e5962da6a508f05bf0516914b95fed67a103d48ee1d33fbda8fb1eebe32568837c17c190acaca68ab85eae9921aa
EBUILD firecracker-bin-1.0.0.ebuild 2524 BLAKE2B 4a65edd1a0c4ade0d70fbd7f2958f3e29b531ff57f8b66c3fd531df64348552899e921c1fa9455aaa944d70c3763ffd5ac94b24463cc4e37380c43857992af3e SHA512 bb1e547f89583a2156333009dbf3c02be62d5056ec942314cd5beff24b0ee18400c80113c736413240744bc779082b313bcca301cf50d6665308936e1e385fd2
+EBUILD firecracker-bin-1.1.0.ebuild 2623 BLAKE2B a1cae9b10a519b7f24fa522daa9e8ca56b51f78f3bc6dac7d0dd049375cb32703ec62c2c741f550604fa9039212eab18c794ed87f9b7e6402ea31ebddcb766a8 SHA512 c20bf9411f816483383825ece97066c090c6e94c21b733ba05c6360a824ba77c6f4b30ec267cbe9c505b4c14d71924e3ac7d982d98260b49fb5d8296a94d0b13
MISC metadata.xml 416 BLAKE2B 6c2f61f240e5ab54c1f41aa2601e5ba1900759eeeb8fa7d8d06e9f69b9217577ff53bf85215396afa0e08df8cccc324472de25c5094e74c501f972eda9d6268a SHA512 cda9858fec112e6f8a13fdd29a82563ffdee55fbd3adf0d2fbdecb1fca607f9ba0bd0c7c48746a15c672a4dd36bbc487ae659804cd71f60f46c4d7630a2182b4
diff --git a/app-emulation/firecracker-bin/firecracker-bin-1.1.0.ebuild b/app-emulation/firecracker-bin/firecracker-bin-1.1.0.ebuild
new file mode 100644
index 000000000000..4c8acf462668
--- /dev/null
+++ b/app-emulation/firecracker-bin/firecracker-bin-1.1.0.ebuild
@@ -0,0 +1,83 @@
+# Copyright 2021-2022 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
+ usr/bin/rebase-snap
+ usr/bin/seccompiler-bin"
+
+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"
+ 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."
+
+ 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
+
+ dodoc "release-v${PV}-${my_arch}/firecracker_spec-v${PV}.yaml"
+ dodoc "release-v${PV}-${my_arch}/seccomp-filter-v${PV}-${my_arch}.json"
+
+ newbin "release-v${PV}-${my_arch}/firecracker-v${PV}-${my_arch}" firecracker
+ newbin "release-v${PV}-${my_arch}/jailer-v${PV}-${my_arch}" jailer
+ newbin "release-v${PV}-${my_arch}/rebase-snap-v${PV}-${my_arch}" rebase-snap
+ newbin "release-v${PV}-${my_arch}/seccompiler-bin-v${PV}-${my_arch}" seccompiler-bin
+}