1 | Summary: ACPI Event Daemon |
---|
2 | Summary(ja): ACPI イベントデーモン |
---|
3 | Name: acpid |
---|
4 | Version: 2.0.28 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: GPL |
---|
7 | Group: System Environment/Daemons |
---|
8 | URL: http://tedfelix.com/linux/acpid-netlink.html |
---|
9 | |
---|
10 | Source: http://tedfelix.com/linux/acpid-%{version}.tar.xz |
---|
11 | Source1: acpid.init |
---|
12 | Source2: acpid.video.conf |
---|
13 | Source3: acpid.power.conf |
---|
14 | Source4: acpid.power.sh |
---|
15 | Source6: acpid.sysconfig |
---|
16 | |
---|
17 | # https://sourceforge.net/p/acpid2/tickets/14/ |
---|
18 | Patch0: acpid-2.0.28-kacpimon-dynamic-connections.patch |
---|
19 | |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
21 | Requires(post): chkconfig |
---|
22 | Requires(preun): chkconfig, initscripts |
---|
23 | |
---|
24 | ExclusiveArch: x86_64 %{ix86} |
---|
25 | |
---|
26 | Vendor: Project Vine |
---|
27 | Distribution: Vine Linux |
---|
28 | Packager: daisuke |
---|
29 | |
---|
30 | %description |
---|
31 | acpid is a daemon that dispatches ACPI events to user-space programs. |
---|
32 | (bug reports to sunthockin@users.sourceforge.net) |
---|
33 | |
---|
34 | %description -l ja |
---|
35 | acpidはACPIイベントをユーザスペースのプログラムへ素早く伝えるデーモンです。 |
---|
36 | (バグレポートはsunthockin@users.sourceforge.netに送ってください) |
---|
37 | |
---|
38 | |
---|
39 | %prep |
---|
40 | %setup -q |
---|
41 | %patch0 -p1 -b .kacpimon-dynamic-connections |
---|
42 | |
---|
43 | %build |
---|
44 | %configure |
---|
45 | make %{?_smp_mflags} |
---|
46 | |
---|
47 | |
---|
48 | %install |
---|
49 | rm -rf ${RPM_BUILD_ROOT} |
---|
50 | mkdir -p ${RPM_BUILD_ROOT} |
---|
51 | make install DESTDIR=${RPM_BUILD_ROOT} |
---|
52 | |
---|
53 | mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/acpi/events |
---|
54 | mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/acpi/actions |
---|
55 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig |
---|
56 | mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d |
---|
57 | chmod 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/acpi/events |
---|
58 | |
---|
59 | install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/acpi/events/video |
---|
60 | install -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}%{_sysconfdir}/acpi/events/power |
---|
61 | install -m 755 %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/acpi/actions/power.sh |
---|
62 | |
---|
63 | install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/acpid |
---|
64 | install -m 755 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d/acpid |
---|
65 | |
---|
66 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
---|
67 | |
---|
68 | |
---|
69 | %clean |
---|
70 | rm -rf $RPM_BUILD_ROOT |
---|
71 | |
---|
72 | |
---|
73 | %post |
---|
74 | # only run on install, not upgrade |
---|
75 | if [ "$1" = "1" ]; then |
---|
76 | /sbin/chkconfig --add acpid |
---|
77 | fi |
---|
78 | if [ -e /var/log/acpid ]; then |
---|
79 | touch /var/log/acpid |
---|
80 | fi |
---|
81 | |
---|
82 | |
---|
83 | %postun |
---|
84 | if [ "$1" -ge "1" ]; then |
---|
85 | /sbin/service acpid condrestart >/dev/null 2>&1 |
---|
86 | fi |
---|
87 | |
---|
88 | |
---|
89 | %preun |
---|
90 | # only run if this is the last instance to be removed |
---|
91 | if [ "$1" = "0" ]; then |
---|
92 | /sbin/service acpid stop > /dev/null 2>&1 |
---|
93 | /sbin/chkconfig --del acpid |
---|
94 | rm -f /var/run/acpid.socket |
---|
95 | fi |
---|
96 | |
---|
97 | |
---|
98 | %files |
---|
99 | %defattr(-,root,root) |
---|
100 | %doc COPYING Changelog README TODO samples |
---|
101 | %dir %{_sysconfdir}/acpi |
---|
102 | %dir %{_sysconfdir}/acpi/events |
---|
103 | %dir %{_sysconfdir}/acpi/actions |
---|
104 | %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/video |
---|
105 | %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/power |
---|
106 | %config(noreplace) %attr(0755,root,root) %{_sysconfdir}/acpi/actions/power.sh |
---|
107 | %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/acpid |
---|
108 | %{_bindir}/acpi_listen |
---|
109 | %{_sbindir}/acpid |
---|
110 | %{_sbindir}/kacpimon |
---|
111 | %attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/acpid |
---|
112 | %{_mandir}/man8/acpid.8* |
---|
113 | %{_mandir}/man8/acpi_listen.8* |
---|
114 | %{_mandir}/man8/kacpimon.8* |
---|
115 | |
---|
116 | |
---|
117 | %changelog |
---|
118 | * Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.28-1 |
---|
119 | - new upstream release. |
---|
120 | - updated Source4. |
---|
121 | - imported Patch0 from rawhide. |
---|
122 | |
---|
123 | * Fri Oct 05 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.17-1 |
---|
124 | - new upstream release |
---|
125 | - remove Patch1 (acpid-2.0.2-makefile.patch) |
---|
126 | |
---|
127 | * Wed Feb 15 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.14-1 |
---|
128 | - new upstream release |
---|
129 | |
---|
130 | * Wed Nov 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.13-1 |
---|
131 | - new upstream release |
---|
132 | - change filename in /etc/acpi/events |
---|
133 | |
---|
134 | * Sun Apr 17 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8-1 |
---|
135 | - new upstream release |
---|
136 | - add acpid.sysconfig |
---|
137 | |
---|
138 | * Tue Mar 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.2-1 |
---|
139 | - new upstream release |
---|
140 | |
---|
141 | * Sat May 9 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.10-1 |
---|
142 | - new upstream release: fixes CVE-2009-0798 (too many open files DoS) |
---|
143 | - fix power.sh (Source4) to work with ConsoleKit >= 0.3.0 |
---|
144 | (ck-list-sessions now returns 'unix-user' instead of 'uid') |
---|
145 | without this fix, pressing power key will always goes to shutdown |
---|
146 | even if gnome-power-manager is active and running |
---|
147 | - add ExclusiveArch: x86_64 %%{ix86} |
---|
148 | |
---|
149 | * Mon Aug 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-4 |
---|
150 | - add patch10 to ignore .rpmnew file |
---|
151 | - add power button handling script and config |
---|
152 | - import some patches from fedora |
---|
153 | - add rpm's optflags to makefile |
---|
154 | - Fixed leak of a file descriptor |
---|
155 | - Fixed dumping useless info to log |
---|
156 | |
---|
157 | * Mon Aug 11 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.6-3 |
---|
158 | - spec in UTF-8 |
---|
159 | - adjust start/stop priority not to conflict with HAL |
---|
160 | |
---|
161 | * Sun Apr 06 2008 Kazutaka HARADA <Kazutaka@dc4.so-net.ne.jp> 1.0.6-2 |
---|
162 | - rebuild |
---|
163 | - apply new versioning policy |
---|
164 | |
---|
165 | * Sun Jul 1 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.6-1vl2 |
---|
166 | - remove %%{_sysconfdir}/logrotate.d/acpid from files |
---|
167 | (from this version, syslog is used for logging) |
---|
168 | - remove Source2 (from this version, syslog is used for logging) |
---|
169 | |
---|
170 | * Sun Jul 1 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.6-1vl1 |
---|
171 | - upstream release |
---|
172 | - update Source0 URL |
---|
173 | - drop Patch0 (merged into upstream source) |
---|
174 | - drop Patch1 (solved in another way on upstream source) |
---|
175 | |
---|
176 | * Sat May 26 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.4-1vl3 |
---|
177 | - add Patch1 to rebuild with new toolchain |
---|
178 | |
---|
179 | * Sat Nov 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1vl2 |
---|
180 | - update acpid.init |
---|
181 | - check if ACPI interface is available or not. (<BTS:216>) |
---|
182 | |
---|
183 | * Thu Oct 21 2004 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.4-1vl1 |
---|
184 | - upstream release |
---|
185 | - move sample.conf to %doc |
---|
186 | - add some new sample scripts to %doc |
---|
187 | - MEMO: file acpid-bindir.patch will be unnecessary in next upstream release, |
---|
188 | since the patch is accepted in upstream CVS |
---|
189 | |
---|
190 | * Thu Sep 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-1vl4 |
---|
191 | - changed Group: |
---|
192 | - added %clean section |
---|
193 | |
---|
194 | * Wed Jul 21 2004 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.3-1vl3 |
---|
195 | - changed redhat/acpid.init tarball into text file |
---|
196 | - added Source2: logrotate support |
---|
197 | |
---|
198 | * Thu Jun 24 2004 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.3-1vl2 |
---|
199 | - upstream release |
---|
200 | - extract redhat/acpid.init from acpid-1.0.2.tar.gz tarball |
---|
201 | - patch Makefile to mkdir %BINDIR before install |
---|
202 | - added Japanese Summary |
---|
203 | - remove /var/run/acpid.socket at preun |
---|
204 | - delete previously commented scripts |
---|
205 | |
---|
206 | * Sun Dec 21 2003 KAZUKI SHIMURA <rito@pos.to> 1.0.2-1vl3 |
---|
207 | - removed name/version/release macros |
---|
208 | - added vendor/distribution tag |
---|
209 | - added %%doc (merged with 1.0.2-1vl2 in VinePlus/2.5) |
---|
210 | - removed needless chmod/attr |
---|
211 | - stop service before uninstall |
---|
212 | |
---|
213 | * Fri Nov 14 2003 Satoshi MACHINO <machino@vinelinux.org> 1.0.2-1vl2 |
---|
214 | - rebuilt for Vine Seed |
---|
215 | - added japanese description |
---|
216 | - changed from Copylight to License |
---|
217 | |
---|
218 | * Sun Nov 2 2003 KANEKO Seiji <giraffe@m2.pbc.ne.jp> |
---|
219 | - 1.0.2-1vl1 |
---|
220 | - Removed prefix definition |
---|
221 | - Remove /var/log/acpid from package file |
---|
222 | |
---|
223 | * Thu Aug 21 2003 KANEKO Seiji <giraffe@m2.pbc.ne.jp> |
---|
224 | - 1.0.2-1vl0.1 |
---|
225 | - Spec file modified for Vine Linux 2.6r1 |
---|
226 | |
---|
227 | * Tue May 13 2003 Tim Hockin <thockin@sun.com> |
---|
228 | - Fixed a dumb bug with %e expansion for commands |
---|
229 | - Add COPYING file |
---|
230 | - Add TODO file |
---|
231 | |
---|
232 | * Fri Mar 15 2002 Tim Hockin <thockin@sun.com> |
---|
233 | - Updated RPM spec with patch from sun for chkconfig on/off |
---|
234 | - Add Changelog, make 'make rpm' use it. |
---|
235 | - 1.0.1 |
---|
236 | |
---|
237 | * Wed Mar 13 2002 Tim Hockin <thockin@sun.com> |
---|
238 | - Fixed logging bug - not appending to log (O_APPEND needed) |
---|
239 | - Fix 'make install' to not need root access |
---|
240 | - Fix RPM spec to not need root |
---|
241 | |
---|
242 | * Thu Sep 6 2001 Tim Hockin <thockin@sun.com> |
---|
243 | - 1.0.0 |
---|
244 | |
---|
245 | * Thu Aug 16 2001 Tim Hockin <thockin@sun.com> |
---|
246 | - Added commandline options to actions |
---|
247 | |
---|
248 | * Wed Aug 15 2001 Tim Hockin <thockin@sun.com> |
---|
249 | - Added UNIX domain socket support |
---|
250 | - Changed /etc/acpid.d to /etc/acpid/events |
---|
251 | |
---|
252 | * Mon Aug 13 2001 Tim Hockin <thockin@sun.com> |
---|
253 | - added changelog |
---|
254 | - 0.99.1-1 |
---|
255 | |
---|