home *** CD-ROM | disk | FTP | other *** search
- : install_smail
- # Shell script to install smail in a Xenix System V system.
- #
- # Written by Chip Salzenberg (chip@ateng.UUCP).
- # Released to Usenet on 01 Dec 1987.
- #
- # Note that this script renames the standard Xenix rmail and execmail
- # programs to rmail.x and execmail.x respectively. If those `.x' files
- # already exist, then no renaming takes place, so you can run this script
- # more than once without losing those renamed programs.
- #
- # BTW, be sure to test everything thoroughly; a broken mail system is
- # sure to upset any users on your system.
-
- COPY="copy -m"
- SMAIL="/usr/bin/smail"
- RMAIL="/usr/bin/rmail"
- EXECM="/usr/lib/mail/execmail"
-
- for f in smail execm
- do
- if [ ! -x $f ]; then
- echo "You need to compile $f first."
- exit 1
- fi
- done
-
- echo "Installing current smail -- you have 5 seconds to abort."
- sleep 5
-
- if [ ! -f $RMAIL.x ]; then
- mv $RMAIL $RMAIL.x
- fi
- rm -f $RMAIL
- if [ ! -f $EXECM.x ]; then
- mv $EXECM $EXECM.x
- fi
- rm -f $EXECM
-
- $COPY execm $EXECM
- chown bin $EXECM
- chgrp bin $EXECM
- chmod 755 $EXECM
-
- rm -f $SMAIL $RMAIL
- $COPY smail $SMAIL
- chown bin $SMAIL
- chgrp bin $SMAIL
- chmod 755 $SMAIL
- ln $SMAIL $RMAIL
-