blob: 5e7e93a195719a944852defa49f6088c9a604996 (
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
38
39
40
41
42
43
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/cpufreqd-2.0.0_beta4.ebuild,v 1.2 2005/08/26 13:02:30 brix Exp $
inherit flag-o-matic linux-info
MY_P=${P/_/-}
S=${WORKDIR}/${MY_P}
DESCRIPTION="CPU Frequency Daemon"
HOMEPAGE="http://cpufreqd.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND="sys-power/cpufrequtils"
RDEPEND="${DEPEND}"
CONFIG_CHECK="CPU_FREQ"
ERROR_CPU_FREQ="${P} requires support for CPU Frequency scaling (CONFIG_CPU_FREQ)"
src_install() {
emake DESTDIR=${D} install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README TODO
newinitd ${FILESDIR}/${P}-init.d ${PN}
}
pkg_postinst() {
einfo
einfo "Significant changes have happened since the 1.x releases, including"
einfo "changes in the configuration file format."
einfo
einfo "Make sure you update your /etc/cpufreqd.conf file before starting"
einfo "${PN}. You can use 'etc-update' to accomplish this:"
einfo
einfo " # etc-update"
einfo
}
|