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, 28 Mar 2019 14:20:37
Message-Id: 1553782807.5587b321c30f0fe46eac57d4c8140f916cdf9054.mrueg@gentoo
1 commit: 5587b321c30f0fe46eac57d4c8140f916cdf9054
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 28 14:20:07 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 28 14:20:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5587b321
7
8 app-emulation/containerd: Version bump to 1.2.5
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
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.5.ebuild | 56 ++++++++++++++++++++++++
15 2 files changed, 57 insertions(+)
16
17 diff --git a/app-emulation/containerd/Manifest b/app-emulation/containerd/Manifest
18 index c249575b87a..9eeb839fc7a 100644
19 --- a/app-emulation/containerd/Manifest
20 +++ b/app-emulation/containerd/Manifest
21 @@ -3,3 +3,4 @@ DIST containerd-1.1.4.tar.gz 5328134 BLAKE2B cb69f9bd80bc279ae2bd85c75152dacdbdf
22 DIST containerd-1.2.2.tar.gz 4607013 BLAKE2B aca366f23cb24ddd0363333e5a4ab0fc833f917c7f1f01d56fd22bdb4bc6721f077e5ba411db6faecc4152b8f047af5da95283029f6e66dadad49c7296b82c89 SHA512 0fdd8799c5afb75074b6f00d5191e983ff570b323242665055c73b2e7a6bdd74a745e287f4f7b675dde26e8bf083c144104151e794ad24d2a8f6f39ae2ee6fff
23 DIST containerd-1.2.3.tar.gz 4612104 BLAKE2B 9b975bea8f848c667c44e3b597fd16889796b5b482b2ea528505db9089da46da8d4e655ba8e77f6e205825be193984124b315231b9bda8bb75dc28d3500f9897 SHA512 01c6e196ddaebfffd069aca87c669acae3923bc9b25f3a59070a6fdbe28661afd4e548b9bb6a4faec3d3d3a937f36eacd7c179986d04f83428cff439e41b1e0d
24 DIST containerd-1.2.4.tar.gz 4866424 BLAKE2B bd06d2df49fa426b0bb6fdbcb091215e34a7a0c30eb97c84887451dbfc126eef89eea714bd725fdf038eb7a2c4416237a27fc12730a8f241c27a12d47bfaee43 SHA512 8a4e5064b2c1e14d39d9943f445ae18e4653f73bd3bb90f7efe558b9ffd4345db4b308362103dbfbede716eae8b547c1cec3d93962acb0a2ff34d66e4fce0d80
25 +DIST containerd-1.2.5.tar.gz 4871876 BLAKE2B f8652d00b4338d0f4a1d77d452a46c316cc38b57f2df64fcfcef463f10d030f363b54f1a12c4cb32d9010872c688a75ebc1d481439dc3eb84aab193fc80c9bc0 SHA512 b249d5bfc0c1f884ecc1ad4544f9440405450c31f11e80ac094bfddb7a6660e950116114e563d7655e07f888f2ff62f4476f2b178f4e0e2acbbb9fb84a243b25
26
27 diff --git a/app-emulation/containerd/containerd-1.2.5.ebuild b/app-emulation/containerd/containerd-1.2.5.ebuild
28 new file mode 100644
29 index 00000000000..f33a2808fa2
30 --- /dev/null
31 +++ b/app-emulation/containerd/containerd-1.2.5.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="bb71b10fd8f58240ca47fbb579b9d1028eea7c84"
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_rc5
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 +}