aboutsummaryrefslogtreecommitdiff
path: root/secure/usr.sbin/sendmail/Makefile
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2000-10-13 03:20:43 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2000-10-13 03:20:43 +0000
commitfa54144cce7ef5673a901cba6be5519d8be69002 (patch)
tree386a8282e339c0a8a061e5dfb71a1989b90ac233 /secure/usr.sbin/sendmail/Makefile
parent931a725809596a3a78fb74afabce4d0ae7be3163 (diff)
downloadsrc-fa54144cce7ef5673a901cba6be5519d8be69002.tar.gz
src-fa54144cce7ef5673a901cba6be5519d8be69002.zip
Given that sendmail's STARTTLS support requires OpenSSL and the bootstrap
issues that brings, build the non-TLS version of sendmail in src/usr.sbin/sendmail and the TLS version in src/secure/usr.sbin/sendmail. This allows the TLS version to be part of the secure distribution when building a release.
Notes
Notes: svn path=/head/; revision=67052
Diffstat (limited to 'secure/usr.sbin/sendmail/Makefile')
-rw-r--r--secure/usr.sbin/sendmail/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/secure/usr.sbin/sendmail/Makefile b/secure/usr.sbin/sendmail/Makefile
index c82cd659a64a..200e00c70a6d 100644
--- a/secure/usr.sbin/sendmail/Makefile
+++ b/secure/usr.sbin/sendmail/Makefile
@@ -1,7 +1,7 @@
# @(#)Makefile 8.8 (Berkeley) 3/28/97
# $FreeBSD$
-SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
+SENDMAIL_DIR=${.CURDIR}/../../../contrib/sendmail
SMDIR= ${SENDMAIL_DIR}/src
.PATH: ${SMDIR}
@@ -34,16 +34,23 @@ MAN5= aliases.5
MAN8= sendmail.8
BINMODE=4555
-.if exists(${.OBJDIR}/../../lib/libsmutil)
-LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
+.if exists(${.OBJDIR}/../../../lib/libsmutil)
+LIBSMUTILDIR:= ${.OBJDIR}/../../../lib/libsmutil
.else
-LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
+LIBSMUTILDIR!= cd ${.CURDIR}/../../../lib/libsmutil; make -V .OBJDIR
.endif
LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
DPADD+= ${LIBSMUTIL}
LDADD+= ${LIBSMUTIL}
+.if !defined(NO_OPENSSL)
+# STARTTLS support
+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}