version 1.4, 2009/03/13 18:55:43 |
version 1.6, 2009/08/14 21:43:07 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: make_SMTPAUTH_sendmail,v 1.3 2008/11/03 18:45:15 andrew Exp $ |
# $RedRiver: make_SMTPAUTH_sendmail,v 1.5 2009/05/06 16:48:59 andrew Exp $ |
|
|
pkg_info -e cyrus-sasl-* > /dev/null |
pkg_info -e cyrus-sasl-* > /dev/null |
if [ $? -ne 0 ]; then |
if [ $? -ne 0 ]; then |
|
|
local _tempfile |
local _tempfile |
local _oldmakeconf=$MAKECONF |
local _oldmakeconf=$MAKECONF |
if [ X"$MAKECONF" == X"" ]; then |
if [ X"$MAKECONF" == X"" ]; then |
$MAKECONF=/etc/mk.conf |
MAKECONF=/etc/mk.conf |
fi |
fi |
|
|
grep -q ^WANT_SMTPAUTH=[Yy][Ee][Ss] $MAKECONF |
grep -q ^WANT_SMTPAUTH=[Yy][Ee][Ss] $MAKECONF |
|
|
make |
make |
|
|
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 |
if [ X"$_tempfile" != X"" ]; then |
rm -f $_tempfile |
rm -f $_tempfile |
] |
fi |
MAKECONF=$_oldmakeconf |
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 |