[csw-devel] SF.net SVN: gar:[14852] csw/mgar/pkg/sendmail/trunk/files

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Tue Jun 21 14:40:46 CEST 2011


Revision: 14852
          http://gar.svn.sourceforge.net/gar/?rev=14852&view=rev
Author:   bonivart
Date:     2011-06-21 12:40:45 +0000 (Tue, 21 Jun 2011)

Log Message:
-----------
sendmail/trunk: remove obsolete files

Removed Paths:
-------------
    csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.checkinstall
    csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.i.sol10
    csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.i.sol9
    csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.postinstall
    csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.preinstall
    csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.preremove

Deleted: csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.checkinstall
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.checkinstall	2011-06-21 12:36:25 UTC (rev 14851)
+++ csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.checkinstall	2011-06-21 12:40:45 UTC (rev 14852)
@@ -1,24 +0,0 @@
-# checkinstall for CSWsendmail
-# 2007-12-09 installation no longer moves files in Sun's sendmail package.
-#
-trap `exit 3` 15
-
-# Assign Solaris release class to install release specific files
-if [ `uname -r` = 5.8 ]
-then
-	CLASSES='none sol8 cswinitsmf'
-elif [ `uname -r` = 5.9 ]
-then
-	CLASSES='none sol9 cswinitsmf'
-elif [ `uname -r` = 5.10 ]
-then
-    CLASSES='none sol10 cswinitsmf'
-fi
-
-# Make env variables available to other packaging scripts
-
-cat >$1 <<!
-CLASSES='$CLASSES'
-!
-
-exit 0

Deleted: csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.i.sol10
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.i.sol10	2011-06-21 12:36:25 UTC (rev 14851)
+++ csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.i.sol10	2011-06-21 12:40:45 UTC (rev 14852)
@@ -1,12 +0,0 @@
-#
-echo "Installing class <sol10>."
-while read src dest
-do
-	# Keep pkgadd happy by copying the file as defined
-	/usr/bin/cp $src $dest || exit 2
-	# Copy the version specific file to the original name
-	dest2="`echo $dest | sed 's/sol10.//g'`" || exit 2
-	echo $dest2
-	/usr/bin/cp $src $dest2 || exit 2
-done 
-exit 0

Deleted: csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.i.sol9
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.i.sol9	2011-06-21 12:36:25 UTC (rev 14851)
+++ csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.i.sol9	2011-06-21 12:40:45 UTC (rev 14852)
@@ -1,13 +0,0 @@
-#
-echo "Installing class <sol9>."
-while read src dest
-do
-	# Keep pkgadd happy by copying the file as defined
-	/usr/bin/cp $src $dest || exit 2
-	# Copy the version specific file to the original name
-	dest2="`echo $dest | sed 's/sol9.//g'`" || exit 2
-	echo $dest2
-	/usr/bin/cp $src $dest2 || exit 2
-done
-
-exit 0

