blob: 1065796625dfd2c6595b83d16294415d1ba925e5 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/cpudyn/cpudyn-1.0.1.ebuild,v 1.9 2010/05/17 08:12:58 phajdan.jr Exp $
inherit eutils
DESCRIPTION="A daemon to control laptop power consumption via cpufreq and disk standby"
HOMEPAGE="http://mnm.uib.es/~gallir/cpudyn/"
SRC_URI="http://mnm.uib.es/~gallir/${PN}/download/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE=""
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"/debian
epatch "${FILESDIR}"/${PN}-0.99.0-init_conf_updates.patch
}
src_compile() {
emake LDFLAGS="${LDFLAGS}" cpudynd || die "Compilation failed."
}
src_install() {
dosbin cpudynd || die "dosbin"
doman cpudynd.8
dodoc INSTALL README VERSION changelog
dohtml *.html
newinitd "${FILESDIR}"/cpudyn.init cpudyn
newconfd debian/cpudyn.conf cpudyn
}
pkg_postinst() {
einfo "Configuration file is /etc/conf.d/cpudyn."
}
|