Author: darekr                       Date: Tue Apr 18 11:27:26 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service

---- Files affected:
SPECS:
   freedt.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/freedt.spec
diff -u SPECS/freedt.spec:1.9 SPECS/freedt.spec:1.10
--- SPECS/freedt.spec:1.9       Mon Dec 12 17:24:19 2005
+++ SPECS/freedt.spec   Tue Apr 18 13:27:21 2006
@@ -11,6 +11,8 @@
 Source2:       %{name}.sysconfig
 Source3:       %{name}.init
 URL:           http://offog.org/code/freedt.html
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  rc-scripts
 Requires(post,preun):  /sbin/chkconfig
 Obsoletes:     daemontools
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -56,17 +58,11 @@
 
 %post
 /sbin/chkconfig --add svscan
-if [ -f /var/lock/subsys/svscan ]; then
-       /etc/rc.d/init.d/svscan restart >&2
-else
-       echo "Execute \"/etc/rc.d/init.d/svscan start\" to start svscan daemon."
-fi
+%service svscan restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/svscan ]; then
-               /etc/rc.d/init.d/svscan stop >&2
-       fi
+       %service svscan stop
        /sbin/chkconfig --del svscan
 fi
 
@@ -84,6 +80,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2006/04/18 11:27:21  darekr
+- use %service
+
 Revision 1.9  2005/12/12 16:24:19  glen
 - adapterized (sorted %verify attrs)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/freedt.spec?r1=1.9&r2=1.10&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to