From b3a7a8241fa5bc82bd7e672a55a4337a903c2a53 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: bftpd.spec -> 1.9 --- bftpd.spec | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/bftpd.spec b/bftpd.spec index 3745c23..5d847ca 100644 --- a/bftpd.spec +++ b/bftpd.spec @@ -61,16 +61,10 @@ gzip -9nf README CHANGELOG rm -rf $RPM_BUILD_ROOT %post -if [ -f /var/lock/subsys/rc-inetd ]; then - /etc/rc.d/init.d/rc-inetd restart 1>&2 -else - echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2 -fi +%rc_inetd_post %postun -if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then - /etc/rc.d/init.d/rc-inetd restart -fi +%rc_inetd_postun %files %defattr(644,root,root,755) -- 2.44.0