]> git.pld-linux.org Git - packages/bird.git/commitdiff
- reverting last change: removing new macros from %p{re,ost}{,un}
authorsaq <saq@pld-linux.org>
Thu, 26 Jul 2001 05:42:05 +0000 (05:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bird.spec -> 1.6

bird.spec

index 734c89f62702fc158192c404f6b0d39beda5f68e..6460939e8481f2d794554c2f4275f24a032a7989 100644 (file)
--- a/bird.spec
+++ b/bird.spec
@@ -57,10 +57,21 @@ install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
 gzip -9nf %{name}-doc-%{version}/doc/*.ps TODO README
 
 %post
-DESC="routing daemon"; %chkconfig_add
+/sbin/chkconfig --add %{name} >&2
+
+if [ -f /var/lock/subsys/%{name} ]; then
+       /etc/rc.d/init.d/%{name} restart >&2
+else
+       echo "Run '/etc/rc.d/init.d/%{name} start' to start routing deamon." >&2
+fi
     
 %preun
-%chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/%{name} ]; then
+               /etc/rc.d/init.d/%{name} stop >&2
+       fi
+        /sbin/chkconfig --del %{name} >&2
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.123496 seconds and 4 git commands to generate.