diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-05-04 00:25:33 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-05-04 00:25:33 +0000 |
commit | 5255063185251433d6190d1c4fc556d81353979f (patch) | |
tree | 19ba5bf549a936c29d2ca56bafd0338fcbb56954 /app-laptop | |
parent | Version bumped. Fixed python dependency. Removed old versions. (diff) | |
download | gentoo-2-5255063185251433d6190d1c4fc556d81353979f.tar.gz gentoo-2-5255063185251433d6190d1c4fc556d81353979f.tar.bz2 gentoo-2-5255063185251433d6190d1c4fc556d81353979f.zip |
Version bump and keepdir /var/run/laptop-mode-tools wrt #300905. Remove USE hal wrt #313429.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/laptop-mode-tools/ChangeLog | 11 | ||||
-rw-r--r-- | app-laptop/laptop-mode-tools/laptop-mode-tools-1.54.ebuild | 69 |
2 files changed, 78 insertions, 2 deletions
diff --git a/app-laptop/laptop-mode-tools/ChangeLog b/app-laptop/laptop-mode-tools/ChangeLog index fe9bdfd8f84c..b8a0f6b5c272 100644 --- a/app-laptop/laptop-mode-tools/ChangeLog +++ b/app-laptop/laptop-mode-tools/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-laptop/laptop-mode-tools -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.46 2009/10/24 10:54:37 nixnut Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.47 2010/05/04 00:25:33 ssuominen Exp $ + +*laptop-mode-tools-1.54 (04 May 2010) + + 04 May 2010; Samuli Suominen <ssuominen@gentoo.org> + +laptop-mode-tools-1.54.ebuild: + Version bump and keepdir /var/run/laptop-mode-tools wrt #300905. Remove + USE hal wrt #313429. 24 Oct 2009; nixnut <nixnut@gentoo.org> laptop-mode-tools-1.47-r1.ebuild: ppc stable #284794 diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.54.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.54.ebuild new file mode 100644 index 000000000000..62461412a726 --- /dev/null +++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.54.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2010 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.54.ebuild,v 1.1 2010/05/04 00:25:33 ssuominen Exp $ + +EAPI=2 +inherit eutils + +MY_P=${PN}_${PV} + +DESCRIPTION="Linux kernel laptop_mode user-space utilities" +HOMEPAGE="http://www.samwel.tk/laptop_mode/" +SRC_URI="http://www.samwel.tk/laptop_mode/tools/downloads/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="acpi apm bluetooth scsi" + +DEPEND="" + +RDEPEND="sys-apps/ethtool + acpi? ( >=sys-power/acpid-2.0.4-r2 ) + apm? ( sys-apps/apmd ) + bluetooth? ( + || ( + net-wireless/bluez + net-wireless/bluez-utils + ) + ) + scsi? ( sys-apps/sdparm ) + sys-apps/hdparm" + +S=${WORKDIR}/${MY_P} + +src_compile() { :; } + +src_install() { + dodir /etc/pm/sleep.d + DESTDIR="${D}" \ + MAN_D="/usr/share/man" \ + INIT_D="none" \ + APM="$(use apm && echo force || echo disabled)" \ + ACPI="$(use acpi && echo force || echo disabled)" \ + PMU="$(false && echo force || echo disabled)" \ + ./install.sh || die + + dodoc Documentation/laptop-mode.txt README || die + newinitd "${FILESDIR}"/laptop_mode.init-1.4 laptop_mode + + exeinto /etc/pm/power.d + newexe "${FILESDIR}"/laptop_mode_tools.pmutils laptop_mode_tools + + keepdir /var/run/laptop-mode-tools +} + +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 +} |