blob: 6f8cbe43aa105a7968123be828b94f332fea3457 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellm-cpufreq/gkrellm-cpufreq-0.5.5.ebuild,v 1.3 2007/07/11 20:39:23 mr_bones_ Exp $
inherit gkrellm-plugin
MY_P=${P/gkrellm/gkrellm2}
DESCRIPTION="A Gkrellm2 plugin for displaying and manipulating CPU frequency"
HOMEPAGE="http://iacs.epfl.ch/~winkelma/gkrellm2-cpufreq/"
SRC_URI="http://iacs.epfl.ch/~winkelma/gkrellm2-cpufreq//${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S=${WORKDIR}/${MY_P}
PLUGIN_SO=cpufreq.so
src_install() {
gkrellm-plugin_src_install
exeinto /usr/sbin
doexe cpufreqset
doexe cpufreqsetgovernor
doexe cpufreqnextgovernor
}
pkg_postinst() {
echo
einfo "Add this to /etc/sudors to allow users to change cpu governor and speed:"
einfo "ALL ALL=NOPASSWD:/usr/sbin/cpufreqset [0-9]*"
einfo "ALL ALL=NOPASSWD:/usr/sbin/cpufreqnextgovernor"
einfo "ALL ALL=NOPASSWD:/usr/sbin/cpufreqsetgovernor [a-z]*"
echo
}
|