Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-containers/crun/
Date: Fri, 13 May 2022 20:12:58
Message-Id: 1652472758.97316b5e6fa64cd54b7c465134b86e78fbfff0ca.sam@gentoo
1 commit: 97316b5e6fa64cd54b7c465134b86e78fbfff0ca
2 Author: Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja>
3 AuthorDate: Fri May 13 14:47:33 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri May 13 20:12:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97316b5e
7
8 app-containers/crun: add 1.4.5
9
10 Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-containers/crun/Manifest | 1 +
14 app-containers/crun/crun-1.4.5.ebuild | 63 +++++++++++++++++++++++++++++++++++
15 2 files changed, 64 insertions(+)
16
17 diff --git a/app-containers/crun/Manifest b/app-containers/crun/Manifest
18 index b64428a7e151..96b8d0c45ec8 100644
19 --- a/app-containers/crun/Manifest
20 +++ b/app-containers/crun/Manifest
21 @@ -1,3 +1,4 @@
22 DIST crun-1.3.tar.xz 831108 BLAKE2B 37e8d0ba764ae77c870c68ea9cd93f1ea1c751eb2b6aa84481f81b22ec2eb5d9e518d4808bd1bca545c57d18c5c491372694009d6498652cce45fda8864e5835 SHA512 3b58ee65a41bc85ec31147053f00e9c2a2e5ee9a72381a65c19480cc24d80cad7c9f6e1a47b3e020facf0603c54e4d2640db187c5e66a7deb8b1ead7bc111ee6
23 DIST crun-1.4.2.tar.xz 873636 BLAKE2B f8b3546b7c4aeb7077af8cf9e7ec0059259143da80a6a0d020dc9d702e03008b2b1c2a6a5cdd555b625abc1f2ed5a55786525919eda15dc241d1b8f2334e8689 SHA512 f97eedf84a61cc3753f528b75b24f95131e871f734c8e770b9bdc4e1d33668162e6bdc0c4676c0164900bc987490d3dbd0060c27046091f012ad178ef42fbdbf
24 DIST crun-1.4.4.tar.xz 877892 BLAKE2B 57e48c0a229db3f54212177cef3fdb3f59b4bb1d1cc865da956f026a35837d839489bd126f880d7a9ceb18f5cffbf0e32ac9ae59a4cd39c34e3aff5b32c0559a SHA512 1756dccf6509457a5dc114d43c4f4e99258a20c3437dfe06016d080989c5d3035f5735d62d18ab537b660ec36de04df369a2582745baf4ab680af367a19830fd
25 +DIST crun-1.4.5.tar.xz 879044 BLAKE2B c80cae28c23140086682493a7dddb40640491e3ea827f0a7376d9be12570111d056022f50b8d7c574ca07790753d20de2314db5b89463994c4fffbc7576c372d SHA512 9f288279615fdf587018c465047fc8793daae280ab864bf9046994983239129d50f2eb89cac9b092e5cdc49a10f3523ab403a3f0e7451f7536b79f651a355153
26
27 diff --git a/app-containers/crun/crun-1.4.5.ebuild b/app-containers/crun/crun-1.4.5.ebuild
28 new file mode 100644
29 index 000000000000..e438b67454db
30 --- /dev/null
31 +++ b/app-containers/crun/crun-1.4.5.ebuild
32 @@ -0,0 +1,63 @@
33 +# Copyright 2019-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +
40 +inherit python-any-r1
41 +
42 +DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C"
43 +HOMEPAGE="https://github.com/containers/crun"
44 +SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.xz"
45 +
46 +LICENSE="GPL-2+ LGPL-2.1+"
47 +SLOT="0"
48 +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv"
49 +IUSE="+bpf +caps criu +seccomp selinux systemd static-libs"
50 +
51 +DEPEND="
52 + dev-libs/yajl:=
53 + sys-kernel/linux-headers
54 + caps? ( sys-libs/libcap )
55 + criu? ( >=sys-process/criu-3.15 )
56 + seccomp? ( sys-libs/libseccomp )
57 + systemd? ( sys-apps/systemd:= )
58 +"
59 +RDEPEND="${DEPEND}
60 + selinux? ( sec-policy/selinux-container )"
61 +BDEPEND="
62 + ${PYTHON_DEPS}
63 + virtual/pkgconfig
64 +"
65 +
66 +# the crun test suite is comprehensive to the extent that tests will fail
67 +# within a sandbox environment, due to the nature of the privileges
68 +# required to create linux "containers".
69 +RESTRICT="test"
70 +
71 +src_configure() {
72 + local myeconfargs=(
73 + $(use_enable bpf)
74 + $(use_enable caps)
75 + $(use_enable criu)
76 + $(use_enable seccomp)
77 + $(use_enable systemd)
78 + $(usex static-libs '--enable-shared --enable-static' '--enable-shared --disable-static' '' '')
79 + )
80 +
81 + # Need https://github.com/containers/libocispec/pull/107 to be merged & land in
82 + # a crun release that syncs up w/ latest version, then can drop CONFIG_SHELL
83 + CONFIG_SHELL="${BROOT}/bin/bash" econf "${myeconfargs[@]}"
84 +}
85 +
86 +src_compile() {
87 + emake -C libocispec
88 + emake crun
89 +}
90 +
91 +src_install() {
92 + emake "DESTDIR=${D}" install-exec
93 + doman crun.1
94 + einstalldocs
95 +}