Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/cadvisor/
Date: Mon, 30 Jul 2018 12:46:07
Message-Id: 1532954711.8d30e7b5bbf2fbb23748dfea6ef008c8a1906332.mrueg@gentoo
1 commit: 8d30e7b5bbf2fbb23748dfea6ef008c8a1906332
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 30 12:45:11 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 30 12:45:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d30e7b5
7
8 app-emulation/cadvisor: Version bump to 0.30.2
9
10 Package-Manager: Portage-2.3.43, Repoman-2.3.10
11
12 app-emulation/cadvisor/Manifest | 1 +
13 app-emulation/cadvisor/cadvisor-0.30.2.ebuild | 43 +++++++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/app-emulation/cadvisor/Manifest b/app-emulation/cadvisor/Manifest
17 index 56245ac6932..0ff37c533aa 100644
18 --- a/app-emulation/cadvisor/Manifest
19 +++ b/app-emulation/cadvisor/Manifest
20 @@ -1,2 +1,3 @@
21 DIST cadvisor-0.28.3.tar.gz 4110487 BLAKE2B d6b9d6de67e5672a3ba57ea0c28f38e2e96ec43910f8f5bbbe17b377ccbadf026d4418928234149e9ad3936f4c0871d7c371dda2bea49111735a33520154b2d3 SHA512 da111d74bfa3485c42a03a027ccbf833886e561f3244a081ad5439f7a714767cf4666c43c17b0b976089ea40916089aaa2c6070ec4aefc19798a1d5325e005e4
22 DIST cadvisor-0.29.1.tar.gz 4152413 BLAKE2B 7eca61553f98a27b9d42f81618b67ebec2003c047557ea2bb749d0d36545c9c5ed76b67f8558ba335f396f16b6c496271875dd68b0d9f3554f92e20a63cc0cf5 SHA512 ce3a937607be2725388434cecb23ea8417bf3ddbd662cedcf128f090d52cc96c052dc016eeab32c34d3338fbb5b56091ee62720c32fb3313a5d41a556bc0b575
23 +DIST cadvisor-0.30.2.tar.gz 4126305 BLAKE2B c0ded9a4e4d9f2942b2ae92dbc8037a4e6310686f82ff256dabdc6acc966b684621e213702ac97aac1648bd4dfcc6f757ce0c3a100b6830caa9d72e442a419c4 SHA512 415e89879c768d236dba1ad8a470b416406f53fc29d9654c011bf511b507c531e0be073c43110bba9c46f284a9235f76b743959f3363dcdc9d76a5631da530e2
24
25 diff --git a/app-emulation/cadvisor/cadvisor-0.30.2.ebuild b/app-emulation/cadvisor/cadvisor-0.30.2.ebuild
26 new file mode 100644
27 index 00000000000..8ab87087b4f
28 --- /dev/null
29 +++ b/app-emulation/cadvisor/cadvisor-0.30.2.ebuild
30 @@ -0,0 +1,43 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +EGO_PN="github.com/google/cadvisor"
36 +
37 +inherit user golang-build golang-vcs-snapshot
38 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
39 +COMMIT="de723a0"
40 +KEYWORDS="~amd64"
41 +
42 +DESCRIPTION="Analyzes resource usage and performance characteristics of running containers"
43 +HOMEPAGE="https://github.com/google/cadvisor"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +IUSE=""
48 +
49 +pkg_setup() {
50 + enewgroup ${PN}
51 + enewuser ${PN} -1 -1 /dev/null ${PN}
52 +}
53 +
54 +src_prepare() {
55 + sed -i -e "/go get/d" src/${EGO_PN}/build/assets.sh || die
56 + sed -i -e "s/git describe.*/echo ${PV} )/"\
57 + -e "s/git rev-parse --short HEAD.*/echo ${COMMIT} )/"\
58 + src/${EGO_PN}/build/build.sh || die
59 + default
60 +}
61 +
62 +src_compile() {
63 + pushd "src/${EGO_PN}"
64 + GO_FLAGS="-v -work -x" VERBOSE="true" GOPATH="${S}:$(get_golibdir_gopath)" emake build
65 + popd || die
66 +}
67 +
68 +src_install() {
69 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
70 + dobin src/${EGO_PN}/${PN}
71 + keepdir /var/log/${PN}
72 + fowners ${PN}:${PN} /var/log/${PN}
73 +}