1 |
commit: 5ef66bebc02b9facd0b20e0282376f4dbbba4ff2 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 1 12:33:21 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 1 12:38:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ef66beb |
7 |
|
8 |
app-emulation/containerd: add 1.4.12 |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
app-emulation/containerd/Manifest | 1 + |
13 |
app-emulation/containerd/containerd-1.4.12.ebuild | 84 +++++++++++++++++++++++ |
14 |
2 files changed, 85 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/containerd/Manifest b/app-emulation/containerd/Manifest |
17 |
index 4cb47a486a9a..afccf8f9a0b7 100644 |
18 |
--- a/app-emulation/containerd/Manifest |
19 |
+++ b/app-emulation/containerd/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST containerd-1.4.11.tar.gz 6406769 BLAKE2B a4882223e2f71944a4d46fb0500a95248cfa33735447952f94c7d7350c2cb62b4911adc77f96559116cca462be02b7270185a0a3dfed5ce4c530465cca7e2078 SHA512 16aa6ae4209939754e122545b454d8b25027a3621464a4b4e0379480b35adf0efb318271f82cf2b959a62fffe531979c9bdfee9ac7d47d4b33269a6bafe2d070 |
22 |
+DIST containerd-1.4.12.tar.gz 6408402 BLAKE2B 559164a9d8680edea52040690da8e9b45777a39e471b1a7cc56ff4cf207cee7c83dc73969a8868db5d531f6e4e27cc7a975f073ffcf7f9c2768858b1a4001ddf SHA512 52dc4b0344eb4c6a6f1cc5690ff0c70ee052ef05c02300ed4a806458c40bb1970c26b374b0733b2c30a05c04a731d62a7c4206b1d768075d51c202912efd32b1 |
23 |
DIST containerd-1.5.7.tar.gz 7714453 BLAKE2B 621b6527814665432c52e72263da371840a183aa65f621a686111b59ee48e85dd96919abd35f069476b97858a8112d3c92b03afbe42d57495649ca0d2af2fd50 SHA512 ce0d9d355b4a6142569690a9fcde8cd07de20b5788098f1184a728106a60dd11a437c87499a97af0c147b14372c2bca4daa823ea470f10b5e1b8a1e34ba530b0 |
24 |
|
25 |
diff --git a/app-emulation/containerd/containerd-1.4.12.ebuild b/app-emulation/containerd/containerd-1.4.12.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..10c53e0472be |
28 |
--- /dev/null |
29 |
+++ b/app-emulation/containerd/containerd-1.4.12.ebuild |
30 |
@@ -0,0 +1,84 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+CONTAINERD_COMMIT=7b11cfaabd73bb80907dd23182b9347b4245eb5d |
37 |
+EGO_PN="github.com/containerd/${PN}" |
38 |
+inherit golang-vcs-snapshot |
39 |
+ |
40 |
+DESCRIPTION="A daemon to control runC" |
41 |
+HOMEPAGE="https://containerd.io/" |
42 |
+SRC_URI="https://github.com/containerd/containerd/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="Apache-2.0" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
47 |
+IUSE="apparmor btrfs device-mapper +cri hardened +seccomp selinux test" |
48 |
+ |
49 |
+DEPEND=" |
50 |
+ btrfs? ( sys-fs/btrfs-progs ) |
51 |
+ seccomp? ( sys-libs/libseccomp ) |
52 |
+" |
53 |
+ |
54 |
+# recommended version of runc is found in script/setup/runc-version |
55 |
+RDEPEND=" |
56 |
+ ${DEPEND} |
57 |
+ ~app-emulation/runc-1.0.2 |
58 |
+" |
59 |
+ |
60 |
+BDEPEND=" |
61 |
+ dev-go/go-md2man |
62 |
+ virtual/pkgconfig |
63 |
+ test? ( ${RDEPEND} ) |
64 |
+" |
65 |
+ |
66 |
+# tests require root or docker |
67 |
+# upstream does not recommend stripping binary |
68 |
+RESTRICT+=" strip test" |
69 |
+ |
70 |
+S="${WORKDIR}/${P}/src/${EGO_PN}" |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ default |
74 |
+ sed -i -e "s/git describe --match.*$/echo ${PV})/"\ |
75 |
+ -e "s/git rev-parse HEAD.*$/echo ${CONTAINERD_COMMIT})/"\ |
76 |
+ -e "s/-s -w//" \ |
77 |
+ Makefile || die |
78 |
+} |
79 |
+ |
80 |
+src_compile() { |
81 |
+ local options=( |
82 |
+ $(usev apparmor) |
83 |
+ $(usex btrfs "" "no_btrfs") |
84 |
+ $(usex cri "" "no_cri") |
85 |
+ $(usex device-mapper "" "no_devmapper") |
86 |
+ $(usev seccomp) |
87 |
+ $(usev selinux) |
88 |
+ ) |
89 |
+ |
90 |
+ myemakeargs=( |
91 |
+ BUILDTAGS="${options[*]}" |
92 |
+ LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" |
93 |
+ ) |
94 |
+ |
95 |
+ export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor |
96 |
+ export GOFLAGS="-v -x -mod=vendor" |
97 |
+ # race condition in man target https://bugs.gentoo.org/765100 |
98 |
+ emake "${myemakeargs[@]}" man -j1 #nowarn |
99 |
+ emake "${myemakeargs[@]}" all |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ dobin bin/* |
104 |
+ doman man/* |
105 |
+ newinitd "${FILESDIR}"/${PN}.initd "${PN}" |
106 |
+ keepdir /var/lib/containerd |
107 |
+ |
108 |
+ # we already installed manpages, remove markdown source |
109 |
+ # before installing docs directory |
110 |
+ rm -r docs/man || die |
111 |
+ |
112 |
+ local DOCS=( README.md PLUGINS.md docs/. ) |
113 |
+ einstalldocs |
114 |
+} |