]> git.pld-linux.org Git - packages/pure-ftpd.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:59 +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:
    pure-ftpd.spec -> 1.30

pure-ftpd.spec

index 2ffdba31bdd6beb574b28f9a79fdd7e982533558..7a0ce1faf47e0bb3ef3b549ae7490b9a06d8524f 100644 (file)
@@ -80,16 +80,10 @@ gzip -9nf README
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/rc-inetd ]; then
-       %{_sysconfdir}/rc.d/init.d/rc-inetd restart 1>&2
-else
-       echo "Type \"%{_sysconfdir}/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
-       %{_sysconfdir}/rc.d/init.d/rc-inetd restart
-fi
+%rc_inetd_postun
 
 %files
 %defattr(644,root,root,755)
This page took 0.081231 seconds and 4 git commands to generate.