1 |
commit: 6216e942037bfab1e0fd3f1dc9c136410a8bbb00 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 4 18:11:17 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 4 18:39:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6216e942 |
7 |
|
8 |
app-emulation/crun: add 1.2 |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
app-emulation/crun/Manifest | 1 + |
13 |
app-emulation/crun/crun-1.2.ebuild | 57 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 58 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/crun/Manifest b/app-emulation/crun/Manifest |
17 |
index 7ddc8f69e7a..91b667a3ed9 100644 |
18 |
--- a/app-emulation/crun/Manifest |
19 |
+++ b/app-emulation/crun/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST crun-0.19.1.tar.gz 1870594 BLAKE2B 1780a2936ff39ec80836c4c9ae072e2fc30703a31a79786337290c62dd433b5a35dcfa953be370703d1baab3de93fdb376c99ab76dff1470883c61726c313144 SHA512 f93f79d1d63d6749bcf92d48542d9555f3ad47657c959c7c06701861d7a5a4171969f00f6dff3878286970a48aba3314c25e35c005463e606533b0ff7843d994 |
22 |
+DIST crun-1.2.tar.gz 1879836 BLAKE2B 45370e3206a13c963d694f338dc0a00de24253025d31ec893353905235b239b8e7f626ddd4ee0cc32da2b3f5676b42f59f3214a1eb9c3af4612483cd6fd14693 SHA512 5cadaf0eb0e9bcf53726e7f6ffb664c8327f0f4e7cdbf75ae8a0cd4759f7c8a8a2611df65ca1436a50d7af5d37505aac861d7db4d46a93c3832362228cb37cbc |
23 |
|
24 |
diff --git a/app-emulation/crun/crun-1.2.ebuild b/app-emulation/crun/crun-1.2.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..0fef6a729b1 |
27 |
--- /dev/null |
28 |
+++ b/app-emulation/crun/crun-1.2.ebuild |
29 |
@@ -0,0 +1,57 @@ |
30 |
+# Copyright 2019-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{7..10} ) |
36 |
+ |
37 |
+inherit autotools python-any-r1 |
38 |
+ |
39 |
+DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C" |
40 |
+HOMEPAGE="https://github.com/containers/crun" |
41 |
+SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2+ LGPL-2.1+" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64" |
46 |
+IUSE="+bpf +caps criu +seccomp systemd static-libs" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ sys-kernel/linux-headers |
50 |
+ >=dev-libs/yajl-2.0.0 |
51 |
+ caps? ( sys-libs/libcap ) |
52 |
+ criu? ( >=sys-process/criu-3.15 ) |
53 |
+ seccomp? ( sys-libs/libseccomp ) |
54 |
+ systemd? ( sys-apps/systemd:= ) |
55 |
+" |
56 |
+RDEPEND="${DEPEND}" |
57 |
+BDEPEND="${PYTHON_DEPS}" |
58 |
+ |
59 |
+# the crun test suite is comprehensive to the extent that tests will fail |
60 |
+# within a sandbox environment, due to the nature of the privileges |
61 |
+# required to create linux "containers". |
62 |
+RESTRICT="test" |
63 |
+ |
64 |
+src_configure() { |
65 |
+ local myeconfargs=( |
66 |
+ $(use_enable bpf) |
67 |
+ $(use_enable caps) |
68 |
+ $(use_enable criu) |
69 |
+ $(use_enable seccomp) |
70 |
+ $(use_enable systemd) |
71 |
+ $(usex static-libs '--enable-shared --enable-static' '--enable-shared --disable-static' '' '') |
72 |
+ ) |
73 |
+ |
74 |
+ econf "${myeconfargs[@]}" |
75 |
+} |
76 |
+ |
77 |
+src_compile() { |
78 |
+ emake -C libocispec |
79 |
+ emake crun |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ emake "DESTDIR=${D}" install-exec |
84 |
+ doman crun.1 |
85 |
+ einstalldocs |
86 |
+} |