]> git.pld-linux.org Git - packages/freedt.git/commitdiff
- use %service
authordarekr <darekr@pld-linux.org>
Tue, 18 Apr 2006 11:27:21 +0000 (11:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    freedt.spec -> 1.10

freedt.spec

index 1262f57faf43309c132e27ad5807c1e5ef51d402..92ff30c269d357723a178ff38ae348b118cb9a70 100644 (file)
@@ -10,6 +10,8 @@ Source0:      http://offog.org/files/%{name}-%{version}.tar.gz
 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)
@@ -55,17 +57,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
 
This page took 0.035199 seconds and 4 git commands to generate.