1 |
commit: 5c8331be3c6cb6fa0d837a52a486b8fd938cdf84 |
2 |
Author: Sebastian Hamann <code <AT> ares-macrotechnology <DOT> com> |
3 |
AuthorDate: Thu Dec 24 10:03:36 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 29 08:34:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c8331be |
7 |
|
8 |
app-emulation/firecracker-bin: Bump to 0.24.1 |
9 |
|
10 |
Signed-off-by: Sebastian Hamann <code <AT> ares-macrotechnology.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/18807 |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
app-emulation/firecracker-bin/Manifest | 2 + |
15 |
.../firecracker-bin/firecracker-bin-0.24.1.ebuild | 79 ++++++++++++++++++++++ |
16 |
2 files changed, 81 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/firecracker-bin/Manifest b/app-emulation/firecracker-bin/Manifest |
19 |
index 5f8b4a1f2b1..b9099ffe20e 100644 |
20 |
--- a/app-emulation/firecracker-bin/Manifest |
21 |
+++ b/app-emulation/firecracker-bin/Manifest |
22 |
@@ -2,6 +2,8 @@ DIST firecracker-v0.23.0-aarch64 1596888 BLAKE2B 94453641206b32c42f86542d7c38a1e |
23 |
DIST firecracker-v0.23.0-x86_64 2041024 BLAKE2B cb6a0d356a734ffb28ef6b88517983d1b9efac4127f8979fad085dab503446471d851ec00ff4da39b216f6fc9ba6a5d9d744455c0f1c1cbd7ef881d624536873 SHA512 5a24a95805240c1125f7fd17e69d5fea92781c3767f0a884aa8e433200e8f469b33502342d47843e5612d83d3157df59bf94a960a202978ca70dcf8f31865882 |
24 |
DIST firecracker-v0.23.1-aarch64 3328424 BLAKE2B 2191e73700c9107fc30e84a044c0377c4486ecfee99deba99b0f6400036befca0d2f3f101154d851f0d7423208f8afc28e87678ed6005235ea9757a1913df3f6 SHA512 a1f5245cbe637f42f1145eb9daf3578610102535a046ea4be93dcd122194fd90305fde32840d59c50b798aa8326ea0d7ed715ab96f980a7d0e66608c33aa7ce0 |
25 |
DIST firecracker-v0.23.1-x86_64 3290472 BLAKE2B 62315d4962b4debbdac383098e656e6c469b491f7303a7aaab06c885ec653b202f6a49a43ae0b76188d2f73b229c68435e19d316992eed64645decef3f611d5e SHA512 4bfb756a2ee2942a158857dfe82de838b52bc161d0ba97255eace1af4b57c3a630dfbb51413433a4fbfb3d95ba02719a608c1ea3f28a5485d005daa2c71abbef |
26 |
+DIST firecracker-v0.24.1-aarch64.tgz 1427360 BLAKE2B 17d85c6843dfa90bf871d5ff7dc5f5286c7bd11559cb9a507f57fafaba7d5abbf1019239ea39529e29a8bb4fa32b9a8a44f096f1379dc2d3d801502890690024 SHA512 cbedc62e5b98cdfd6dfb565bc1b977d84fcd0fa28eb36e18922ec56c3c2dfa34c84c549c7a4e23aee9d16c53b212ef87128d42e68f1a6b9997cbec42e613a82d |
27 |
+DIST firecracker-v0.24.1-x86_64.tgz 1434986 BLAKE2B a6b206042fe4dfa873cfa1da4f591242f0224d2c98b367635534497d2bf82e218c409e473be618bd2902594ea24a8c710c853f2f1a00ac96f917a100e80aec0b SHA512 b719520464e3d5c9ff072c73639af71895bfcca9ac4964f2a255ed2d8d3b264a92566f7b87078c163c0f1ce21b9d5bd11cb38eb7cb784c5e18581ee531a0bcaf |
28 |
DIST jailer-v0.23.0-aarch64 1350040 BLAKE2B def85c85daa27c648c638ed14128fef941a416269c536c55413116a686d5a0e614976fd718576a6e275ff12a1873885e1d569e2e054cb054f1278ecbe1279d74 SHA512 48de8688cf40e696f0a56689a2e6256f2be159fb1b593b223a9547c4760c1e94e245e1de77bfeeefbeffb8046b33768da1915482a62d6b36321b8c225bdef791 |
29 |
DIST jailer-v0.23.0-x86_64 1457312 BLAKE2B 9a92c415e27a8442da18ab3134023acdc7b49f1246d332a864fb700180914c6b9a7f8747b1eef1657290df5287a946e0d5b0b689bd0b7a60486b472ba7b55290 SHA512 203d24794c3125afdd8cb1b07e69da4fcc40bdc9a3ec7c8e8a2deb8dc1a691156294eb4168c2422f631136a4fed7413136631b3957999fe00fb645aaed16f87d |
30 |
DIST jailer-v0.23.1-aarch64 2812344 BLAKE2B ef0b98a5438880d8473117dc051421faf4c9f4640fe017ba9cedeb88a02ff2a34fe6e0333bb7cb31cd436a95536efe5237d6a49ead6c7d1d3777928cc54f0baf SHA512 38876afcf6c5883b30156246b4b74905157b668a3e6fbe852b38a09a7f5ab5814fb9eaec87ef94390d2a40806c7b387b4266c8a0c4b4fba5e720f61d571bbcd7 |
31 |
|
32 |
diff --git a/app-emulation/firecracker-bin/firecracker-bin-0.24.1.ebuild b/app-emulation/firecracker-bin/firecracker-bin-0.24.1.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..c5d9f0f46db |
35 |
--- /dev/null |
36 |
+++ b/app-emulation/firecracker-bin/firecracker-bin-0.24.1.ebuild |
37 |
@@ -0,0 +1,79 @@ |
38 |
+# Copyright 2021 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+ |
43 |
+inherit linux-info |
44 |
+ |
45 |
+DESCRIPTION="Secure and fast microVMs for serverless computing (static build)" |
46 |
+HOMEPAGE="https://firecracker-microvm.github.io https://github.com/firecracker-microvm/firecracker" |
47 |
+SRC_URI=" |
48 |
+ amd64? ( |
49 |
+ https://github.com/firecracker-microvm/firecracker/releases/download/v${PV}/firecracker-v${PV}-x86_64.tgz |
50 |
+ ) |
51 |
+ arm64? ( |
52 |
+ https://github.com/firecracker-microvm/firecracker/releases/download/v${PV}/firecracker-v${PV}-aarch64.tgz |
53 |
+ )" |
54 |
+ |
55 |
+LICENSE="|| ( Apache-2.0 MIT Apache-2.0-with-LLVM-exceptions ) MPL-2.0" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64" |
58 |
+ |
59 |
+RESTRICT="test strip" |
60 |
+ |
61 |
+RDEPEND="!app-emulation/firecracker |
62 |
+ acct-group/kvm" |
63 |
+ |
64 |
+QA_PREBUILT="/usr/bin/firecracker |
65 |
+ /usr/bin/jailer" |
66 |
+ |
67 |
+S="${WORKDIR}" |
68 |
+ |
69 |
+pkg_pretend() { |
70 |
+ if use kernel_linux && kernel_is lt 4 14; then |
71 |
+ eerror "Firecracker requires a host kernel of 4.14 or higher." |
72 |
+ elif use kernel_linux; then |
73 |
+ if ! linux_config_exists; then |
74 |
+ eerror "Unable to check your kernel for KVM support" |
75 |
+ else |
76 |
+ CONFIG_CHECK="~KVM ~TUN ~BRIDGE ~VHOST_VSOCK" |
77 |
+ ERROR_KVM="You must enable KVM in your kernel to continue" |
78 |
+ ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in" |
79 |
+ ERROR_KVM_AMD+=" your kernel configuration." |
80 |
+ ERROR_KVM_INTEL="If you have an Intel CPU, you must enable" |
81 |
+ ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration." |
82 |
+ ERROR_TUN="You will need the Universal TUN/TAP driver compiled" |
83 |
+ ERROR_TUN+=" into your kernel or loaded as a module to use" |
84 |
+ ERROR_TUN+=" virtual network devices." |
85 |
+ ERROR_BRIDGE="You will also need support for 802.1d" |
86 |
+ ERROR_BRIDGE+=" Ethernet Bridging for some network configurations." |
87 |
+ ERROR_VHOST_VSOCK="To use AF_VSOCK sockets for communication" |
88 |
+ ERROR_VHOST_VSOCK+=" between host and guest, you will need to enable" |
89 |
+ ERROR_VHOST_VSOCK+=" the vhost virtio-vsock driver in your kernel." |
90 |
+ |
91 |
+ if use amd64 || use amd64-linux; then |
92 |
+ if grep -q AuthenticAMD /proc/cpuinfo; then |
93 |
+ CONFIG_CHECK+=" ~KVM_AMD" |
94 |
+ elif grep -q GenuineIntel /proc/cpuinfo; then |
95 |
+ CONFIG_CHECK+=" ~KVM_INTEL" |
96 |
+ fi |
97 |
+ fi |
98 |
+ |
99 |
+ # Now do the actual checks setup above |
100 |
+ check_extra_config |
101 |
+ fi |
102 |
+ fi |
103 |
+} |
104 |
+ |
105 |
+src_compile() { :; } |
106 |
+ |
107 |
+src_install() { |
108 |
+ if use amd64; then |
109 |
+ my_arch=x86_64 |
110 |
+ elif use arm64; then |
111 |
+ my_arch=aarch64 |
112 |
+ fi |
113 |
+ |
114 |
+ newbin "release-v${PV}/firecracker-v${PV}-${my_arch}" firecracker |
115 |
+ newbin "release-v${PV}/jailer-v${PV}-${my_arch}" jailer |
116 |
+} |