]> git.pld-linux.org Git - packages/freeswan.git/commitdiff
- reverting last change: removing new macros from %p{re,ost}{,un}
authorsaq <saq@pld-linux.org>
Thu, 26 Jul 2001 05:42:07 +0000 (05:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    freeswan.spec -> 1.14

freeswan.spec

index 98073410b02fdfc7ca99a82969916dccc3d390d0..c4a84590bf0c11a1d2c28ad7e23e55d82ffe1df0 100644 (file)
@@ -48,10 +48,20 @@ gzip -9nf README CREDITS CHANGES BUGS \
           doc/{kernel.notes,impl.notes,examples,prob.report,standards}
 
 %post
-NAME=ipsec; DESC="IPSEC services"; %chkconfig_add
+/sbin/chkconfig --add ipsec 
+if [ -f /var/lock/subsys/ipsec ]; then
+       /etc/rc.d/init.d/ipsec restart >&2
+else
+       echo "Run '/etc/rc.d/init.d/ipsec start' to start IPSEC services." >&2
+fi
     
 %preun
-NAME=ipsec; %chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/ipsec ]; then
+               /etc/rc.d/init.d/ipsec stop >&2
+       fi
+        /sbin/chkconfig --del ipsec >&2
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.061518 seconds and 4 git commands to generate.