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