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: Sat, 01 Jun 2019 06:42:55
Message-Id: 1559370820.9404e266b9e807d5f4f86ecf8f4f0dea7b441ea6.zmedico@gentoo
1 commit: 9404e266b9e807d5f4f86ecf8f4f0dea7b441ea6
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 1 01:45:39 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 1 06:33:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9404e266
7
8 app-emulation/cri-o: version bump to 1.14.2
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.14.2.ebuild | 110 ++++++++++++++++++++++++++++++++
15 2 files changed, 111 insertions(+)
16
17 diff --git a/app-emulation/cri-o/Manifest b/app-emulation/cri-o/Manifest
18 index 3e19b8d9e83..9b2463258a6 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.9.tar.gz 6685519 BLAKE2B 5d9e68c7a0ae532e2406e5e47562693cddbc34a8b3ddcab0a7a34509dff8383d1fc255cba634efb186193e5784cc6a7638387ca29e68288af7621b8b25f1a71a SHA512 1541368955c62c697dbd6b850cdf6762a13a7a308f699e3a50dbfe29fbf991f4f47cfcce75bc41745e0c27acb29457ec86d3312ef13341a5d94526865e60eb3e
24 +DIST cri-o-1.14.2.tar.gz 9347347 BLAKE2B 83a0d77245bc841a9f89c55c853b64e69cec124da07b1314cfc27237cc82c55e49becc0f14c579a09d23e8da047c6bbb285b0eb79c4609a23827ab24ae28ce4a SHA512 1499b09a8f5c51b426bd8fba7c254288707524a363bfa97537edd35fdf29ac354d13578f2bf3c09c2d128650082f9a2bfbf69872fa9fce77dbff43913afc8066
25
26 diff --git a/app-emulation/cri-o/cri-o-1.14.2.ebuild b/app-emulation/cri-o/cri-o-1.14.2.ebuild
27 new file mode 100644
28 index 00000000000..5e2a18c8606
29 --- /dev/null
30 +++ b/app-emulation/cri-o/cri-o-1.14.2.ebuild
31 @@ -0,0 +1,110 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +EGIT_COMMIT="76b057a5a72ae379bb2f4915b791146d37a3f6cf"
38 +EGO_PN="github.com/cri-o/${PN}"
39 +
40 +inherit golang-vcs-snapshot
41 +
42 +DESCRIPTION="OCI-based implementation of Kubernetes Container Runtime Interface"
43 +HOMEPAGE="https://cri-o.io/"
44 +SRC_URI="https://github.com/cri-o/${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 selinux systemd"
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 + sys-libs/libseccomp:=
63 + btrfs? ( sys-fs/btrfs-progs )
64 + device-mapper? ( sys-fs/lvm2:= )
65 + ostree? ( dev-util/ostree )
66 + selinux? ( sys-libs/libselinux:= )
67 + systemd? ( sys-apps/systemd:= )"
68 +DEPEND="
69 + ${COMMON_DEPEND}
70 + dev-go/go-md2man"
71 +RDEPEND="${COMMON_DEPEND}
72 + !<app-emulation/libpod-1.3.2-r1"
73 +S="${WORKDIR}/${P}/src/${EGO_PN}"
74 +
75 +src_prepare() {
76 + default
77 +
78 + sed -e '/^GIT_.*/d' \
79 + -e '/ git diff --exit-code/d' \
80 + -e 's/$(GO) build -i/$(GO) build -v -work -x/' \
81 + -e 's/\${GIT_COMMIT}/'${EGIT_COMMIT}'/' \
82 + -i Makefile || die
83 +
84 + echo ".NOTPARALLEL: binaries docs" >> Makefile || die
85 +
86 + sed -e "s|^COMMIT_NO := .*|COMMIT_NO := ${EGIT_COMMIT}|" \
87 + -e "s|^GIT_COMMIT := .*|GIT_COMMIT := ${EGIT_COMMIT}|" \
88 + -i Makefile.inc || die
89 +
90 + sed -e 's:/usr/local/bin:/usr/bin:' \
91 + -i contrib/systemd/* || die
92 +
93 + if ! use systemd; then
94 + sed -e 's| pkg-config --exists libsystemd-journal | false |' \
95 + -e 's| pkg-config --exists libsystemd | false |' \
96 + -i conmon/Makefile || die
97 + fi
98 +}
99 +
100 +src_compile() {
101 + [[ -f hack/btrfs_installed_tag.sh ]] || die
102 + use btrfs || { echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
103 + hack/btrfs_installed_tag.sh || die; }
104 +
105 + [[ -f hack/libdm_installed.sh ]] || die
106 + use device-mapper || { echo -e "#!/bin/sh\necho exclude_graphdriver_devicemapper" > \
107 + hack/libdm_installed.sh || die; }
108 +
109 + [[ -f hack/ostree_tag.sh ]] || die
110 + use ostree || { echo -e "#!/bin/sh\necho containers_image_ostree_stub" > \
111 + hack/ostree_tag.sh || die; }
112 +
113 + [[ -f hack/selinux_tag.sh ]] || die
114 + use selinux || { echo -e "#!/bin/sh\ntrue" > \
115 + hack/selinux_tag.sh || die; }
116 +
117 + mkdir -p bin || die
118 + GOPATH="${WORKDIR}/${P}" GOBIN="${WORKDIR}/${P}/bin" \
119 + emake all
120 +}
121 +
122 +src_install() {
123 + emake DESTDIR="${D}" PREFIX="${D}${EPREFIX}/usr" install install.config install.systemd
124 +
125 + keepdir /etc/crio
126 + mv "${ED}/etc/crio/crio.conf"{,.example} || die
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 +}