summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Polke <DuPol@gmx.de>2023-10-04 21:54:17 +0200
committerDustin Polke <DuPol@gmx.de>2023-10-04 21:54:17 +0200
commit6809faca4f42f99a9977c8522e5e0f8bfc9c66b2 (patch)
tree9f724cb1b6e7633cf92678cdb5e8b0b661084150
parentmedia-video/webcamstudio: treeclean (diff)
downloadDuPol-6809faca4f42f99a9977c8522e5e0f8bfc9c66b2.tar.gz
DuPol-6809faca4f42f99a9977c8522e5e0f8bfc9c66b2.tar.bz2
DuPol-6809faca4f42f99a9977c8522e5e0f8bfc9c66b2.zip
x11-plugins/gkrellm-cpufreq: treecleanHEADmaster
Signed-off-by: Dustin Polke <DuPol@gmx.de>
-rw-r--r--x11-plugins/gkrellm-cpufreq/ChangeLog26
-rw-r--r--x11-plugins/gkrellm-cpufreq/Manifest1
-rw-r--r--x11-plugins/gkrellm-cpufreq/files/gkrellm-cpufreq-0.6.4-use-cpupower.patch67
-rw-r--r--x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.6.4-r1.ebuild42
-rw-r--r--x11-plugins/gkrellm-cpufreq/metadata.xml8
5 files changed, 0 insertions, 144 deletions
diff --git a/x11-plugins/gkrellm-cpufreq/ChangeLog b/x11-plugins/gkrellm-cpufreq/ChangeLog
deleted file mode 100644
index b124d84..0000000
--- a/x11-plugins/gkrellm-cpufreq/ChangeLog
+++ /dev/null
@@ -1,26 +0,0 @@
-# ChangeLog for x11-plugins/gkrellm-cpufreq
-# 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 <DuPol@gmx.de> +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 <mw07@la-wolf.de>
-
-*gkrellm-cpufreq-0.6.4 (06 Jan 2018)
-
- 06 Jan 2018; Dustin Polke <DuPol@gmx.de> +gkrellm-cpufreq-0.6.4.ebuild,
- -gkrellm-cpufreq-0.6.1.ebuild:
- Version bump to 0.6.4. Drop old.
-
- 31 Jan 2017; Dustin Polke <DuPol@gmx.de> metadata.xml:
- Fix repoman complaint about metadata.
-
-*gkrellm-cpufreq-0.6.1 (07 Jan 2015)
-
- 07 Jan 2015; Dustin Polke <DuPol@gmx.de> +gkrellm-cpufreq-0.6.1.ebuild,
- +files/gkrellm-cpufreq-0.6.1-use-cpupower.patch, +metadata.xml:
- Copy gkrellm-cpufreq-0.6.1.ebuild,v 1.4 from main tree and port it to
- cpupower.
diff --git a/x11-plugins/gkrellm-cpufreq/Manifest b/x11-plugins/gkrellm-cpufreq/Manifest
deleted file mode 100644
index e57ab09..0000000
--- a/x11-plugins/gkrellm-cpufreq/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST gkrellm2-cpufreq-0.6.4.tar.gz 13738 BLAKE2B 29090b31187f93ae098d8f2dd74c10c97df5e894bef4ec47bfe0cfca32180f3312e183c370e1a4506f800d9802e71e75ca157e81a219c7743d72d01dfd4bfe4e SHA512 e6a0a37cf41e96f46389658899add2cec751fd9f53548de47268ffd6a27aa2a90bfeeb263a9f91dc958d5255cda74fc61d2618b0d76db4cd84a4122c7245e452
diff --git a/x11-plugins/gkrellm-cpufreq/files/gkrellm-cpufreq-0.6.4-use-cpupower.patch b/x11-plugins/gkrellm-cpufreq/files/gkrellm-cpufreq-0.6.4-use-cpupower.patch
deleted file mode 100644
index bf88d4b..0000000
--- a/x11-plugins/gkrellm-cpufreq/files/gkrellm-cpufreq-0.6.4-use-cpupower.patch
+++ /dev/null
@@ -1,67 +0,0 @@
---- a/cpufreq.c
-+++ b/cpufreq.c
-@@ -49,6 +49,7 @@
-
- #include <gkrellm2/gkrellm.h>
- #include <cpufreq.h>
-+#include <cpupower.h>
-
- /* version number */
- #define VERSION "0.6.4"
-@@ -125,13 +126,13 @@ static void next_governor(unsigned int c
-
- static void governor_userspace(unsigned int cpu) {
- char cmd[length];
-- sprintf(cmd, "sudo cpufreq-set -c %u -g userspace", cpu);
-+ sprintf(cmd, "sudo cpupower -c %u frequency-set -g userspace", cpu);
- system(cmd);
- }
-
- static void set_frequency(unsigned int cpu, unsigned long freq) {
- char cmd[length];
-- sprintf(cmd, "sudo cpufreq-set -c %u -f %lu", cpu, freq );
-+ sprintf(cmd, "sudo cpupower -c %u frequency-set -f %lu", cpu, freq );
- system(cmd);
- }
-
-@@ -616,7 +617,7 @@ GkrellmMonitor* gkrellm_init_plugin(void
- monitor = &plugin_mon;
-
- /* determine number of cpus */
-- for( ncpu = 0; cpufreq_cpu_exists(ncpu)==0; ++ncpu )
-+ for( ncpu = 0; cpupower_is_cpu_online(ncpu)==0; ++ncpu )
- ;
- ncpu = ncpu > NCPU_MAX ? NCPU_MAX : ncpu;
-
---- a/cpufreqnextgovernor
-+++ b/cpufreqnextgovernor
-@@ -3,10 +3,10 @@
- cpu="$1"
-
- # determine actual governor
--actual_gov=`cpufreq-info -c $cpu -p | sed 's/.*\ //'`
-+actual_gov=`cpupower -c $cpu frequency-info -p | tail -1 | sed 's/.*\ //'`
-
- # determine available governors
--avail_gov=`cpufreq-info -c $cpu -g`
-+avail_gov=`cpupower -c $cpu frequency-info -g | tail -1`
-
- avail_gov1=`echo $avail_gov | sed "s/.*$actual_gov//"`
- avail_gov2=`echo $avail_gov | sed "s/$actual_gov.*//"`
-@@ -14,4 +14,4 @@ avail_gov=`echo "$avail_gov1 $avail_gov2
-
- next_gov=`echo $avail_gov | sed "s/\ .*//"`
-
--cpufreq-set -c $cpu -g $next_gov
-+cpupower -c $cpu frequency-set -g $next_gov
---- a/Makefile
-+++ b/Makefile
-@@ -6,7 +6,7 @@ GTK_LIB = `pkg-config gtk+-2.0 --libs`
- FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE)
- LIBS = $(GTK_LIB)
-
--LFLAGS = -shared -lcpufreq
-+LFLAGS = -shared -lcpupower
-
- CC = gcc $(CFLAGS) $(FLAGS)
-
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
deleted file mode 100644
index b01e8d0..0000000
--- a/x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.6.4-r1.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# 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/metadata.xml b/x11-plugins/gkrellm-cpufreq/metadata.xml
deleted file mode 100644
index b17ae66..0000000
--- a/x11-plugins/gkrellm-cpufreq/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer type="person">
- <email>DuPol@gmx.de</email>
- <name>Dustin Polke</name>
-</maintainer>
-</pkgmetadata>