diff options
author | William Hubbs <williamh@gentoo.org> | 2020-03-13 16:31:23 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2020-03-13 16:35:10 -0500 |
commit | 0db98ca939674139da82d3f16878eb5917b557d1 (patch) | |
tree | 16c79f620049193560932679d1c8eb1924f42451 /app-emulation/cadvisor/cadvisor-0.36.0.ebuild | |
parent | package.mask: Mask nm-applet bump that breaks gnome-shell and more (diff) | |
download | gentoo-0db98ca939674139da82d3f16878eb5917b557d1.tar.gz gentoo-0db98ca939674139da82d3f16878eb5917b557d1.tar.bz2 gentoo-0db98ca939674139da82d3f16878eb5917b557d1.zip |
app-emulation/cadvisor: 0.36.0 bump
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-emulation/cadvisor/cadvisor-0.36.0.ebuild')
-rw-r--r-- | app-emulation/cadvisor/cadvisor-0.36.0.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app-emulation/cadvisor/cadvisor-0.36.0.ebuild b/app-emulation/cadvisor/cadvisor-0.36.0.ebuild new file mode 100644 index 000000000000..e98f37153775 --- /dev/null +++ b/app-emulation/cadvisor/cadvisor-0.36.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module +COMMIT=4fe450a23991beb6c61dc941c0f87f56021ad386 + +DESCRIPTION="Analyzes resource usage and performance characteristics of running containers" +HOMEPAGE="https://github.com/google/cadvisor" +SRC_URI="https://github.com/google/cadvisor/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 ISC MIT" +KEYWORDS="~amd64" +SLOT="0" + +COMMON_DEPEND="acct-group/cadvisor + acct-user/cadvisor" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +src_prepare() { + sed -i -e "/go get/d" build/assets.sh || die + sed -i -e "s/git describe.*/echo ${PV} )/"\ + -e "s/git rev-parse --short HEAD.*/echo ${COMMIT} )/"\ + build/build.sh || die + default +} + +src_compile() { + GO_FLAGS="-v -work -x" VERBOSE="true" emake build +} + +src_install() { + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} + dobin ${PN} + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} +} |