summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-09-27 11:33:57 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-09-27 11:33:57 +0000
commitbf72b58fc002b7cf08000764a1c076809221b817 (patch)
tree59342c408245e069371f97b02a0c1046e2fc36b5 /sys-power
parentVersion bump to cpupower from Linux 3.11 source tree as well as update conf.d... (diff)
downloadgentoo-2-bf72b58fc002b7cf08000764a1c076809221b817.tar.gz
gentoo-2-bf72b58fc002b7cf08000764a1c076809221b817.tar.bz2
gentoo-2-bf72b58fc002b7cf08000764a1c076809221b817.zip
old
(Portage version: 2.2.6/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/cpupower/ChangeLog9
-rw-r--r--sys-power/cpupower/cpupower-3.8-r1.ebuild70
-rw-r--r--sys-power/cpupower/cpupower-3.8.ebuild70
-rw-r--r--sys-power/cpupower/files/conf.d7
-rw-r--r--sys-power/cpupower/files/conf.d-r124
-rw-r--r--sys-power/cpupower/files/init.d39
-rw-r--r--sys-power/cpupower/files/init.d-r139
-rw-r--r--sys-power/cpupower/files/init.d-r2.orig39
8 files changed, 7 insertions, 290 deletions
diff --git a/sys-power/cpupower/ChangeLog b/sys-power/cpupower/ChangeLog
index 5c2d4be5e6e6..0c4f97270cad 100644
--- a/sys-power/cpupower/ChangeLog
+++ b/sys-power/cpupower/ChangeLog
@@ -1,11 +1,16 @@
# ChangeLog for sys-power/cpupower
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/ChangeLog,v 1.8 2013/09/27 11:31:48 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/ChangeLog,v 1.9 2013/09/27 11:33:57 ssuominen Exp $
+
+ 27 Sep 2013; Samuli Suominen <ssuominen@gentoo.org> -cpupower-3.8.ebuild,
+ -cpupower-3.8-r1.ebuild, -files/conf.d, -files/conf.d-r1, -files/init.d,
+ -files/init.d-r1:
+ old
*cpupower-3.11 (27 Sep 2013)
27 Sep 2013; Samuli Suominen <ssuominen@gentoo.org> +cpupower-3.11.ebuild,
- +files/conf.d-r2, +files/init.d-r2, +files/init.d-r2.orig:
+ +files/conf.d-r2, +files/init.d-r2:
Version bump to cpupower from Linux 3.11 source tree as well as update
conf.d/init.d wrt #453794 by "Khayyam"
diff --git a/sys-power/cpupower/cpupower-3.8-r1.ebuild b/sys-power/cpupower/cpupower-3.8-r1.ebuild
deleted file mode 100644
index 7db5f5087fa8..000000000000
--- a/sys-power/cpupower/cpupower-3.8-r1.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/cpupower-3.8-r1.ebuild,v 1.1 2013/04/24 09:44:05 ssuominen Exp $
-
-EAPI=5
-inherit multilib toolchain-funcs
-
-DESCRIPTION="Shows and sets processor power related values"
-HOMEPAGE="http://www.kernel.org/"
-SRC_URI="mirror://kernel/linux/kernel/v3.x/linux-${PV}.tar.xz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="cpufreq_bench debug nls"
-
-# cpupower should be a USE flag in linux-misc-apps (ditto for usbip!)
-# but only if the maintainer doesn't agree to drop it completely from
-# there in favour of this one which i'll push to users are replacement
-# for the dead cpufreq tools in tree
-# !sys-apps/linux-misc-apps[cpupower]
-
-# header collision with cpufrequtils
-RDEPEND="sys-apps/pciutils
- !sys-apps/linux-misc-apps
- !sys-power/cpufrequtils"
-DEPEND="${RDEPEND}
- virtual/os-headers
- nls? ( sys-devel/gettext )"
-
-S=${WORKDIR}/linux-${PV}/tools/power/${PN}
-
-pkg_setup() {
- myemakeargs=(
- DEBUG=$(usex debug true false)
- V=1
- CPUFREQ_BENCH=$(usex cpufreq_bench true false)
- NLS=$(usex nls true false)
- docdir=/usr/share/doc/${PF}/${PN}
- mandir=/usr/share/man
- libdir=/usr/$(get_libdir)
- AR="$(tc-getAR)"
- CC="$(tc-getCC)"
- LD="$(tc-getCC)"
- STRIP=true
- LDFLAGS="${LDFLAGS}"
- OPTIMIZATION="${CFLAGS}"
- )
-}
-
-src_prepare() {
- # -Wl,--as-needed compat
- local libs="-lcpupower -lrt -lpci"
- sed -i \
- -e "/$libs/{ s,${libs},,g; s,\$, ${libs},g;}" \
- -e "s:-O1 -g::" \
- Makefile || die
-}
-
-src_compile() {
- emake "${myemakeargs[@]}"
-}
-
-src_install() {
- emake DESTDIR="${D}" "${myemakeargs[@]}" install
- dodoc README ToDo
-
- newconfd "${FILESDIR}"/conf.d-r1 ${PN}
- newinitd "${FILESDIR}"/init.d-r1 ${PN}
-}
diff --git a/sys-power/cpupower/cpupower-3.8.ebuild b/sys-power/cpupower/cpupower-3.8.ebuild
deleted file mode 100644
index 96d21f5f1136..000000000000
--- a/sys-power/cpupower/cpupower-3.8.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/cpupower-3.8.ebuild,v 1.3 2013/04/23 03:23:12 patrick Exp $
-
-EAPI=5
-inherit multilib toolchain-funcs
-
-DESCRIPTION="Shows and sets processor power related values"
-HOMEPAGE="http://www.kernel.org/"
-SRC_URI="mirror://kernel/linux/kernel/v3.x/linux-${PV}.tar.xz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="cpufreq_bench debug nls"
-
-# cpupower should be a USE flag in linux-misc-apps (ditto for usbip!)
-# but only if the maintainer doesn't agree to drop it completely from
-# there in favour of this one which i'll push to users are replacement
-# for the dead cpufreq tools in tree
-# !sys-apps/linux-misc-apps[cpupower]
-
-# header collision with cpufrequtils
-RDEPEND="sys-apps/pciutils
- !sys-apps/linux-misc-apps
- !sys-power/cpufrequtils"
-DEPEND="${RDEPEND}
- virtual/os-headers
- nls? ( sys-devel/gettext )"
-
-S=${WORKDIR}/linux-${PV}/tools/power/${PN}
-
-pkg_setup() {
- myemakeargs=(
- DEBUG=$(usex debug true false)
- V=1
- CPUFREQ_BENCH=$(usex cpufreq_bench true false)
- NLS=$(usex nls true false)
- docdir=/usr/share/doc/${PF}/${PN}
- mandir=/usr/share/man
- libdir=/usr/$(get_libdir)
- AR="$(tc-getAR)"
- CC="$(tc-getCC)"
- LD="$(tc-getCC)"
- STRIP=true
- LDFLAGS="${LDFLAGS}"
- OPTIMIZATION="${CFLAGS}"
- )
-}
-
-src_prepare() {
- # -Wl,--as-needed compat
- local libs="-lcpupower -lrt -lpci"
- sed -i \
- -e "/$libs/{ s,${libs},,g; s,\$, ${libs},g;}" \
- -e "s:-O1 -g::" \
- Makefile || die
-}
-
-src_compile() {
- emake "${myemakeargs[@]}"
-}
-
-src_install() {
- emake DESTDIR="${D}" "${myemakeargs[@]}" install
- dodoc README ToDo
-
- newconfd "${FILESDIR}"/conf.d ${PN}
- newinitd "${FILESDIR}"/init.d ${PN}
-}
diff --git a/sys-power/cpupower/files/conf.d b/sys-power/cpupower/files/conf.d
deleted file mode 100644
index ee10216ec13f..000000000000
--- a/sys-power/cpupower/files/conf.d
+++ /dev/null
@@ -1,7 +0,0 @@
-# /etc/conf.d/cpupower: config file for /etc/init.d/cpupower
-
-# Options when starting cpufreq (given to the `cpupower` program)
-#START_OPTS=""
-
-# Options when stopping cpufreq (given to the `cpupower` program)
-#STOP_OPTS=""
diff --git a/sys-power/cpupower/files/conf.d-r1 b/sys-power/cpupower/files/conf.d-r1
deleted file mode 100644
index cf686d5182a5..000000000000
--- a/sys-power/cpupower/files/conf.d-r1
+++ /dev/null
@@ -1,24 +0,0 @@
-# /etc/conf.d/cpupower: config file for /etc/init.d/cpupower
-
-# Options when starting cpufreq (given to the `cpupower` program)
-START_OPTS="--governor ondemand"
-
-# Options when stopping cpufreq (given to the `cpupower` program)
-STOP_OPTS="--governor performance"
-
-# Extra settings to write to sysfs cpufreq values.
-#
-# up_threshold: threshold for stepping up frequency, where the value represents
-# the percentage of cpu load.
-#
-# down_threshold: threshold for stepping down frequency, where the value
-# represents the percentage of cpu load.
-#
-# sampling_down_factor: determines how frequently the governor polls the cpu, a
-# value greater than 1 improves performance by reducing the polling when the
-# load is high. This tunable has no effect on behavior at lower CPU frequencies
-#
-# ignore_nice_load: when set to '1' the processes that are run with a 'nice'
-# value will not count in the usage calculation.
-
-#SYSFS_EXTRA="ondemand/ignore_nice_load=1 ondemand/up_threshold=15 ondemand/sampling_down_factor=10"
diff --git a/sys-power/cpupower/files/init.d b/sys-power/cpupower/files/init.d
deleted file mode 100644
index 01ef556bb71e..000000000000
--- a/sys-power/cpupower/files/init.d
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/files/init.d,v 1.1 2013/04/23 01:48:26 ssuominen Exp $
-
-change() {
- local c ret=0 opts="$1"
- shift
- ebegin "Running cpupower -c all frequency-set ${opts}"
- cpupower -c all frequency-set ${opts} >/dev/null 2>&1
- : $(( ret += $? ))
- eend ${ret}
-
- if [ $# -gt 0 ] ; then
- c=1
- einfo "Setting extra options: $*"
- if cd /sys/devices/system/cpu/cpufreq ; then
- local o v
- for o in "$@" ; do
- v=${o#*=}
- o=${o%%=*}
- echo ${v} > ${o} || break
- done
- c=0
- fi
- eend ${c}
- : $(( ret += c ))
- fi
-
- return ${ret}
-}
-
-start() {
- change "${START_OPTS}"
-}
-
-stop() {
- change "${STOP_OPTS}"
-}
diff --git a/sys-power/cpupower/files/init.d-r1 b/sys-power/cpupower/files/init.d-r1
deleted file mode 100644
index 2cfa66ac7e50..000000000000
--- a/sys-power/cpupower/files/init.d-r1
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/files/init.d-r1,v 1.1 2013/04/24 09:44:06 ssuominen Exp $
-
-change() {
- local c ret=0 opts="$1"
- shift
- ebegin "Running cpupower -c all frequency-set ${opts}"
- cpupower -c all frequency-set ${opts} >/dev/null 2>&1
- : $(( ret += $? ))
- eend ${ret}
-
- if [ $# -gt 0 ] ; then
- c=1
- einfo "Setting extra options: $*"
- if cd /sys/devices/system/cpu/cpufreq ; then
- local o v
- for o in "$@" ; do
- v=${o#*=}
- o=${o%%=*}
- echo ${v} > ${o} || break
- done
- c=0
- fi
- eend ${c}
- : $(( ret += c ))
- fi
-
- return ${ret}
-}
-
-start() {
- change "${START_OPTS}" "${SYSFS_EXTRA}"
-}
-
-stop() {
- change "${STOP_OPTS}"
-}
diff --git a/sys-power/cpupower/files/init.d-r2.orig b/sys-power/cpupower/files/init.d-r2.orig
deleted file mode 100644
index 3780ab679643..000000000000
--- a/sys-power/cpupower/files/init.d-r2.orig
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/files/init.d-r2.orig,v 1.1 2013/09/27 11:31:48 ssuominen Exp $
-
-change() {
- local c ret=0 opts="$1"
- shift
- ebegin "Running cpupower -c all frequency-set ${opts}"
- cpupower -c all frequency-set ${opts} >/dev/null 2>&1
- : $(( ret += $? ))
- eend ${ret}
-
- if [ $# -gt 0 ] ; then
- c=1
- einfo "Setting extra options: $*"
- if cd /sys/devices/system/cpu/cpufreq ; then
- local o v
- for o in "$@" ; do
- v=${o#*=}
- o=${o%%=*}
- echo ${v} > ${o} || break
- done
- c=0
- fi
- eend ${c}
- : $(( ret += c ))
- fi
-
- return ${ret}
-}
-
-start() {
- change "${START_OPTS}" "${SYSFS_EXTRA}"
-}
-
-stop() {
- change "${STOP_OPTS}"
-}