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