[csw-devel] SF.net SVN: gar:[12065] csw/mgar/pkg/exim/branches/dir-loc-fixes/files/ CSWexim.postinstall

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Wed Dec 22 01:32:32 CET 2010


Revision: 12065
          http://gar.svn.sourceforge.net/gar/?rev=12065&view=rev
Author:   bdwalton
Date:     2010-12-22 00:32:32 +0000 (Wed, 22 Dec 2010)

Log Message:
-----------
pkg/exim/branches/dir-loc-fixes: tweak the postinstall as we no longer care about sol8

Modified Paths:
--------------
    csw/mgar/pkg/exim/branches/dir-loc-fixes/files/CSWexim.postinstall

Modified: csw/mgar/pkg/exim/branches/dir-loc-fixes/files/CSWexim.postinstall
===================================================================
--- csw/mgar/pkg/exim/branches/dir-loc-fixes/files/CSWexim.postinstall	2010-12-22 00:03:34 UTC (rev 12064)
+++ csw/mgar/pkg/exim/branches/dir-loc-fixes/files/CSWexim.postinstall	2010-12-22 00:32:32 UTC (rev 12065)
@@ -1,5 +1,6 @@
 #!/sbin/sh
 CONFDIR=$PKG_INSTALL_ROOT/opt/csw/etc/exim
+NEWALIASES="$PKG_INSTALL_ROOT/usr/sbin/newaliases"
 CONFFILES="aliases exim.conf exim-env.sh"
 PATH=/bin:/usr/bin:"$PATH"
 export PATH
@@ -14,22 +15,11 @@
 if [ $? -eq 0 -a  "$SENDMAIL_ACTION" != "leave" ]; then
     echo "Your /usr partition is readonly. Cannot make modifications to it."
 else
-  ### Now handle the sendmail files
-
-  # in Solaris 8 it's in /usr/bin; in Solaris 9 in /usr/sbin 
-    if [ -r "$PKG_INSTALL_ROOT/usr/bin/newaliases" ]; then
-	NEWALIASES="$PKG_INSTALL_ROOT/usr/bin/newaliases"
-    elif [ -r "$PKG_INSTALL_ROOT/usr/sbin/newaliases" ]; then
-	NEWALIASES="$PKG_INSTALL_ROOT/usr/sbin/newaliases"
-    else
-    # use this as default (the remove script will find it in bin and sbin)
-	NEWALIASES="$PKG_INSTALL_ROOT/usr/sbin/newaliases"
-    fi
-
+    ### Now handle the sendmail files
     echo "Checking for newaliases... $NEWALIASES"
 
     if [ "$SENDMAIL_ACTION" = "replace" ]; then
-    # Make backup of sendmail files
+        # Make backup of sendmail files
 	if [ ! -r "$NEWALIASES.OFF" ]  && [ -r "$NEWALIASES" ]; then
 	    echo "Moving $NEWALIASES to newaliases.OFF"
 	    mv "$NEWALIASES" "$NEWALIASES.OFF"


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