summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-08-17 10:42:13 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-08-17 10:42:13 +0000
commitd5c8c21c491d79a8058b8c2f44bab7274b4500b5 (patch)
treeae6a25eb6cdabc80fa7eaedfaced0efbfa252ce3 /app-laptop/laptop-mode-tools
parentebuild cleanup. (diff)
downloadhistorical-d5c8c21c491d79a8058b8c2f44bab7274b4500b5.tar.gz
historical-d5c8c21c491d79a8058b8c2f44bab7274b4500b5.tar.bz2
historical-d5c8c21c491d79a8058b8c2f44bab7274b4500b5.zip
Version bump.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'app-laptop/laptop-mode-tools')
-rw-r--r--app-laptop/laptop-mode-tools/ChangeLog8
-rw-r--r--app-laptop/laptop-mode-tools/Manifest5
-rw-r--r--app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.091
-rw-r--r--app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d25
-rw-r--r--app-laptop/laptop-mode-tools/laptop-mode-tools-1.09.ebuild73
5 files changed, 110 insertions, 2 deletions
diff --git a/app-laptop/laptop-mode-tools/ChangeLog b/app-laptop/laptop-mode-tools/ChangeLog
index acdc647d5a65..af96988870b7 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.11 2005/08/08 17:24:39 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.12 2005/08/17 10:42:13 brix Exp $
+
+*laptop-mode-tools-1.09 (17 Aug 2005)
+
+ 17 Aug 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/laptop-mode-tools-1.09-init.d, +laptop-mode-tools-1.09.ebuild:
+ Version bump.
*laptop-mode-tools-1.08 (08 Aug 2005)
diff --git a/app-laptop/laptop-mode-tools/Manifest b/app-laptop/laptop-mode-tools/Manifest
index b9ed20a68cd6..5b49c6455154 100644
--- a/app-laptop/laptop-mode-tools/Manifest
+++ b/app-laptop/laptop-mode-tools/Manifest
@@ -1,11 +1,14 @@
MD5 e4d1bba6487157f22fb38246433d287d laptop-mode-tools-1.08.ebuild 1833
MD5 6e72d093a3ec1898ad572ab643e66433 laptop-mode-tools-1.05.ebuild 1893
MD5 732bd552db1a4970ac251284914280e0 laptop-mode-tools-1.07.ebuild 1833
-MD5 3e1590dab01a8e6effa0fc5373bc58de ChangeLog 2206
+MD5 da2b22ed64efe90693a598cf64851d95 laptop-mode-tools-1.09.ebuild 1833
+MD5 e343f03bf6f9234cca09f57996e43433 ChangeLog 2388
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
MD5 c1eea7d093ae2fbfbd27a61160bdc942 files/laptop-mode-tools-1.08-init.d 703
MD5 bbf9b10381551598942a6a4a4ed0bf77 files/laptop-mode-tools-1.05.init 699
MD5 b4c455fa575ba17a067f493ece07e108 files/laptop-mode-tools-1.07-init.d 703
+MD5 4849d077a63715f0a95e3da7c8525733 files/laptop-mode-tools-1.09-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
+MD5 e2a60b88d057a2f0328d0eb09d9c32d5 files/digest-laptop-mode-tools-1.09 73
diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.09 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.09
new file mode 100644
index 000000000000..b5245843fe8a
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.09
@@ -0,0 +1 @@
+MD5 304ea3ad17402ffdb84d5b79b5f88cdb laptop-mode-tools_1.09.tar.gz 40248
diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d
new file mode 100644
index 000000000000..09cbbdf721a1
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-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.09-init.d,v 1.1 2005/08/17 10:42:13 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.09.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.09.ebuild
new file mode 100644
index 000000000000..f938c7e4e04d
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.09.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.09.ebuild,v 1.1 2005/08/17 10:42:13 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
+}