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 (-15 / +20 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 10-16 Link Here
10
10
11
LICENSE="GPL-1"
11
LICENSE="GPL-1"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~x86 ~ppc ~amd64"
13
KEYWORDS="~x86"
14
IUSE="acpi"
14
IUSE="acpi"
15
15
16
DEPEND="!ppc? ( acpi? ( sys-apps/acpid ) )"
16
DEPEND="!ppc? ( acpi? ( sys-apps/acpid ) )"
Lines 54-76 Link Here
54
	exeinto /etc/init.d ; newexe ${FILESDIR}/speedfreq.rc speedfreq
54
	exeinto /etc/init.d ; newexe ${FILESDIR}/speedfreq.rc speedfreq
55
	insinto /etc/conf.d ; newins ${FILESDIR}/speedfreq.conf speedfreq
55
	insinto /etc/conf.d ; newins ${FILESDIR}/speedfreq.conf speedfreq
56
	dodoc README
56
	dodoc README
57
	if use acpi ; then
57
	if useq acpi ; then
58
		exeinto /etc/acpi
58
		exeinto /etc/acpi/events
59
		newexe ${FILESDIR}/battery-new.sh battery.sh
59
		newexe ${FILESDIR}/speedfreq_battery .speedfreq_battery
60
	fi
60
	fi
61
}
61
}
62
62
63
pkg_postinst() {
63
pkg_postinst() {
64
	if use acpi ; then
64
	if useq acpi ; then
65
		echo
66
		einfo "A sample script for powercontrol has been placed in /etc/acpi/battery.sh"
67
		einfo "To use it add the following lines to your /etc/acpi/events/default"
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
65
		echo
66
		einfo "A sample script for powercontrol has been placed in"
67
		einfo "/etc/acpi/events/.speedfreq_battery"
68
		einfo "It will automatically adapt CPU frequency to the power"
69
		einfo "source, but it's not enabled by default."
70
		einfo "To activate this feature, please run"
71
		einfo
72
		einfo "# cd /etc/acpi/events"
73
		einfo "# ln -sf .speedfreq_battery speedfreq_battery"
74
		einfo "# /etc/init.d/acpid restart"
75
	fi
75
	fi
76
77
	echo
78
	einfo "Configuration should be done in /etc/conf.d/speedfreq"
79
	einfo "Make sure that you have sysfs mounted on /sys"
80
	echo
76
}
81
}

Return to bug 70163