acpid-vl.spec 7.0 KB

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