acpid-vl.spec 6.5 KB

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