1 |
commit: 1d2b4ec5219a9d7fd6f130014f5f372c18ab7bb0 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 22 22:40:04 2020 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 22 22:40:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d2b4ec5 |
7 |
|
8 |
app-emulation/cadvisor: 0.35.0 bump |
9 |
|
10 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
11 |
|
12 |
app-emulation/cadvisor/Manifest | 1 + |
13 |
app-emulation/cadvisor/cadvisor-0.35.0.ebuild | 42 +++++++++++++++++++++++++++ |
14 |
2 files changed, 43 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/cadvisor/Manifest b/app-emulation/cadvisor/Manifest |
17 |
index 1c786759897..5c05e93fe26 100644 |
18 |
--- a/app-emulation/cadvisor/Manifest |
19 |
+++ b/app-emulation/cadvisor/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cadvisor-0.34.0.tar.gz 5210189 BLAKE2B 48cf7ddc94e52f07a0e74868d00f4a45d45aa5233b518da46762743357c17cbe7f2971794deda9936a10c65724928a219c498bf6d2493266f5b0ea547d485cb6 SHA512 accb41afd4683413b846f9380229bfa54c88b3141be68492963444928e40e14fc28da3ce27b09746e29c4dfe6323cd6bea69181826367e830f284d6ab698c633 |
22 |
+DIST cadvisor-0.35.0.tar.gz 5268930 BLAKE2B 065619ee459062bb521e855ccfd576afe236863bdc203b65e53a7eb6aec7172b6b9bb1d4183667ed36c471becb09fd974d1e4f809cf614f4d0d03ea3b87c2f63 SHA512 9fdae170fd167e0b1a2b69112ff2ec081640a144490c04e364536cae71a90e2c2845857f35af81ec58d4addd3675fd86b045d1f1b99a3e281f6270ab5d2a70f3 |
23 |
|
24 |
diff --git a/app-emulation/cadvisor/cadvisor-0.35.0.ebuild b/app-emulation/cadvisor/cadvisor-0.35.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..06fd94f5eb7 |
27 |
--- /dev/null |
28 |
+++ b/app-emulation/cadvisor/cadvisor-0.35.0.ebuild |
29 |
@@ -0,0 +1,42 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+EGO_PN="github.com/google/cadvisor" |
35 |
+COMMIT=49033161 |
36 |
+inherit golang-build golang-vcs-snapshot |
37 |
+ |
38 |
+DESCRIPTION="Analyzes resource usage and performance characteristics of running containers" |
39 |
+HOMEPAGE="https://github.com/google/cadvisor" |
40 |
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT" |
43 |
+KEYWORDS="~amd64" |
44 |
+SLOT="0" |
45 |
+ |
46 |
+COMMON_DEPEND="acct-group/cadvisor |
47 |
+ acct-user/cadvisor" |
48 |
+DEPEND="${COMMON_DEPEND}" |
49 |
+RDEPEND="${COMMON_DEPEND}" |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ sed -i -e "/go get/d" src/${EGO_PN}/build/assets.sh || die |
53 |
+ sed -i -e "s/git describe.*/echo ${PV} )/"\ |
54 |
+ -e "s/git rev-parse --short HEAD.*/echo ${COMMIT} )/"\ |
55 |
+ src/${EGO_PN}/build/build.sh || die |
56 |
+ default |
57 |
+} |
58 |
+ |
59 |
+src_compile() { |
60 |
+ export -n GOCACHE XDG_CACHE_HOME |
61 |
+ pushd "src/${EGO_PN}" |
62 |
+ GO_FLAGS="-v -work -x" VERBOSE="true" GOPATH="${S}:$(get_golibdir_gopath)" emake build |
63 |
+ popd || die |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} |
68 |
+ dobin src/${EGO_PN}/${PN} |
69 |
+ keepdir /var/log/${PN} |
70 |
+ fowners ${PN}:${PN} /var/log/${PN} |
71 |
+} |