From: saq Date: Thu, 26 Jul 2001 05:42:05 +0000 (+0000) Subject: - reverting last change: removing new macros from %p{re,ost}{,un} X-Git-Tag: RA-1_0~13 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=cddbae544d122b7b3680e94283c9619b8e2ad470;p=packages%2Fbird.git - reverting last change: removing new macros from %p{re,ost}{,un} Changed files: bird.spec -> 1.6 --- diff --git a/bird.spec b/bird.spec index 734c89f..6460939 100644 --- 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