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