summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-01-23 17:10:25 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-01-23 17:10:25 +0000
commit344e215ca899b35fd82dcb27f17d793907d06d39 (patch)
tree6fb2e5b269663879bdf46964687e2dbf548d6c55 /sys-power
parentThis is part of sys-apps/linux-misc-apps but to really replace the old cpufre... (diff)
downloadhistorical-344e215ca899b35fd82dcb27f17d793907d06d39.tar.gz
historical-344e215ca899b35fd82dcb27f17d793907d06d39.tar.bz2
historical-344e215ca899b35fd82dcb27f17d793907d06d39.zip
This is part of sys-apps/linux-misc-apps but to really replace the old cpufreq utils we need this one out.
Package-Manager: portage-2.2.0_alpha155/cvs/Linux x86_64 Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/cpupower/Manifest18
-rw-r--r--sys-power/cpupower/cpupower-3.8_rc4.ebuild62
-rw-r--r--sys-power/cpupower/metadata.xml12
3 files changed, 90 insertions, 2 deletions
diff --git a/sys-power/cpupower/Manifest b/sys-power/cpupower/Manifest
index db5ea0703a5b..f83cc136f784 100644
--- a/sys-power/cpupower/Manifest
+++ b/sys-power/cpupower/Manifest
@@ -1,4 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
DIST linux-3.8-rc4.tar.bz2 84590599 SHA256 8d843b1f64fd5f01f0bedf3f41bd89e978fbb2153c8ac0fec2191a2e84f41b01 SHA512 29c9ec7bea457bab0858d28e658e30b5bfdc6d7d95dfaaf7625a608d2bf5a20d5366b24b79a7276dd28e4fea78f0413eac9989feb99bcc0051fa4b2f702a415b WHIRLPOOL 9f6c3e1d0ddc2138db0d7997ed1d14cd60178bcc1820abf3e15d597c62941bc1759bad901af02258f5c41605a110518e413bcf5181d063da0f0b0ff71395b768
-EBUILD cpupower-3.8_rc4.ebuild 1505 SHA256 4e8233978174e017ea95c61733bdbb82da28d2a6943b902d336e45a3d995bfd1 SHA512 b4a19e7c561de5a4a32fc1b45af4ca718f07d9c89cb6d50fce336352fb9d19ccc4b5d0c1879571b26a54cec3332aedf7f826fda0135ae88ed510318ee3a5319a WHIRLPOOL b9f478f084d305f3a383caede0efe95d58f752669b087619fac5cd9d656ca8573be80d8d7ec49d1a7189342853fd667b0ae5b48e2792cfbf94d04673121b5f11
-MISC ChangeLog 368 SHA256 d8915adbe4f4f3bf710a2ad39bdc866498cfdc972ded69326d26bad0906a4498 SHA512 fc0bccf01a62ce99d89507e1832f5c6e9c69e7313c5ce15ec41d011e010ded9c2c684b2e93eb2038d8d4e54050eca5ab896e66c33ee5367e71b8542e617a338a WHIRLPOOL f5f013e4ba4067462f492bf1ef38230642a1ded87aa489f82e879690572660142a6a47dfbf366bb8a368d612024431999ef50f99663a9f4bcd16ff1f277acb50
+EBUILD cpupower-3.8_rc4.ebuild 1612 SHA256 2f901531c61c42c5285e74742091eb0fcd1d49bea808853d9014944cb1b0d2bd SHA512 60a5eaac596ae2e96b7921a9c48daff518cf65a96bfb0701c86aaf2de288eb6bf0d20e55412f3c11e00e0111ae23b1d681018e153d50c8e54a350650938e44fa WHIRLPOOL f5e9d26757424d048fb5657b24fb6c387a36fc983e6aa9dc9b0f62475777858b5472cb2d6a5811a8db9c2d97208d0c0b8b306e23dd1f05a6feeba0ddcf08896d
+MISC ChangeLog 461 SHA256 c4639ae709ccb13d49ade4dd0ffe7e51721b41a9af331a46262a000ccdc4fdab SHA512 77320d3c184ff43b6c19101ae08d3645f41dd31c558b740c8a3fd0d62b85955ae7676b5d75197c2e6eb7c63534f48f59708855be93af360d2eac85cfff1a2493 WHIRLPOOL ea8d6c05d58424ff1a38d2bdcd4b81574ab734b5b90d3114678fe7bbe318b1764ce28ae888dea5bc65a970aa0362fba94297df64103df6a5971177c7a8746cb5
MISC metadata.xml 357 SHA256 be84e27d1bacf98a571c56fea8cd368b79b5304b2f9928516f690f1902a4b535 SHA512 b143b9edb70a97d4c584f771aeb73b5f6895e007c9e4bffdf358f9646ad9520f2e14ca623ea5dd9e4b7bc1b1c5f50e5735c435e9907b43566a1a5f12354f4a1a WHIRLPOOL 5a6fa0c613489f062710fc6ec2633e56e7e7274d962620f1113425544402012459634e223d1e2bc8920acafff46b800a10b4a5422ec8c1a77363c5ab6d61398d
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBCAAGBQJRABluAAoJEEdUh39IaPFNKFMH/ioeflr4haMRtmsL4JkIhhbr
+Y0e/ARWvfOFm7C5Y277UGDxYZ9uEuWcm7sKi2OUTSkuEJAvxfytQahxeOKpeqeXO
+/W8atgfq5K8HM7S9Be32oK/80JrFyG1GcMNQxAgQx9X11gRgjcPgRdec3ysQYA97
+l5narzITRcm4TJc0U59Hnx3sdDkefkxk5vQLawdn9q7/7CGW8NRZAgj6IJCxt4fB
+S1I8/P4Em/yDYAf0wlK3RAx9ShcQSfVL7P/LgUU4q84oTO9W55KRwngQ7mvfb/gF
+cIfKZZpCw4+qh7cZm6z/+bF4VzRX022549mC683691YZG+jLjPOC+RkaDVR1SmI=
+=/zfF
+-----END PGP SIGNATURE-----
diff --git a/sys-power/cpupower/cpupower-3.8_rc4.ebuild b/sys-power/cpupower/cpupower-3.8_rc4.ebuild
new file mode 100644
index 000000000000..b0fffa963dce
--- /dev/null
+++ b/sys-power/cpupower/cpupower-3.8_rc4.ebuild
@@ -0,0 +1,62 @@
+# 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_rc4.ebuild,v 1.1 2013/01/23 17:10:15 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.0/testing/linux-${PV/_/-}.tar.bz2"
+
+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]
+RDEPEND="!sys-apps/linux-misc-apps"
+DEPEND="${RDEPEND}
+ 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
+}
diff --git a/sys-power/cpupower/metadata.xml b/sys-power/cpupower/metadata.xml
new file mode 100644
index 000000000000..7c289c2b4da5
--- /dev/null
+++ b/sys-power/cpupower/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>kernel-misc</herd>
+ <maintainer>
+ <email>ssuominen@gentoo.org</email>
+ <name>Samuli Suominen</name>
+ </maintainer>
+ <use>
+ <flag name='cpufreq_bench'>Build and install the cpufreq_bench binary</flag>
+ </use>
+</pkgmetadata>