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, 01 Dec 2017 14:16:31
Message-Id: 1512137769.a64414b3fd582f8a8e62139e79ec9addb9ee21d8.mrueg@gentoo
1 commit: a64414b3fd582f8a8e62139e79ec9addb9ee21d8
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 1 14:16:09 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 1 14:16:09 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a64414b3
7
8 app-emulation/containerd: Version bump to 1.0.0_rc0
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 app-emulation/containerd/Manifest | 1 +
13 .../containerd/containerd-1.0.0_rc0.ebuild | 52 ++++++++++++++++++++++
14 app-emulation/containerd/metadata.xml | 3 ++
15 3 files changed, 56 insertions(+)
16
17 diff --git a/app-emulation/containerd/Manifest b/app-emulation/containerd/Manifest
18 index d13366f20d4..b153b52a643 100644
19 --- a/app-emulation/containerd/Manifest
20 +++ b/app-emulation/containerd/Manifest
21 @@ -2,3 +2,4 @@ DIST containerd-0.2.9_p20170605.tar.gz 1229549 SHA256 c506121c49e3bfea27018aa77e
22 DIST containerd-0.2.9_p20170917.tar.gz 1140788 BLAKE2B 96effa85f9cb03c3e416d53438376af6c7965660bf9c9931fdfa7fee94cca9386f2732e70dc88ee32b83e902b7d4a3072e22a817d9970ed1e07dc1271e8b33ab SHA512 c749bda691197ec8a7603db9ad92f2800a3f065143430a660333b7862518deb4c158a1c1fd01671dff438b40988d4a64d8f06bab05496b8728c6e2f57cd7da0a
23 DIST containerd-1.0.0_beta2_p20171019.tar.gz 3682585 BLAKE2B a67b581e3e5ddf2e95d551a9cca3dafa14772dc6ec1f1b1226ce21b0d7f88f3f80669b21f471fede50d5dd68d3916ef8696d0551c333c57e87a8ee2db3d25488 SHA512 290dcc97c47dccc6af424f5bcdfa2b59ae29eda135f71fb68a456245017a7ce5262150088f91b9edcaa19886d8919e5b6246f2816d6947c0a9b33ec6b58185e9
24 DIST containerd-1.0.0_beta3.tar.gz 3696070 SHA256 efd40a7fdcb07b23273c389453559c0521c2cf4baf669cdf134cd10a21627ee4 SHA512 45853001bcf57f7289747b71215eb0bc60b18e54db73896779f294db1b72374cf36c8792371a8d46ddfe283dfc9655f10cb61b3a74420a79a4abb9fa89b76323 WHIRLPOOL 63c47a18c4d5f09043d0449a042c453451bfe4fedcb1e22eb35080c3730b1f181fcb58131f58ecf8e819688ccdfd9dbe4fb70cb9f3d08782257bb6126f05e0c5
25 +DIST containerd-1.0.0_rc0.tar.gz 3757536 BLAKE2B f316f74ddbf6f5049e9124de47a6f988cefed6428080b3ba9939da1deb3f6146ce4d9c337b7b6f5931901390e34e8eca47b7070d4812dc4edc5bc6e280cfd777 SHA512 32d9a115214b15e10782abc8ef37115979ca49a0bbf38278c280dcb0822761f38178826f934fb034263e7e0ee07be7558b59c26276edf37294e908f4e51e3807
26
27 diff --git a/app-emulation/containerd/containerd-1.0.0_rc0.ebuild b/app-emulation/containerd/containerd-1.0.0_rc0.ebuild
28 new file mode 100644
29 index 00000000000..5b020eaa7ee
30 --- /dev/null
31 +++ b/app-emulation/containerd/containerd-1.0.0_rc0.ebuild
32 @@ -0,0 +1,52 @@
33 +# Copyright 1999-2017 Gentoo Foundation
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="08f1793"
47 + SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
48 + KEYWORDS="~amd64 ~arm ~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="+btrfs hardened"
58 +
59 +DEPEND="btrfs? ( sys-fs/btrfs-progs )"
60 +RDEPEND="|| ( >=app-emulation/docker-runc-1.0.0_rc4
61 + >=app-emulation/runc-1.0.0_rc4 )
62 + sys-libs/libseccomp"
63 +
64 +S=${WORKDIR}/${P}/src/${EGO_PN}
65 +
66 +src_prepare() {
67 + default
68 + if [[ ${PV} != *9999* ]]; then
69 + sed -i -e "s/git describe --match.*$/echo ${PV})/"\
70 + -e "s/git rev-parse HEAD.*$/echo $CONTAINERD_COMMIT)/"\
71 + -e "s/-s -w//" \
72 + Makefile || die
73 + fi
74 +}
75 +
76 +src_compile() {
77 + local options=( $(usex btrfs "" "no_btrfs") )
78 + export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
79 + LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') emake BUILDTAGS="${options[@]}"
80 +}
81 +
82 +src_install() {
83 + dobin bin/containerd{-shim,-stress,} bin/ctr
84 +}
85
86 diff --git a/app-emulation/containerd/metadata.xml b/app-emulation/containerd/metadata.xml
87 index 92b6d2585af..7cc46305346 100644
88 --- a/app-emulation/containerd/metadata.xml
89 +++ b/app-emulation/containerd/metadata.xml
90 @@ -20,6 +20,9 @@
91 <email>williamh@g.o</email>
92 <name>William Hubbs</name>
93 </maintainer>
94 + <use>
95 + <flag name="btrfs">Support for BTRFS snapshot driver</flag>
96 + </use>
97 <upstream>
98 <remote-id type="github">docker/containerd</remote-id>
99 </upstream>