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: Tue, 28 Mar 2017 01:04:51
Message-Id: 1490663064.b7f70f03e1a08f98fe623d76225224bfc7e85530.mrueg@gentoo
1 commit: b7f70f03e1a08f98fe623d76225224bfc7e85530
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 28 01:04:24 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 28 01:04:24 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7f70f03
7
8 app-emulation/runc: Version bump to 1.0.0_rc3
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11
12 app-emulation/runc/Manifest | 1 +
13 app-emulation/runc/metadata.xml | 3 ++
14 app-emulation/runc/runc-1.0.0_rc3.ebuild | 55 ++++++++++++++++++++++++++++++++
15 3 files changed, 59 insertions(+)
16
17 diff --git a/app-emulation/runc/Manifest b/app-emulation/runc/Manifest
18 index 7f076980753..c2fb30a64c5 100644
19 --- a/app-emulation/runc/Manifest
20 +++ b/app-emulation/runc/Manifest
21 @@ -1,2 +1,3 @@
22 DIST runc-1.0.0_rc2.tar.gz 550449 SHA256 638742c48426b9a3281aeb619e27513d972de228bdbd43b478baea99c186d491 SHA512 83a3d45efbb86d3d583b96062202b9e60121d250af2c0dd37d07fda574b642aa6f05e29cac6644ad3d624647400db694082e280383e41ca9f31dc0a33b87ed76 WHIRLPOOL 990a45739689db80bbeed43b0fd3a4ce4d0563ea833361b9112e750782313f19e638c4bfbd455f5dd1882d64c724dcf0213701322029c2c9f98f624863c744f3
23 DIST runc-1.0.0_rc2_p20170222.tar.gz 576999 SHA256 1ee6491b9c14e0ce9e0546ed92e3eb4bdc60cf4b5e58b6de0455dbe3b03145cb SHA512 fe293057f55eee4f3821004af730ad57f512d610d7cf3693b26e69ffa068c8c28da5426b9f4988627c0803ecd1d46b6e427db8f1703649f5861859d61cd24bbd WHIRLPOOL 561c09ffc7d3e0f1dd73f3711adb85b74d5fea265181cdd1535a83d23a164c1e4cb884053c0b46c968b0b582feeb2ccc9eb99e3e086b1fcbcce0813f4444172c
24 +DIST runc-1.0.0_rc3.tar.gz 453694 SHA256 77dc6c48704da4005896acf369d0ee306f8af684c54a815f589fd87043221380 SHA512 298a176db119a02c1dbe5c095897f34955d6d0d7ea3cb21496258a23225bae35603a818c13f7adc4be1c1f4e2b3a8a540fb2fc1b2828a59f29a53e3c8b13c354 WHIRLPOOL 649aba93a24eff37042cc08d55cff0d97d6e4fe6b2c35053b36a4a186040e8772b8f63be488f3cb8d75e7daa61193669a79b2ed1f04a13ae47695c98dccb17ec
25
26 diff --git a/app-emulation/runc/metadata.xml b/app-emulation/runc/metadata.xml
27 index 5a682ed8ba1..91b38bdea9d 100644
28 --- a/app-emulation/runc/metadata.xml
29 +++ b/app-emulation/runc/metadata.xml
30 @@ -18,6 +18,9 @@
31 <name>Manuel Rüger</name>
32 </maintainer>
33 <use>
34 + <flag name="ambient">
35 + Enable support for ambient capabilities set (Requires Linux kernel 4.3 or later).
36 + </flag>
37 <flag name="apparmor">
38 Enable AppArmor support.
39 </flag>
40
41 diff --git a/app-emulation/runc/runc-1.0.0_rc3.ebuild b/app-emulation/runc/runc-1.0.0_rc3.ebuild
42 new file mode 100644
43 index 00000000000..ed12e14ff1b
44 --- /dev/null
45 +++ b/app-emulation/runc/runc-1.0.0_rc3.ebuild
46 @@ -0,0 +1,55 @@
47 +# Copyright 1999-2017 Gentoo Foundation
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=6
51 +EGO_PN="github.com/opencontainers/${PN}/..."
52 +
53 +if [[ ${PV} == *9999 ]]; then
54 + inherit golang-build golang-vcs
55 +else
56 + MY_PV="${PV/_/-}"
57 + EGIT_COMMIT="v${MY_PV}"
58 + RUNC_COMMIT="75f8da7" # Change this when you update the ebuild
59 + SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
60 + KEYWORDS="~amd64 ~ppc64"
61 + inherit golang-build golang-vcs-snapshot
62 +fi
63 +
64 +DESCRIPTION="runc container cli tools"
65 +HOMEPAGE="http://runc.io"
66 +
67 +LICENSE="Apache-2.0"
68 +SLOT="0"
69 +IUSE="+ambient apparmor hardened +seccomp"
70 +
71 +RDEPEND="
72 + apparmor? ( sys-libs/libapparmor )
73 + seccomp? ( sys-libs/libseccomp )
74 + !app-emulation/docker-runc
75 +"
76 +
77 +src_compile() {
78 + # Taken from app-emulation/docker-1.7.0-r1
79 + export CGO_CFLAGS="-I${ROOT}/usr/include"
80 + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')
81 + -L${ROOT}/usr/$(get_libdir)"
82 +
83 + # build up optional flags
84 + local options=(
85 + $(usex ambient 'ambient')
86 + $(usex apparmor 'apparmor')
87 + $(usex seccomp 'seccomp')
88 + )
89 +
90 + GOPATH="${S}"\
91 + emake BUILDTAGS="${options[*]}" \
92 + COMMIT="${RUNC_COMMIT}" -C src/${EGO_PN%/*}
93 +}
94 +
95 +src_install() {
96 + pushd src/${EGO_PN%/*} || die
97 + dobin runc
98 + dodoc README.md PRINCIPLES.md
99 + popd || die
100 +
101 +}