[csw-devel] SF.net SVN: gar:[18172] csw/mgar/pkg/exim/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Wed May 30 02:53:08 CEST 2012


Revision: 18172
          http://gar.svn.sourceforge.net/gar/?rev=18172&view=rev
Author:   bdwalton
Date:     2012-05-30 00:53:08 +0000 (Wed, 30 May 2012)
Log Message:
-----------
exim/trunk: drop request, postinstall and postremove scripts since we no longer fiddle with sendmail links

Modified Paths:
--------------
    csw/mgar/pkg/exim/trunk/Makefile

Removed Paths:
-------------
    csw/mgar/pkg/exim/trunk/files/CSWexim.postinstall
    csw/mgar/pkg/exim/trunk/files/CSWexim.postremove
    csw/mgar/pkg/exim/trunk/files/CSWexim.request

Modified: csw/mgar/pkg/exim/trunk/Makefile
===================================================================
--- csw/mgar/pkg/exim/trunk/Makefile	2012-05-30 00:46:31 UTC (rev 18171)
+++ csw/mgar/pkg/exim/trunk/Makefile	2012-05-30 00:53:08 UTC (rev 18172)
@@ -21,8 +21,7 @@
 
 MASTER_SITES = ftp://ftp.exim.org/pub/exim/exim4/
 DISTFILES  = $(NAME)-$(VERSION).tar.bz2
-DISTFILES += CSWexim.postinstall CSWexim.postremove
-DISTFILES += CSWexim.request CSWexim.cswreleasenotes
+DISTFILES += CSWexim.cswreleasenotes
 
 # NOTE TO FUTURE MAINTAINERS: This patch should be thoroughly reviewed
 # for each update so as not to miss any new config options of

Deleted: csw/mgar/pkg/exim/trunk/files/CSWexim.postinstall
===================================================================
--- csw/mgar/pkg/exim/trunk/files/CSWexim.postinstall	2012-05-30 00:46:31 UTC (rev 18171)
+++ csw/mgar/pkg/exim/trunk/files/CSWexim.postinstall	2012-05-30 00:53:08 UTC (rev 18172)
@@ -1,74 +0,0 @@
-#!/sbin/sh
-CONFDIR=$PKG_INSTALL_ROOT/opt/csw/etc/exim
-
-PATH=/bin:/usr/bin:"$PATH"
-export PATH
-
-is_usr_readonly()
-{
-  mount | grep '^/usr ' | grep 'read only' >/dev/null
-}
-
-is_usr_readonly
-
-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
-
-  echo "Checking for newaliases... $NEWALIASES"
-
-  if [ "$SENDMAIL_ACTION" = "replace" ]; then
-    # Make backup of sendmail files
-    if [ ! -r "$NEWALIASES.OFF" ]  && [ -r "$NEWALIASES" ]; then
-      echo "Moving $NEWALIASES to newaliases.OFF"
-      mv "$NEWALIASES" "$NEWALIASES.OFF"
-    fi
-    if [ ! -f "$PKG_INSTALL_ROOT/usr/lib/sendmail.OFF" ] && [ -f "$PKG_INSTALL_ROOT/usr/lib/sendmail" ]; then
-      echo "Moving $PKG_INSTALL_ROOT/usr/lib/sendmail to sendmail.OFF"
-      mv "$PKG_INSTALL_ROOT/usr/lib/sendmail" "$PKG_INSTALL_ROOT/usr/lib/sendmail.OFF"
-    fi
-    if [ ! -f "$PKG_INSTALL_ROOT/usr/bin/mailq.OFF" ] && [ -f "$PKG_INSTALL_ROOT/usr/bin/mailq" ]; then
-      echo "Moving $PKG_INSTALL_ROOT/usr/bin/mailq to mailq.OFF"
-      mv "$PKG_INSTALL_ROOT/usr/bin/mailq" "$PKG_INSTALL_ROOT/usr/bin/mailq.OFF"
-    fi
-  else
-    if [ "$SENDMAIL_ACTION" = "overwrite" ]; then
-      echo "Removing $PKG_INSTALL_ROOT/usr/lib/sendmail"
-      rm -f "$PKG_INSTALL_ROOT/usr/lib/sendmail"
-      echo "Removing $NEWALIASES"
-      rm -f "$NEWALIASES"
-      echo "Removing $PKG_INSTALL_ROOT/usr/bin/mailq"
-      rm -f "$PKG_INSTALL_ROOT/usr/bin/mailq"
-    fi
-  fi
-
-  if [ "$SENDMAIL_ACTION" = "leave" ]; then
-    echo "Not making symbolic links to to $PKG_INSTALL_ROOT/opt/csw/sbin/exim."
-    echo "Read exim documentation for more information."
-  else
-    ln -s "$PKG_INSTALL_ROOT/opt/csw/sbin/exim" "$PKG_INSTALL_ROOT/usr/lib/sendmail"
-    ln -s "$PKG_INSTALL_ROOT/opt/csw/sbin/exim" "$PKG_INSTALL_ROOT/usr/bin/mailq"
-    echo "#!/bin/sh" >"$NEWALIASES"
-    echo "# This script is part of the Exim MTA" >>"$NEWALIASES"
-    echo "/usr/lib/sendmail -bi" >>"$NEWALIASES"
-    chgrp bin "$NEWALIASES"
-    chmod 755 "$NEWALIASES"
-  fi
-fi
-
-cat <<EOF
----------------------------------------------------------------
-Please take the time to read /opt/csw/share/doc/exim/README.CSW
----------------------------------------------------------------
-EOF