Deleted: csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.postinstall
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.postinstall	2011-06-21 12:36:25 UTC (rev 14851)
+++ csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.postinstall	2011-06-21 12:40:45 UTC (rev 14852)
@@ -1,89 +0,0 @@
-#!/bin/sh
-PATH=/bin:/usr/bin:/opt/csw/bin:/sbin:/usr/sbin:/opt/csw/sbin
-
-CONFDIR=/opt/csw/etc/mail
-SOLVER="sol`uname -r |sed 's/5\.//'`"
-
-for file in `cd ${CONFDIR} && ls *.CSW 2>/dev/null`
-do 
-    real_file="`echo ${file} |sed 's/\.CSW$//'`"
-    if [ ! -f ${CONFDIR}/${real_file} ]
-    then
-        cp ${CONFDIR}/${file} ${CONFDIR}/${real_file}
-    else
-        echo "Preserving ${real_file}..."
-    fi
-done
-
-echo "Updating Package Dtabase for /opt/csw/bin/vacation"
-chmod 0555 /opt/csw/bin/vacation
-chown root:bin /opt/csw/bin/vacation
-installf -c ${SOLVER} $PKGINST /opt/csw/bin/vacation f 0555 root bin || exit 2
-echo "Updating Package Dtabase for /opt/csw/lib/mail.local"
-chown root:bin /opt/csw/lib/mail.local
-chmod 0555 /opt/csw/lib/mail.local
-installf -c ${SOLVER} $PKGINST /opt/csw/lib/mail.local f 0555 root bin || exit 2
-echo "Updating Package Dtabase for /opt/csw/lib/rmail"
-chown root:bin /opt/csw/lib/rmail
-chmod 0555 /opt/csw/lib/rmail
-installf -c ${SOLVER} $PKGINST /opt/csw/lib/rmail f 0555 root bin || exit 2
-echo "Updating Package Dtabase for /opt/csw/lib/sendmail"
-chown root:smmsp /opt/csw/lib/sendmail
-chmod 2555 /opt/csw/lib/sendmail
-installf -c ${SOLVER} $PKGINST /opt/csw/lib/sendmail f 2555 root smmsp || exit 2
-echo "Updating Package Dtabase for /opt/csw/lib/smrsh"
-chown root:bin /opt/csw/lib/smrsh
-chmod 0555 /opt/csw/lib/smrsh
-installf -c ${SOLVER} $PKGINST /opt/csw/lib/smrsh f 0555 root bin || exit 2
-echo "Updating Package Dtabase for /opt/csw/sbin/mailstats"
-chown root:bin /opt/csw/sbin/mailstats
-chmod 0555 /opt/csw/sbin/mailstats
-installf -c ${SOLVER} $PKGINST /opt/csw/sbin/mailstats f 0555 root bin || exit 2
-echo "Updating Package Dtabase for /opt/csw/sbin/praliases"
-chown root:bin /opt/csw/sbin/praliases
-chmod 0555 /opt/csw/sbin/praliases
-installf -c ${SOLVER} $PKGINST /opt/csw/sbin/praliases f 0555 root bin || exit 2
-echo "Updating Package Dtabase for /opt/csw/sbin/editmap"
-chown root:bin /opt/csw/sbin/editmap
-chmod 0555 /opt/csw/sbin/editmap
-installf -c ${SOLVER} $PKGINST /opt/csw/sbin/editmap f 0555 root bin || exit 2
-echo "Updating Package Dtabase for /opt/csw/sbin/makemap"
-chown root:bin /opt/csw/sbin/makemap
-chmod 0555 /opt/csw/sbin/makemap
-installf -c ${SOLVER} $PKGINST /opt/csw/sbin/makemap f 0555 root bin || exit 2
-
-installf -f -c ${SOLVER} $PKGINST
-
-## Cleanup of OS Versioned Class files
-echo "Updating Pacakge Database for /opt/csw/bin/${SOLVER}.vacation"
-rm -f /opt/csw/bin/${SOLVER}.vacation
-removef $PKGINST /opt/csw/bin/${SOLVER}.vacation
-echo "Updating Pacakge Database for /opt/csw/lib/${SOLVER}.mail.local"
-rm -f /opt/csw/lib/${SOLVER}.mail.local
-removef $PKGINST /opt/csw/lib/${SOLVER}.mail.local
-echo "Updating Pacakge Database for /opt/csw/lib/${SOLVER}.rmail"
-rm -f /opt/csw/lib/${SOLVER}.rmail
-removef $PKGINST /opt/csw/lib/${SOLVER}.rmail
-echo "Updating Pacakge Database for /opt/csw/lib/${SOLVER}.sendmail"
-rm -f /opt/csw/lib/${SOLVER}.sendmail
-removef $PKGINST /opt/csw/lib/${SOLVER}.sendmail
-echo "Updating Pacakge Database for /opt/csw/lib/${SOLVER}.smrsh"
-rm -f /opt/csw/lib/${SOLVER}.smrsh
-removef $PKGINST /opt/csw/lib/${SOLVER}.smrsh
-echo "Updating Pacakge Database for /opt/csw/sbin/${SOLVER}.mailstats"
-rm -f /opt/csw/sbin/${SOLVER}.mailstats
-removef $PKGINST /opt/csw/sbin/${SOLVER}.mailstats
-echo "Updating Pacakge Database for /opt/csw/sbin/${SOLVER}.praliases"
-rm -f /opt/csw/sbin/${SOLVER}.praliases
-removef $PKGINST /opt/csw/sbin/${SOLVER}.praliases
-echo "Updating Pacakge Database for /opt/csw/sbin/${SOLVER}.editmap"
-rm -f /opt/csw/sbin/${SOLVER}.editmap
-removef $PKGINST /opt/csw/sbin/${SOLVER}.editmap
-echo "Updating Pacakge Database for /opt/csw/sbin/${SOLVER}.makemap"
-rm -f /opt/csw/sbin/${SOLVER}.makemap
-removef $PKGINST /opt/csw/sbin/${SOLVER}.makemap
-removef -f $PKGINST
-
-exit 0
-
-

