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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Dec 16 22:15:53 CET 2010


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

Log Message:
-----------
exim: update the postinstall script to not do smf/service stuff

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

Modified: csw/mgar/pkg/exim/trunk/files/CSWexim.postinstall
===================================================================
--- csw/mgar/pkg/exim/trunk/files/CSWexim.postinstall	2010-12-16 20:08:05 UTC (rev 11974)
+++ csw/mgar/pkg/exim/trunk/files/CSWexim.postinstall	2010-12-16 21:15:53 UTC (rev 11975)
@@ -9,50 +9,19 @@
   mount | grep '^/usr ' | grep 'read only' >/dev/null
 }
 
-class=smfno
-test -f $PKG_INSTALL_ROOT/usr/sbin/svccfg -a -f $PKG_INSTALL_ROOT/usr/sbin/svcadm && class=smfyes
-
-enable_exim=1
-test -r $PKG_INSTALL_ROOT/opt/csw/etc/csw.conf && \
-  . $PKG_INSTALL_ROOT/opt/csw/etc/csw.conf
-test -r $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf && \
-  . $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf
-    
-if [ "$autoenable_daemons" = "no" -o "$autoenable_exim" = "no" ]; then
-  enable_exim=0
-fi
-        
-# 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
-      /usr/sbin/svcadm disable -s svc:network/cswexim:default
-      /usr/sbin/svccfg delete svc:network/cswexim:default
-    else
-      test -x $PKG_INSTALL_ROOT/etc/init.d/cswexim && \
-        $PKG_INSTALL_ROOT/etc/init.d/cswexim stop
-    fi
-    ;;
-
-esac
-
 ### Set up config-file related stuff
 
-if [ "$autoenable_daemons" != "no" ]; then
-  echo ""
-  echo "Setting up config-files..."
-  for file in $CONFFILES; do
+echo ""
+echo "Setting up config-files..."
+for file in $CONFFILES; do
     confpath="$CONFDIR/$file"
     if [ -r "$confpath" ]; then
-      echo "Not touching existing $confpath"
+	echo "Not touching existing $confpath"
     else
-      echo "Copying $confpath.CSW to $confpath"
-      cp -p "$confpath.CSW" "$confpath"
+	echo "Copying $confpath.CSW to $confpath"
+	cp -p "$confpath.CSW" "$confpath"
     fi
-  done
-fi
-
+done
 echo ""
 
 is_usr_readonly
@@ -113,28 +82,6 @@
   fi
 fi
 
-if [ "$enable_exim" = "1" ]; then
-  case "$PKG_ROOT_DIR" in
-    ""|"/")
-      if [ "$class" = "smfno" ]; then
-        if [ -f $PKG_INSTALL_ROOT/etc/init.d/cswexim ]; then
-          $PKG_INSTALL_ROOT/etc/init.d/cswexim start
-        fi
-      else
-        echo "Registering Exim with SMF..."
-        /usr/sbin/svccfg import $PKG_INSTALL_ROOT/opt/csw/var/svc/manifest/network/exim.xml
-        /usr/sbin/svcadm enable svc:network/cswexim
-      fi
-    ;;
-  esac
-
-  cat <<EOF
-If you do *NOT* want to start eximd during system-boot set
-  autoenable_exim=no
-in /opt/csw/etc/csw.conf or /etc/opt/csw/csw.conf
-EOF
-fi
-
 cat <<EOF
 ---------------------------------------------------------------
 Please take the time to read /opt/csw/share/doc/exim/README.CSW


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