diff options
Diffstat (limited to 'app-laptop/laptop-mode-tools')
4 files changed, 5 insertions, 101 deletions
diff --git a/app-laptop/laptop-mode-tools/ChangeLog b/app-laptop/laptop-mode-tools/ChangeLog index b196b5abf56c..a74e8155c04f 100644 --- a/app-laptop/laptop-mode-tools/ChangeLog +++ b/app-laptop/laptop-mode-tools/ChangeLog @@ -1,6 +1,10 @@ # 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.6 2005/05/08 12:23:27 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.7 2005/05/11 11:19:30 brix Exp $ + + 11 May 2005; <brix@gentoo.org> -files/laptop-mode-tools-1.04.init, + -laptop-mode-tools-1.04-r1.ebuild: + Removed old ebuild 08 May 2005; <brix@gentoo.org> laptop-mode-tools-1.05.ebuild: Stable on x86. diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.04-r1 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.04-r1 deleted file mode 100644 index 1dbed76c46c5..000000000000 --- a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.04-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 b26fcc4df2b38da17e4f09872a1cfeda laptop-mode-tools_1.04.tar.gz 30908 diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.04.init b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.04.init deleted file mode 100644 index ba3a7b70488b..000000000000 --- a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.04.init +++ /dev/null @@ -1,25 +0,0 @@ -#!/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.04.init,v 1.2 2005/03/25 19:05: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.04-r1.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.04-r1.ebuild deleted file mode 100644 index 787177df1693..000000000000 --- a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.04-r1.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# 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.04-r1.ebuild,v 1.2 2005/04/24 16:11:18 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="x86" - -IUSE="acpi apm" - -DEPEND="acpi? ( sys-power/acpid ) - apm? ( sys-apps/apmd )" - -pkg_setup() { - linux-info_pkg_setup - - if [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 6 -a ${KV_PATCH} -lt 6 ]; then - eerror "${P} requires kernel version 2.6.6 or newer." - die "${P} requires kernel version 2.6.6 or newer" - elif [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 4 -a ${KV_PATCH} -lt 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 laptop_mode - - doman man/* - - dodoc Documentation/laptop-mode.txt README - - if useq acpi; then - insinto /etc/acpi/events/ - doins etc/acpi/events/* - - exeinto /etc/acpi/actions/ - doexe etc/acpi/actions/* - fi - - if useq apm; then - exeinto /etc/apm/event.d/ - doexe etc/apm/event.d/* - fi -} - -pkg_postinst() { - if ! useq acpi && ! useq 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 -} |