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