diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-08-08 17:24:39 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-08-08 17:24:39 +0000 |
commit | ac65560308b27bd0a9429daea039cf3ab19204da (patch) | |
tree | 9e3eaf48c4cdb804785294bd4568493c49002405 /app-laptop | |
parent | Fixed digest. (diff) | |
download | gentoo-2-ac65560308b27bd0a9429daea039cf3ab19204da.tar.gz gentoo-2-ac65560308b27bd0a9429daea039cf3ab19204da.tar.bz2 gentoo-2-ac65560308b27bd0a9429daea039cf3ab19204da.zip |
Version bump, bug #101201.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'app-laptop')
5 files changed, 110 insertions, 2 deletions
diff --git a/app-laptop/laptop-mode-tools/ChangeLog b/app-laptop/laptop-mode-tools/ChangeLog index 8e2c7b2f4930..acdc647d5a65 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.10 2005/07/30 12:13:51 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.11 2005/08/08 17:24:39 brix Exp $ + +*laptop-mode-tools-1.08 (08 Aug 2005) + + 08 Aug 2005; Henrik Brix Andersen <brix@gentoo.org> + +files/laptop-mode-tools-1.08-init.d, +laptop-mode-tools-1.08.ebuild: + Version bump, bug #101201. *laptop-mode-tools-1.07 (30 Jul 2005) diff --git a/app-laptop/laptop-mode-tools/Manifest b/app-laptop/laptop-mode-tools/Manifest index 0ce2784c9f88..9c40e5fca1a8 100644 --- a/app-laptop/laptop-mode-tools/Manifest +++ b/app-laptop/laptop-mode-tools/Manifest @@ -1,8 +1,11 @@ +MD5 12cce63aa9f9c21659e39c2c05750598 laptop-mode-tools-1.08.ebuild 1715 MD5 6e72d093a3ec1898ad572ab643e66433 laptop-mode-tools-1.05.ebuild 1893 MD5 732bd552db1a4970ac251284914280e0 laptop-mode-tools-1.07.ebuild 1833 -MD5 3da8e80161eb444661a8ebbddcdc6ae4 ChangeLog 2011 +MD5 91a3a3261cdf4a3e0f030a756cfdd891 ChangeLog 2206 MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 +MD5 6abc2a25e8abbf292a5772bf2fbb23c7 files/laptop-mode-tools-1.08-init.d 579 MD5 bbf9b10381551598942a6a4a4ed0bf77 files/laptop-mode-tools-1.05.init 699 MD5 b4c455fa575ba17a067f493ece07e108 files/laptop-mode-tools-1.07-init.d 703 MD5 4099ded830cee79005e7cc73ccc44907 files/digest-laptop-mode-tools-1.05 73 MD5 32b30237252e86c6e7a1dce931e4deaa files/digest-laptop-mode-tools-1.07 73 +MD5 68c13aa2f74475845a3f0fadf542e4b6 files/digest-laptop-mode-tools-1.08 73 diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.08 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.08 new file mode 100644 index 000000000000..c1988898fae6 --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.08 @@ -0,0 +1 @@ +MD5 20b0a19840fb168f15ea70fc3598993c laptop-mode-tools_1.08.tar.gz 38242 diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.08-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.08-init.d new file mode 100644 index 000000000000..69150df28247 --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.08-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.08-init.d,v 1.1 2005/08/08 17:24:39 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.08.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.08.ebuild new file mode 100644 index 000000000000..fff8a2ab67f2 --- /dev/null +++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.08.ebuild @@ -0,0 +1,73 @@ +# 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.08.ebuild,v 1.1 2005/08/08 17:24:39 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 "${P} requires kernel version 2.6.6 or newer." + die "${P} requires kernel version 2.6.6 or newer" + elif kernel_is 2 4 && kernel_is lt 2 4 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.d laptop_mode + + 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 +} |