[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.3 and 1.5

version 1.3, 2008/11/03 18:45:15 version 1.5, 2009/05/06 17:48:59
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $RedRiver: make_SMTPAUTH_sendmail,v 1.2 2008/05/20 21:19:02 andrew Exp $  # $RedRiver: make_SMTPAUTH_sendmail,v 1.4 2009/03/13 17:55:43 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
   
   export MAKECONF
   
 grep -q ^WANT_SMTPAUTH=Yes /etc/mk.conf  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  if [ $? -ne 0 ]; then
         echo Plase set WANT_SMTPAUTH=Yes in /etc/mk.conf          _tempfile=`mktemp`
         exit          cat $MAKECONF > $_tempfile
           echo WANT_SMTPAUTH=Yes >> $_tempfile
   
           MAKECONF=$_tempfile
 fi  fi
   
 mv -f sendmail-smtp_auth.gz sendmail-smtp_auth.gz.old  mv -f sendmail-smtp_auth.gz sendmail-smtp_auth.gz.old
Line 28 
Line 38 
   
 gzip -o ${OLDPWD}/sendmail-smtp_auth.gz sendmail/obj/sendmail  gzip -o ${OLDPWD}/sendmail-smtp_auth.gz sendmail/obj/sendmail
 #make clean  #make clean
   
   if [ X"$_tempfile" != X"" ]; then
           rm -f $_tempfile
   ]
   MAKECONF=$_oldmakeconf
   
 echo sendmail with SMTPAUTH is now in ${OLDPWD}/sendmail-smtp_auth.gz  echo sendmail with SMTPAUTH is now in ${OLDPWD}/sendmail-smtp_auth.gz

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

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