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