Deleted: csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.preinstall
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.preinstall	2011-06-21 12:36:25 UTC (rev 14851)
+++ csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.preinstall	2011-06-21 12:40:45 UTC (rev 14852)
@@ -1,61 +0,0 @@
-# This script exists for the sole purpose of making sure
-# the required user accounts exist.
-# specifically, "user smmsp, group smmsp, group mail"
-
-# If installing on a filesystem that is not running the OS, exit this script.
-if [ ! x"$PKG_INSTALL_ROOT" = x"" -a ! x"$PKG_INSTALL_ROOT" = x"/" ] ; then exit 0 ; fi
-
-if [ x"$PKG_INSTALL_ROOT" = x"" ] ; then
-    PKG_INSTALL_ROOT="/"
-fi
-
-MYHOME=/
-
-#First check target machines password file, THEN check
-#NIS/NIS+/whatever
-
-/usr/bin/grep '^smmsp:' /etc/passwd >/dev/null
-if [ $? -ne 0 ] ; then
-        /usr/bin/getent passwd smmsp >/dev/null
-        if [ $? -ne 0 ] ; then
-                NEEDUSER=1
-        fi
-fi
-
-/usr/bin/grep '^smmsp:' /etc/group >/dev/null
-if [ $? -ne 0 ] ; then
-        /usr/bin/getent group smmsp >/dev/null
-        if [ $? -ne 0 ] ; then
-                NEEDGROUP=1
-        fi
-fi
-
-/usr/bin/grep '^mail:' /etc/group >/dev/null
-if [ $? -ne 0 ] ; then
-        /usr/bin/getent group mail >/dev/null
-        if [ $? -ne 0 ] ; then
-                NEEDMAILGROUP=1
-        fi
-fi
-
-if [ "$NEEDGROUP" = 1 ] ; then
-        echo adding smmsp group
-        chroot $PKG_INSTALL_ROOT /usr/sbin/groupadd smmsp
-else
-        echo smmsp group detected
-fi
-
-if [ "$NEEDUSER" = 1 ] ; then
-        echo adding smmsp user
-        chroot $PKG_INSTALL_ROOT /usr/sbin/useradd -g smmsp smmsp
-        chroot $PKG_INSTALL_ROOT /usr/sbin/usermod -c "SendMail Message Submission Program" -d $MYHOME smmsp
-else
-        echo smmsp user detected
-fi
-
-if [ "$NEEDMAILGROUP" = 1 ] ; then
-        echo adding mail group
-        chroot $PKG_INSTALL_ROOT /usr/sbin/groupadd mail
-else
-        echo mail group detected
-fi

Deleted: csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.preremove
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.preremove	2011-06-21 12:36:25 UTC (rev 14851)
+++ csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.preremove	2011-06-21 12:40:45 UTC (rev 14852)
@@ -1,55 +0,0 @@
-# preremove - CSWsendmail
-# 2004-02-28. Correct error on rename mailq
-# 2005-12-14  Fix problem with stopping sendmail
-# 2007-02-25  Add support for Solaris 10+ zone enabled hosts.
-#             Replacing Sun's sendmail is no longer done.
-
-# Stop sendmail if it is running
-smf=no
-if [ -f /usr/sbin/svccfg -a -f /usr/sbin/svcadm ] ; then smf=yes ; fi
-
-VER=`uname -r`
-if [ x"$VER" = x5.8 -o x"$VER" = x5.9 ] ; then
-    SERVER_PID=`pgrep -x -u 0 sendmail`
-else
-    if [ -x /usr/bin/zonename ] ; then
-        ZONE=`/usr/bin/zonename`
-        SERVER_PID=`pgrep -x -u 0 -z "$ZONE" sendmail`
-    else
-        SERVER_PID=`pgrep -x -u 0 sendmail`
-    fi
-fi
-
-if [ $SERVER_PID ]; then
-    echo "## Stopping sendmail"
-    if [ $smf = yes ]
-	then
-        # Disable service
-	/usr/sbin/svcadm disable -s svc:network/smtp:cswsendmail >/dev/null 2>&1
-    else
-	/etc/init.d/cswsendmail stop >/dev/null 2>&1
-    fi
-    while [ $SERVER_PID ]
-      do
-      sleep 1
-      # See if server pid still exists.
-      VER=`uname -r`
-      if [ x"$VER" = x5.8 -o x"$VER" = x5.9 ] ; then
-	  SERVER_PID=`pgrep -x -u 0 sendmail`
-      else
-	  if [ -x /usr/bin/zonename ] ; then
-	      ZONE=`/usr/bin/zonename`
-	      SERVER_PID=`pgrep -x -u 0 -z "$ZONE" sendmail`
-	  else
-	      SERVER_PID=`pgrep -x -u 0 sendmail`
-	  fi
-      fi
-    done
-fi
-
-if [ $smf = yes ] ; then
-    # Unregister with SMF
-    /usr/sbin/svccfg delete svc:network/smtp:cswsendmail >/dev/null 2>&1
-fi
- 
-exit 0
\ No newline at end of file


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