blob: 83dbf59c5e1917e53f42162f1043bcefbfa036fb (
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
44
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
DESCRIPTION="Dell Inspiron and Latitude utilities"
#HOMEPAGE="http://people.debian.org/~dz/i8k/" # is MIA
HOMEPAGE="http://linux.about.com/cs/linux101/g/i8kutils.htm"
SRC_URI="mirror://debian/pool/main/i/${PN}/${P/-/_}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* x86 amd64"
IUSE="tk"
DEPEND="virtual/libc
tk? ( >=dev-lang/tk-8.3.3 )"
src_compile() {
make all || die
}
src_install() {
dobin i8kbuttons i8kctl
doman i8kbuttons.1 i8kctl.1
dosym /usr/bin/i8kctl /usr/bin/i8kfan
dodoc README.i8kutils
docinto examples/
dodoc examples/*
newinitd ${FILESDIR}/i8k.init i8k
newconfd ${FILESDIR}/i8k.conf i8k
if use tk
then
dobin i8kmon
doman i8kmon.1
docinto /
dodoc i8kmon.conf
else
echo >> ${D}/etc/conf.d/i8k
echo '# i8kmon disabled because the package was installed without USE=tk' >> ${D}/etc/conf.d/i8k
echo 'NOMON=1' >> ${D}/etc/conf.d/i8k
fi
}
|