From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-laptop/laptop-mode-tools: ChangeLog laptop-mode-tools-1.54.ebuild |
Date: | Tue, 04 May 2010 00:25:38 |
Message-Id: | 20100504002533.E5AAF2C3C8@corvid.gentoo.org |
1 | ssuominen 10/05/04 00:25:33 |
2 | |
3 | Modified: ChangeLog |
4 | Added: laptop-mode-tools-1.54.ebuild |
5 | Log: |
6 | Version bump and keepdir /var/run/laptop-mode-tools wrt #300905. Remove USE hal wrt #313429. |
7 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.47 app-laptop/laptop-mode-tools/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog?rev=1.47&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog?rev=1.47&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog?r1=1.46&r2=1.47 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v |
19 | retrieving revision 1.46 |
20 | retrieving revision 1.47 |
21 | diff -u -r1.46 -r1.47 |
22 | --- ChangeLog 24 Oct 2009 10:54:37 -0000 1.46 |
23 | +++ ChangeLog 4 May 2010 00:25:33 -0000 1.47 |
24 | @@ -1,6 +1,13 @@ |
25 | # ChangeLog for app-laptop/laptop-mode-tools |
26 | -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.46 2009/10/24 10:54:37 nixnut Exp $ |
28 | +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 | +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.47 2010/05/04 00:25:33 ssuominen Exp $ |
30 | + |
31 | +*laptop-mode-tools-1.54 (04 May 2010) |
32 | + |
33 | + 04 May 2010; Samuli Suominen <ssuominen@g.o> |
34 | + +laptop-mode-tools-1.54.ebuild: |
35 | + Version bump and keepdir /var/run/laptop-mode-tools wrt #300905. Remove |
36 | + USE hal wrt #313429. |
37 | |
38 | 24 Oct 2009; nixnut <nixnut@g.o> laptop-mode-tools-1.47-r1.ebuild: |
39 | ppc stable #284794 |
40 | |
41 | |
42 | |
43 | 1.1 app-laptop/laptop-mode-tools/laptop-mode-tools-1.54.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.54.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.54.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: laptop-mode-tools-1.54.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2010 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $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 $ |
53 | |
54 | EAPI=2 |
55 | inherit eutils |
56 | |
57 | MY_P=${PN}_${PV} |
58 | |
59 | DESCRIPTION="Linux kernel laptop_mode user-space utilities" |
60 | HOMEPAGE="http://www.samwel.tk/laptop_mode/" |
61 | SRC_URI="http://www.samwel.tk/laptop_mode/tools/downloads/${MY_P}.tar.gz" |
62 | |
63 | LICENSE="GPL-2" |
64 | SLOT="0" |
65 | KEYWORDS="~amd64 ~ppc ~x86" |
66 | IUSE="acpi apm bluetooth scsi" |
67 | |
68 | DEPEND="" |
69 | |
70 | RDEPEND="sys-apps/ethtool |
71 | acpi? ( >=sys-power/acpid-2.0.4-r2 ) |
72 | apm? ( sys-apps/apmd ) |
73 | bluetooth? ( |
74 | || ( |
75 | net-wireless/bluez |
76 | net-wireless/bluez-utils |
77 | ) |
78 | ) |
79 | scsi? ( sys-apps/sdparm ) |
80 | sys-apps/hdparm" |
81 | |
82 | S=${WORKDIR}/${MY_P} |
83 | |
84 | src_compile() { :; } |
85 | |
86 | src_install() { |
87 | dodir /etc/pm/sleep.d |
88 | DESTDIR="${D}" \ |
89 | MAN_D="/usr/share/man" \ |
90 | INIT_D="none" \ |
91 | APM="$(use apm && echo force || echo disabled)" \ |
92 | ACPI="$(use acpi && echo force || echo disabled)" \ |
93 | PMU="$(false && echo force || echo disabled)" \ |
94 | ./install.sh || die |
95 | |
96 | dodoc Documentation/laptop-mode.txt README || die |
97 | newinitd "${FILESDIR}"/laptop_mode.init-1.4 laptop_mode |
98 | |
99 | exeinto /etc/pm/power.d |
100 | newexe "${FILESDIR}"/laptop_mode_tools.pmutils laptop_mode_tools |
101 | |
102 | keepdir /var/run/laptop-mode-tools |
103 | } |
104 | |
105 | pkg_postinst() { |
106 | if ! use acpi && ! use apm; then |
107 | ewarn |
108 | ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not" |
109 | ewarn "automatically disable laptop_mode on low battery." |
110 | ewarn |
111 | ewarn "This means you can lose up to 10 minutes of work if running" |
112 | ewarn "out of battery while laptop_mode is enabled." |
113 | ewarn |
114 | ewarn "Please see /usr/share/doc/${PF}/laptop-mode.txt.gz for further" |
115 | ewarn "information." |
116 | ewarn |
117 | fi |
118 | } |