blob: b5d3c5a3867ab86d6c2c25ce998faea75b60cc08 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/cpudyn/cpudyn-0.4.7.ebuild,v 1.5 2004/04/18 14:24:52 lv Exp $
DESCRIPTION="A daemon to control laptop power consumption via cpufreq and disk standby"
HOMEPAGE="http://mnm.uib.es/~gallir/${PN}/"
SRC_URI="http://mnm.uib.es/~gallir/${PN}/download/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ppc"
IUSE=""
S=${WORKDIR}/${PN}
src_compile() {
emake cpudynd || die "Compilation failed."
}
src_install() {
into /
exeinto /etc/init.d
newexe ${FILESDIR}/cpudyn.init cpudyn
insinto /etc/conf.d
cat ${FILESDIR}/cpudyn.conf.extra >>debian/cpudyn.conf
newins debian/cpudyn.conf cpudyn
into /usr
doman cpudynd.8
dosbin cpudynd
dodoc INSTALL README VERSION changelog COPYING
dohtml *.html
}
pkg_postinst() {
einfo "Configuration file is /etc/conf.d/cpudyn."
}
|