acpid-vl.spec 7.8 KB

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