From e06dde5c34e1d79b67e66c3aaa2f9f43d0b28f9e Mon Sep 17 00:00:00 2001 From: Dustin Polke Date: Wed, 1 Jan 2020 16:43:36 +0100 Subject: x11-plugins/gkrellm-cpufreq: Rev bump to fix installation. Drop old. Convert PLUGIN_SO to bash array. Reported-By: Michael Wolf Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Dustin Polke --- x11-plugins/gkrellm-cpufreq/ChangeLog | 9 ++++- .../gkrellm-cpufreq-0.6.4-r1.ebuild | 42 ++++++++++++++++++++++ .../gkrellm-cpufreq/gkrellm-cpufreq-0.6.4.ebuild | 42 ---------------------- 3 files changed, 50 insertions(+), 43 deletions(-) create mode 100644 x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.6.4-r1.ebuild delete mode 100644 x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.6.4.ebuild diff --git a/x11-plugins/gkrellm-cpufreq/ChangeLog b/x11-plugins/gkrellm-cpufreq/ChangeLog index 5803faa..b124d84 100644 --- a/x11-plugins/gkrellm-cpufreq/ChangeLog +++ b/x11-plugins/gkrellm-cpufreq/ChangeLog @@ -1,7 +1,14 @@ # ChangeLog for x11-plugins/gkrellm-cpufreq -# Copyright 1999-2018 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2020 Gentoo Authors; Distributed under the GPL v2 # $Header: $ +*gkrellm-cpufreq-0.6.4-r1 (01 Jan 2020) + + 01 Jan 2020; Dustin Polke +gkrellm-cpufreq-0.6.4-r1.ebuild, + -gkrellm-cpufreq-0.6.4.ebuild: + x11-plugins/gkrellm-cpufreq: Rev bump to fix installation. Drop old. Convert + PLUGIN_SO to bash array. Reported-By: Michael Wolf + *gkrellm-cpufreq-0.6.4 (06 Jan 2018) 06 Jan 2018; Dustin Polke +gkrellm-cpufreq-0.6.4.ebuild, diff --git a/x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.6.4-r1.ebuild b/x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.6.4-r1.ebuild new file mode 100644 index 0000000..b01e8d0 --- /dev/null +++ b/x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.6.4-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils gkrellm-plugin + +MY_P=${P/gkrellm/gkrellm2} + +DESCRIPTION="A Gkrellm2 plugin for displaying and manipulating CPU frequency" +HOMEPAGE="http://chw.populus.org/rub/7" +SRC_URI="http://christoph.winkelmann.googlepages.com/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +RDEPEND="app-admin/gkrellm:2[X] + sys-power/cpupower + app-admin/sudo" + +PATCHES=( "${FILESDIR}"/${P}-use-cpupower.patch ) + +PLUGIN_SO=( "cpufreq.so" ) + +src_install() { + gkrellm-plugin_src_install + exeinto /usr/sbin + doexe cpufreqnextgovernor +} + +pkg_postinst() { + echo + einfo "Add these lines to /etc/sudoers to allow users to change cpu governor and speed:" + einfo "ALL ALL = (root) NOPASSWD: /usr/bin/cpupower -c [0-9]* frequency-set -g userspace" + einfo "ALL ALL = (root) NOPASSWD: /usr/bin/cpupower -c [0-9]* frequency-set -f [0-9]*" + einfo "ALL ALL = (root) NOPASSWD: /usr/sbin/cpufreqnextgovernor" + echo +} diff --git a/x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.6.4.ebuild b/x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.6.4.ebuild deleted file mode 100644 index 59e9580..0000000 --- a/x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.6.4.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit eutils gkrellm-plugin - -MY_P=${P/gkrellm/gkrellm2} - -DESCRIPTION="A Gkrellm2 plugin for displaying and manipulating CPU frequency" -HOMEPAGE="http://chw.populus.org/rub/7" -SRC_URI="http://christoph.winkelmann.googlepages.com/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -S=${WORKDIR}/${MY_P} - -RDEPEND="app-admin/gkrellm:2[X] - sys-power/cpupower - app-admin/sudo" - -PATCHES=( "${FILESDIR}"/${P}-use-cpupower.patch ) - -PLUGIN_SO=cpufreq.so - -src_install() { - gkrellm-plugin_src_install - exeinto /usr/sbin - doexe cpufreqnextgovernor -} - -pkg_postinst() { - echo - einfo "Add these lines to /etc/sudoers to allow users to change cpu governor and speed:" - einfo "ALL ALL = (root) NOPASSWD: /usr/bin/cpupower -c [0-9]* frequency-set -g userspace" - einfo "ALL ALL = (root) NOPASSWD: /usr/bin/cpupower -c [0-9]* frequency-set -f [0-9]*" - einfo "ALL ALL = (root) NOPASSWD: /usr/sbin/cpufreqnextgovernor" - echo -} -- cgit v1.2.3-65-gdbad