diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-04-11 19:22:58 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-04-11 19:22:58 +0000 |
commit | f199fa6f68b5a37519b91f63cf3ab7f4dbd2b68e (patch) | |
tree | 087c6099b9b3323b25e4cd95569bad585068c3dd /app-laptop/laptop-mode-tools | |
parent | Added ~ppc64 to KEYWORDS (diff) | |
download | gentoo-2-f199fa6f68b5a37519b91f63cf3ab7f4dbd2b68e.tar.gz gentoo-2-f199fa6f68b5a37519b91f63cf3ab7f4dbd2b68e.tar.bz2 gentoo-2-f199fa6f68b5a37519b91f63cf3ab7f4dbd2b68e.zip |
Version bump.
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-laptop/laptop-mode-tools')
5 files changed, 110 insertions, 1 deletions
diff --git a/app-laptop/laptop-mode-tools/ChangeLog b/app-laptop/laptop-mode-tools/ChangeLog index 51e2b24a501d..48a234e179f1 100644 --- a/app-laptop/laptop-mode-tools/ChangeLog +++ b/app-laptop/laptop-mode-tools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-laptop/laptop-mode-tools # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.2 2005/03/25 19:05:33 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.3 2005/04/11 19:22:58 brix Exp $ + +*laptop-mode-tools-1.05 (11 Apr 2005) + + 11 Apr 2005; <brix@gentoo.org> +files/laptop-mode-tools-1.05.init, + +laptop-mode-tools-1.05.ebuild: + Version bump. *laptop-mode-tools-1.04-r1 (25 Mar 2005) diff --git a/app-laptop/laptop-mode-tools/Manifest b/app-laptop/laptop-mode-tools/Manifest index 5dddab465642..6b8cbf8a17e1 100644 --- a/app-laptop/laptop-mode-tools/Manifest +++ b/app-laptop/laptop-mode-tools/Manifest @@ -1,7 +1,10 @@ +MD5 3dbbab9d41976f40d9960404ba55238f laptop-mode-tools-1.05.ebuild 1762 MD5 16f96b8a21d1c01493b9d3ee126d6e33 laptop-mode-tools-1.04-r1.ebuild 1883 MD5 2a244615a7cc165f929c64f693076391 laptop-mode-tools-1.04.ebuild 1880 MD5 881cddfa47481c35d7f6d49ce0681b8c ChangeLog 738 MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 MD5 142ca4fd50b03cccc557a89a2bafc022 files/digest-laptop-mode-tools-1.04-r1 73 MD5 b23d6e2747012f603728b810eb223c63 files/laptop-mode-tools-1.04.init 699 +MD5 b23d6e2747012f603728b810eb223c63 files/laptop-mode-tools-1.05.init 699 MD5 142ca4fd50b03cccc557a89a2bafc022 files/digest-laptop-mode-tools-1.04 73 +MD5 4099ded830cee79005e7cc73ccc44907 files/digest-laptop-mode-tools-1.05 73 diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.05 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.05 new file mode 100644 index 000000000000..11dc83ea8f00 --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.05 @@ -0,0 +1 @@ +MD5 61cf06849c3340ba965fc14091a25c82 laptop-mode-tools_1.05.tar.gz 33645 diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.05.init b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.05.init new file mode 100644 index 000000000000..6fb6a1765702 --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.05.init @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.05.init,v 1.1 2005/04/11 19:22:58 brix Exp $ + +checkconfig() { + if [ ! -f /proc/sys/vm/laptop_mode ]; then + eerror "Kernel does not support laptop_mode" + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting laptop_mode" + touch /var/run/laptop-mode-enabled && /usr/sbin/laptop_mode auto &> /dev/null + eend $? +} + +stop() { + ebegin "Stopping laptop_mode" + /usr/sbin/laptop_mode stop &> /dev/null && rm -f /var/run/laptop-mode-enabled + eend $? +} diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.05.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.05.ebuild new file mode 100644 index 000000000000..7d2ab7af32f9 --- /dev/null +++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.05.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.05.ebuild,v 1.1 2005/04/11 19:22:58 brix Exp $ + +inherit linux-info + +MY_P=${PN}_${PV} + +DESCRIPTION="Linux kernel laptop_mode user-space utilities" + +HOMEPAGE="http://www.xs4all.nl/~bsamwel/laptop_mode/tools/" +SRC_URI="http://www.xs4all.nl/~bsamwel/laptop_mode/tools/downloads/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="acpi apm" + +DEPEND="acpi? ( sys-power/acpid ) + apm? ( sys-apps/apmd )" + +pkg_setup() { + linux-info_pkg_setup + + if [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 6 -a ${KV_PATCH} -lt 6 ]; then + eerror "${P} requires kernel version 2.6.6 or newer." + die "${P} requires kernel version 2.6.6 or newer" + elif [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 4 -a ${KV_PATCH} -lt 23 ]; then + eerror "${P} requires kernel version 2.4.23 or newer." + die "${P} requires kernel version 2.4.23 or newer" + fi +} + +src_install() { + dosbin usr/sbin/laptop_mode + + insinto /etc/laptop-mode + doins etc/laptop-mode/laptop-mode.conf + + newinitd ${FILESDIR}/${P}.init laptop_mode + + doman man/* + + dodoc Documentation/laptop-mode.txt README + + if useq acpi; then + insinto /etc/acpi/events/ + doins etc/acpi/events/* + + exeinto /etc/acpi/actions/ + doexe etc/acpi/actions/* + fi + + if useq apm; then + exeinto /etc/apm/event.d/ + doexe etc/apm/event.d/* + fi +} + +pkg_postinst() { + if ! useq acpi && ! useq apm; then + ewarn + ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not" + ewarn "automatically disable laptop_mode on low battery." + ewarn + ewarn "This means you can lose up to 10 minutes of work if running" + ewarn "out of battery while laptop_mode is enabled." + ewarn + ewarn "Please see /usr/share/doc/${PF}/laptop-mode.txt.gz for further" + ewarn "information." + ewarn + fi +} |