diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-10-29 19:00:42 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-10-29 19:00:42 +0000 |
commit | 562f5203592624c0054f9c7bc8124b28f035f63b (patch) | |
tree | 335facdf81f0eb770164f10969e58abaff4c3ae2 /app-laptop/laptop-mode-tools | |
parent | Add patch from bug 109379 to allow compilation (diff) | |
download | gentoo-2-562f5203592624c0054f9c7bc8124b28f035f63b.tar.gz gentoo-2-562f5203592624c0054f9c7bc8124b28f035f63b.tar.bz2 gentoo-2-562f5203592624c0054f9c7bc8124b28f035f63b.zip |
Version bump, bug #105023.
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'app-laptop/laptop-mode-tools')
5 files changed, 125 insertions, 2 deletions
diff --git a/app-laptop/laptop-mode-tools/ChangeLog b/app-laptop/laptop-mode-tools/ChangeLog index 62a65940614a..e19f624abbbe 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.17 2005/10/22 10:37:55 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.18 2005/10/29 19:00:42 brix Exp $ + +*laptop-mode-tools-1.11 (29 Oct 2005) + + 29 Oct 2005; Henrik Brix Andersen <brix@gentoo.org> + +files/laptop-mode-tools-1.11-init.d, +laptop-mode-tools-1.11.ebuild: + Version bump, bug #105023. 22 Oct 2005; Henrik Brix Andersen <brix@gentoo.org> -files/laptop-mode-tools-1.05.init, -laptop-mode-tools-1.05.ebuild: diff --git a/app-laptop/laptop-mode-tools/Manifest b/app-laptop/laptop-mode-tools/Manifest index 8604bb38eeb7..00e86d0d3e60 100644 --- a/app-laptop/laptop-mode-tools/Manifest +++ b/app-laptop/laptop-mode-tools/Manifest @@ -1,5 +1,8 @@ -MD5 9953aa5ef0ea89fcdc1ec24775179eb6 ChangeLog 3263 +MD5 7389675dc48e36cb6f27ceffda702be5 laptop-mode-tools-1.11.ebuild 2137 +MD5 e2814ed4b9e4918fa50ff966c9bd5e40 ChangeLog 3458 MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 MD5 4618c7345ece4f25091dbcacb7388589 laptop-mode-tools-1.10.ebuild 1917 +MD5 6abc2a25e8abbf292a5772bf2fbb23c7 files/laptop-mode-tools-1.11-init.d 579 MD5 59399fabe810264253938e9391627d07 files/digest-laptop-mode-tools-1.10 73 +MD5 91cda7e11a920244b5252a3446832fd2 files/digest-laptop-mode-tools-1.11 73 MD5 5eace2dedcf9b5a9e2e703c6f1fed2a4 files/laptop-mode-tools-1.10-init.d 703 diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.11 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.11 new file mode 100644 index 000000000000..db6c2bd3bc3e --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.11 @@ -0,0 +1 @@ +MD5 f5c882e2ba1953b80abd1d7cd38c3a51 laptop-mode-tools_1.11.tar.gz 51501 diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.11-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.11-init.d new file mode 100644 index 000000000000..ed5f0ea6d356 --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.11-init.d @@ -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.11-init.d,v 1.1 2005/10/29 19:00:42 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.11.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.11.ebuild new file mode 100644 index 000000000000..35a98befee2e --- /dev/null +++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.11.ebuild @@ -0,0 +1,88 @@ +# 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.11.ebuild,v 1.1 2005/10/29 19:00:42 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="~amd64 ~ppc ~x86" + +IUSE="acpi apm" + +DEPEND="acpi? ( sys-power/acpid ) + apm? ( sys-apps/apmd )" + +pkg_setup() { + linux-info_pkg_setup + + if kernel_is 2 6 && kernel_is lt 2 6 6; then + eerror + eerror "${P} requires kernel version 2.6.6 or newer." + eerror + die "${P} requires kernel version 2.6.6 or newer" + elif kernel_is 2 4 && kernel_is lt 2 4 23; then + eerror + eerror "${P} requires kernel version 2.4.23 or newer." + eerror/eti + die "${P} requires kernel version 2.4.23 or newer" + fi +} + +src_install() { + dosbin usr/sbin/laptop_mode + dosbin usr/sbin/lm-profiler + + insinto /etc/laptop-mode + doins etc/laptop-mode/laptop-mode.conf + doins etc/laptop-mode/lm-profiler.conf + + newinitd ${FILESDIR}/${P}-init.d laptop_mode + + keepdir /etc/laptop-mode/batt-start + keepdir /etc/laptop-mode/batt-stop + keepdir /etc/laptop-mode/lm-ac-start + keepdir /etc/laptop-mode/lm-ac-stop + keepdir /etc/laptop-mode/nolm-ac-start + keepdir /etc/laptop-mode/nolm-ac-stop + + # do not install lm-syslog-setup man page, bug #105022 + rm -f man/lm-syslog-setup.8 + doman man/* + + dodoc Documentation/laptop-mode.txt README + + if use acpi; then + insinto /etc/acpi/events/ + doins etc/acpi/events/* + + exeinto /etc/acpi/actions/ + doexe etc/acpi/actions/* + fi + + if use apm; then + exeinto /etc/apm/event.d/ + doexe etc/apm/event.d/* + fi +} + +pkg_postinst() { + if ! use acpi && ! use 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 +} |