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