summaryrefslogtreecommitdiff
blob: 96c8f857a11a3f06b700b667a0b43ceb255e2fec (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

DESCRIPTION="Daemon to control the speed and voltage of CPUs"
HOMEPAGE="http://powerthend.scheissname.de/"
SRC_URI="http://dev.gentooexperimental.org/~tommy/distfiles/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

src_prepare() {
	sed -i "s:-O2:${CFLAGS}:" Makefile
}

src_compile() {
	emake powerthend || die "emake failed"
}

src_install() {
	dosbin powerthend || die "dosbin failed"
	dodoc README || die "dodoc failed"

	newconfd "${FILESDIR}/powerthend.confd" powerthend
	newinitd "${FILESDIR}/powerthend.rc" powerthend
}