1 |
commit: 7409655e3a8d4991fe41abe1d20acd87b1b5b9f4 |
2 |
Author: Robert Günzler <r <AT> gnzler <DOT> io> |
3 |
AuthorDate: Fri Jul 17 16:09:24 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 5 12:18:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7409655e |
7 |
|
8 |
app-emulation/crun: Bump to 0.14.1 |
9 |
|
10 |
Signed-off-by: Robert Günzler <r <AT> gnzler.io> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
app-emulation/crun/Manifest | 2 + |
14 |
app-emulation/crun/crun-0.14.1.ebuild | 79 +++++++++++++++++++++++++++++++++++ |
15 |
app-emulation/crun/metadata.xml | 1 + |
16 |
3 files changed, 82 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/crun/Manifest b/app-emulation/crun/Manifest |
19 |
index 24ebd99e11b..db514cf9c50 100644 |
20 |
--- a/app-emulation/crun/Manifest |
21 |
+++ b/app-emulation/crun/Manifest |
22 |
@@ -1 +1,3 @@ |
23 |
DIST crun-0.13.tar.gz 1305048 BLAKE2B fbffabf4cfc744522147b47c5e2bf2bc48e074866108ec4ec8ab94e7ebdc39451851696fabde268b5853e1c3fafb0ac93527e08fdb766acebdd7cf952a9e1a9e SHA512 314612eaf3097160e9369b3400ac8a83e173ef1a53295191c925e96212ba00d032883db1e4615b8ba42ddb08f1e31ca5e5088ea583a469835ac3c27087a88d6e |
24 |
+DIST crun-0.14.1.tar.gz 1341891 BLAKE2B c20d5001161e298050ddca859fa78487fe3f8577ef0b06eb5515056f19ba4f981debeb684148de49111a0370b9bafb7f6454d65f7ecf087862c697a162c9b377 SHA512 420f1713653cbd17df83b2a63d163aaa41baf78115b093877a2241305e10b2ceeaf08ea6700658eca894729ff8a20cbc66f868d18d27fba3fbedf1a9993b122e |
25 |
+DIST libcrun.lds 257 BLAKE2B 00e7cdf3162ea0b7231dbb9037b192bcf5ffa83316e1aa60268560bc9fe8302be351c405861f9dfc06620ea64561a9226f58b7133039c0af1299dc4088b98272 SHA512 0e9b836c79ee4ad7ff33c592eca8ff41f38aed588f2f5a2416bed82efa819cd4c61ad65a2dfd11a37838a19d950688b1d5adb3b75841963dbb589536e8a867f7 |
26 |
|
27 |
diff --git a/app-emulation/crun/crun-0.14.1.ebuild b/app-emulation/crun/crun-0.14.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..afa4cc5bdb2 |
30 |
--- /dev/null |
31 |
+++ b/app-emulation/crun/crun-0.14.1.ebuild |
32 |
@@ -0,0 +1,79 @@ |
33 |
+# Copyright 2019-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{6,7} ) |
39 |
+ |
40 |
+inherit autotools 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.gz |
45 |
+ https://github.com/containers/${PN}/raw/${PV}/libcrun.lds" |
46 |
+ |
47 |
+LICENSE="GPL-2+ LGPL-2.1+" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64" |
50 |
+IUSE="bpf +caps man seccomp systemd static-libs" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ dev-libs/yajl |
54 |
+ caps? ( sys-libs/libcap ) |
55 |
+ seccomp? ( sys-libs/libseccomp ) |
56 |
+ systemd? ( sys-apps/systemd:= ) |
57 |
+" |
58 |
+RDEPEND="${DEPEND}" |
59 |
+BDEPEND=" |
60 |
+ ${PYTHON_DEPS} |
61 |
+ man? ( dev-go/go-md2man ) |
62 |
+" |
63 |
+ |
64 |
+# the crun test suite is comprehensive to the extent that tests will fail |
65 |
+# within a sandbox environment, due to the nature of the privileges |
66 |
+# required to create linux "containers". |
67 |
+RESTRICT="test" |
68 |
+ |
69 |
+DOCS=( README.md ) |
70 |
+ |
71 |
+src_unpack() { |
72 |
+ # dont' try to unpack the .lds file |
73 |
+ A=( ${A[@]/libcrun.lds} ) |
74 |
+ unpack ${A} |
75 |
+} |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ default |
79 |
+ eautoreconf |
80 |
+ cp -v ${DISTDIR}/libcrun.lds ${S}/ || die "libcrun.lds could not be copied" |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ local myeconfargs=( |
85 |
+ --disable-criu \ |
86 |
+ $(use_enable bpf) \ |
87 |
+ $(use_enable caps) \ |
88 |
+ $(use_enable seccomp) \ |
89 |
+ $(use_enable systemd) \ |
90 |
+ $(usex static-libs '--enabled-shared --enabled-static' '--enable-shared --disable-static' '' '') |
91 |
+ ) |
92 |
+ |
93 |
+ econf "${myeconfargs[@]}" |
94 |
+} |
95 |
+ |
96 |
+src_compile() { |
97 |
+ emake -C libocispec |
98 |
+ emake crun |
99 |
+ if use man ; then |
100 |
+ emake generate-man |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ emake "DESTDIR=${D}" install-exec |
106 |
+ if use man ; then |
107 |
+ emake "DESTDIR=${D}" install-man |
108 |
+ fi |
109 |
+ |
110 |
+ einstalldocs |
111 |
+} |
112 |
|
113 |
diff --git a/app-emulation/crun/metadata.xml b/app-emulation/crun/metadata.xml |
114 |
index 4564ac52598..1ce63174e0f 100644 |
115 |
--- a/app-emulation/crun/metadata.xml |
116 |
+++ b/app-emulation/crun/metadata.xml |
117 |
@@ -26,5 +26,6 @@ |
118 |
<flag name="bpf">Enable in Kernel, eBPF (enhanced Berkley Packet Filter) |
119 |
support for managing device controllers. |
120 |
</flag> |
121 |
+ <flag name="man">Build and install man pages</flag> |
122 |
</use> |
123 |
</pkgmetadata> |