From 7bc9c63c9da678a7e6fceb095d56c634afd22c56 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 15 Dec 2019 18:09:03 +0000 Subject: gentoo resync : 15.12.2019 --- app-emulation/crun/Manifest | 3 ++ app-emulation/crun/crun-0.10.6.ebuild | 72 +++++++++++++++++++++++++++++++++++ app-emulation/crun/metadata.xml | 31 +++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 app-emulation/crun/Manifest create mode 100644 app-emulation/crun/crun-0.10.6.ebuild create mode 100644 app-emulation/crun/metadata.xml (limited to 'app-emulation/crun') diff --git a/app-emulation/crun/Manifest b/app-emulation/crun/Manifest new file mode 100644 index 000000000000..100c3e16c46e --- /dev/null +++ b/app-emulation/crun/Manifest @@ -0,0 +1,3 @@ +DIST crun-0.10.6.tar.gz 1242736 BLAKE2B 840699c6a07ddaef3f6ab4ce226fa6c4ebf0e32641012b6467a2a622d575a48286555b84140d5a1c947b5ef00a691045b0618533fb246bfb6d605baa262febe4 SHA512 b7db09d0c7d2d6e8b1ea239ead5a2ca2b97f188a74f08f0d5ac787e0a698fddf596e7cfdde482c6bc8790d06a7705613e877344a44691c0be7388e6d046c4b15 +EBUILD crun-0.10.6.ebuild 1647 BLAKE2B e4833813915f61d9a56d889e729c6577dccbd00b2ee5895c0efe0103246fcdc2816e3a64af68413924c34af03cb6df57845705e6fe9134aa4f3bd7b8eeaedda4 SHA512 d1bfa49c236ddd41d2fd0f5079e5cd79aed195e8c57138ae5594490ad08b58da6851cd41b256f71435b398380a8a558523b60e20f7c8383ada223ddad8449436 +MISC metadata.xml 1222 BLAKE2B 7130b8aef5ee4e0a6ddf3a6c1fe40e4918ba2ace244dfad9626ba743553507d3405fca2ec450107bd353f9c2b2fbd8de265f358199dd26e19306fdc662c28906 SHA512 e8f6507a4de83775a04ebf3abddf893cdbde6f82a18e86f2575cd0711fce05650421d1ebd19c35963794fde743747db1cc4ed28d3ea3a3ef2908d1d8d9db2bd5 diff --git a/app-emulation/crun/crun-0.10.6.ebuild b/app-emulation/crun/crun-0.10.6.ebuild new file mode 100644 index 000000000000..04f20e4287a3 --- /dev/null +++ b/app-emulation/crun/crun-0.10.6.ebuild @@ -0,0 +1,72 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit python-any-r1 + +DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C" +HOMEPAGE="https://github.com/containers/crun" +SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="bpf +caps doc seccomp systemd static-libs" + +DEPEND=" + dev-libs/yajl + sys-libs/libseccomp + caps? ( sys-libs/libcap ) + seccomp? ( sys-libs/libseccomp ) + systemd? ( sys-apps/systemd:= ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + doc? ( dev-go/go-md2man ) +" + +# the crun test suite is comprehensive to the extent that tests will fail +# within a sandbox environment, due to the nature of the priveledges +# required to create linux "containers." +RESTRICT="test" + +DOCS=README.md + +src_configure() { + econf \ + $(use_enable bpf) \ + $(use_enable caps) \ + $(use_enable seccomp) \ + $(use_enable systemd) \ + $(usex static-libs '--enabled-shared --enabled-static' '--enable-shared --disable-static' '' '') +} + +src_compile() { + pushd libocispec || die + emake + popd || die + emake crun + if use doc ; then + emake crun.1 + fi +} + +src_install() { + pushd libocispec || die + emake "DESTDIR=${D}" install-exec + popd || die + emake "DESTDIR=${D}" install-exec + if use doc ; then + emake "DESTDIR=${D}" install-man + fi + + # there is currently a bug in upstream autotooling that continues to build static libraries despite + # explicit configure options + use static-libs || find "${ED}"/usr -name '*.la' -delete + + einstalldocs +} diff --git a/app-emulation/crun/metadata.xml b/app-emulation/crun/metadata.xml new file mode 100644 index 000000000000..1b7e66ca64b3 --- /dev/null +++ b/app-emulation/crun/metadata.xml @@ -0,0 +1,31 @@ + + + + + dan@danmolik.com + Dan Molik + + + proxy-maint@gentoo.org + Proxy Maintainers + + + While most of the tools used in the Linux containers ecosystem are written in + Go, crun authors believe C is a better fit for a lower level tool like a + container runtime. runc; the most used implementation of the OCI runtime specs + written in Go, re-execs itself and use a module written in C for setting up + the environment before the container process starts. + + crun aims to be also usable as a library that can be easily included in + programs without requiring an external process for managing OCI containers. + + + https://github.com/containers/crun/releases + containers/crun + + + Enable in Kernel, eBPF (enhanced Berkley Packet Filter) + support for managing device controllers. + + + -- cgit v1.2.3