1 |
commit: 9289c0b32921eb6a77af50e065855b86abfc11f3 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 27 22:09:52 2018 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 27 22:09:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9289c0b3 |
7 |
|
8 |
app-emulation/runc: Version bump to 1.0.0_rc5 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
app-emulation/runc/Manifest | 1 + |
13 |
app-emulation/runc/runc-1.0.0_rc5.ebuild | 54 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/runc/Manifest b/app-emulation/runc/Manifest |
17 |
index 04d48733c73..c2694922576 100644 |
18 |
--- a/app-emulation/runc/Manifest |
19 |
+++ b/app-emulation/runc/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST runc-1.0.0_rc4.tar.gz 1090513 BLAKE2B 276303e2085eddd549290e3af1a3af4570d0aef43f66f956267451810b0f0fb77f13ed12fe13b76efcd820fc7e0b46eac370a062f43c8600091a807cb12cf733 SHA512 cc2ae38b96f3f3355d9ba26f7af15c57975276aeaf58dcfe7fe5f0f0411ece8584a7cb51ae7fdd2f4109366f55ac8dfb86f225e26377fe07b685bbc56a2518ed |
22 |
+DIST runc-1.0.0_rc5.tar.gz 1183902 BLAKE2B 46d0ffd9aa79a6f74b3194fa9e1932390115a43c903ae553acb7749d6be41220874a1ff9bae9706b5fecb9495dd6686c38ee1e9baf6118a14990f142baf6f64d SHA512 714230887ff9706c29b0656c5cdb253698bde6252a23e7f48aa690747fb57abd7884c2da1c4d0e314f9f301c5962417351557d15d986e45fcc336e98069aeac6 |
23 |
|
24 |
diff --git a/app-emulation/runc/runc-1.0.0_rc5.ebuild b/app-emulation/runc/runc-1.0.0_rc5.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..53e421c63ab |
27 |
--- /dev/null |
28 |
+++ b/app-emulation/runc/runc-1.0.0_rc5.ebuild |
29 |
@@ -0,0 +1,54 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+EGO_PN="github.com/opencontainers/${PN}" |
35 |
+ |
36 |
+if [[ ${PV} == *9999 ]]; then |
37 |
+ inherit golang-build golang-vcs |
38 |
+else |
39 |
+ MY_PV="${PV/_/-}" |
40 |
+ EGIT_COMMIT="v${MY_PV}" |
41 |
+ RUNC_COMMIT="4fc53a8" # Change this when you update the ebuild |
42 |
+ SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
43 |
+ KEYWORDS="~amd64 ~arm ~ppc64" |
44 |
+ inherit golang-build golang-vcs-snapshot |
45 |
+fi |
46 |
+ |
47 |
+DESCRIPTION="runc container cli tools" |
48 |
+HOMEPAGE="http://runc.io" |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+IUSE="+ambient apparmor hardened +seccomp" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ apparmor? ( sys-libs/libapparmor ) |
56 |
+ seccomp? ( sys-libs/libseccomp ) |
57 |
+ !app-emulation/docker-runc |
58 |
+" |
59 |
+ |
60 |
+src_compile() { |
61 |
+ # Taken from app-emulation/docker-1.7.0-r1 |
62 |
+ export CGO_CFLAGS="-I${ROOT}/usr/include" |
63 |
+ export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '') |
64 |
+ -L${ROOT}/usr/$(get_libdir)" |
65 |
+ |
66 |
+ # build up optional flags |
67 |
+ local options=( |
68 |
+ $(usex ambient 'ambient') |
69 |
+ $(usex apparmor 'apparmor') |
70 |
+ $(usex seccomp 'seccomp') |
71 |
+ ) |
72 |
+ |
73 |
+ GOPATH="${S}"\ |
74 |
+ emake BUILDTAGS="${options[*]}" \ |
75 |
+ COMMIT="${RUNC_COMMIT}" -C src/${EGO_PN} |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ pushd src/${EGO_PN} || die |
80 |
+ dobin runc |
81 |
+ dodoc README.md PRINCIPLES.md |
82 |
+ popd || die |
83 |
+} |