summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sendmail
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2000-10-24 16:04:56 +0000
committergshapiro <gshapiro@FreeBSD.org>2000-10-24 16:04:56 +0000
commita98dcfa204fc59a4a4944347061647956fdcdac1 (patch)
tree95d855335f88ac7b5942ea84cde31813621f84bc /usr.sbin/sendmail
parentb5115253f7ea30e852ef4167cb5b70138b64ae34 (diff)
downloadFreeBSD-src-a98dcfa204fc59a4a4944347061647956fdcdac1.zip
FreeBSD-src-a98dcfa204fc59a4a4944347061647956fdcdac1.tar.gz
Fix up the build for the STARTTLS version of sendmail (again). This method
mimics that of tcpdump in that for normal builds, sendmail will only be built once. For 'make release', it is built once for the bin dist and once for the crypto dist. This method also removes the need for two separate Makefiles (which could become out of sync). Suggested by: bde Assisted by: kris
Diffstat (limited to 'usr.sbin/sendmail')
-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 6e16f71..0f9d5ae 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}
OpenPOWER on IntegriCloud