1 |
commit: 451657b38764f4e9259ae37521231c3b9cfedf89 |
2 |
Author: Dan Molik <dan <AT> danmolik <DOT> com> |
3 |
AuthorDate: Thu Jan 3 19:49:22 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 4 00:06:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=451657b3 |
7 |
|
8 |
app-emulation/cri-o: version bump to 1.13.0 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/10732 |
11 |
Tested-by: Dan Molik <dan <AT> danmolik.com> |
12 |
Package-Manager: Portage-2.3.53, Repoman-2.3.12 |
13 |
Signed-off-by: Dan Molik <dan <AT> danmolik.com> |
14 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
15 |
|
16 |
app-emulation/cri-o/Manifest | 1 + |
17 |
app-emulation/cri-o/cri-o-1.13.0.ebuild | 105 ++++++++++++++++++++++++++++++++ |
18 |
app-emulation/cri-o/metadata.xml | 2 +- |
19 |
3 files changed, 107 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/app-emulation/cri-o/Manifest b/app-emulation/cri-o/Manifest |
22 |
index 144949df2fb..54c311b4dfe 100644 |
23 |
--- a/app-emulation/cri-o/Manifest |
24 |
+++ b/app-emulation/cri-o/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
DIST cri-o-1.10.1.tar.gz 5159128 BLAKE2B bd6727bedb1f1ca99771995817897721b340331a28dc00646fe6b13765328bbba363aeba4490c12c8d38f9e204e6c744c38f43b4fbbd39d2b44c95be0681475b SHA512 dc85a94cf980ba11a2213e7cec73eeb78460a6a14c50f02f8772ac0d0fe179374d88de01c72f24506a9f1a61db6bf6738114c8944631f76906f6e42f9cf35bde |
27 |
DIST cri-o-1.10.6.tar.gz 5161858 BLAKE2B bbfaf60c92dee3a9f42e9d4fc9b5482057a7a0ff2de36d74d434e2e60b53f92f70980c83825c18089c4a48bfa01c164b77aa01506c68c763f00265796e07d367 SHA512 b6a412cf5859dab79095732c2528e2ba373b3c21740203441fd3646862e2458e78e71f1895a5def05207964ef96a354c04395356e426600994bb39d3adfd0894 |
28 |
+DIST cri-o-1.13.0.tar.gz 6499846 BLAKE2B 71edb779a4e126ca8a1959c51a86d3f223f66ecbd492a0c314de0f7b5ed0c39b5f0c0550e5690a388ebc00d6f2f5a2dc675e8bf67ed6805b0e5e0cd000e9211a SHA512 52b764bda68d0f9f9467a5db92b5d955aa220f9570cfc2393854ca884b473cb2ef1cb0fc5ab3da9350a162e486440ad6109de9d9214b6b2fbe5bb82cb37c1283 |
29 |
|
30 |
diff --git a/app-emulation/cri-o/cri-o-1.13.0.ebuild b/app-emulation/cri-o/cri-o-1.13.0.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..32f4f437430 |
33 |
--- /dev/null |
34 |
+++ b/app-emulation/cri-o/cri-o-1.13.0.ebuild |
35 |
@@ -0,0 +1,105 @@ |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=6 |
40 |
+ |
41 |
+EGIT_COMMIT="e8a2525c2e7f5ab057d5a2b5f1950be5643d8053" |
42 |
+EGO_PN="github.com/kubernetes-sigs/${PN}" |
43 |
+ |
44 |
+inherit golang-vcs-snapshot systemd |
45 |
+ |
46 |
+DESCRIPTION="OCI-based implementation of Kubernetes Container Runtime Interface" |
47 |
+HOMEPAGE="http://cri-o.io/" |
48 |
+SRC_URI="https://github.com/kubernetes-sigs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64" |
53 |
+IUSE="btrfs +device-mapper ostree seccomp selinux" |
54 |
+ |
55 |
+COMMON_DEPEND=" |
56 |
+ app-crypt/gpgme:= |
57 |
+ app-emulation/runc |
58 |
+ dev-libs/glib:= |
59 |
+ dev-libs/libassuan:= |
60 |
+ dev-libs/libgpg-error:= |
61 |
+ net-firewall/conntrack-tools |
62 |
+ net-firewall/iptables |
63 |
+ net-misc/cni-plugins |
64 |
+ net-misc/socat |
65 |
+ sys-apps/iproute2 |
66 |
+ btrfs? ( sys-fs/btrfs-progs ) |
67 |
+ device-mapper? ( sys-fs/lvm2:= ) |
68 |
+ ostree? ( dev-util/ostree ) |
69 |
+ seccomp? ( sys-libs/libseccomp:= ) |
70 |
+ selinux? ( sys-libs/libselinux:= )" |
71 |
+DEPEND=" |
72 |
+ ${COMMON_DEPEND} |
73 |
+ dev-go/go-md2man" |
74 |
+RDEPEND="${COMMON_DEPEND}" |
75 |
+S="${WORKDIR}/${P}/src/${EGO_PN}" |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ default |
79 |
+ |
80 |
+ sed -e '/^GIT_.*/d' \ |
81 |
+ -e 's/$(GO) build/$(GO) build -v -work -x/' \ |
82 |
+ -e 's/\${GIT_COMMIT}/'${EGIT_COMMIT}'/' \ |
83 |
+ -i Makefile || die |
84 |
+ |
85 |
+ sed -e 's:/usr/local/bin:/usr/bin:' \ |
86 |
+ -i contrib/systemd/* || die |
87 |
+} |
88 |
+ |
89 |
+src_compile() { |
90 |
+ [[ -f hack/btrfs_installed_tag.sh ]] || die |
91 |
+ use btrfs || { echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \ |
92 |
+ hack/btrfs_installed_tag.sh || die; } |
93 |
+ |
94 |
+ [[ -f hack/libdm_installed.sh ]] || die |
95 |
+ use device-mapper || { echo -e "#!/bin/sh\necho exclude_graphdriver_devicemapper" > \ |
96 |
+ hack/libdm_installed.sh || die; } |
97 |
+ |
98 |
+ [[ -f hack/ostree_tag.sh ]] || die |
99 |
+ use ostree || { echo -e "#!/bin/sh\necho containers_image_ostree_stub" > \ |
100 |
+ hack/ostree_tag.sh || die; } |
101 |
+ |
102 |
+ [[ -f hack/seccomp_tag.sh ]] || die |
103 |
+ use seccomp || { echo -e "#!/bin/sh\ntrue" > \ |
104 |
+ hack/seccomp_tag.sh || die; } |
105 |
+ |
106 |
+ [[ -f hack/selinux_tag.sh ]] || die |
107 |
+ use selinux || { echo -e "#!/bin/sh\ntrue" > \ |
108 |
+ hack/selinux_tag.sh || die; } |
109 |
+ |
110 |
+ mkdir -p bin || die |
111 |
+ GOPATH="${WORKDIR}/${P}" GOBIN="${WORKDIR}/${P}/bin" \ |
112 |
+ emake binaries docs |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ emake DESTDIR="${D}" PREFIX="${D}${EPREFIX}/usr" install.bin install.man |
117 |
+ |
118 |
+ keepdir /etc/crio |
119 |
+ insinto /etc/crio |
120 |
+ use seccomp && doins seccomp.json |
121 |
+ |
122 |
+ "${ED}"/usr/bin/crio --config="" config --default > "${T}"/crio.conf.example || die |
123 |
+ doins "${T}/crio.conf.example" |
124 |
+ |
125 |
+ newinitd "${FILESDIR}/crio.initd" crio |
126 |
+ |
127 |
+ insinto /etc/logrotate.d |
128 |
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}" |
129 |
+ |
130 |
+ # Suppress crio log error messages triggered if these don't exist. |
131 |
+ keepdir /etc/containers/oci/hooks.d |
132 |
+ keepdir /usr/share/containers/oci/hooks.d |
133 |
+ |
134 |
+ # Suppress crio "Missing CNI default network" log message. |
135 |
+ keepdir /etc/cni/net.d |
136 |
+ insinto /etc/cni/net.d |
137 |
+ doins contrib/cni/99-loopback.conf |
138 |
+ |
139 |
+ systemd_dounit contrib/systemd/* |
140 |
+} |
141 |
|
142 |
diff --git a/app-emulation/cri-o/metadata.xml b/app-emulation/cri-o/metadata.xml |
143 |
index a18ec9b7d29..e48b961a7b5 100644 |
144 |
--- a/app-emulation/cri-o/metadata.xml |
145 |
+++ b/app-emulation/cri-o/metadata.xml |
146 |
@@ -26,6 +26,6 @@ |
147 |
</flag> |
148 |
</use> |
149 |
<upstream> |
150 |
- <remote-id type="github">kubernetes-incubator/cri-o</remote-id> |
151 |
+ <remote-id type="github">kubernetes-sigs/cri-o</remote-id> |
152 |
</upstream> |
153 |
</pkgmetadata> |