From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D85811382C5 for ; Tue, 27 Feb 2018 22:12:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 39CC7E086B; Tue, 27 Feb 2018 22:12:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B4DFE086B for ; Tue, 27 Feb 2018 22:12:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A772D335C39 for ; Tue, 27 Feb 2018 22:12:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C124B1EA for ; Tue, 27 Feb 2018 22:11:55 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1519769501.8ddccf1eba3caef152b6db7f7821db68beafc536.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/cadvisor/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/cadvisor/Manifest app-emulation/cadvisor/cadvisor-0.29.1.ebuild X-VCS-Directories: app-emulation/cadvisor/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 8ddccf1eba3caef152b6db7f7821db68beafc536 X-VCS-Branch: master Date: Tue, 27 Feb 2018 22:11:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ea00e53d-8ca5-447a-974b-85d30ea6b6fb X-Archives-Hash: 7504854bb940407ccaffaaa642ae6393 commit: 8ddccf1eba3caef152b6db7f7821db68beafc536 Author: Manuel Rüger gentoo org> AuthorDate: Tue Feb 27 22:11:41 2018 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Tue Feb 27 22:11:41 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ddccf1e app-emulation/cadvisor: Version bump to 0.29.1 Package-Manager: Portage-2.3.24, Repoman-2.3.6 app-emulation/cadvisor/Manifest | 1 + app-emulation/cadvisor/cadvisor-0.29.1.ebuild | 43 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/app-emulation/cadvisor/Manifest b/app-emulation/cadvisor/Manifest index 8587a6e4c79..56245ac6932 100644 --- a/app-emulation/cadvisor/Manifest +++ b/app-emulation/cadvisor/Manifest @@ -1 +1,2 @@ DIST cadvisor-0.28.3.tar.gz 4110487 BLAKE2B d6b9d6de67e5672a3ba57ea0c28f38e2e96ec43910f8f5bbbe17b377ccbadf026d4418928234149e9ad3936f4c0871d7c371dda2bea49111735a33520154b2d3 SHA512 da111d74bfa3485c42a03a027ccbf833886e561f3244a081ad5439f7a714767cf4666c43c17b0b976089ea40916089aaa2c6070ec4aefc19798a1d5325e005e4 +DIST cadvisor-0.29.1.tar.gz 4152413 BLAKE2B 7eca61553f98a27b9d42f81618b67ebec2003c047557ea2bb749d0d36545c9c5ed76b67f8558ba335f396f16b6c496271875dd68b0d9f3554f92e20a63cc0cf5 SHA512 ce3a937607be2725388434cecb23ea8417bf3ddbd662cedcf128f090d52cc96c052dc016eeab32c34d3338fbb5b56091ee62720c32fb3313a5d41a556bc0b575 diff --git a/app-emulation/cadvisor/cadvisor-0.29.1.ebuild b/app-emulation/cadvisor/cadvisor-0.29.1.ebuild new file mode 100644 index 00000000000..f2dce4021ef --- /dev/null +++ b/app-emulation/cadvisor/cadvisor-0.29.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN="github.com/google/cadvisor" + +inherit user golang-build golang-vcs-snapshot +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +COMMIT="2e02d28" +KEYWORDS="~amd64" + +DESCRIPTION="Analyzes resource usage and performance characteristics of running containers" +HOMEPAGE="https://github.com/google/cadvisor" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /dev/null ${PN} +} + +src_prepare() { + sed -i -e "/go get/d" src/${EGO_PN}/build/assets.sh || die + sed -i -e "s/git describe.*/echo ${PV} )/"\ + -e "s/git rev-parse --short HEAD.*/echo ${COMMIT} )/"\ + src/${EGO_PN}/build/build.sh || die + default +} + +src_compile() { + pushd "src/${EGO_PN}" + GO_FLAGS="-v -work -x" VERBOSE="true" GOPATH="${S}:$(get_golibdir_gopath)" emake build + popd || die +} + +src_install() { + newinitd "${FILESDIR}"/${PN}.initd ${PN} + dobin src/${EGO_PN}/${PN} + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} +}