1 |
commit: 92bc07bb4bb4afe89c8447736c630cc0c8273a42 |
2 |
Author: Alexey Zapparov <alexey <AT> zapparov <DOT> com> |
3 |
AuthorDate: Mon Nov 29 04:12:45 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 1 18:02:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92bc07bb |
7 |
|
8 |
app-emulation/crun: add 1.3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/827821 |
11 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
12 |
Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com> |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
app-emulation/crun/Manifest | 1 + |
16 |
app-emulation/crun/crun-1.3.ebuild | 57 ++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 58 insertions(+) |
18 |
|
19 |
diff --git a/app-emulation/crun/Manifest b/app-emulation/crun/Manifest |
20 |
index 91b667a3ed95..e4bf92580755 100644 |
21 |
--- a/app-emulation/crun/Manifest |
22 |
+++ b/app-emulation/crun/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST crun-0.19.1.tar.gz 1870594 BLAKE2B 1780a2936ff39ec80836c4c9ae072e2fc30703a31a79786337290c62dd433b5a35dcfa953be370703d1baab3de93fdb376c99ab76dff1470883c61726c313144 SHA512 f93f79d1d63d6749bcf92d48542d9555f3ad47657c959c7c06701861d7a5a4171969f00f6dff3878286970a48aba3314c25e35c005463e606533b0ff7843d994 |
25 |
DIST crun-1.2.tar.gz 1879836 BLAKE2B 45370e3206a13c963d694f338dc0a00de24253025d31ec893353905235b239b8e7f626ddd4ee0cc32da2b3f5676b42f59f3214a1eb9c3af4612483cd6fd14693 SHA512 5cadaf0eb0e9bcf53726e7f6ffb664c8327f0f4e7cdbf75ae8a0cd4759f7c8a8a2611df65ca1436a50d7af5d37505aac861d7db4d46a93c3832362228cb37cbc |
26 |
+DIST crun-1.3.tar.gz 1889283 BLAKE2B d7e7f676ca5db8322b9da2110c9a9e8eb11b13b5e9f1432ccc6ef12bf6ae7db3a28e3227fac86091589a215394ec577e91ccbffec532dabf44be746cb8a5d404 SHA512 9600bdacf5fd2defa542230b6e134920eb80e9d4c49598167b9d58887719765c174f1ac8559c0092dc1b5435274124e0b29c3d0830df86d1cfd690d67c746016 |
27 |
|
28 |
diff --git a/app-emulation/crun/crun-1.3.ebuild b/app-emulation/crun/crun-1.3.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..29ed772f9849 |
31 |
--- /dev/null |
32 |
+++ b/app-emulation/crun/crun-1.3.ebuild |
33 |
@@ -0,0 +1,57 @@ |
34 |
+# Copyright 2019-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{7..10} ) |
40 |
+ |
41 |
+inherit autotools python-any-r1 |
42 |
+ |
43 |
+DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C" |
44 |
+HOMEPAGE="https://github.com/containers/crun" |
45 |
+SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2+ LGPL-2.1+" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64" |
50 |
+IUSE="+bpf +caps criu +seccomp systemd static-libs" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ dev-libs/yajl:= |
54 |
+ sys-kernel/linux-headers |
55 |
+ caps? ( sys-libs/libcap ) |
56 |
+ criu? ( >=sys-process/criu-3.15 ) |
57 |
+ seccomp? ( sys-libs/libseccomp ) |
58 |
+ systemd? ( sys-apps/systemd:= ) |
59 |
+" |
60 |
+RDEPEND="${DEPEND}" |
61 |
+BDEPEND="${PYTHON_DEPS}" |
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 |
+src_configure() { |
69 |
+ local myeconfargs=( |
70 |
+ $(use_enable bpf) |
71 |
+ $(use_enable caps) |
72 |
+ $(use_enable criu) |
73 |
+ $(use_enable seccomp) |
74 |
+ $(use_enable systemd) |
75 |
+ $(usex static-libs '--enable-shared --enable-static' '--enable-shared --disable-static' '' '') |
76 |
+ ) |
77 |
+ |
78 |
+ econf "${myeconfargs[@]}" |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ emake -C libocispec |
83 |
+ emake crun |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ emake "DESTDIR=${D}" install-exec |
88 |
+ doman crun.1 |
89 |
+ einstalldocs |
90 |
+} |