1 |
ssuominen 14/06/23 14:03:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pm-utils-1.4.1-r6.ebuild |
5 |
Log: |
6 |
Use doexe instead of doins for power.d/pci_devices, power.d/usb_bluetooth and sleep.d/50unload_alx. Mark defaults file executable as per debian/rules. Remove unstable power.d/harddrive wrt #452362 (also removed by debian/rules). Remove power.d/journal-commit and power.d/readahead as they have been shown to increase power usage instead of reduce it as per debian/rules. These should be last stolen bits from Debian patchset 1.4.1-14. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.71 sys-power/pm-utils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/ChangeLog?rev=1.71&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/ChangeLog?rev=1.71&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/ChangeLog?r1=1.70&r2=1.71 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/pm-utils/ChangeLog,v |
20 |
retrieving revision 1.70 |
21 |
retrieving revision 1.71 |
22 |
diff -u -r1.70 -r1.71 |
23 |
--- ChangeLog 4 Jun 2014 20:53:26 -0000 1.70 |
24 |
+++ ChangeLog 23 Jun 2014 14:03:11 -0000 1.71 |
25 |
@@ -1,6 +1,16 @@ |
26 |
# ChangeLog for sys-power/pm-utils |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/pm-utils/ChangeLog,v 1.70 2014/06/04 20:53:26 ssuominen Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/pm-utils/ChangeLog,v 1.71 2014/06/23 14:03:11 ssuominen Exp $ |
30 |
+ |
31 |
+*pm-utils-1.4.1-r6 (23 Jun 2014) |
32 |
+ |
33 |
+ 23 Jun 2014; Samuli Suominen <ssuominen@g.o> +pm-utils-1.4.1-r6.ebuild: |
34 |
+ Use doexe instead of doins for power.d/pci_devices, power.d/usb_bluetooth and |
35 |
+ sleep.d/50unload_alx. Mark defaults file executable as per debian/rules. |
36 |
+ Remove unstable power.d/harddrive wrt #452362 (also removed by debian/rules). |
37 |
+ Remove power.d/journal-commit and power.d/readahead as they have been shown to |
38 |
+ increase power usage instead of reduce it as per debian/rules. These should be |
39 |
+ last stolen bits from Debian patchset 1.4.1-14. |
40 |
|
41 |
*pm-utils-1.4.1-r5 (04 Jun 2014) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 sys-power/pm-utils/pm-utils-1.4.1-r6.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/pm-utils-1.4.1-r6.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/pm-utils/pm-utils-1.4.1-r6.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: pm-utils-1.4.1-r6.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2014 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/pm-utils/pm-utils-1.4.1-r6.ebuild,v 1.1 2014/06/23 14:03:11 ssuominen Exp $ |
56 |
|
57 |
EAPI=5 |
58 |
inherit eutils multilib |
59 |
|
60 |
DESCRIPTION="Suspend and hibernation utilities" |
61 |
HOMEPAGE="http://pm-utils.freedesktop.org/" |
62 |
SRC_URI="http://pm-utils.freedesktop.org/releases/${P}.tar.gz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
67 |
IUSE="alsa debug ntp video_cards_intel video_cards_radeon" |
68 |
|
69 |
vbetool="!video_cards_intel? ( sys-apps/vbetool )" |
70 |
RDEPEND="!<app-laptop/laptop-mode-tools-1.55-r1 |
71 |
!sys-power/powermgmt-base[-pm-utils(+)] |
72 |
sys-apps/dbus |
73 |
>=sys-apps/util-linux-2.13 |
74 |
sys-power/pm-quirks |
75 |
alsa? ( media-sound/alsa-utils ) |
76 |
ntp? ( || ( net-misc/ntp net-misc/openntpd ) ) |
77 |
amd64? ( ${vbetool} ) |
78 |
x86? ( ${vbetool} ) |
79 |
video_cards_radeon? ( app-laptop/radeontool )" |
80 |
DEPEND="${RDEPEND}" |
81 |
|
82 |
DOCS="AUTHORS ChangeLog NEWS pm/HOWTO* README* TODO" |
83 |
|
84 |
src_prepare() { |
85 |
local ignore="01grub" |
86 |
use ntp || ignore+=" 90clock" |
87 |
|
88 |
use debug && echo 'PM_DEBUG="true"' > "${T}"/gentoo |
89 |
echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${T}"/gentoo |
90 |
|
91 |
epatch \ |
92 |
"${FILESDIR}"/${PV}-bluetooth-sync.patch \ |
93 |
"${FILESDIR}"/${PV}-disable-sata-alpm.patch \ |
94 |
"${FILESDIR}"/${PV}-fix-intel-audio-powersave-hook.patch \ |
95 |
"${FILESDIR}"/${PV}-logging-append.patch \ |
96 |
"${FILESDIR}"/${PV}-fix-alpm-typo.patch \ |
97 |
"${FILESDIR}"/${PV}-inhibit-on-right-status.patch \ |
98 |
"${FILESDIR}"/${PV}-ignore-led-failure.patch \ |
99 |
"${FILESDIR}"/${PV}-run-hook-logging.patch \ |
100 |
"${FILESDIR}"/${PV}-suspend-hybrid.patch \ |
101 |
"${FILESDIR}"/${PV}-uswsusp-hibernate-mode.patch \ |
102 |
"${FILESDIR}"/${PV}-xfs_buffer_arguments.patch |
103 |
} |
104 |
|
105 |
src_configure() { |
106 |
econf --disable-doc |
107 |
} |
108 |
|
109 |
src_install() { |
110 |
default |
111 |
doman man/*.{1,8} |
112 |
|
113 |
# Remove duplicate documentation install |
114 |
rm -r "${ED}"/usr/share/doc/${PN} |
115 |
|
116 |
insinto /etc/pm/config.d |
117 |
doins "${T}"/gentoo |
118 |
|
119 |
insinto /etc/logrotate.d |
120 |
newins "${FILESDIR}"/${PN}.logrotate ${PN} #408091 |
121 |
|
122 |
exeinto /usr/$(get_libdir)/${PN}/sleep.d |
123 |
doexe "${FILESDIR}"/sleep.d/50unload_alx |
124 |
|
125 |
exeinto /usr/$(get_libdir)/${PN}/power.d |
126 |
doexe "${FILESDIR}"/power.d/{pci_devices,usb_bluetooth} |
127 |
|
128 |
# No longer required with current networkmanager (rm -f from debian/rules) |
129 |
rm -f "${ED}"/usr/$(get_libdir)/${PN}/sleep.d/55NetworkManager |
130 |
|
131 |
# No longer required with current kernels (rm -f from debian/rules) |
132 |
rm -f "${ED}"/usr/$(get_libdir)/${PN}/sleep.d/49bluetooth |
133 |
|
134 |
# Punt HAL related file wrt #401257 (rm -f from debian/rules) |
135 |
rm -f "${ED}"/usr/$(get_libdir)/${PN}/power.d/hal-cd-polling |
136 |
|
137 |
# Punt hooks which have shown to not reduce, or even increase power usage |
138 |
# (rm -f from debian rules) |
139 |
rm -f "${ED}"/usr/$(get_libdir)/${PN}/power.d/{journal-commit,readahead} |
140 |
|
141 |
# Remove hooks which are not stable enough yet (rm -f from debian/rules) |
142 |
rm -f "${ED}"/usr/$(get_libdir)/${PN}/power.d/harddrive |
143 |
|
144 |
# Change to executable (chmod +x from debian/rules) |
145 |
fperms +x /usr/$(get_libdir)/${PN}/defaults |
146 |
} |