1 |
commit: aab9ea121d58b45d58dfa7903c8d7b42f7d9d909 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 28 11:21:26 2019 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 28 11:21:26 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aab9ea12 |
7 |
|
8 |
app-emulation/cadvisor: Version bump to 0.33.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
11 |
Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org> |
12 |
|
13 |
app-emulation/cadvisor/Manifest | 1 + |
14 |
app-emulation/cadvisor/cadvisor-0.33.0.ebuild | 43 +++++++++++++++++++++++++++ |
15 |
2 files changed, 44 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/cadvisor/Manifest b/app-emulation/cadvisor/Manifest |
18 |
index 55128c2ebc1..a795318c17e 100644 |
19 |
--- a/app-emulation/cadvisor/Manifest |
20 |
+++ b/app-emulation/cadvisor/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST cadvisor-0.31.0.tar.gz 4604581 BLAKE2B b39cc3c2482353f1fb64ee0bb9baccdd310e6315819c21aaaef034970f39e2d6ffae05de4289b50838e8bad889f7d9a8e516768ba56a6854c76829a621e57554 SHA512 13b92c2148a439def2394232b3591c0367431f09f5998b5a79210e5b871e2986934fda8b1a3bbeb10691bb5b512556b76f32976b977005d767974c565bcf9072 |
23 |
DIST cadvisor-0.32.0.tar.gz 4623510 BLAKE2B 7145d0224b3d64cd438bb94047d8682bcad842d7841d98f264a3118a2c0fabb7f67b183db80e054362428efc4f47c699692e53e651a14a1871cc3c32d3a0695f SHA512 734ad1f33e0948dba7e43a1695c3a96ce6bf4367a604b5b79f011c893e18ec697c48199ddb21edb7c176929ddd389e42de9b6f502a01c938c45612ffd96b5f5d |
24 |
+DIST cadvisor-0.33.0.tar.gz 4646920 BLAKE2B ce0e264321efcfbbf422f086cd15dfde389a099d183cbc2daaefb5aa6aa36da0c6e213dc4c12a000b9049ce2a1444addee93746f5650a56fa0f7c6612aa25bd9 SHA512 3d1dd1b9dc684e71bca9dc64949911f5f3ae72c97aa3b6cd45dd51a404fc101b5591ec8c19c469d6a410de3cf46c3d8c104d34e5dd1fdc85c18c2d1b6a45b2af |
25 |
|
26 |
diff --git a/app-emulation/cadvisor/cadvisor-0.33.0.ebuild b/app-emulation/cadvisor/cadvisor-0.33.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..1c6593a306f |
29 |
--- /dev/null |
30 |
+++ b/app-emulation/cadvisor/cadvisor-0.33.0.ebuild |
31 |
@@ -0,0 +1,43 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+EGO_PN="github.com/google/cadvisor" |
37 |
+ |
38 |
+inherit user golang-build golang-vcs-snapshot |
39 |
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+COMMIT="511ec9e" |
41 |
+KEYWORDS="~amd64" |
42 |
+ |
43 |
+DESCRIPTION="Analyzes resource usage and performance characteristics of running containers" |
44 |
+HOMEPAGE="https://github.com/google/cadvisor" |
45 |
+ |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+IUSE="" |
49 |
+ |
50 |
+pkg_setup() { |
51 |
+ enewgroup ${PN} |
52 |
+ enewuser ${PN} -1 -1 /dev/null ${PN} |
53 |
+} |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ sed -i -e "/go get/d" src/${EGO_PN}/build/assets.sh || die |
57 |
+ sed -i -e "s/git describe.*/echo ${PV} )/"\ |
58 |
+ -e "s/git rev-parse --short HEAD.*/echo ${COMMIT} )/"\ |
59 |
+ src/${EGO_PN}/build/build.sh || die |
60 |
+ default |
61 |
+} |
62 |
+ |
63 |
+src_compile() { |
64 |
+ pushd "src/${EGO_PN}" |
65 |
+ GO_FLAGS="-v -work -x" VERBOSE="true" GOPATH="${S}:$(get_golibdir_gopath)" emake build |
66 |
+ popd || die |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
71 |
+ dobin src/${EGO_PN}/${PN} |
72 |
+ keepdir /var/log/${PN} |
73 |
+ fowners ${PN}:${PN} /var/log/${PN} |
74 |
+} |