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 E06EE139082 for ; Thu, 30 Nov 2017 14:03:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2EB12E0BF4; Thu, 30 Nov 2017 14:03:29 +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 F12CFE0BF4 for ; Thu, 30 Nov 2017 14:03:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 C3A6733D3CE for ; Thu, 30 Nov 2017 14:03:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CDA7ACE9 for ; Thu, 30 Nov 2017 14:03:25 +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: <1512050586.1fd5b164fa298a2f5cd6160afd3068eced80b526.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/cadvisor/, app-emulation/cadvisor/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/cadvisor/Manifest app-emulation/cadvisor/cadvisor-0.28.2.ebuild app-emulation/cadvisor/files/cadvisor.initd app-emulation/cadvisor/metadata.xml X-VCS-Directories: app-emulation/cadvisor/ app-emulation/cadvisor/files/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 1fd5b164fa298a2f5cd6160afd3068eced80b526 X-VCS-Branch: master Date: Thu, 30 Nov 2017 14:03:25 +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: bbf15867-b2c2-42d5-ae54-e14c8c371d4a X-Archives-Hash: 10ed73504e407bafdc4591b4a39ca565 commit: 1fd5b164fa298a2f5cd6160afd3068eced80b526 Author: Manuel Rüger gentoo org> AuthorDate: Thu Nov 30 14:03:06 2017 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Thu Nov 30 14:03:06 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fd5b164 app-emulation/cadvisor: Initial version Package-Manager: Portage-2.3.16, Repoman-2.3.6 app-emulation/cadvisor/Manifest | 1 + app-emulation/cadvisor/cadvisor-0.28.2.ebuild | 26 ++++++++++++++++++++++++++ app-emulation/cadvisor/files/cadvisor.initd | 18 ++++++++++++++++++ app-emulation/cadvisor/metadata.xml | 11 +++++++++++ 4 files changed, 56 insertions(+) diff --git a/app-emulation/cadvisor/Manifest b/app-emulation/cadvisor/Manifest new file mode 100644 index 00000000000..3464eac2165 --- /dev/null +++ b/app-emulation/cadvisor/Manifest @@ -0,0 +1 @@ +DIST cadvisor-0.28.2.tar.gz 4109967 BLAKE2B c55268a0768adeea75ecc2baa1093d5d5360d1e0be56cea467fe759278c7047060c4b78179a3a35801afbcf6415ffbeb7e0649c92e79878e5615c73a37eeabeb SHA512 e682b8e062ba373e5726a8076d5be75322e7c592bd751aa32da9a99e5d380a77fc4b376aa478b0beff18bae2bc8432d3a70542605681410d5e1e0b1919a6c252 diff --git a/app-emulation/cadvisor/cadvisor-0.28.2.ebuild b/app-emulation/cadvisor/cadvisor-0.28.2.ebuild new file mode 100644 index 00000000000..25f12f41933 --- /dev/null +++ b/app-emulation/cadvisor/cadvisor-0.28.2.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2017 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" +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_install() { + dobin ${PN} +} diff --git a/app-emulation/cadvisor/files/cadvisor.initd b/app-emulation/cadvisor/files/cadvisor.initd new file mode 100644 index 00000000000..19e36b2c81a --- /dev/null +++ b/app-emulation/cadvisor/files/cadvisor.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +# Copyright 2016-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="cAdvisor - Analyzes resource usage and performance characteristics of running containers" +pidfile=${pidfile:-"/run/${SVCNAME}.pid"} +user=${user:-${SVCNAME}} +group=${group:-${SVCNAME}} + +command="/usr/bin/cadvisor" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}/${SVCNAME}.log" + +depend() { + after net +} diff --git a/app-emulation/cadvisor/metadata.xml b/app-emulation/cadvisor/metadata.xml new file mode 100644 index 00000000000..9685b121c37 --- /dev/null +++ b/app-emulation/cadvisor/metadata.xml @@ -0,0 +1,11 @@ + + + + + mrueg@gentoo.org + Manuel Rüger + + + google/cadvisor + +