[BACK]Return to make_SMTPAUTH_sendmail CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

Diff for /openbsd/update_openbsd/make_SMTPAUTH_sendmail between version 1.2 and 1.8

version 1.2, 2008/05/20 22:19:02 version 1.8, 2011/05/06 22:33:30
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $RedRiver: make_SMTPAUTH_sendmail,v 1.1 2008/05/20 21:17:42 andrew Exp $  # $AFresh1: make_SMTPAUTH_sendmail,v 1.7 2010/02/10 20:57:07 andrew Exp $
   
 pkg_info -e cyrus-sasl-* > /dev/null  pkg_info -e cyrus-sasl-* > /dev/null
 if [ $? -ne 0 ]; then  if [ $? -ne 0 ]; then
Line 10 
Line 10 
         fi          fi
 fi  fi
   
 WANT_SMTPAUTH=Yes  export MAKECONF
   
 cd /usr/src/gnu/usr.sbin/sendmail/sendmail/  local _tempfile
   local _oldmakeconf=$MAKECONF
   if [ X"$MAKECONF" == X"" ]; then
           MAKECONF=/etc/mk.conf
   fi
   
   grep -q ^WANT_SMTPAUTH=[Yy][Ee][Ss] $MAKECONF
   if [ $? -ne 0 ]; then
           _tempfile=`mktemp`
           cat $MAKECONF > $_tempfile
           echo WANT_SMTPAUTH=Yes >> $_tempfile
   
           MAKECONF=$_tempfile
   fi
   
   mv -f sendmail-smtp_auth.gz sendmail-smtp_auth.gz.old
   
   cd /usr/src/gnu/usr.sbin/sendmail/
 echo Making sendmail  echo Making sendmail
 make clean  make clean
   make obj
 make depend  make depend
 make  make
   
 gzip -o ${OLDPWD}/sendmail.gz sendmail  gzip -o /usr/release/sendmail-smtp_auth.gz sendmail/obj/sendmail
 echo sendmail with SMTPAUTH is now in ${OLDPWD}/sendmail.gz  
 make clean  make clean
   
   if [ X"$_tempfile" != X"" ]; then
           rm -f $_tempfile
   fi
   MAKECONF=$_oldmakeconf
   
   echo sendmail with SMTPAUTH is now in /usr/release/sendmail-smtp_auth.gz

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.8

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>