1 |
commit: 1fd5b164fa298a2f5cd6160afd3068eced80b526 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 30 14:03:06 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 30 14:03:06 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fd5b164 |
7 |
|
8 |
app-emulation/cadvisor: Initial version |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
app-emulation/cadvisor/Manifest | 1 + |
13 |
app-emulation/cadvisor/cadvisor-0.28.2.ebuild | 26 ++++++++++++++++++++++++++ |
14 |
app-emulation/cadvisor/files/cadvisor.initd | 18 ++++++++++++++++++ |
15 |
app-emulation/cadvisor/metadata.xml | 11 +++++++++++ |
16 |
4 files changed, 56 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/cadvisor/Manifest b/app-emulation/cadvisor/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..3464eac2165 |
21 |
--- /dev/null |
22 |
+++ b/app-emulation/cadvisor/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST cadvisor-0.28.2.tar.gz 4109967 BLAKE2B c55268a0768adeea75ecc2baa1093d5d5360d1e0be56cea467fe759278c7047060c4b78179a3a35801afbcf6415ffbeb7e0649c92e79878e5615c73a37eeabeb SHA512 e682b8e062ba373e5726a8076d5be75322e7c592bd751aa32da9a99e5d380a77fc4b376aa478b0beff18bae2bc8432d3a70542605681410d5e1e0b1919a6c252 |
25 |
|
26 |
diff --git a/app-emulation/cadvisor/cadvisor-0.28.2.ebuild b/app-emulation/cadvisor/cadvisor-0.28.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..25f12f41933 |
29 |
--- /dev/null |
30 |
+++ b/app-emulation/cadvisor/cadvisor-0.28.2.ebuild |
31 |
@@ -0,0 +1,26 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+EGO_PN="github.com/google/cadvisor" |
37 |
+ |
38 |
+inherit user golang-build golang-vcs-snapshot |
39 |
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+KEYWORDS="~amd64" |
41 |
+ |
42 |
+DESCRIPTION="Analyzes resource usage and performance characteristics of running containers" |
43 |
+ |
44 |
+HOMEPAGE="https://github.com/google/cadvisor" |
45 |
+ |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+IUSE="" |
49 |
+ |
50 |
+pkg_setup() { |
51 |
+ enewgroup ${PN} |
52 |
+ enewuser ${PN} -1 -1 /dev/null ${PN} |
53 |
+} |
54 |
+ |
55 |
+src_install() { |
56 |
+ dobin ${PN} |
57 |
+} |
58 |
|
59 |
diff --git a/app-emulation/cadvisor/files/cadvisor.initd b/app-emulation/cadvisor/files/cadvisor.initd |
60 |
new file mode 100644 |
61 |
index 00000000000..19e36b2c81a |
62 |
--- /dev/null |
63 |
+++ b/app-emulation/cadvisor/files/cadvisor.initd |
64 |
@@ -0,0 +1,18 @@ |
65 |
+#!/sbin/openrc-run |
66 |
+# Copyright 2016-2017 Gentoo Foundation |
67 |
+# Distributed under the terms of the GNU General Public License v2 |
68 |
+ |
69 |
+description="cAdvisor - Analyzes resource usage and performance characteristics of running containers" |
70 |
+pidfile=${pidfile:-"/run/${SVCNAME}.pid"} |
71 |
+user=${user:-${SVCNAME}} |
72 |
+group=${group:-${SVCNAME}} |
73 |
+ |
74 |
+command="/usr/bin/cadvisor" |
75 |
+command_background="true" |
76 |
+start_stop_daemon_args="--user ${user} --group ${group} \ |
77 |
+ --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ |
78 |
+ --stderr /var/log/${SVCNAME}/${SVCNAME}.log" |
79 |
+ |
80 |
+depend() { |
81 |
+ after net |
82 |
+} |
83 |
|
84 |
diff --git a/app-emulation/cadvisor/metadata.xml b/app-emulation/cadvisor/metadata.xml |
85 |
new file mode 100644 |
86 |
index 00000000000..9685b121c37 |
87 |
--- /dev/null |
88 |
+++ b/app-emulation/cadvisor/metadata.xml |
89 |
@@ -0,0 +1,11 @@ |
90 |
+<?xml version="1.0" encoding="UTF-8"?> |
91 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
92 |
+<pkgmetadata> |
93 |
+ <maintainer type="person"> |
94 |
+ <email>mrueg@g.o</email> |
95 |
+ <name>Manuel Rüger</name> |
96 |
+ </maintainer> |
97 |
+ <upstream> |
98 |
+ <remote-id type="github">google/cadvisor</remote-id> |
99 |
+ </upstream> |
100 |
+</pkgmetadata> |