SPECS: eeepc-acpi-utilities.spec - added post/preun section with chkconfig; ...
paszczus
paszczus at pld-linux.org
Fri Jan 9 20:48:28 CET 2009
Author: paszczus Date: Fri Jan 9 19:48:28 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added post/preun section with chkconfig; rel 0.2
---- Files affected:
SPECS:
eeepc-acpi-utilities.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/eeepc-acpi-utilities.spec
diff -u SPECS/eeepc-acpi-utilities.spec:1.3 SPECS/eeepc-acpi-utilities.spec:1.4
--- SPECS/eeepc-acpi-utilities.spec:1.3 Fri Jan 9 20:33:31 2009
+++ SPECS/eeepc-acpi-utilities.spec Fri Jan 9 20:48:23 2009
@@ -3,7 +3,7 @@
Summary(pl.UTF-8): Skrypty ACPI dla notebooków EeePC
Name: eeepc-acpi-utilities
Version: 1.0.9
-Release: 0.1
+Release: 0.2
License: GPL
Group: X11/Applications
Source0: http://dl.sourceforge.net/eeepc-acpi-util/%{name}_%{version}.tar.gz
@@ -11,6 +11,7 @@
Source1: %{name}.init
URL: http://eeepc-acpi-util.sourceforge.net/
Requires: acpid
+Requires: coreutils
Requires: dmidecode
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -63,6 +64,7 @@
install -d $RPM_BUILD_ROOT%{_sysconfdir}/acpi/{eeepc,events}
install -d $RPM_BUILD_ROOT%{_datadir}/{,applications,pixmaps}
install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart
+install -d $RPM_BUILD_ROOT/var/eeepc
install acpi/eeepc/*.sh $RPM_BUILD_ROOT%{_sysconfdir}/acpi/eeepc/
install acpi/events/eeepc-hotkeys $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events/
@@ -76,6 +78,16 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%post init
+/sbin/chkconfig --add eeepc-restore
+%service %{name} restart
+
+%preun init
+if [ "$1" = "0" ]; then
+ %service -q %{name} stop
+ /sbin/chkconfig --del eeepc-restore
+fi
+
%files
%defattr(644,root,root,755)
%dir %{_sysconfdir}/acpi/eeepc
@@ -87,6 +99,7 @@
%{_sysconfdir}/xdg/autostart/eeepc-acpi-util.desktop
%{_desktopdir}/eeepc.desktop
%{_pixmapsdir}/eee.png
+%dir /var/eeepc
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -94,6 +107,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2009/01/09 19:48:23 paszczus
+- added post/preun section with chkconfig; rel 0.2
+
Revision 1.3 2009/01/09 19:33:31 paszczus
- added R: dmidecode; use our init script
@@ -102,4 +118,3 @@
Revision 1.1 2009/01/09 19:24:47 paszczus
- initial
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/eeepc-acpi-utilities.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list