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/runc/
Date: Fri, 29 Mar 2019 14:35:16
Message-Id: 1553870084.938c1e718c6bf8a17780ab589c7c00d33fe31bce.mrueg@gentoo
1 commit: 938c1e718c6bf8a17780ab589c7c00d33fe31bce
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 29 14:34:44 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 29 14:34:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=938c1e71
7
8 app-emulation/runc: Version bump to 1.0.0_rc7
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/runc/Manifest | 1 +
14 app-emulation/runc/runc-1.0.0_rc7.ebuild | 63 ++++++++++++++++++++++++++++++++
15 2 files changed, 64 insertions(+)
16
17 diff --git a/app-emulation/runc/Manifest b/app-emulation/runc/Manifest
18 index 5d90a7a3cdd..7496b666bb9 100644
19 --- a/app-emulation/runc/Manifest
20 +++ b/app-emulation/runc/Manifest
21 @@ -1,3 +1,4 @@
22 DIST runc-1.0.0_rc5_p20180509.tar.gz 1185576 BLAKE2B b56f9c185c061f51a1fd81c19d378b06c71d06c6eddcbc1c946b234814eb469ea4af37bf42ef3889e4d37bc430e69d0a563281b13055f855f1bc15935531fe28 SHA512 9a55bdb8e39830f46cceff48970b7688139927552e3d268b9ef4a6e640ffc3d95164b99c5b05d07d295bedc2ea22daf6062fd520df1548d78b1d481fd928f1e3
23 DIST runc-1.0.0_rc6_p20181203.tar.gz 1202869 BLAKE2B 5b5808fc65f3725e5cc22794c5ff6c5eba6016110358b0f60dd3378df2e5b64afb5631e5652f45e9721838dd02745b8c5a88abfcd244de202196ac16bfccd5a7 SHA512 ec3d3fec773f2f9df714b0813efb110e21e328634e0b4ae77f323a892d0327aea5d4b6f9ae2a549aa06fda5b27431f4514fd663c7033dc170ca1a03627931f9d
24 DIST runc-1.0.0_rc6_p20190216.tar.gz 1663903 BLAKE2B d6094e85f1d35e1dcc7aed94adffe384f651953568345a9f6edb7ef17b24e25d8572ba84a23326c134c2dae28e1d62d0715a8bd6d949d7ef5cbc4cbc6af2f635 SHA512 e3d61506b44f05dfbad2e07d917c8408edea54c87a472ceb109e2ba2a1685b26f1407c2fe7660d416b60fc2583414af09567bcb8b3c95bc14f725d120373337c
25 +DIST runc-1.0.0_rc7.tar.gz 1665891 BLAKE2B eea7fa8f37d788d3e4ba97161ba2369cbdd660218f136bfb57430bf4080709707ed2bf10209f6eadaffe281e5222ccf2c085407fb2c4799c81266504750e24da SHA512 3c5cf70985f080afc633b79d7d5a045d1f5300398e2cc91770653a0f4b2dd38ac2b4ed25c199e92bc7399f9a711c28ed3fb6262fc4a8700527b3e45356d6f723
26
27 diff --git a/app-emulation/runc/runc-1.0.0_rc7.ebuild b/app-emulation/runc/runc-1.0.0_rc7.ebuild
28 new file mode 100644
29 index 00000000000..721b32088fd
30 --- /dev/null
31 +++ b/app-emulation/runc/runc-1.0.0_rc7.ebuild
32 @@ -0,0 +1,63 @@
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/opencontainers/${PN}"
38 +
39 +if [[ ${PV} == *9999 ]]; then
40 + inherit golang-build golang-vcs
41 +else
42 + MY_PV="${PV/_/-}"
43 + RUNC_COMMIT="69ae5da6afdcaaf38285a10b36f362e41cb298d6" # Change this when you update the ebuild
44 + SRC_URI="https://${EGO_PN}/archive/${RUNC_COMMIT}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
46 + inherit golang-build golang-vcs-snapshot
47 +fi
48 +
49 +DESCRIPTION="runc container cli tools"
50 +HOMEPAGE="http://runc.io"
51 +
52 +LICENSE="Apache-2.0"
53 +SLOT="0"
54 +IUSE="+ambient apparmor hardened +kmem +seccomp"
55 +
56 +RDEPEND="
57 + apparmor? ( sys-libs/libapparmor )
58 + seccomp? ( sys-libs/libseccomp )
59 + !app-emulation/docker-runc
60 +"
61 +
62 +src_prepare() {
63 + pushd src/${EGO_PN}
64 + default
65 + sed -i -e "/^GIT_BRANCH/d"\
66 + -e "/^GIT_BRANCH_CLEAN/d"\
67 + -e "/^COMMIT_NO/d"\
68 + -e "s/COMMIT :=.*/COMMIT := ${RUNC_COMMIT}/"\
69 + Makefile || die
70 + popd || die
71 +}
72 +
73 +src_compile() {
74 + # Taken from app-emulation/docker-1.7.0-r1
75 + export CGO_CFLAGS="-I${ROOT}/usr/include"
76 + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')
77 + -L${ROOT}/usr/$(get_libdir)"
78 +
79 + # build up optional flags
80 + local options=(
81 + $(usex ambient 'ambient' '')
82 + $(usex apparmor 'apparmor' '')
83 + $(usex seccomp 'seccomp' '')
84 + $(usex kmem '' 'nokmem')
85 + )
86 +
87 + GOPATH="${S}" emake BUILDTAGS="${options[*]}" -C src/${EGO_PN}
88 +}
89 +
90 +src_install() {
91 + pushd src/${EGO_PN} || die
92 + dobin runc
93 + dodoc README.md PRINCIPLES.md
94 + popd || die
95 +}