Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 70163 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-apps/speedfreq/speedfreq-0.7.2-r2.ebuild (-16 / +9 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2004 Gentoo Foundation
1
# Copyright 1999-2004 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-apps/speedfreq/speedfreq-0.7.2-r2.ebuild,v 1.1 2004/10/09 09:31:36 cardoe Exp $
3
# $Header: $
4
4
5
inherit eutils
5
inherit eutils
6
6
Lines 14-19 Link Here
14
IUSE="acpi"
14
IUSE="acpi"
15
15
16
DEPEND="!ppc? ( acpi? ( sys-apps/acpid ) )"
16
DEPEND="!ppc? ( acpi? ( sys-apps/acpid ) )"
17
RDEPEND="virtual/logger"
17
18
18
is_2_6_kernel() {
19
is_2_6_kernel() {
19
	local KV_major="$(echo "${KV}" | cut -d. -f1)"
20
	local KV_major="$(echo "${KV}" | cut -d. -f1)"
Lines 54-76 Link Here
54
	exeinto /etc/init.d ; newexe ${FILESDIR}/speedfreq.rc speedfreq
55
	exeinto /etc/init.d ; newexe ${FILESDIR}/speedfreq.rc speedfreq
55
	insinto /etc/conf.d ; newins ${FILESDIR}/speedfreq.conf speedfreq
56
	insinto /etc/conf.d ; newins ${FILESDIR}/speedfreq.conf speedfreq
56
	dodoc README
57
	dodoc README
57
	if use acpi ; then
58
	if useq acpi ; then
58
		exeinto /etc/acpi
59
		exeinto /etc/acpi/events
59
		newexe ${FILESDIR}/battery-new.sh battery.sh
60
		newexe ${FILESDIR}/speedfreq_battery
60
	fi
61
	fi
61
}
62
}
62
63
63
pkg_postinst() {
64
pkg_postinst() {
64
	if use acpi ; then
65
	echo
65
		echo
66
	einfo "Configuration should be done in /etc/conf.d/speedfreq"
66
		einfo "A sample script for powercontrol has been placed in /etc/acpi/battery.sh"
67
	einfo "Make sure that you have sysfs mounted on /sys"
67
		einfo "To use it add the following lines to your /etc/acpi/events/default"
68
	echo
68
		einfo " event=battery.*"
69
		einfo " action=/etc/acpi/battery.sh %e"
70
		einfo "Note that this only supports one battery at the time"
71
		echo
72
		einfo "Configuration should be done in /etc/conf.d/speedfreq"
73
		einfo "Make sure that you have sysfs mounted on /sys"
74
		echo
75
	fi
76
}
69
}

Return to bug 70163