]> git.pld-linux.org Git - packages/bird.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:42 +0000 (16:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- need rebuilt rpm (with new macros.pld) to build these

Changed files:
    bird.spec -> 1.4

bird.spec

index 6460939e8481f2d794554c2f4275f24a032a7989..ebb1d81404f1be83f0e2d5f5a4c54a087e9648b0 100644 (file)
--- a/bird.spec
+++ b/bird.spec
@@ -57,21 +57,10 @@ install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
 gzip -9nf %{name}-doc-%{version}/doc/*.ps TODO README
 
 %post
-/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
+DESC="routing daemon"; %chkconfig_post
     
 %preun
-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
+%chkconfig_preun
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.026897 seconds and 4 git commands to generate.