[csw-devel] SF.net SVN: gar:[11976] csw/mgar/pkg/exim/trunk/files/CSWexim.preremove

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Dec 16 22:17:34 CET 2010


Revision: 11976
          http://gar.svn.sourceforge.net/gar/?rev=11976&view=rev
Author:   bdwalton
Date:     2010-12-16 21:17:34 +0000 (Thu, 16 Dec 2010)

Log Message:
-----------
exim: remove smf/service handling for preremove script

Modified Paths:
--------------
    csw/mgar/pkg/exim/trunk/files/CSWexim.preremove

Modified: csw/mgar/pkg/exim/trunk/files/CSWexim.preremove
===================================================================
--- csw/mgar/pkg/exim/trunk/files/CSWexim.preremove	2010-12-16 21:15:53 UTC (rev 11975)
+++ csw/mgar/pkg/exim/trunk/files/CSWexim.preremove	2010-12-16 21:17:34 UTC (rev 11976)
@@ -5,24 +5,6 @@
 PATH=/bin:/usr/bin:"$PATH"
 export PATH
 
-smf=no
-test -f $PKG_INSTALL_ROOT/usr/sbin/svccfg -a -f $PKG_INSTALL_ROOT/usr/sbin/svcadm && smf=yes
-
-# stop exim, but ONLY if we are doing a "direct"
-# install, rather than a jumpstart install or something.
-case "$PKG_ROOT_DIR" in
-  ""|"/")
-    if [ "$smf" = "yes" ]; then
-      echo "Stopping and deregistering Exim..."
-      /usr/sbin/svcadm disable -s svc:network/cswexim:default
-      /usr/sbin/svccfg delete svc:network/cswexim:default
-    else
-      echo "Stopping Exim..."
-      test -x $PKG_INSTALL_ROOT/etc/init.d/cswexim && $PKG_INSTALL_ROOT/etc/init.d/cswexim stop
-    fi
-    ;;
-esac
-
 for file in $CONFFILES; do
   confpath="$CONFDIR/$file"
   diff "$confpath" "$confpath.CSW" >/dev/null 2>&1


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list