blob: 0a480b4dc0ec76d7525fff86f3ce9206d1655eff (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/xfce-extra/xfce4-sensors/xfce4-sensors-0.10.0-r1.ebuild,v 1.5 2007/06/11 18:22:37 nixnut Exp $
inherit xfce44
xfce44
DESCRIPTION="lm_sensors and hddtemp panel plugin"
KEYWORDS="amd64 ppc x86"
IUSE="debug hddtemp"
RDEPEND="sys-apps/lm_sensors
hddtemp? ( app-admin/hddtemp )"
DEPEND="dev-util/intltool"
DOCS="AUTHORS ChangeLog NEWS README TODO"
src_unpack() {
unpack ${A}
sed -i -e 's:hddtemp -n:/usr/sbin/hddtemp -n:g' "${S}"/panel-plugin/sensors.c
}
pkg_postinst() {
xfce44_pkg_postinst
if use hddtemp; then
[[ -u "${ROOT}"/usr/sbin/hddtemp ]] || \
elog "You need to run \"chmod u+s /usr/sbin/hddtemp\" to show disk temperatures."
fi
}
xfce44_goodies_panel_plugin
|