1 |
commit: fb9cbe7e486b3a1d3ffc1c6e0ac4eff041fc329d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 8 13:02:55 2015 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 8 13:10:29 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb9cbe7e |
7 |
|
8 |
sys-power/acpid: Bump to version 2.0.25 (bug #558294). |
9 |
|
10 |
Fixed kde4 power management detection (bug #515088). |
11 |
Added mate power manager support (bug #538590). |
12 |
Fixed documentation URL (bug #534514). |
13 |
|
14 |
Package-Manager: portage-2.2.22 |
15 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
16 |
|
17 |
sys-power/acpid/Manifest | 1 + |
18 |
sys-power/acpid/acpid-2.0.25.ebuild | 73 ++++++++++++++++++++++ |
19 |
.../acpid-2.0.25-add_mate-power-manager.patch | 13 ++++ |
20 |
sys-power/acpid/files/acpid-2.0.25-kde4.patch | 13 ++++ |
21 |
4 files changed, 100 insertions(+) |
22 |
|
23 |
diff --git a/sys-power/acpid/Manifest b/sys-power/acpid/Manifest |
24 |
index 937904d..ce0bafd 100644 |
25 |
--- a/sys-power/acpid/Manifest |
26 |
+++ b/sys-power/acpid/Manifest |
27 |
@@ -2,3 +2,4 @@ DIST acpid-2.0.20.tar.xz 151380 SHA256 6a1ebaf52c6bef0f3d6da24a364e5f9401004d60e |
28 |
DIST acpid-2.0.21.tar.xz 152968 SHA256 c4e67e59888ccb43e6b8f01efb794945356aecdff86155c6a5b0f371d1ff636f SHA512 c449a234f04e8d2e1c7a3eac7e36c020c829e5cd00de3e8716c7645c7e53d8fd4d430f862cb320ed536918fff190b6582f932feff315b0cb117ef89d9fec274e WHIRLPOOL b7162e6f6d00cb2495bb61112e26cfd2c0c27567f35d6329b9f4c953ad74b189ba0141253517b24af447ef3b4352ab00cfeb067e2f779694397d0788bd1edc3f |
29 |
DIST acpid-2.0.22.tar.xz 153596 SHA256 3d11454f4283c8f771d8dbd5eb6b5f2bbd9d94d9f77d68bab89e35d98b67ab31 SHA512 ed52d80a17bca082cfe8d14acd4e9f736337f43c3c5c1e90b9fd5c4e8bfc2525dd0992d47230f0cae65e0eac1b2454adb350024f2955e82ffa7125e6eabf4f6a WHIRLPOOL 18acb58b2f454ed15fb024005e2bbb42550b9c283c1a1514cd08c2db8d2daccab2509871c956ea0f528519aa8896748119cc7a972c3d1216600f3fa8353761ac |
30 |
DIST acpid-2.0.23.tar.xz 154504 SHA256 4396aaec13510c3a1faa941a15a4b5335b6ae4fbec8438b9249b88c3b66187ee SHA512 b2f01f04a9c5370608016c16ecfbc5b503170c2686e6557ab1463e25d56a3ef1d2093d4701205ec1261564b1073653b404d0ae278c0bd8c8496606be1785963f WHIRLPOOL b9c7d4d64e663ffb9c58d2129b4f599453b4da0111b244269cf89ca50cc2de7ecdbea361825724963ee0b93294cadde12dee06c4816f5b709a23e7d443df0afd |
31 |
+DIST acpid-2.0.25.tar.xz 154124 SHA256 0b700a8072bec162c512f72cbe419195601ab3e0ffd2138f9bd95ed3097a5c68 SHA512 8a2561549aa05d1dd763a973145b37bedf935df1d73310b09bd52473b51fdc14bbb10da6e4bd1c2086962d92bd12f3a03924cfe75b2d50bf95b50ded9b67b05f WHIRLPOOL 0431f03df75334731ca40310a579eecac87b4023818eb9ca26b2e7152a74417fae9426efc2389688e5456b4d666f6aa191272bf956bfef21f9667f41e476c17a |
32 |
|
33 |
diff --git a/sys-power/acpid/acpid-2.0.25.ebuild b/sys-power/acpid/acpid-2.0.25.ebuild |
34 |
new file mode 100644 |
35 |
index 0000000..6563669 |
36 |
--- /dev/null |
37 |
+++ b/sys-power/acpid/acpid-2.0.25.ebuild |
38 |
@@ -0,0 +1,73 @@ |
39 |
+# Copyright 1999-2015 Gentoo Foundation |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+# $Id$ |
42 |
+ |
43 |
+EAPI=5 |
44 |
+inherit eutils linux-info systemd |
45 |
+ |
46 |
+DESCRIPTION="Daemon for Advanced Configuration and Power Interface" |
47 |
+HOMEPAGE="http://sourceforge.net/projects/acpid2" |
48 |
+SRC_URI="mirror://sourceforge/${PN}2/${P}.tar.xz" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~ia64 ~x86" |
53 |
+IUSE="selinux" |
54 |
+ |
55 |
+RDEPEND="selinux? ( sec-policy/selinux-apm )" |
56 |
+DEPEND=">=sys-kernel/linux-headers-3" |
57 |
+ |
58 |
+pkg_pretend() { |
59 |
+ local CONFIG_CHECK="~INPUT_EVDEV" |
60 |
+ local WARNING_INPUT_EVDEV="CONFIG_INPUT_EVDEV is required for ACPI button event support." |
61 |
+ [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config |
62 |
+} |
63 |
+ |
64 |
+pkg_setup() { :; } |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ epatch "${FILESDIR}"/${PN}-2.0.25-kde4.patch #515088 |
68 |
+ epatch "${FILESDIR}"/${PN}-2.0.25-add_mate-power-manager.patch #538590 |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ econf --docdir=/usr/share/doc/${PF} |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ emake DESTDIR="${D}" install |
77 |
+ |
78 |
+ newdoc kacpimon/README README.kacpimon |
79 |
+ dodoc -r samples |
80 |
+ rm -f "${D}"/usr/share/doc/${PF}/COPYING || die |
81 |
+ |
82 |
+ exeinto /etc/acpi |
83 |
+ newexe "${FILESDIR}"/${PN}-1.0.6-default.sh default.sh |
84 |
+ exeinto /etc/acpi/actions |
85 |
+ newexe samples/powerbtn/powerbtn.sh powerbtn.sh |
86 |
+ insinto /etc/acpi/events |
87 |
+ newins "${FILESDIR}"/${PN}-1.0.4-default default |
88 |
+ |
89 |
+ newinitd "${FILESDIR}"/${PN}-2.0.16-init.d ${PN} |
90 |
+ newconfd "${FILESDIR}"/${PN}-2.0.16-conf.d ${PN} |
91 |
+ |
92 |
+ systemd_dounit "${FILESDIR}"/systemd/${PN}.{service,socket} |
93 |
+} |
94 |
+ |
95 |
+pkg_postinst() { |
96 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
97 |
+ elog |
98 |
+ elog "You may wish to read the Gentoo Linux Power Management Guide," |
99 |
+ elog "which can be found online at:" |
100 |
+ elog "https://wiki.gentoo.org/wiki/Power_management/Guide" |
101 |
+ elog |
102 |
+ fi |
103 |
+ |
104 |
+ # files/systemd/acpid.socket -> ListenStream=/run/acpid.socket |
105 |
+ mkdir -p "${ROOT%/}"/run |
106 |
+ |
107 |
+ if ! grep -qs "^tmpfs.*/run " "${ROOT%/}"/proc/mounts ; then |
108 |
+ echo |
109 |
+ ewarn "You should reboot the system now to get /run mounted with tmpfs!" |
110 |
+ fi |
111 |
+} |
112 |
|
113 |
diff --git a/sys-power/acpid/files/acpid-2.0.25-add_mate-power-manager.patch b/sys-power/acpid/files/acpid-2.0.25-add_mate-power-manager.patch |
114 |
new file mode 100644 |
115 |
index 0000000..7061744 |
116 |
--- /dev/null |
117 |
+++ b/sys-power/acpid/files/acpid-2.0.25-add_mate-power-manager.patch |
118 |
@@ -0,0 +1,13 @@ |
119 |
+https://bugs.gentoo.org/538590 |
120 |
+ |
121 |
+--- acpid-2.0.25/samples/powerbtn/powerbtn.sh |
122 |
++++ acpid-2.0.25/samples/powerbtn/powerbtn.sh |
123 |
+@@ -51,7 +51,7 @@ |
124 |
+ getXconsole |
125 |
+ |
126 |
+ # A list of power management system process names. |
127 |
+-PMS="gnome-power-manager kpowersave xfce4-power-manager" |
128 |
++PMS="gnome-power-manager kpowersave xfce4-power-manager mate-power-manager" |
129 |
+ PMS="$PMS guidance-power-manager.py dalston-power-applet" |
130 |
+ |
131 |
+ # If one of those is running or any of several others, |
132 |
|
133 |
diff --git a/sys-power/acpid/files/acpid-2.0.25-kde4.patch b/sys-power/acpid/files/acpid-2.0.25-kde4.patch |
134 |
new file mode 100644 |
135 |
index 0000000..1a91bb9 |
136 |
--- /dev/null |
137 |
+++ b/sys-power/acpid/files/acpid-2.0.25-kde4.patch |
138 |
@@ -0,0 +1,13 @@ |
139 |
+https://bugs.gentoo.org/515088 |
140 |
+ |
141 |
+--- acpid-2.0.25/samples/powerbtn/powerbtn.sh |
142 |
++++ acpid-2.0.25/samples/powerbtn/powerbtn.sh |
143 |
+@@ -57,7 +57,7 @@ |
144 |
+ # If one of those is running or any of several others, |
145 |
+ if pidof x $PMS > /dev/null || |
146 |
+ ( test "$XUSER" != "" && pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop --user $XUSER kded kded loadedModules | grep -q klaptopdaemon) || |
147 |
+- ( test "$XUSER" != "" && test -x /usr/bin/qdbus && test -r /proc/$(pidof kded4)/environ && su - $XUSER -c "eval $(echo -n 'export '; cat /proc/$(pidof kded4)/environ |tr '\0' '\n'|grep DBUS_SESSION_BUS_ADDRESS); qdbus org.kde.kded" | grep -q powerdevil) ; then |
148 |
++ ( test "$XUSER" != "" && test -x /usr/bin/qdbus && test -r /proc/$(pgrep -n kded4)/environ && su - $XUSER -c "eval $(echo -n 'export '; cat /proc/$(pgrep -n kded4)/environ |tr '\0' '\n'|grep DBUS_SESSION_BUS_ADDRESS); qdbus org.kde.kded" | grep -q powerdevil) ; then |
149 |
+ # Get out as the power manager that is running will take care of things. |
150 |
+ exit |
151 |
+ fi |