Annotation of openbsd/update_openbsd/make_SMTPAUTH_sendmail, Revision 1.8
1.1 andrew 1: #!/bin/sh
1.8 ! andrew 2: # $AFresh1: make_SMTPAUTH_sendmail,v 1.7 2010/02/10 20:57:07 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.8 ! andrew 39: gzip -o /usr/release/sendmail-smtp_auth.gz sendmail/obj/sendmail
1.6 andrew 40: make clean
1.4 andrew 41:
42: if [ X"$_tempfile" != X"" ]; then
43: rm -f $_tempfile
1.6 andrew 44: fi
1.4 andrew 45: MAKECONF=$_oldmakeconf
46:
1.8 ! andrew 47: echo sendmail with SMTPAUTH is now in /usr/release/sendmail-smtp_auth.gz
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>