Summary: ACPI Event Daemon Summary(pl): Demon zdarzeń ACPI Name: acpid Version: 1.0.0 Release: 3 License: GPL Group: Daemons Group(de): Server Group(pl): Serwery Source0: ftp://ftp.sourceforge.net/pub/sourceforge/acpid/%{name}-%{version}.tar.gz Source1: %{name}.init Source2: %{name}.sysconfig URL: http://acpid.sourceforge.net/ Obsoletes: apmd BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description acpid is a daemon that dispatches ACPI events to user-space programs. %description -l pl acpid to demon przekazujący zdarzenia ACPI do programów w user-space. %prep %setup -q %build %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir}/acpi/{events,actions},/var/log} \ $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_sbindir},%{_mandir}/man8} install acpid $RPM_BUILD_ROOT/%{_sbindir} install acpid.8 $RPM_BUILD_ROOT/%{_mandir}/man8 install samples/sample.conf $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/acpid touch $RPM_BUILD_ROOT/var/log/acpid %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add acpid if [ -f /var/lock/subsys/acpid ]; then /etc/rc.d/init.d/acpid restart >&2 else echo "Run \"/etc/rc.d/init.d/acpid start\" to start ACPI daemon." fi %preun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/acpid ]; then /etc/rc.d/init.d/acpid stop>&2 fi /sbin/chkconfig --del acpid fi %files %defattr(644,root,root,755) %dir %{_sysconfdir}/acpi %dir %{_sysconfdir}/acpi/events %dir %{_sysconfdir}/acpi/actions %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/acpi/events/sample.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/acpid %attr(640,root,root) %ghost /var/log/acpid %attr(755,root,root) %{_sbindir}/acpid %attr(754,root,root) /etc/rc.d/init.d/acpid %{_mandir}/man8/acpid.8.gz