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 (-17 / +15 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2004 Gentoo Foundation
1
# Copyright 1999-2005 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 13-19 Link Here
13
KEYWORDS="~x86 ~ppc ~amd64"
13
KEYWORDS="~x86 ~ppc ~amd64"
14
IUSE="acpi"
14
IUSE="acpi"
15
15
16
DEPEND="!ppc? ( acpi? ( sys-apps/acpid ) )"
16
DEPEND="!ppc? ( acpi? ( sys-apps/acpid ) )
17
		sys-apps/powermgmt-base"
18
RDEPEND="virtual/logger"
17
19
18
is_2_6_kernel() {
20
is_2_6_kernel() {
19
	local KV_major="$(echo "${KV}" | cut -d. -f1)"
21
	local KV_major="$(echo "${KV}" | cut -d. -f1)"
Lines 54-76 Link Here
54
	exeinto /etc/init.d ; newexe ${FILESDIR}/speedfreq.rc speedfreq
56
	exeinto /etc/init.d ; newexe ${FILESDIR}/speedfreq.rc speedfreq
55
	insinto /etc/conf.d ; newins ${FILESDIR}/speedfreq.conf speedfreq
57
	insinto /etc/conf.d ; newins ${FILESDIR}/speedfreq.conf speedfreq
56
	dodoc README
58
	dodoc README
57
	if use acpi ; then
59
	if useq acpi ; then
58
		exeinto /etc/acpi
60
		exeinto /etc/acpi/events
59
		newexe ${FILESDIR}/battery-new.sh battery.sh
61
		doexe ${FILESDIR}/speedfreq_battery
60
	fi
62
	fi
61
}
63
}
62
64
63
pkg_postinst() {
65
pkg_postinst() {
64
	if use acpi ; then
66
	echo
65
		echo
67
	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"
68
	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"
69
	if useq acpi ; then
68
		einfo " event=battery.*"
70
		einfo "Please restart acpid for the changes to take effect:"
69
		einfo " action=/etc/acpi/battery.sh %e"
71
		einfo "  $ /etc/init.d/acpid restart"
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
72
	fi
73
	echo
76
}
74
}

Return to bug 70163