Gentoo Archives: gentoo-commits

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