Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/containerd/
Date: Fri, 27 Sep 2019 12:21:18
Message-Id: 1569586627.de160635f5742145dd0a63b18cae8fa6bf8b5f7a.mrueg@gentoo
1 commit: de160635f5742145dd0a63b18cae8fa6bf8b5f7a
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 27 12:17:07 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 27 12:17:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de160635
7
8 app-emulation/containerd: Version bump to 1.2.10
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
12
13 app-emulation/containerd/Manifest | 1 +
14 app-emulation/containerd/containerd-1.2.10.ebuild | 56 +++++++++++++++++++++++
15 2 files changed, 57 insertions(+)
16
17 diff --git a/app-emulation/containerd/Manifest b/app-emulation/containerd/Manifest
18 index a18502cdd4d..3134272503d 100644
19 --- a/app-emulation/containerd/Manifest
20 +++ b/app-emulation/containerd/Manifest
21 @@ -1,2 +1,3 @@
22 +DIST containerd-1.2.10.tar.gz 4923354 BLAKE2B 6727fde9949ca96f351964df3c0c7481cb5274895aa3b31552258d57cc5958bd2d3006cfe4d87088d24ac53de1c391b6029b3f800363ee743f08e1937f0d0fec SHA512 14d4f1cad1a68414915c1e98b64dfb6f3f29a0e86e18570d6cc138f4db14b56499b978135954198fe9e2a1363383694eed530b301a9dc699d28c305d4dbf3cd8
23 DIST containerd-1.2.6.tar.gz 4874159 BLAKE2B 202e19cffbe2b5335558dc1db28ea28a05dcc9e9b3aad864e090d86f7590df9e67ae685c9fc6ab2b8abdd1762d001fa9b298b1d311c080449bc86087b6af8c36 SHA512 287b064cb3e57369e34f6debb434526d6bd4857e337e489c56e4ca484c66e161bbda911b4fc29cb49808a756f6ec7af5629e46d693644500e3bf2d9e45e87e73
24 DIST containerd-1.2.7.tar.gz 4877757 BLAKE2B 6cf98e370547d3ca5158f546e72e3ff5fdccc08c2e9f390988d080222195f95512dbf6f7dc042b7a966283a040000b7b8777b3fbeb4c5b861caae4f6209c59c5 SHA512 b96ca236d28933c1bf309fc7204af7d2c356e19af394d5c2274a178c8f15298faf6ca9bb8e7d04acb7c3c9c41035446643a8df0103017f7ed0320bfc37cb8ca9
25
26 diff --git a/app-emulation/containerd/containerd-1.2.10.ebuild b/app-emulation/containerd/containerd-1.2.10.ebuild
27 new file mode 100644
28 index 00000000000..95e25445893
29 --- /dev/null
30 +++ b/app-emulation/containerd/containerd-1.2.10.ebuild
31 @@ -0,0 +1,56 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +EGO_PN="github.com/containerd/${PN}"
37 +
38 +inherit toolchain-funcs
39 +
40 +if [[ ${PV} == *9999 ]]; then
41 + inherit golang-vcs
42 +else
43 + MY_PV="${PV/_rc/-rc.}"
44 + EGIT_COMMIT="v${MY_PV}"
45 + CONTAINERD_COMMIT="b34a5c8af56e510852c35414db4c1f4fa6172339"
46 + SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
48 + inherit golang-vcs-snapshot
49 +fi
50 +
51 +DESCRIPTION="A daemon to control runC"
52 +HOMEPAGE="https://containerd.tools"
53 +
54 +LICENSE="Apache-2.0"
55 +SLOT="0"
56 +IUSE="apparmor +btrfs +cri hardened +seccomp"
57 +
58 +DEPEND="btrfs? ( sys-fs/btrfs-progs )
59 + seccomp? ( sys-libs/libseccomp )"
60 +RDEPEND=">=app-emulation/runc-1.0.0_rc8
61 + seccomp? ( sys-libs/libseccomp )"
62 +
63 +S=${WORKDIR}/${P}/src/${EGO_PN}
64 +
65 +RESTRICT="test"
66 +
67 +src_prepare() {
68 + default
69 + if [[ ${PV} != *9999* ]]; then
70 + sed -i -e "s/git describe --match.*$/echo ${PV})/"\
71 + -e "s/git rev-parse HEAD.*$/echo $CONTAINERD_COMMIT)/"\
72 + -e "s/-s -w//" \
73 + Makefile || die
74 + fi
75 +}
76 +
77 +src_compile() {
78 + local options=( $(usex btrfs "" "no_btrfs") $(usex cri "" "no_cri") $(usex seccomp "seccomp" "") $(usex apparmor "apparmor" "") )
79 + export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
80 + LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') BUILDTAGS="${options[@]}" emake
81 +}
82 +
83 +src_install() {
84 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
85 + keepdir /var/lib/containerd
86 + dobin bin/*
87 +}