app-emulation/containerd: Sync some changes to live ebuild
authorManuel Rüger <mrueg@gentoo.org>
Fri, 3 Nov 2017 14:26:48 +0000 (15:26 +0100)
committerManuel Rüger <mrueg@gentoo.org>
Fri, 3 Nov 2017 14:26:48 +0000 (15:26 +0100)
Package-Manager: Portage-2.3.12, Repoman-2.3.4

app-emulation/containerd/containerd-9999.ebuild

index 42467124d22ed4c625ab2f1f6e7bd14a69829914..345b3fa9b966996b363c5a7c2fd66b07f003530b 100644 (file)
@@ -1,18 +1,18 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-EGO_PN="github.com/docker/${PN}"
+EGO_PN="github.com/containerd/${PN}"
 
 inherit toolchain-funcs
 
 if [[ ${PV} == *9999 ]]; then
        inherit golang-vcs
 else
-       MY_PV="${PV/_/-}"
+       MY_PV="${PV/_beta/-beta.}"
        EGIT_COMMIT="v${MY_PV}"
        SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
-       KEYWORDS="~amd64 ~ppc64"
+       KEYWORDS="~amd64 ~arm ~ppc64"
        inherit golang-vcs-snapshot
 fi
 
@@ -24,17 +24,17 @@ SLOT="0"
 IUSE="hardened +seccomp"
 
 DEPEND=""
-RDEPEND=">=app-emulation/runc-1.0.0_rc2
+RDEPEND=">=app-emulation/runc-1.0.0_rc4
        seccomp? ( sys-libs/libseccomp )"
 
 S=${WORKDIR}/${P}/src/${EGO_PN}
 
 src_compile() {
-       local options=( $(usex seccomp "seccomp") )
+       local options=( $(usex seccomp "seccomp" "") )
        export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
        LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') emake GIT_COMMIT="$EGIT_COMMIT" BUILDTAGS="${options[@]}"
 }
 
 src_install() {
-       dobin bin/containerd* bin/ctr
+       dobin bin/containerd{-shim,-stress,} bin/ctr
 }