SPECS: mouseemu.spec - use %service
darekr
darekr at pld-linux.org
Mon Apr 17 21:53:31 CEST 2006
Author: darekr Date: Mon Apr 17 19:53:31 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service
---- Files affected:
SPECS:
mouseemu.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SPECS/mouseemu.spec
diff -u SPECS/mouseemu.spec:1.4 SPECS/mouseemu.spec:1.5
--- SPECS/mouseemu.spec:1.4 Mon Feb 14 21:23:12 2005
+++ SPECS/mouseemu.spec Mon Apr 17 21:53:26 2006
@@ -11,7 +11,7 @@
Source1: %{name}.init
Source2: %{name}.sysconfig
Patch0: %{name}-nousb-noadb.patch
-PreReq: rc-scripts
+Requires: rc-scripts
Requires(post,preun): chkconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -41,17 +41,11 @@
%post
/sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/mouseemu ]; then
- /etc/rc.d/init.d/%{name} restart >&2
-else
- echo "Run \"/etc/rc.d/init.d/%{name} start\" to start mouseemu daemon."
-fi
+%service mouseemu restart
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/mouseemu ]; then
- /etc/rc.d/init.d/%{name} stop >&2
- fi
+ %service mouseemu stop
/sbin/chkconfig --del %{name}
fi
@@ -68,6 +62,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2006/04/17 19:53:26 darekr
+- use %service
+
Revision 1.4 2005/02/14 20:23:12 qboosh
- pl, unified
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/mouseemu.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list