1 |
commit: 05588860bcb0776e8aa0ef05d541abdf3d04e3b2 |
2 |
Author: Robert Günzler <r <AT> gnzler <DOT> io> |
3 |
AuthorDate: Mon Sep 28 19:00:09 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 6 01:14:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05588860 |
7 |
|
8 |
app-emulation/crun: bump to 0.15 |
9 |
|
10 |
Signed-off-by: Robert Günzler <r <AT> gnzler.io> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/17702 |
12 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
13 |
|
14 |
app-emulation/crun/Manifest | 1 + |
15 |
app-emulation/crun/crun-0.15.ebuild | 68 +++++++++++++++++++++++++++++++++++++ |
16 |
app-emulation/crun/metadata.xml | 1 + |
17 |
3 files changed, 70 insertions(+) |
18 |
|
19 |
diff --git a/app-emulation/crun/Manifest b/app-emulation/crun/Manifest |
20 |
index e95ed9bd252..412ce2e26eb 100644 |
21 |
--- a/app-emulation/crun/Manifest |
22 |
+++ b/app-emulation/crun/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST crun-0.14.1.tar.gz 1341891 BLAKE2B c20d5001161e298050ddca859fa78487fe3f8577ef0b06eb5515056f19ba4f981debeb684148de49111a0370b9bafb7f6454d65f7ecf087862c697a162c9b377 SHA512 420f1713653cbd17df83b2a63d163aaa41baf78115b093877a2241305e10b2ceeaf08ea6700658eca894729ff8a20cbc66f868d18d27fba3fbedf1a9993b122e |
25 |
+DIST crun-0.15.tar.gz 1364861 BLAKE2B 7078e71229bae4bc663398891b21344abc3189c78a11e4feeae3236e1df4a2c5160cf26f2cc243d4c0898a642a779603d473d2c22ca2b67123c6ac4654fce4d7 SHA512 f9a9e94b6a9c5cff01fe93b1c3d5876a0794e6288b802cf579556e11411ca5d6e63cae3859aaa4df4bb600e2d27aa131872a93a92784b9b48f7885411d86f325 |
26 |
DIST libcrun.lds 257 BLAKE2B 00e7cdf3162ea0b7231dbb9037b192bcf5ffa83316e1aa60268560bc9fe8302be351c405861f9dfc06620ea64561a9226f58b7133039c0af1299dc4088b98272 SHA512 0e9b836c79ee4ad7ff33c592eca8ff41f38aed588f2f5a2416bed82efa819cd4c61ad65a2dfd11a37838a19d950688b1d5adb3b75841963dbb589536e8a867f7 |
27 |
|
28 |
diff --git a/app-emulation/crun/crun-0.15.ebuild b/app-emulation/crun/crun-0.15.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..fef2bae5170 |
31 |
--- /dev/null |
32 |
+++ b/app-emulation/crun/crun-0.15.ebuild |
33 |
@@ -0,0 +1,68 @@ |
34 |
+# Copyright 2019-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{6,7} ) |
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 man +seccomp systemd static-libs" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ sys-kernel/linux-headers |
54 |
+ >=dev-libs/yajl-2.0.0 |
55 |
+ caps? ( sys-libs/libcap ) |
56 |
+ criu? ( >=sys-process/criu-3.13 ) |
57 |
+ seccomp? ( sys-libs/libseccomp ) |
58 |
+ systemd? ( sys-apps/systemd:= ) |
59 |
+" |
60 |
+RDEPEND="${DEPEND}" |
61 |
+BDEPEND=" |
62 |
+ ${PYTHON_DEPS} |
63 |
+ man? ( dev-go/go-md2man ) |
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 |
+DOCS=( README.md ) |
72 |
+ |
73 |
+src_configure() { |
74 |
+ local myeconfargs=( |
75 |
+ $(use_enable bpf) \ |
76 |
+ $(use_enable caps) \ |
77 |
+ $(use_enable criu) \ |
78 |
+ $(use_enable seccomp) \ |
79 |
+ $(use_enable systemd) \ |
80 |
+ $(usex static-libs '--enabled-shared --enabled-static' '--enable-shared --disable-static' '' '') |
81 |
+ ) |
82 |
+ |
83 |
+ econf "${myeconfargs[@]}" |
84 |
+} |
85 |
+ |
86 |
+src_compile() { |
87 |
+ emake -C libocispec |
88 |
+ emake crun |
89 |
+ if use man ; then |
90 |
+ emake generate-man |
91 |
+ fi |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ emake "DESTDIR=${D}" install-exec |
96 |
+ if use man ; then |
97 |
+ emake "DESTDIR=${D}" install-man |
98 |
+ fi |
99 |
+ |
100 |
+ einstalldocs |
101 |
+} |
102 |
|
103 |
diff --git a/app-emulation/crun/metadata.xml b/app-emulation/crun/metadata.xml |
104 |
index 75532b362a4..e26e3d83bf6 100644 |
105 |
--- a/app-emulation/crun/metadata.xml |
106 |
+++ b/app-emulation/crun/metadata.xml |
107 |
@@ -27,5 +27,6 @@ |
108 |
support for managing device controllers. |
109 |
</flag> |
110 |
<flag name="man">Build and install man pages</flag> |
111 |
+ <flag name="criu">Enable CRIU based checkpoint/restore support</flag> |
112 |
</use> |
113 |
</pkgmetadata> |