diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-03-11 12:02:45 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-03-11 12:05:10 +0100 |
commit | b522124233e90a84963ca9512f1bb5166983a6ab (patch) | |
tree | 0e1ce170481b3a4600b3e3b5bca31303d3e1202d /sys-power | |
parent | Remove masked for removal packages (diff) | |
download | gentoo-b522124233e90a84963ca9512f1bb5166983a6ab.tar.gz gentoo-b522124233e90a84963ca9512f1bb5166983a6ab.tar.bz2 gentoo-b522124233e90a84963ca9512f1bb5166983a6ab.zip |
Remove masked for removal packages
Diffstat (limited to 'sys-power')
8 files changed, 0 insertions, 263 deletions
diff --git a/sys-power/phctool/Manifest b/sys-power/phctool/Manifest deleted file mode 100644 index 85fca2734537..000000000000 --- a/sys-power/phctool/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST phctool-0.5.2.2.tar.gz 941587 BLAKE2B d5844aecbefcaf9ec3525a47a9ce5bac8faa1a063ea833d6d69a9b8079f3c6a26ccc1d96685ee0408efe5c6279834ac309d92e22c70d2d907de622242f330e36 SHA512 50beafb8d96b070563f4fcef93f1a07285b4347a05df70aee06aeac9b7c80642d8f967321b499d733c1734d36c7ebda6379094f5eb9a5bee648d7aa1f6c23053 diff --git a/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_no_sudo.patch b/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_no_sudo.patch deleted file mode 100644 index 316e538abe0d..000000000000 --- a/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_no_sudo.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- a/phctool.sh 2007-10-27 22:32:35.000000000 +0200 -+++ b/phctool.sh 2009-09-05 23:20:18.000000000 +0200 -@@ -1,10 +1,7 @@ - #!/bin/sh --#this shellscript is just a wrapper to subphctool.sh --#but necessary to run phctool with sudo even from the tray icon --PROGPATH=`dirname "$0"` --cd $PROGPATH --if test -e /usr/bin/gksu -- then gksu ./subphctool.sh $1 -- else sudo ./subphctool.sh $1 --fi -+#this shellscript is just a wrapper to phctool.py -+#but necessary to run phctool from another directory -+ -+cd /usr/share/phctool -+./phctool.py $1 diff --git a/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_sudo.patch b/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_sudo.patch deleted file mode 100644 index 11b64c3bab07..000000000000 --- a/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tool_sudo.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/phctool.sh 2007-10-27 22:32:35.000000000 +0200 -+++ b/phctool.sh 2009-09-05 23:20:18.000000000 +0200 -@@ -1,10 +1,7 @@ - #!/bin/sh --#this shellscript is just a wrapper to subphctool.sh --#but necessary to run phctool with sudo even from the tray icon --PROGPATH=`dirname "$0"` --cd $PROGPATH --if test -e /usr/bin/gksu -- then gksu ./subphctool.sh $1 -- else sudo ./subphctool.sh $1 --fi -+#this shellscript is just a wrapper to subphctool.py -+#but necessary to run phctool from another directory -+ -+cd /usr/share/phctool -+sudo ./subphctool.sh $1 - diff --git a/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tray.patch b/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tray.patch deleted file mode 100644 index 1d2053a9c4b7..000000000000 --- a/sys-power/phctool/files/phctool-0.5.2.2_all_paths_tray.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- a/phctray.sh 2007-09-08 08:29:31.000000000 +0200 -+++ b/phctray.sh 2009-09-05 23:16:54.000000000 +0200 -@@ -2,6 +2,5 @@ - #this shellscript is just a wrapper to phctray.py - #but necessary to run phctray from another directory - --PROGPATH=`dirname "$0"` --cd $PROGPATH -+cd /usr/share/phctool - ./phctray.py ---- a/phctray.py 2009-09-08 12:17:11.000000000 +0200 -+++ b/phctray.py 2009-09-08 12:17:33.000000000 +0200 -@@ -61,7 +61,7 @@ - t.show_all() - - ##call phctool without GUI to set stored values --cmd=[sys.path[0]+"/phctool.sh","background"] ##command -+cmd=["/usr/bin/phctool","background"] ##command - subprocess.Popen(cmd, shell=False) ##call the affinated programm - - gtk.main() ---- a/phctray.py 2009-09-08 12:22:28.000000000 +0200 -+++ b/phctray.py 2009-09-08 12:23:44.000000000 +0200 -@@ -11,7 +11,7 @@ - return; - - def run_phctool( *args ): -- cmd=[sys.path[0]+"/phctool.sh"] ##command -+ cmd=["/usr/bin/phctool"] ##command - subprocess.Popen(cmd, shell=False) ##call the affinated programm - - def applet_face_click( window, event, *data ): diff --git a/sys-power/phctool/files/phctool-0.5.2.2_gui_kernel_2.6.38.patch b/sys-power/phctool/files/phctool-0.5.2.2_gui_kernel_2.6.38.patch deleted file mode 100644 index db33396e3d17..000000000000 --- a/sys-power/phctool/files/phctool-0.5.2.2_gui_kernel_2.6.38.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- phctool/inc/libs/cpuinfo.py -+++ phctool/inc/libs/cpuinfo.py -@@ -1,6 +1,7 @@ - #cpuinfo.py - #This is a function library to get - #informations about CPUs and its PHC data -+#Modified by Fabio Veronese fveronese85*at*gmail.com 22 Mar 2011 - - - import os, string -@@ -30,6 +31,10 @@ - if os.path.exists('/proc/acpi/processor/CPU'+cpunr): - ##remember ACPI Pathname - self.data[cpunr]['acpi']['acpiname']='/proc/acpi/processor/CPU'+cpunr -+ elif os.path.exists('/sys/devices/system/cpu/cpu'+cpunr+'/thermal_throttle'): -+ ##here some throttling infos for 2.6.38 and maybe laters -+ #self.data[cpunr]['acpi']['acpiname']='/sys/devices/system/cpu/cpu'+cpunr+'/thermal_throttle' -+ self.data[cpunr]['acpi']['acpiname']='' - else: - self.data[cpunr]['acpi']['exist']=False - # For some reason we have to fallback on the old function... diff --git a/sys-power/phctool/files/phctool-0.5.2.2_kernel_2.6.36.patch b/sys-power/phctool/files/phctool-0.5.2.2_kernel_2.6.36.patch deleted file mode 100644 index c3a2432aea2d..000000000000 --- a/sys-power/phctool/files/phctool-0.5.2.2_kernel_2.6.36.patch +++ /dev/null @@ -1,79 +0,0 @@ ---- phctool/inc/libs/cpuinfo.py -+++ phctool/inc/libs/cpuinfo.py -@@ -14,33 +14,49 @@ - - - def _get_acpi_cpus(self): -- ##count number of CPUs on this system using acpi proc interface -- ##since we need acpi this i a good way to count CPUs -- ##we also will remember the Directory-Name because on single CPU -- ##systems the Dir may be named CPU while on Multicores they are indexed (CPU0, CPU1) .. -- directory="/proc/acpi/processor/" -- for f in os.listdir(directory): ##iterate the directory -- pathname = os.path.join(directory, f) ## -- if os.path.isdir(pathname): ##is the object we found really a (sub-)directory? -- ##We open the info-file to get the ID to this CPU, -- ##i don't know if this really could happen but the ID may differ from -- ##from the Path iterator (maybe one CPU is supported and another isn't) -- if os.path.exists(pathname+'/info'): -- file = open(pathname+'/info', 'r'); -- for line in file: -- if string.find(line,":"): -- content = line.split(":"); -- if len(content)>1: -- info_ident=content[0].strip(); -- info_value=content[1].strip(); -- if info_ident == "processor id": -- cpunr=info_value -- self.data[cpunr]={} -- self.data[cpunr]['acpi']={} -- self.data[cpunr]['acpi']['exist']=True -- self.data[cpunr]['acpi']['acpiname']=f ##remember ACPI Pathname -- else: -- self.data[cpunr]['acpi']['exist']=False -+ # We need to ignore /proc/acpi/processor as it's becoming deprecated -+ # A good solution might be a look in online cpus, but it doesn't mean they are surely ACPI-supported -+ if os.path.exists('/sys/devices/system/cpu/online'): -+ file = open('/sys/devices/system/cpu/online', 'r'); -+ for line in file: -+ if string.find(line,"-"): -+ content = line.split("-"); -+ for val in content: -+ cpunr=val.strip(); -+ self.data[cpunr]={} -+ self.data[cpunr]['acpi']={} -+ self.data[cpunr]['acpi']['exist']=True -+ # This sounds useful just for throttling, which is managed better by other stuff... I'll keep just for compatibility -+ if os.path.exists('/proc/acpi/processor/CPU'+cpunr): -+ ##remember ACPI Pathname -+ self.data[cpunr]['acpi']['acpiname']='/proc/acpi/processor/CPU'+cpunr -+ else: -+ self.data[cpunr]['acpi']['exist']=False -+ # For some reason we have to fallback on the old function... -+ else: -+ directory="/proc/acpi/processor/" -+ for f in os.listdir(directory): ##iterate the directory -+ pathname = os.path.join(directory, f) ## -+ if os.path.isdir(pathname): ##is the object we found really a (sub-)directory? -+ ##We open the info-file to get the ID to this CPU, -+ ##i don't know if this really could happen but the ID may differ from -+ ##from the Path iterator (maybe one CPU is supported and another isn't) -+ if os.path.exists(pathname+'/info'): -+ file = open(pathname+'/info', 'r'); -+ for line in file: -+ if string.find(line,":"): -+ content = line.split(":"); -+ if len(content)>1: -+ info_ident=content[0].strip(); -+ info_value=content[1].strip(); -+ if info_ident == "processor id": -+ cpunr=info_value -+ self.data[cpunr]={} -+ self.data[cpunr]['acpi']={} -+ self.data[cpunr]['acpi']['exist']=True -+ self.data[cpunr]['acpi']['acpiname']=f ##remember ACPI Pathname -+ else: -+ self.data[cpunr]['acpi']['exist']=False - - - def _get_cpuinfos(self): diff --git a/sys-power/phctool/metadata.xml b/sys-power/phctool/metadata.xml deleted file mode 100644 index 9148655f78bf..000000000000 --- a/sys-power/phctool/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> -<email>xmw@gentoo.org</email> -<name>Michael Weber</name> -</maintainer> -<use> - <flag name="sudo">Enable support for sudo to run gui from non-root user</flag> -</use> -</pkgmetadata> diff --git a/sys-power/phctool/phctool-0.5.2.2-r3.ebuild b/sys-power/phctool/phctool-0.5.2.2-r3.ebuild deleted file mode 100644 index c33953a060fe..000000000000 --- a/sys-power/phctool/phctool-0.5.2.2-r3.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) -inherit python-single-r1 user - -DESCRIPTION="Processor Hardware Control userland configuration tool" -HOMEPAGE="http://www.linux-phc.org/" -SRC_URI="http://www.linux-phc.org/forum/download/file.php?id=50 -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc sudo" - -DEPEND="${PYTHON_DEPS} - dev-python/egg-python[${PYTHON_USEDEP}] - dev-python/pygtk:2[${PYTHON_USEDEP}]" -RDEPEND="${DEPEND} - sudo? ( app-admin/sudo )" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -S="${WORKDIR}/${PV%.*}-${PV##*.}/${PN}" - -pkg_setup() { - MY_PROGDIR="/usr/share/${PN}" - if use sudo ; then - MY_GROUPNAME="phcusers" - enewgroup ${MY_GROUPNAME} - fi - python-single-r1_pkg_setup -} - -src_prepare() { - eapply "${FILESDIR}"/${P}_all_paths_tray.patch - if use sudo ; then - eapply "${FILESDIR}"/${P}_all_paths_tool_sudo.patch - else - eapply "${FILESDIR}"/${P}_all_paths_tool_no_sudo.patch - fi - eapply "${FILESDIR}"/${P}_kernel_2.6.36.patch - eapply "${FILESDIR}"/${P}_gui_kernel_2.6.38.patch - eapply_user - find . -name "*.pyc" -delete || die - python_fix_shebang . -} - -src_install() { - newbin phctool.sh phctool - newbin phctray.sh phctray - - exeinto ${MY_PROGDIR} - doexe phc{tool,tray}.py subphctool.sh - python_moduleinto ${MY_PROGDIR} - python_domodule inc - - if use sudo ; then - fowners -R ":${MY_GROUPNAME}" "${MY_PROGDIR}" - fperms g+rX "${MY_PROGDIR}" - dodir /etc/sudoers.d - echo "#%${MY_GROUPNAME} ALL=(root) NOPASSWD:${MY_PROGDIR}/subphctool.sh" \ - > "${ED}"/etc/sudoers.d/${PN} || die - fperms a-w,o-r /etc/sudoers.d/${PN} - fi - - dodoc CHANGELOG - if use doc; then - docinto html - dodoc -r doc/docfiles doc/index.htm - fi -} - -pkg_postinst() { - if use sudo; then - einfo "You have to add a line to /etc/sudoers to get access to" - einfo "/sys/devices/system/cpu/cpu1/cpufreq/phc_controls from the phctool/phctray" - einfo "Please check and uncomment the content of /etc/sudoers.d/${PN}" - else - einfo "Group not automatically added. Please run phctool as root." - fi -} |