x11-plugins/gkrellm-cpupower: Initial commit.
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 7 Jun 2016 06:42:21 +0000 (08:42 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 7 Jun 2016 06:43:06 +0000 (08:43 +0200)
Package-Manager: portage-2.2.28
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
x11-plugins/gkrellm-cpupower/Manifest [new file with mode: 0644]
x11-plugins/gkrellm-cpupower/gkrellm-cpupower-0.1.6-r1.ebuild [new file with mode: 0644]
x11-plugins/gkrellm-cpupower/metadata.xml [new file with mode: 0644]

diff --git a/x11-plugins/gkrellm-cpupower/Manifest b/x11-plugins/gkrellm-cpupower/Manifest
new file mode 100644 (file)
index 0000000..e1ef624
--- /dev/null
@@ -0,0 +1 @@
+DIST gkrellm2-cpupower-0.1.6.tar.gz 14390 SHA256 85a6c24976f9e0bac69fae0d161a00545078623765d76128cce587d67452305f SHA512 eb55a30614f5e4ae9514516749f34dbf6bd409148e967f2933d49f3d2bb6938535900101ed27dff132edd79b7cfa2f7244bb6f87e09b555e7536c8f74d020b01 WHIRLPOOL afb764799d1d926afb3cadd0e928a2da06d7c7728dd0cfe73ea0843bec5d4312ea076abaf7dad83ba6487f33680956ecc4eaeb9e806b6f4f5aa407fb469c0f81
diff --git a/x11-plugins/gkrellm-cpupower/gkrellm-cpupower-0.1.6-r1.ebuild b/x11-plugins/gkrellm-cpupower/gkrellm-cpupower-0.1.6-r1.ebuild
new file mode 100644 (file)
index 0000000..fa0ac69
--- /dev/null
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit gkrellm-plugin
+
+MY_P=${P/gkrellm/gkrellm2}
+
+DESCRIPTION="A Gkrellm2 plugin for displaying and manipulating CPU frequency"
+HOMEPAGE="https://github.com/sainsaar/gkrellm2-cpupower/"
+SRC_URI="https://github.com/sainsaar/gkrellm2-cpupower/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+# Collision with /usr/sbin/cpufreqnextgovernor
+RDEPEND="app-admin/sudo
+       sys-power/cpupower
+       !x11-plugins/gkrellm-cpufreq"
+
+PLUGIN_SO="cpupower.so"
+
+src_install() {
+       gkrellm-plugin_src_install
+       dosbin cpufreqnextgovernor
+       emake DESTDIR="${D}" install-sudo
+}
+
+pkg_postinst() {
+       echo
+       einfo "For changing the governor and CPU frequencies as a user, create the \"trusted\""
+       einfo "group, and add those users to that group who should be allowed to perform"
+       einfo "these changes."
+       echo
+}
diff --git a/x11-plugins/gkrellm-cpupower/metadata.xml b/x11-plugins/gkrellm-cpupower/metadata.xml
new file mode 100644 (file)
index 0000000..c7be278
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>polynomial-c@gentoo.org</email>
+    <name>Lars Wendler</name>
+  </maintainer>
+</pkgmetadata>