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

Annotation of openbsd/update_openbsd/make_SMTPAUTH_sendmail, Revision 1.5

1.1       andrew      1: #!/bin/sh
1.5     ! andrew      2: # $RedRiver: make_SMTPAUTH_sendmail,v 1.4 2009/03/13 17:55:43 andrew Exp $
1.1       andrew      3:
                      4: pkg_info -e cyrus-sasl-* > /dev/null
                      5: if [ $? -ne 0 ]; then
                      6:        echo Installing cyrus-sasl
                      7:        $SUDO pkg_add -i cyrus-sasl
                      8:        if [ $? -ne 0 ]; then
                      9:                exit
                     10:        fi
                     11: fi
                     12:
1.4       andrew     13: export MAKECONF
1.1       andrew     14:
1.4       andrew     15: local _tempfile
                     16: local _oldmakeconf=$MAKECONF
                     17: if [ X"$MAKECONF" == X"" ]; then
1.5     ! andrew     18:        MAKECONF=/etc/mk.conf
1.4       andrew     19: fi
                     20:
                     21: grep -q ^WANT_SMTPAUTH=[Yy][Ee][Ss] $MAKECONF
1.3       andrew     22: if [ $? -ne 0 ]; then
1.4       andrew     23:        _tempfile=`mktemp`
                     24:        cat $MAKECONF > $_tempfile
                     25:        echo WANT_SMTPAUTH=Yes >> $_tempfile
                     26:
                     27:        MAKECONF=$_tempfile
1.3       andrew     28: fi
                     29:
                     30: mv -f sendmail-smtp_auth.gz sendmail-smtp_auth.gz.old
                     31:
                     32: cd /usr/src/gnu/usr.sbin/sendmail/
1.1       andrew     33: echo Making sendmail
                     34: make clean
1.3       andrew     35: make obj
1.1       andrew     36: make depend
                     37: make
                     38:
1.3       andrew     39: gzip -o ${OLDPWD}/sendmail-smtp_auth.gz sendmail/obj/sendmail
                     40: #make clean
1.4       andrew     41:
                     42: if [ X"$_tempfile" != X"" ]; then
                     43:        rm -f $_tempfile
                     44: ]
                     45: MAKECONF=$_oldmakeconf
                     46:
1.3       andrew     47: echo sendmail with SMTPAUTH is now in ${OLDPWD}/sendmail-smtp_auth.gz

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