1 |
commit: d9b90c53eb24ddeb33dff0c8d3d7d3e1c20a6004 |
2 |
Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua> |
3 |
AuthorDate: Wed Dec 28 14:16:35 2016 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 28 17:53:41 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9b90c53 |
7 |
|
8 |
sys-power/powerstat: new ebuild |
9 |
|
10 |
Powerstat measures the power consumption of a machine using the battery |
11 |
stats or the Intel RAPL interface. The output is like vmstat but also |
12 |
shows power consumption statistics. At the end of a run, powerstat will |
13 |
calculate the average, standard deviation and min/max of the gathered data. |
14 |
|
15 |
Package-Manager: portage-2.3.0 |
16 |
|
17 |
sys-power/powerstat/Manifest | 1 + |
18 |
sys-power/powerstat/metadata.xml | 22 ++++++++++++++++++++++ |
19 |
sys-power/powerstat/powerstat-0.02.11.ebuild | 20 ++++++++++++++++++++ |
20 |
sys-power/powerstat/powerstat-9999.ebuild | 24 ++++++++++++++++++++++++ |
21 |
4 files changed, 67 insertions(+) |
22 |
|
23 |
diff --git a/sys-power/powerstat/Manifest b/sys-power/powerstat/Manifest |
24 |
new file mode 100644 |
25 |
index 00000000..db3ea90 |
26 |
--- /dev/null |
27 |
+++ b/sys-power/powerstat/Manifest |
28 |
@@ -0,0 +1 @@ |
29 |
+DIST powerstat-0.02.11.tar.gz 57173 SHA256 198c472962cb14e5fcda18c0ef252bb57bdef743a84b10ad95f8a4aa2c7e17fb SHA512 ec1a00c0496997410d8a5d07e572d37ce1d7eee0fc37a6d9fdbcd9bf8bebe74cbde1f53d9b55d9bae48e8e1bc44ff61f29fed195d69499a8eed8007b67eacbe6 WHIRLPOOL cc1c2d7b050247cdaa9f765758f8a05b1ac37ef604f35977d8205d16def64c5f69026d4f044ba0a090ff8846e306ca3733b7617ddf0e5849a59527f38ada70bc |
30 |
|
31 |
diff --git a/sys-power/powerstat/metadata.xml b/sys-power/powerstat/metadata.xml |
32 |
new file mode 100644 |
33 |
index 00000000..7e75f57 |
34 |
--- /dev/null |
35 |
+++ b/sys-power/powerstat/metadata.xml |
36 |
@@ -0,0 +1,22 @@ |
37 |
+<?xml version="1.0" encoding="UTF-8"?> |
38 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
39 |
+<pkgmetadata> |
40 |
+ <maintainer type="person"> |
41 |
+ <email>spiderx@××××××××××.ua</email> |
42 |
+ <name>Vladimir Pavljuchenkov</name> |
43 |
+ </maintainer> |
44 |
+ <maintainer type="project"> |
45 |
+ <email>proxy-maint@g.o</email> |
46 |
+ <name>Proxy Maintainers</name> |
47 |
+ </maintainer> |
48 |
+ <longdescription lang="en"> |
49 |
+ Powerstat measures the power consumption of a machine using the battery |
50 |
+ stats or the Intel RAPL interface. The output is like vmstat but also |
51 |
+ shows power consumption statistics. At the end of a run, powerstat will |
52 |
+ calculate the average, standard deviation and min/max of the gathered data. |
53 |
+ </longdescription> |
54 |
+ <upstream> |
55 |
+ <remote-id type="launchpad">powerstat</remote-id> |
56 |
+ <remote-id type="github">ColinIanKing/powerstat</remote-id> |
57 |
+ </upstream> |
58 |
+</pkgmetadata> |
59 |
|
60 |
diff --git a/sys-power/powerstat/powerstat-0.02.11.ebuild b/sys-power/powerstat/powerstat-0.02.11.ebuild |
61 |
new file mode 100644 |
62 |
index 00000000..fb64394 |
63 |
--- /dev/null |
64 |
+++ b/sys-power/powerstat/powerstat-0.02.11.ebuild |
65 |
@@ -0,0 +1,20 @@ |
66 |
+# Copyright 1999-2016 Gentoo Foundation |
67 |
+# Distributed under the terms of the GNU General Public License v2 |
68 |
+# $Id$ |
69 |
+ |
70 |
+EAPI=6 |
71 |
+ |
72 |
+inherit toolchain-funcs |
73 |
+ |
74 |
+DESCRIPTION="Laptop power measuring tool" |
75 |
+HOMEPAGE="https://launchpad.net/ubuntu/+source/${PN} https://github.com/ColinIanKing/${PN}" |
76 |
+SRC_URI="https://github.com/ColinIanKing/${PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz" |
77 |
+ |
78 |
+LICENSE="GPL-2+" |
79 |
+SLOT="0" |
80 |
+KEYWORDS="~amd64 ~x86" |
81 |
+IUSE="" |
82 |
+ |
83 |
+src_compile() { |
84 |
+ emake CC=$(tc-getCC) |
85 |
+} |
86 |
|
87 |
diff --git a/sys-power/powerstat/powerstat-9999.ebuild b/sys-power/powerstat/powerstat-9999.ebuild |
88 |
new file mode 100644 |
89 |
index 00000000..9179c43 |
90 |
--- /dev/null |
91 |
+++ b/sys-power/powerstat/powerstat-9999.ebuild |
92 |
@@ -0,0 +1,24 @@ |
93 |
+# Copyright 1999-2016 Gentoo Foundation |
94 |
+# Distributed under the terms of the GNU General Public License v2 |
95 |
+# $Id$ |
96 |
+ |
97 |
+EAPI=6 |
98 |
+ |
99 |
+inherit git-r3 toolchain-funcs |
100 |
+ |
101 |
+DESCRIPTION="Laptop power measuring tool" |
102 |
+EGIT_REPO_URI=( |
103 |
+ "git://kernel.ubuntu.com/cking/${PN}.git" |
104 |
+ "https://github.com/ColinIanKing/${PN}.git" |
105 |
+ ) |
106 |
+HOMEPAGE="https://launchpad.net/ubuntu/+source/${PN} https://github.com/ColinIanKing/${PN}" |
107 |
+SRC_URI="" |
108 |
+ |
109 |
+LICENSE="GPL-2+" |
110 |
+SLOT="0" |
111 |
+KEYWORDS="" |
112 |
+IUSE="" |
113 |
+ |
114 |
+src_compile() { |
115 |
+ emake CC=$(tc-getCC) |
116 |
+} |