summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-08-17 13:59:41 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-08-17 13:59:41 +0000
commita6eb2364dd0743be94c689ec9fee713a0ae81ed7 (patch)
tree47907f1abe6f2f2018ffe9fcf9114510dc78d16f /app-laptop/laptop-mode-tools
parentSet Distribution to gentoo, thanks to Florian Zierer. (diff)
downloadhistorical-a6eb2364dd0743be94c689ec9fee713a0ae81ed7.tar.gz
historical-a6eb2364dd0743be94c689ec9fee713a0ae81ed7.tar.bz2
historical-a6eb2364dd0743be94c689ec9fee713a0ae81ed7.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.101
-rw-r--r--app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.10-init.d25
-rw-r--r--app-laptop/laptop-mode-tools/laptop-mode-tools-1.10.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 af96988870b7..0694a7ede637 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.12 2005/08/17 10:42:13 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.13 2005/08/17 13:59:41 brix Exp $
+
+*laptop-mode-tools-1.10 (17 Aug 2005)
+
+ 17 Aug 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/laptop-mode-tools-1.10-init.d, +laptop-mode-tools-1.10.ebuild:
+ Version bump.
*laptop-mode-tools-1.09 (17 Aug 2005)
diff --git a/app-laptop/laptop-mode-tools/Manifest b/app-laptop/laptop-mode-tools/Manifest
index 5b49c6455154..bd05c444ee3f 100644
--- a/app-laptop/laptop-mode-tools/Manifest
+++ b/app-laptop/laptop-mode-tools/Manifest
@@ -2,8 +2,9 @@ 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 da2b22ed64efe90693a598cf64851d95 laptop-mode-tools-1.09.ebuild 1833
-MD5 e343f03bf6f9234cca09f57996e43433 ChangeLog 2388
+MD5 13965cc38bd760cdd7d0a06fb1eadad1 ChangeLog 2570
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
+MD5 936a7e7a55cf20c924c2540f868dd715 laptop-mode-tools-1.10.ebuild 1833
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
@@ -12,3 +13,5 @@ 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
+MD5 59399fabe810264253938e9391627d07 files/digest-laptop-mode-tools-1.10 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.10 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.10
new file mode 100644
index 000000000000..5f8de2873de1
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.10
@@ -0,0 +1 @@
+MD5 cf67d837efe75dcf082a10df6897add5 laptop-mode-tools_1.10.tar.gz 40351
diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.10-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.10-init.d
new file mode 100644
index 000000000000..2a3826fb6693
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.10-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.10-init.d,v 1.1 2005/08/17 13:59:41 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.10.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.10.ebuild
new file mode 100644
index 000000000000..50c334a488ca
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.10.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.10.ebuild,v 1.1 2005/08/17 13:59:41 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
+}