diff options
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/firecracker/Manifest | 1 | ||||
-rw-r--r-- | app-emulation/firecracker/firecracker-0.18.1.ebuild | 152 |
2 files changed, 153 insertions, 0 deletions
diff --git a/app-emulation/firecracker/Manifest b/app-emulation/firecracker/Manifest index 5a90d6ee9aa7..c015a21308fc 100644 --- a/app-emulation/firecracker/Manifest +++ b/app-emulation/firecracker/Manifest @@ -17,6 +17,7 @@ DIST cpuid-0.1.0.crate 5473 BLAKE2B ff6536dd8fa1aeaf52b3ae28e5d0c3e0033383d7265e DIST device_tree-1.1.0.crate 7049 BLAKE2B 11236d709c7d35d6482eed7ccf8ac82dfbb4412bcf2fec98fd2a806bcf8740c1d0b2745c39b5971f5292ad00887f423afc28a4c674cdf37511cd8615ff654cbd SHA512 b671b582d9f5dc19d8ff28d18fd2ed77842191084c6acbb41362491ea3c994699044fe0b0505f927ad9569d933806f8129a4eb49bf25443c0806ddcb6ffefad7 DIST epoll-4.0.1.crate 8195 BLAKE2B 1ac732ade3c441a27832ef5f7cd75a4f80dcfbf42d195433a7bca91dcebd4f6a8ad0198daa3e3e12ef5ce50615dd85ef0d4cfe6670907ad0a65d55055b25da86 SHA512 b672091bc0b051c22a6217c37bf3986b2e173a1bf5d773590a1e181c9c0981baac656278f90aaa98f7a092e636e3bf68e5ea7a9edb6120cb90636f8db7e953d9 DIST firecracker-0.18.0.tar.gz 4064752 BLAKE2B 6d58ca099f5f891966e7ccf25e5f22836e4066847891cbacab328fcbbb44c5c9010dc47223a626cedfd1c9443a754fbcf1b333378f6947299d7abb745944f471 SHA512 af599401a9323219b9d07d7a146c382c1a7521e6dabd10d6a4282dcbb8ea7742268b7999ab6aedcdadfb5d7f07efbd03feb20ab225f5711abcd45121f4c89f09 +DIST firecracker-0.18.1.tar.gz 4065972 BLAKE2B 161e85a1e90b69db6bc153e4f04462e767057824cdb1bb6431ca69281cdd61890851e80eb45c0f5d9b5f38bb2b06385e6bf693c26995ca589dcf2a845c68fe92 SHA512 2af1e42ab2f9c218646d78907ca0d7a5ae2c24e8652d0d29124a4db0d862c5e805f50fdbee6499173d5a7f48178910e9a58dbb2c107dbcaea71c193c2e1570b3 DIST firecracker-0.19.0.tar.gz 4093985 BLAKE2B e974581d3c213c26b058d6536eac05e109147b3f949d83a6a8d19cd63c07e44ca7b309bf634edc5a42ebbd492485a06f21eedebb5257dbe81dd912516b37ca20 SHA512 f718cc5ec7b658c4a336f829a2db912684e1c2e2209091afddca6bb347001714c41091a32ad46822f3efe1e019f862fa1890d5f12c5b7e3bb2952492b7cf347e DIST fuchsia-zircon-0.3.3.crate 22565 BLAKE2B a4dac3457036efab8f79fe5d5b4545e4091e994d3dc63188f71fafbcc28bf98ef359dcd20add30ac1d990ab2e66159723302fb66697349c65fab0aa58d54535e SHA512 a43ee59452d49742111e506d6bdd8b8399a3a646e08648e25292864d7f71460c1dd1f2d77b8efa8ed09ac21fa4ff0442a2709f16d8833a3849bde0c388d83a93 DIST fuchsia-zircon-sys-0.3.3.crate 7191 BLAKE2B 530bb5d475ac828843af248c6bbd24ca3b5dd8118c8884ccc6d7261818cff1c79038077114ffa04bc73a078177527824c4d9d20a9b022e4057afee3330258cff SHA512 978b7e8795a5877a68409ed3a1d7b4246263f8e7e7ce9ba8a022643be98f58f329cc1c234717df80a509db849da4394f39e90a8e2a6f56f8fa8dd3c07e7d4386 diff --git a/app-emulation/firecracker/firecracker-0.18.1.ebuild b/app-emulation/firecracker/firecracker-0.18.1.ebuild new file mode 100644 index 000000000000..1535788a9f3d --- /dev/null +++ b/app-emulation/firecracker/firecracker-0.18.1.ebuild @@ -0,0 +1,152 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CRATES=" +aho-corasick-0.6.10 +backtrace-0.3.35 +backtrace-sys-0.1.31 +base64-0.9.3 +bitflags-0.5.0 +bitflags-1.1.0 +byteorder-1.2.1 +bytes-0.4.12 +c2-chacha-0.2.2 +cc-1.0.41 +cfg-if-0.1.9 +clap-2.33.0 +cpuid-0.1.0 +device_tree-1.1.0 +epoll-4.0.1 +fuchsia-zircon-0.3.3 +fuchsia-zircon-sys-0.3.3 +futures-0.1.18 +futures-cpupool-0.1.8 +getrandom-0.1.11 +getrandom_package-0.1.20 +glob-0.2.11 +httparse-1.3.4 +hyper-0.11.16 +iovec-0.1.2 +ipnetwork-0.14.0 +itoa-0.4.4 +kernel-0.1.0 +kernel32-sys-0.2.2 +kvm-bindings-0.1.1 +kvm-ioctls-0.2.0 +language-tags-0.2.2 +lazy_static-1.4.0 +libc-0.2.62 +log-0.3.9 +log-0.4.8 +logger-0.1.0 +memchr-2.2.1 +mime-0.3.13 +mio-0.6.19 +mio-uds-0.6.7 +miow-0.2.1 +net2-0.2.33 +num_cpus-1.10.1 +percent-encoding-1.0.1 +pnet-0.22.0 +pnet_base-0.22.0 +pnet_datalink-0.22.0 +pnet_macros-0.22.0 +pnet_macros_support-0.22.0 +pnet_packet-0.22.0 +pnet_sys-0.22.0 +pnet_transport-0.22.0 +ppv-lite86-0.2.5 +proc-macro2-1.0.2 +quote-1.0.2 +rand-0.7.0 +rand_chacha-0.2.1 +rand_core-0.5.1 +rand_hc-0.2.0 +redox_syscall-0.1.56 +regex-1.0.6 +regex-syntax-0.6.11 +relay-0.1.1 +remove_dir_all-0.5.2 +rustc-demangle-0.1.16 +rustc-serialize-0.3.24 +ryu-1.0.0 +safemem-0.3.2 +scoped-tls-0.1.2 +seccomp-0.1.0 +serde-1.0.99 +serde_derive-1.0.99 +serde_json-1.0.40 +slab-0.4.2 +syn-1.0.5 +syntex-0.42.2 +syntex_errors-0.42.0 +syntex_pos-0.42.0 +syntex_syntax-0.42.0 +sys_util-0.1.0 +tempfile-3.1.0 +term-0.4.6 +textwrap-0.11.0 +thread_local-0.3.6 +time-0.1.42 +timerfd-1.0.0 +tokio-core-0.1.12 +tokio-io-0.1.5 +tokio-service-0.1.0 +tokio-uds-0.1.7 +unicase-2.4.0 +unicode-width-0.1.6 +unicode-xid-0.0.3 +unicode-xid-0.2.0 +utf8-ranges-1.0.4 +version_check-0.1.5 +wasi-0.5.0 +ws2_32-sys-0.2.1 +winapi-0.2.8 +winapi-0.3.8 +winapi-build-0.1.1 +winapi-i686-pc-windows-gnu-0.4.0 +winapi-x86_64-pc-windows-gnu-0.4.0 +ws2_32-sys-0.2.1 +rust-libcore-0.0.3 +" + +inherit cargo linux-info toolchain-funcs + +DESCRIPTION="Secure and fast microVMs for serverless computing" +HOMEPAGE="https://firecracker-microvm.github.io https://github.com/firecracker-microvm/firecracker" +SRC_URI="https://github.com/firecracker-microvm/firecracker/archive/v${PV}.tar.gz -> ${P}.tar.gz + $(cargo_crate_uris ${CRATES})" + +LICENSE="|| ( Apache-2.0 MIT Apache-2.0-with-LLVM-exceptions ) MPL-2.0" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +RESTRICT="test" + +BDEPEND="acct-group/kvm" + +set_target_arch() { + case "$(tc-arch)" in + amd64) target_arch=x86_64 ;; + x86) target_arch=i686 ;; + esac +} + +pkg_setup() { + + if ! linux_config_exists; then + eerror "Unable to check your kernel for KVM support" + else + CONFIG_CHECK+=" ~KVM_AMD" || \ + CONFIG_CHECK+=" ~KVM_INTEL" + ERROR_KVM="${P} requires KVM in-kernel support." + fi +} + +src_compile() { + local target_arch + set_target_arch + cargo_src_compile --target ${target_arch}-unknown-linux-gnu +} |