Deleted: csw/mgar/pkg/exim/trunk/files/CSWexim.postremove
===================================================================
--- csw/mgar/pkg/exim/trunk/files/CSWexim.postremove	2012-05-30 00:46:31 UTC (rev 18171)
+++ csw/mgar/pkg/exim/trunk/files/CSWexim.postremove	2012-05-30 00:53:08 UTC (rev 18172)
@@ -1,31 +0,0 @@
-#!/sbin/sh
-
-PATH=/bin:/usr/bin:"$PATH"
-export PATH
-
-is_usr_readonly()
-{
-  mount | grep '^/usr ' | grep 'read only' >/dev/null
-}
-
-# 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"
-fi
-
-if [ "$SENDMAIL_ACTION" = "replace" ]; then
-  is_usr_readonly
-  if [ $? -eq 0 ]; then
-    echo "Your /usr partition is readonly. Cannot make modifications to it."
-  else
-    rm -f "$PKG_INSTALL_ROOT/usr/lib/sendmail" && echo "$PKG_INSTALL_ROOT/usr/lib/sendmail removed"
-    rm -f "$NEWALIASES" && echo "$NEWALIASES removed"
-    rm -f "$PKG_INSTALL_ROOT/usr/bin/mailq" && echo "$PKG_INSTALL_ROOT/usr/bin/mailq removed"
-    test -r "$PKG_INSTALL_ROOT/usr/lib/sendmail.OFF" && mv -f "$PKG_INSTALL_ROOT/usr/lib/sendmail.OFF" "$PKG_INSTALL_ROOT/usr/lib/sendmail" && echo "Renaming $PKG_INSTALL_ROOT/usr/lib/sendmail.OFF to sendmail"
-    test -r "$NEWALIASES.OFF" && mv -f "$NEWALIASES.OFF" "$NEWALIASES" && echo "Renaming $NEWALIASES.OFF to newaliases"
-    test -r "$PKG_INSTALL_ROOT/usr/bin/mailq.OFF" && mv -f "$PKG_INSTALL_ROOT/usr/bin/mailq.OFF" "$PKG_INSTALL_ROOT/usr/bin/mailq" && echo "Renaming $PKG_INSTALL_ROOT/usr/bin/mailq.OFF to mailq"
-    exit 0
-  fi
-fi

Deleted: csw/mgar/pkg/exim/trunk/files/CSWexim.request
===================================================================
--- csw/mgar/pkg/exim/trunk/files/CSWexim.request	2012-05-30 00:46:31 UTC (rev 18171)
+++ csw/mgar/pkg/exim/trunk/files/CSWexim.request	2012-05-30 00:53:08 UTC (rev 18172)
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-SENDMAIL_ACTION=leave
-
-if [ -r /usr/lib/sendmail ]; then
-  # Check if sendmail is allready replaced
-  if [ -r /usr/lib/sendmail.OFF ]; then
-    echo "Warning: found /usr/lib/sendmail.OFF file."
-    echo " 1. Leave the /usr/lib/sendmail as it is"
-    echo " 2. Overwrite the /usr/lib/sendmail"
-
-    /usr/bin/printf "Enter your choice [1,2] (default 1): "
-    read usrin
-    if [ "$usrin" = "2" ] ; then
-      SENDMAIL_ACTION=overwrite
-    fi
-  else
-    echo "Found an existing sendmail installation."
-    echo "You have following choices with for installing exim:"
-    echo " 1. Send mail only, without changing existing sendmail"
-    echo "    installation."
-    echo " 2. Rename existing sendmail binaries to *.OFF and replace"
-    echo "    them with binaries provided by exim."
-
-    /usr/bin/printf "Enter your choice [1,2] (default 1): "
-    read usrin
-    if [ "$usrin" = "2" ] ; then
-      SENDMAIL_ACTION=replace
-    fi
-  fi
-else
-  SENDMAIL_ACTION=replace
-fi
-
-# Make env variables available
-cat >>$1 << EOF
-SENDMAIL_ACTION=$SENDMAIL_ACTION
-EOF

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