123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- %bcond_with systemd
- Summary: ACPI Event Daemon
- Summary(ja): ACPI イベントデーモン
- Name: acpid
- Version: 2.0.32
- Release: 1%{?_dist_release}%{?with_systemd:.systemd}
- Group: System Environment/Daemons
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: daisuke
- License: GPL
- URL: https://sourceforge.net/projects/acpid2/
- Source: https://downloads.sourceforge.net/project/acpid2/acpid-%{version}.tar.xz
- Source1: acpid.init
- Source2: acpid.video.conf
- Source3: acpid.power.conf
- Source4: acpid.power.sh
- Source6: acpid.sysconfig
- Source7: acpid.service
- Source8: acpid.socket
- # https://sourceforge.net/p/acpid2/tickets/14/
- Patch0: acpid-2.0.32-kacpimon-dynamic-connections.patch
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- %if %{with systemd}
- BuildRequires: systemd
- Requires(post): systemd
- Requires(preun): systemd
- Requires(postun): systemd
- Requires: systemd
- %else
- Requires(post): chkconfig
- Requires(preun): chkconfig, initscripts
- %endif
- ExclusiveArch: x86_64 %{ix86}
- %description
- acpid is a daemon that dispatches ACPI events to user-space programs.
- (bug reports to sunthockin@users.sourceforge.net)
- %description -l ja
- acpidはACPIイベントをユーザスペースのプログラムへ素早く伝えるデーモンです。
- (バグレポートはsunthockin@users.sourceforge.netに送ってください)
- %prep
- %setup -q
- %patch0 -p1 -b .kacpimon-dynamic-connections
- %build
- %configure
- make %{?_smp_mflags} CFLAGS="%{optflags} %{?harden}"
- %install
- rm -rf %{buildroot}
- mkdir -p %{buildroot}
- make install DESTDIR=%{buildroot}
- mkdir -p %{buildroot}%{_sysconfdir}/acpi/events
- mkdir -p %{buildroot}%{_sysconfdir}/acpi/actions
- mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
- chmod 755 %{buildroot}%{_sysconfdir}/acpi/events
- install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/acpi/events/video
- install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/acpi/events/power
- install -m 755 %{SOURCE4} %{buildroot}%{_sysconfdir}/acpi/actions/power.sh
- install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/acpid
- %if %{with systemd}
- mkdir -p %{buildroot}%{_unitdir}
- install -p -m 644 %{SOURCE7} %{SOURCE8} %{buildroot}%{_unitdir}
- %else
- mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
- install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/acpid
- %endif
- rm -rf %{buildroot}%{_docdir}/%{name}
- %clean
- rm -rf %{buildroot}
- %post
- %if %{with systemd}
- %systemd_post %{name}.socket %{name}.service
- %else
- # only run on install, not upgrade
- if [ "$1" = "1" ]; then
- /sbin/chkconfig --add acpid
- fi
- if [ -e /var/log/acpid ]; then
- touch /var/log/acpid
- fi
- %endif
- %postun
- %if %{with systemd}
- %systemd_postun_with_restart %{name}.socket %{name}.service
- %else
- if [ "$1" -ge "1" ]; then
- /sbin/service acpid condrestart >/dev/null 2>&1
- fi
- %endif
- %preun
- %if %{with systemd}
- %systemd_preun %{name}.socket %{name}.service
- %else
- # only run if this is the last instance to be removed
- if [ "$1" = "0" ]; then
- /sbin/service acpid stop > /dev/null 2>&1
- /sbin/chkconfig --del acpid
- rm -f /var/run/acpid.socket
- fi
- %endif
- %files
- %defattr(-,root,root)
- %license COPYING
- %doc Changelog README TODO samples
- %dir %{_sysconfdir}/acpi
- %dir %{_sysconfdir}/acpi/events
- %dir %{_sysconfdir}/acpi/actions
- %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/video
- %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/power
- %config(noreplace) %attr(0755,root,root) %{_sysconfdir}/acpi/actions/power.sh
- %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/acpid
- %{_bindir}/acpi_listen
- %{_sbindir}/acpid
- %{_sbindir}/kacpimon
- %{_mandir}/man8/acpid.8*
- %{_mandir}/man8/acpi_listen.8*
- %{_mandir}/man8/kacpimon.8*
- %if %{with systemd}
- %{_unitdir}/%{name}.service
- %{_unitdir}/%{name}.socket
- %else
- %attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/acpid
- %endif
- %changelog
- * Sat Apr 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.32-1
- - new upstream release.
- - updated Patch0.
- * Sat Feb 09 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.30-1
- - new upstream release.
- - updated Source4 to support elogind.
- * Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.28-1
- - new upstream release.
- - updated Source4.
- - imported Patch0 from rawhide.
- * Fri Oct 05 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.17-1
- - new upstream release
- - remove Patch1 (acpid-2.0.2-makefile.patch)
- * Wed Feb 15 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.14-1
- - new upstream release
- * Wed Nov 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.13-1
- - new upstream release
- - change filename in /etc/acpi/events
- * Sun Apr 17 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8-1
- - new upstream release
- - add acpid.sysconfig
- * Tue Mar 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.2-1
- - new upstream release
- * Sat May 9 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.10-1
- - new upstream release: fixes CVE-2009-0798 (too many open files DoS)
- - fix power.sh (Source4) to work with ConsoleKit >= 0.3.0
- (ck-list-sessions now returns 'unix-user' instead of 'uid')
- without this fix, pressing power key will always goes to shutdown
- even if gnome-power-manager is active and running
- - add ExclusiveArch: x86_64 %%{ix86}
- * Mon Aug 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-4
- - add patch10 to ignore .rpmnew file
- - add power button handling script and config
- - import some patches from fedora
- - add rpm's optflags to makefile
- - Fixed leak of a file descriptor
- - Fixed dumping useless info to log
- * Mon Aug 11 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.6-3
- - spec in UTF-8
- - adjust start/stop priority not to conflict with HAL
- * Sun Apr 06 2008 Kazutaka HARADA <Kazutaka@dc4.so-net.ne.jp> 1.0.6-2
- - rebuild
- - apply new versioning policy
- * Sun Jul 1 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.6-1vl2
- - remove %%{_sysconfdir}/logrotate.d/acpid from files
- (from this version, syslog is used for logging)
- - remove Source2 (from this version, syslog is used for logging)
- * Sun Jul 1 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.6-1vl1
- - upstream release
- - update Source0 URL
- - drop Patch0 (merged into upstream source)
- - drop Patch1 (solved in another way on upstream source)
- * Sat May 26 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.4-1vl3
- - add Patch1 to rebuild with new toolchain
- * Sat Nov 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1vl2
- - update acpid.init
- - check if ACPI interface is available or not. (<BTS:216>)
- * Thu Oct 21 2004 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.4-1vl1
- - upstream release
- - move sample.conf to %doc
- - add some new sample scripts to %doc
- - MEMO: file acpid-bindir.patch will be unnecessary in next upstream release,
- since the patch is accepted in upstream CVS
- * Thu Sep 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-1vl4
- - changed Group:
- - added %clean section
- * Wed Jul 21 2004 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.3-1vl3
- - changed redhat/acpid.init tarball into text file
- - added Source2: logrotate support
- * Thu Jun 24 2004 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 1.0.3-1vl2
- - upstream release
- - extract redhat/acpid.init from acpid-1.0.2.tar.gz tarball
- - patch Makefile to mkdir %BINDIR before install
- - added Japanese Summary
- - remove /var/run/acpid.socket at preun
- - delete previously commented scripts
- * Sun Dec 21 2003 KAZUKI SHIMURA <rito@pos.to> 1.0.2-1vl3
- - removed name/version/release macros
- - added vendor/distribution tag
- - added %%doc (merged with 1.0.2-1vl2 in VinePlus/2.5)
- - removed needless chmod/attr
- - stop service before uninstall
- * Fri Nov 14 2003 Satoshi MACHINO <machino@vinelinux.org> 1.0.2-1vl2
- - rebuilt for Vine Seed
- - added japanese description
- - changed from Copylight to License
- * Sun Nov 2 2003 KANEKO Seiji <giraffe@m2.pbc.ne.jp>
- - 1.0.2-1vl1
- - Removed prefix definition
- - Remove /var/log/acpid from package file
- * Thu Aug 21 2003 KANEKO Seiji <giraffe@m2.pbc.ne.jp>
- - 1.0.2-1vl0.1
- - Spec file modified for Vine Linux 2.6r1
- * Tue May 13 2003 Tim Hockin <thockin@sun.com>
- - Fixed a dumb bug with %e expansion for commands
- - Add COPYING file
- - Add TODO file
- * Fri Mar 15 2002 Tim Hockin <thockin@sun.com>
- - Updated RPM spec with patch from sun for chkconfig on/off
- - Add Changelog, make 'make rpm' use it.
- - 1.0.1
- * Wed Mar 13 2002 Tim Hockin <thockin@sun.com>
- - Fixed logging bug - not appending to log (O_APPEND needed)
- - Fix 'make install' to not need root access
- - Fix RPM spec to not need root
- * Thu Sep 6 2001 Tim Hockin <thockin@sun.com>
- - 1.0.0
- * Thu Aug 16 2001 Tim Hockin <thockin@sun.com>
- - Added commandline options to actions
- * Wed Aug 15 2001 Tim Hockin <thockin@sun.com>
- - Added UNIX domain socket support
- - Changed /etc/acpid.d to /etc/acpid/events
- * Mon Aug 13 2001 Tim Hockin <thockin@sun.com>
- - added changelog
- - 0.99.1-1
|