diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-07-29 09:24:33 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-07-29 09:24:33 +0000 |
commit | 7e33148e392d4ccdd4f019111fce647b725c874f (patch) | |
tree | 3a82cc350a8bcbcfad9e585a4aa0cbd3600a2e41 /app-laptop | |
parent | Fix bad depend atom (#100657). (diff) | |
download | gentoo-2-7e33148e392d4ccdd4f019111fce647b725c874f.tar.gz gentoo-2-7e33148e392d4ccdd4f019111fce647b725c874f.tar.bz2 gentoo-2-7e33148e392d4ccdd4f019111fce647b725c874f.zip |
Version bump.
(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 a1bc1b2270d8..fcbf20b6cbc6 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.8 2005/07/09 04:08:51 josejx Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.9 2005/07/29 09:24:33 brix Exp $ + +*laptop-mode-tools-1.06 (29 Jul 2005) + + 29 Jul 2005; Henrik Brix Andersen <brix@gentoo.org> + +files/laptop-mode-tools-1.06-init.d, +laptop-mode-tools-1.06.ebuild: + Version bump. 09 Jul 2005; Joseph Jezak <josejx@gentoo.org> laptop-mode-tools-1.05.ebuild: diff --git a/app-laptop/laptop-mode-tools/Manifest b/app-laptop/laptop-mode-tools/Manifest index 91667e603247..b47938c3d3a1 100644 --- a/app-laptop/laptop-mode-tools/Manifest +++ b/app-laptop/laptop-mode-tools/Manifest @@ -1,5 +1,8 @@ -MD5 0566960e4df59ea81269057287768c1d ChangeLog 1474 +MD5 12cce63aa9f9c21659e39c2c05750598 laptop-mode-tools-1.06.ebuild 1715 MD5 6e72d093a3ec1898ad572ab643e66433 laptop-mode-tools-1.05.ebuild 1893 +MD5 a227b9ddade3307115f67b5d3a787357 ChangeLog 1656 MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 MD5 bbf9b10381551598942a6a4a4ed0bf77 files/laptop-mode-tools-1.05.init 699 MD5 4099ded830cee79005e7cc73ccc44907 files/digest-laptop-mode-tools-1.05 73 +MD5 58e7f8c73cb8ab77c04180585ddcd1a0 files/digest-laptop-mode-tools-1.06 73 +MD5 6abc2a25e8abbf292a5772bf2fbb23c7 files/laptop-mode-tools-1.06-init.d 579 diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.06 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.06 new file mode 100644 index 000000000000..834a6b07dc6b --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.06 @@ -0,0 +1 @@ +MD5 d8001d456ae2005a78a5fae8b96d34a1 laptop-mode-tools_1.06.tar.gz 37126 diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.06-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.06-init.d new file mode 100644 index 000000000000..59793f9ce546 --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.06-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.06-init.d,v 1.1 2005/07/29 09:24:33 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.06.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.06.ebuild new file mode 100644 index 000000000000..b2f587a0f61f --- /dev/null +++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.06.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.06.ebuild,v 1.1 2005/07/29 09:24:33 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 +} |