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: Thu, 15 Feb 2018 00:58:39
Message-Id: 1518656304.490897feafb1eb71b0e7ca1704e068ba53a9bc2f.mrueg@gentoo
1 commit: 490897feafb1eb71b0e7ca1704e068ba53a9bc2f
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 15 00:58:24 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 15 00:58:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=490897fe
7
8 app-emulation/containerd: Version bump to 1.0.2
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 app-emulation/containerd/Manifest | 1 +
13 app-emulation/containerd/containerd-1.0.2.ebuild | 52 ++++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/app-emulation/containerd/Manifest b/app-emulation/containerd/Manifest
17 index 62d91ce9871..98e959577a6 100644
18 --- a/app-emulation/containerd/Manifest
19 +++ b/app-emulation/containerd/Manifest
20 @@ -1,3 +1,4 @@
21 DIST containerd-0.2.9_p20170917.tar.gz 1140788 BLAKE2B 96effa85f9cb03c3e416d53438376af6c7965660bf9c9931fdfa7fee94cca9386f2732e70dc88ee32b83e902b7d4a3072e22a817d9970ed1e07dc1271e8b33ab SHA512 c749bda691197ec8a7603db9ad92f2800a3f065143430a660333b7862518deb4c158a1c1fd01671dff438b40988d4a64d8f06bab05496b8728c6e2f57cd7da0a
22 DIST containerd-1.0.0.tar.gz 3763785 BLAKE2B cd4af679c9028b616aeedd594518f796a350523899c13da5a848a5843b318394166ddfbf5e7ed1f473a3759b26d134659f928d8e15da17ebdf65a41d2fd5f914 SHA512 8c1a03de7f30976675e4482b4f18f4b87da56108de4d92f2e33b4cb4f8c188af5b3fad87971a294eac8442a0fb6ddae48cda81334c363203a8c8bdfc09176a7a
23 DIST containerd-1.0.1.tar.gz 3766659 BLAKE2B 36c96a9e3cba22578daff31e46d9a876095e9de7e20e1e84a41076d9936f30a5681e41187a90f9a01884fd02086fa3c9a6ee29c8261401988a1cfa2026952431 SHA512 351c0e298ba6a9a14df2f367df23049a8a833eb18238e3d41cf0066feb2e0b8f2aa7b25fb4484a1b5c95bccf5cba3a8076a5bcfe25602b5368e7cf2a20872160
24 +DIST containerd-1.0.2.tar.gz 3772144 BLAKE2B 7549f47d1f0ff0244d7dedd41aabb76d2c2fc4942f8da3cf45fe0ca7b808b3aed4e39e0338d30ccc63cf37db3e59412442d43d272d3b073823e210a24d4d991a SHA512 d6b8eeaa942e1dccb21feb0723bb1ee29c878992c0f7128038c967580b4c6a1b4110371aa60962a331627d869d027a20ca47e6c625aedf68cac5d532d7f7094a
25
26 diff --git a/app-emulation/containerd/containerd-1.0.2.ebuild b/app-emulation/containerd/containerd-1.0.2.ebuild
27 new file mode 100644
28 index 00000000000..0051a46346c
29 --- /dev/null
30 +++ b/app-emulation/containerd/containerd-1.0.2.ebuild
31 @@ -0,0 +1,52 @@
32 +# Copyright 1999-2018 Gentoo Foundation
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="cfd0439"
46 + SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~amd64 ~arm ~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="+btrfs hardened"
57 +
58 +DEPEND="btrfs? ( sys-fs/btrfs-progs )"
59 +RDEPEND="|| ( >=app-emulation/docker-runc-1.0.0_rc4
60 + >=app-emulation/runc-1.0.0_rc4 )
61 + sys-libs/libseccomp"
62 +
63 +S=${WORKDIR}/${P}/src/${EGO_PN}
64 +
65 +src_prepare() {
66 + default
67 + if [[ ${PV} != *9999* ]]; then
68 + sed -i -e "s/git describe --match.*$/echo ${PV})/"\
69 + -e "s/git rev-parse HEAD.*$/echo $CONTAINERD_COMMIT)/"\
70 + -e "s/-s -w//" \
71 + Makefile || die
72 + fi
73 +}
74 +
75 +src_compile() {
76 + local options=( $(usex btrfs "" "no_btrfs") )
77 + export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
78 + LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') emake BUILDTAGS="${options[@]}"
79 +}
80 +
81 +src_install() {
82 + dobin bin/containerd{-shim,-stress,} bin/ctr
83 +}