]> git.pld-linux.org Git - packages/acpid.git/blobdiff - acpid.spec
- added macros in /etc/logrotate.d
[packages/acpid.git] / acpid.spec
index 3c4be99a8e3c7befdb1b23965fdc83c43f8b1deb..f1ed822cbe36bc8b6fb55b142a21eea5c80c3900 100644 (file)
@@ -5,20 +5,22 @@
 Summary:       ACPI Event Daemon
 Summary(pl):   Demon zdarzeƱ ACPI
 Name:          acpid
-Version:       1.0.2
-Release:       2.3
+Version:       1.0.3
+Release:       2
 License:       GPL v2
 Group:         Daemons
-# Source0-md5: 15884aaf0b82717954f9366b5c00808b
 Source0:       http://dl.sourceforge.net/acpid/%{name}-%{version}.tar.gz
+# Source0-md5: 8513c19d0f14ff396ea73caaea7f2ef8
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.logrotate
+Source4:       %{name}.halt_on_power_button.conf
 Patch0:                %{name}-powersh_fix.patch
 URL:           http://acpid.sourceforge.net/
 PreReq:                rc-scripts
 Requires(post,preun):  /sbin/chkconfig
 Obsoletes:     apmd
+Obsoletes:     poweracpid
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -29,7 +31,7 @@ acpid to demon przekazuj
 
 %prep
 %setup -q
-#%patch0 -p1
+%patch0 -p1
 
 %build
 %{__make}
@@ -46,6 +48,9 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/acpid
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/acpid
 install samples/acpi_handler.sh $RPM_BUILD_ROOT%{_sbindir}/power.sh
+# Or create halt_on_power_button subpackage
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/acpi/events
+
 
 > $RPM_BUILD_ROOT/var/log/acpid
 
@@ -68,16 +73,26 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del acpid
 fi
 
+# %post halt_on_power_button
+# if [ -f /var/lock/subsys/acpid ]; then
+#     /etc/rc.d/init.d/acpid reload
+# fi
+
+# %postun halt_on_power_button
+# if [ -f /var/lock/subsys/acpid ]; then
+#     /etc/rc.d/init.d/acpid reload
+# fi
+
 %files
 %defattr(644,root,root,755)
-%doc Changelog README TODO debian/README.debian
+%doc Changelog README TODO 
 %dir %{_sysconfdir}/acpi
 %dir %{_sysconfdir}/acpi/events
 %dir %{_sysconfdir}/acpi/actions
-%attr(640,root,root) /etc/logrotate.d/acpid
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/acpid
 %attr(754,root,root) /etc/rc.d/init.d/acpid
 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/acpid
-%config(noreplace,missingok) %verify(not size mtime md5) %{_sysconfdir}/acpi/events/sample.conf
+%config(noreplace,missingok) %verify(not size mtime md5) %{_sysconfdir}/acpi/events/*.conf
 %attr(755,root,root) %{_sbindir}/acpid
 %attr(755,root,root) %{_sbindir}/power.sh
 %attr(640,root,root) %ghost /var/log/acpid
This page took 0.083769 seconds and 4 git commands to generate.