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, 04 Dec 2018 10:24:35
Message-Id: 1543919058.2877b5e0124049955860ab2741d38a42b59ddf78.zmedico@gentoo
1 commit: 2877b5e0124049955860ab2741d38a42b59ddf78
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 4 10:22:00 2018 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 4 10:24:18 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2877b5e0
7
8 app-emulation/cri-o: version bump to 1.10.6
9
10 Reported-by: Manuel RĂ¼ger <mrueg <AT> gentoo.org>
11 Closes: https://bugs.gentoo.org/668422
12 Package-Manager: Portage-2.3.52, Repoman-2.3.12
13 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
14
15 app-emulation/cri-o/Manifest | 1 +
16 app-emulation/cri-o/cri-o-1.10.6.ebuild | 105 ++++++++++++++++++++++++++++++++
17 2 files changed, 106 insertions(+)
18
19 diff --git a/app-emulation/cri-o/Manifest b/app-emulation/cri-o/Manifest
20 index 326f71beaf2..144949df2fb 100644
21 --- a/app-emulation/cri-o/Manifest
22 +++ b/app-emulation/cri-o/Manifest
23 @@ -1 +1,2 @@
24 DIST cri-o-1.10.1.tar.gz 5159128 BLAKE2B bd6727bedb1f1ca99771995817897721b340331a28dc00646fe6b13765328bbba363aeba4490c12c8d38f9e204e6c744c38f43b4fbbd39d2b44c95be0681475b SHA512 dc85a94cf980ba11a2213e7cec73eeb78460a6a14c50f02f8772ac0d0fe179374d88de01c72f24506a9f1a61db6bf6738114c8944631f76906f6e42f9cf35bde
25 +DIST cri-o-1.10.6.tar.gz 5161858 BLAKE2B bbfaf60c92dee3a9f42e9d4fc9b5482057a7a0ff2de36d74d434e2e60b53f92f70980c83825c18089c4a48bfa01c164b77aa01506c68c763f00265796e07d367 SHA512 b6a412cf5859dab79095732c2528e2ba373b3c21740203441fd3646862e2458e78e71f1895a5def05207964ef96a354c04395356e426600994bb39d3adfd0894
26
27 diff --git a/app-emulation/cri-o/cri-o-1.10.6.ebuild b/app-emulation/cri-o/cri-o-1.10.6.ebuild
28 new file mode 100644
29 index 00000000000..6d2d5d4a82c
30 --- /dev/null
31 +++ b/app-emulation/cri-o/cri-o-1.10.6.ebuild
32 @@ -0,0 +1,105 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +EGIT_COMMIT="56d7d9a0750d7deb06182361837b690683f13dfe"
39 +EGO_PN="github.com/kubernetes-incubator/${PN}"
40 +
41 +inherit golang-vcs-snapshot systemd
42 +
43 +DESCRIPTION="OCI-based implementation of Kubernetes Container Runtime Interface"
44 +HOMEPAGE="http://cri-o.io/"
45 +SRC_URI="https://github.com/kubernetes-incubator/${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 's/$(GO) build/$(GO) build -v -work -x/' \
79 + -e 's/\${GIT_COMMIT}/'${EGIT_COMMIT}'/' \
80 + -i Makefile || die
81 +
82 + sed -e 's:/usr/local/bin:/usr/bin:' \
83 + -i contrib/systemd/* || die
84 +}
85 +
86 +src_compile() {
87 + [[ -f hack/btrfs_installed_tag.sh ]] || die
88 + use btrfs || { echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
89 + hack/btrfs_installed_tag.sh || die; }
90 +
91 + [[ -f hack/libdm_installed.sh ]] || die
92 + use device-mapper || { echo -e "#!/bin/sh\necho exclude_graphdriver_devicemapper" > \
93 + hack/libdm_installed.sh || die; }
94 +
95 + [[ -f hack/ostree_tag.sh ]] || die
96 + use ostree || { echo -e "#!/bin/sh\necho containers_image_ostree_stub" > \
97 + hack/ostree_tag.sh || die; }
98 +
99 + [[ -f hack/seccomp_tag.sh ]] || die
100 + use seccomp || { echo -e "#!/bin/sh\ntrue" > \
101 + hack/seccomp_tag.sh || die; }
102 +
103 + [[ -f hack/selinux_tag.sh ]] || die
104 + use selinux || { echo -e "#!/bin/sh\ntrue" > \
105 + hack/selinux_tag.sh || die; }
106 +
107 + mkdir -p bin || die
108 + GOPATH="${WORKDIR}/${P}" GOBIN="${WORKDIR}/${P}/bin" \
109 + emake binaries docs
110 +}
111 +
112 +src_install() {
113 + emake DESTDIR="${D}" PREFIX="${D}${EPREFIX}/usr" install.bin install.man
114 +
115 + keepdir /etc/crio
116 + insinto /etc/crio
117 + use seccomp && doins seccomp.json
118 +
119 + "${ED}"/usr/bin/crio --config="" config --default > "${T}"/crio.conf.example || die
120 + doins "${T}/crio.conf.example"
121 +
122 + newinitd "${FILESDIR}/crio.initd" crio
123 +
124 + insinto /etc/logrotate.d
125 + newins "${FILESDIR}/${PN}.logrotated" "${PN}"
126 +
127 + # Suppress crio log error messages triggered if these don't exist.
128 + keepdir /etc/containers/oci/hooks.d
129 + keepdir /usr/share/containers/oci/hooks.d
130 +
131 + # Suppress crio "Missing CNI default network" log message.
132 + keepdir /etc/cni/net.d
133 + insinto /etc/cni/net.d
134 + doins contrib/cni/99-loopback.conf
135 +
136 + systemd_dounit contrib/systemd/*
137 +}