Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/crun/
Date: Wed, 05 May 2021 06:42:25
Message-Id: 1620196918.4dc17b9ac09de9722a8c8acd818947a84c0db3cc.juippis@gentoo
1 commit: 4dc17b9ac09de9722a8c8acd818947a84c0db3cc
2 Author: Robert Günzler <r <AT> gnzler <DOT> io>
3 AuthorDate: Sun Apr 25 16:56:45 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed May 5 06:41:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dc17b9a
7
8 app-emulation/crun: bump to 0.19.1
9
10 Signed-off-by: Robert Günzler <r <AT> gnzler.io>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 app-emulation/crun/Manifest | 1 +
14 app-emulation/crun/crun-0.19.1.ebuild | 61 +++++++++++++++++++++++++++++++++++
15 2 files changed, 62 insertions(+)
16
17 diff --git a/app-emulation/crun/Manifest b/app-emulation/crun/Manifest
18 index abbcd076323..698b3677ff4 100644
19 --- a/app-emulation/crun/Manifest
20 +++ b/app-emulation/crun/Manifest
21 @@ -1,2 +1,3 @@
22 DIST crun-0.17.tar.gz 1385658 BLAKE2B 3d4c30989b9e79d02bf9a6c298daa8d0b5b6b8bfcfaca8ae9e27ad865762a32b6af2c8806586bba2ab94271446a93c34e8f2d465cc008c41bbe69e565556a1b1 SHA512 b095a3c4fca8ae683553805de468594e8dd891cc9911b56e8be7c429584e71fb40a364cf55a6a829950078a539d35308310f53f57b8fb40d483d394e91b20b01
23 DIST crun-0.18.tar.gz 1394857 BLAKE2B db4f0407aaf5e4c5b9069ad5ae6a76308665d91559d92bf370b964e0914f337a84af896f1c1e00184ef4b0625bd1c0f1e2fc3295074c7f5524c5359ce54ba6b4 SHA512 94610d9d4ef95a9be708c6cf8cc38587c9c3b847d9da5cf9dfa4a2eddddb7e6724e39ffb222ed5d6c61bad8374ae50dc9e92d95b6d03ce0b185d5123afeeca46
24 +DIST crun-0.19.1.tar.gz 1870594 BLAKE2B 1780a2936ff39ec80836c4c9ae072e2fc30703a31a79786337290c62dd433b5a35dcfa953be370703d1baab3de93fdb376c99ab76dff1470883c61726c313144 SHA512 f93f79d1d63d6749bcf92d48542d9555f3ad47657c959c7c06701861d7a5a4171969f00f6dff3878286970a48aba3314c25e35c005463e606533b0ff7843d994
25
26 diff --git a/app-emulation/crun/crun-0.19.1.ebuild b/app-emulation/crun/crun-0.19.1.ebuild
27 new file mode 100644
28 index 00000000000..bc97b2bddb1
29 --- /dev/null
30 +++ b/app-emulation/crun/crun-0.19.1.ebuild
31 @@ -0,0 +1,61 @@
32 +# Copyright 2019-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +
39 +inherit autotools python-any-r1
40 +
41 +DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C"
42 +HOMEPAGE="https://github.com/containers/crun"
43 +SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.gz"
44 +
45 +LICENSE="GPL-2+ LGPL-2.1+"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
48 +IUSE="+bpf +caps criu +seccomp systemd static-libs"
49 +
50 +DEPEND="
51 + sys-kernel/linux-headers
52 + >=dev-libs/yajl-2.0.0
53 + caps? ( sys-libs/libcap )
54 + criu? ( >=sys-process/criu-3.15 )
55 + seccomp? ( sys-libs/libseccomp )
56 + systemd? ( sys-apps/systemd:= )
57 +"
58 +RDEPEND="${DEPEND}"
59 +BDEPEND="
60 + ${PYTHON_DEPS}
61 +"
62 +
63 +# the crun test suite is comprehensive to the extent that tests will fail
64 +# within a sandbox environment, due to the nature of the privileges
65 +# required to create linux "containers".
66 +RESTRICT="test"
67 +
68 +DOCS=( README.md )
69 +
70 +src_configure() {
71 + local myeconfargs=(
72 + $(use_enable bpf)
73 + $(use_enable caps)
74 + $(use_enable criu)
75 + $(use_enable seccomp)
76 + $(use_enable systemd)
77 + $(usex static-libs '--enable-shared --enable-static' '--enable-shared --disable-static' '' '')
78 + )
79 +
80 + econf "${myeconfargs[@]}"
81 +}
82 +
83 +src_compile() {
84 + emake -C libocispec
85 + emake crun
86 +}
87 +
88 +src_install() {
89 + emake "DESTDIR=${D}" install-exec
90 + doman crun.1
91 + einstalldocs
92 +}