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