From 97d892c22280498e29e09d30ecce503c3ef915fa Mon Sep 17 00:00:00 2001 From: saq Date: Wed, 25 Jul 2001 16:30:42 +0000 Subject: [PATCH] - use macros in %{pre,post}{,un} - need rebuilt rpm (with new macros.pld) to build these Changed files: bird.spec -> 1.4 --- bird.spec | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/bird.spec b/bird.spec index 6460939..ebb1d81 100644 --- 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 -- 2.44.0