commit:     97316b5e6fa64cd54b7c465134b86e78fbfff0ca
Author:     Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja>
AuthorDate: Fri May 13 14:47:33 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 13 20:12:38 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97316b5e

app-containers/crun: add 1.4.5

Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-containers/crun/Manifest          |  1 +
 app-containers/crun/crun-1.4.5.ebuild | 63 +++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/app-containers/crun/Manifest b/app-containers/crun/Manifest
index b64428a7e151..96b8d0c45ec8 100644
--- a/app-containers/crun/Manifest
+++ b/app-containers/crun/Manifest
@@ -1,3 +1,4 @@
 DIST crun-1.3.tar.xz 831108 BLAKE2B 
37e8d0ba764ae77c870c68ea9cd93f1ea1c751eb2b6aa84481f81b22ec2eb5d9e518d4808bd1bca545c57d18c5c491372694009d6498652cce45fda8864e5835
 SHA512 
3b58ee65a41bc85ec31147053f00e9c2a2e5ee9a72381a65c19480cc24d80cad7c9f6e1a47b3e020facf0603c54e4d2640db187c5e66a7deb8b1ead7bc111ee6
 DIST crun-1.4.2.tar.xz 873636 BLAKE2B 
f8b3546b7c4aeb7077af8cf9e7ec0059259143da80a6a0d020dc9d702e03008b2b1c2a6a5cdd555b625abc1f2ed5a55786525919eda15dc241d1b8f2334e8689
 SHA512 
f97eedf84a61cc3753f528b75b24f95131e871f734c8e770b9bdc4e1d33668162e6bdc0c4676c0164900bc987490d3dbd0060c27046091f012ad178ef42fbdbf
 DIST crun-1.4.4.tar.xz 877892 BLAKE2B 
57e48c0a229db3f54212177cef3fdb3f59b4bb1d1cc865da956f026a35837d839489bd126f880d7a9ceb18f5cffbf0e32ac9ae59a4cd39c34e3aff5b32c0559a
 SHA512 
1756dccf6509457a5dc114d43c4f4e99258a20c3437dfe06016d080989c5d3035f5735d62d18ab537b660ec36de04df369a2582745baf4ab680af367a19830fd
+DIST crun-1.4.5.tar.xz 879044 BLAKE2B 
c80cae28c23140086682493a7dddb40640491e3ea827f0a7376d9be12570111d056022f50b8d7c574ca07790753d20de2314db5b89463994c4fffbc7576c372d
 SHA512 
9f288279615fdf587018c465047fc8793daae280ab864bf9046994983239129d50f2eb89cac9b092e5cdc49a10f3523ab403a3f0e7451f7536b79f651a355153

diff --git a/app-containers/crun/crun-1.4.5.ebuild 
b/app-containers/crun/crun-1.4.5.ebuild
new file mode 100644
index 000000000000..e438b67454db
--- /dev/null
+++ b/app-containers/crun/crun-1.4.5.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+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.xz";
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv"
+IUSE="+bpf +caps criu +seccomp selinux systemd static-libs"
+
+DEPEND="
+       dev-libs/yajl:=
+       sys-kernel/linux-headers
+       caps? ( sys-libs/libcap )
+       criu? ( >=sys-process/criu-3.15 )
+       seccomp? ( sys-libs/libseccomp )
+       systemd? ( sys-apps/systemd:= )
+"
+RDEPEND="${DEPEND}
+       selinux? ( sec-policy/selinux-container )"
+BDEPEND="
+       ${PYTHON_DEPS}
+       virtual/pkgconfig
+"
+
+# the crun test suite is comprehensive to the extent that tests will fail
+# within a sandbox environment, due to the nature of the privileges
+# required to create linux "containers".
+RESTRICT="test"
+
+src_configure() {
+       local myeconfargs=(
+               $(use_enable bpf)
+               $(use_enable caps)
+               $(use_enable criu)
+               $(use_enable seccomp)
+               $(use_enable systemd)
+               $(usex static-libs '--enable-shared --enable-static' 
'--enable-shared --disable-static' '' '')
+       )
+
+       # Need https://github.com/containers/libocispec/pull/107 to be merged & 
land in
+       # a crun release that syncs up w/ latest version, then can drop 
CONFIG_SHELL
+       CONFIG_SHELL="${BROOT}/bin/bash" econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+       emake -C libocispec
+       emake crun
+}
+
+src_install() {
+       emake "DESTDIR=${D}" install-exec
+       doman crun.1
+       einstalldocs
+}

Reply via email to