aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sendmail/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sendmail/Makefile')
-rw-r--r--usr.sbin/sendmail/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile
index 6e16f71b4962..0f9d5aeb351c 100644
--- a/usr.sbin/sendmail/Makefile
+++ b/usr.sbin/sendmail/Makefile
@@ -44,6 +44,15 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMUTIL}
LDADD+= ${LIBSMUTIL}
+.if exists(../../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && \
+ !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
+# STARTTLS support
+DISTRIBUTION= crypto
+CFLAGS+= -DSTARTTLS -D_FFR_TLS_O_T -D_FFR_TLS_1 -D_FFR_TLS_TOREK
+LDADD+= -lssl -lcrypto
+DPADD+= ${LIBSSL} ${LIBCRYPTO}
+.endif
+
# User customizations to the sendmail build environment
CFLAGS+=${SENDMAIL_CFLAGS}
DPADD+=${SENDMAIL_DPADD}