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

cyrus-sasl.spec

index ac39ba951d166069ecee70cdd775ab112d5ee2f0..57a82ecf31a30a9f6affbdbb67b7384280f49a17 100644 (file)
@@ -227,20 +227,10 @@ rm -rf $RPM_BUILD_ROOT
 %postun -p /sbin/ldconfig
 
 %post saslauthd
-/sbin/chkconfig --add saslauthd
-if [ -f /var/lock/subsys/saslauthd ]; then
-       /etc/rc.d/init.d/saslauthd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
-fi
-
-%postun saslauthd
-if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/saslauthd ]; then
-               /etc/rc.d/init.d/saslauthd stop 1>&2
-       fi
-       /sbin/chkconfig --del saslauthd
-fi
+NAME=saslauthd; %chkconfig_add
+
+%preun saslauthd
+NAME=saslauthd; %chkconfig_del
 
 %files
 %defattr(644,root,root,755)
This page took 0.026399 seconds and 4 git commands to generate.