*** install.orig	Thu Oct  9 08:58:17 1997
--- install	Thu Apr  9 23:44:20 1998
***************
*** 1,5 ****
--- 1,7 ----
  #! /bin/csh -f
  
+ set USRBINPATH=/usr/local/bin
+ 
  if ("$#argv" < "1") then
      echo "Usage:	install binary"
      exit 1
***************
*** 29,39 ****
  	exit 0
      endif
      if ( ! -f $USRBINPATH/$binary ) then
! 	cp -p $binary $USRBINPATH
  	exit 0
      endif
      mv $USRBINPATH/$binary $USRBINPATH/${binary}.old
!     cp -p $binary $USRBINPATH
      if ("$status" != "0") then
  	mv $USRBINPATH/${binary}.old $USRBINPATH/$binary
  	exit 1
--- 31,43 ----
  	exit 0
      endif
      if ( ! -f $USRBINPATH/$binary ) then
! 	cp $binary $USRBINPATH
! 	chmod 755 $USRBINPATH/$binary
  	exit 0
      endif
      mv $USRBINPATH/$binary $USRBINPATH/${binary}.old
!     cp $binary $USRBINPATH
!     chmod 755 $USRBINPATH/$binary
      if ("$status" != "0") then
  	mv $USRBINPATH/${binary}.old $USRBINPATH/$binary
  	exit 1
***************
*** 73,80 ****
  	echo "You cannot over-write  ${sendmail_dir}/pgpsendmail"
  	exit 1
      endif
!     cp -p pgpsendmail ${sendmail_dir}/pgpsendmail.new
      mv -f ${sendmail_dir}/pgpsendmail.new ${sendmail_dir}/pgpsendmail
      echo "PGPsendmail installed as ${sendmail_dir}/pgpsendmail"
      if ("$mortal" == "TRUE") then
  	echo "PGPsendmail will expect the real sendmail is ${sendmail_dir}/sendmail"
--- 77,85 ----
  	echo "You cannot over-write  ${sendmail_dir}/pgpsendmail"
  	exit 1
      endif
!     cp pgpsendmail ${sendmail_dir}/pgpsendmail.new
      mv -f ${sendmail_dir}/pgpsendmail.new ${sendmail_dir}/pgpsendmail
+     chmod 555 ${sendmail_dir}/pgpsendmail
      echo "PGPsendmail installed as ${sendmail_dir}/pgpsendmail"
      if ("$mortal" == "TRUE") then
  	echo "PGPsendmail will expect the real sendmail is ${sendmail_dir}/sendmail"
***************
*** 90,104 ****
      if ("$?USRBINPATH" != "0") then
  	if (-w $USRBINPATH) then
  	    echo "Writing PGPsendmail as:  $USRBINPATH/pgpsendmail  instead"
! 	    cp -p pgpsendmail $USRBINPATH
  	    exit 0
  	endif
      endif
      echo "PGPsendmail not installed. Do it yourself."
      exit 2
  endif
! cp -p pgpsendmail ${sendmail_dir}
  cd ${sendmail_dir}
! mv sendmail sendmail.real
! ln -s pgpsendmail sendmail
  
--- 95,111 ----
      if ("$?USRBINPATH" != "0") then
  	if (-w $USRBINPATH) then
  	    echo "Writing PGPsendmail as:  $USRBINPATH/pgpsendmail  instead"
! 	    cp pgpsendmail $USRBINPATH
! 	    chmod 555 $USRBINPATH/pgpsendmail
  	    exit 0
  	endif
      endif
      echo "PGPsendmail not installed. Do it yourself."
      exit 2
  endif
! cp pgpsendmail ${sendmail_dir}
  cd ${sendmail_dir}
+ chmod 4555 pgpsendmail
!#mv sendmail sendmail.real
!#ln -s pgpsendmail sendmail
  
