View | Details | Raw Unified | Return to bug 28361
Collapse All | Expand All

(-)Makefile (-1 / +17 lines)
Lines 55-66 Link Here
55
# This is the directory where the sendmail configuration files are
55
# This is the directory where the sendmail configuration files are
56
# located.
56
# located.
57
#
57
#
58
STARTTLS_SUPPORT=	false
58
.if exists(/usr/share/sendmail/cf)
59
.if exists(/usr/share/sendmail/cf)
59
SENDMAIL_CF_DIR?=	/usr/share/sendmail/cf
60
SENDMAIL_CF_DIR?=	/usr/share/sendmail/cf
61
.if exists(/usr/lib/libssl.so)
62
STARTTLS_SUPPORT=	true
63
.endif
60
.elif exists(/usr/src/contrib/sendmail/cf)
64
.elif exists(/usr/src/contrib/sendmail/cf)
61
SENDMAIL_CF_DIR?=	/usr/src/contrib/sendmail/cf
65
SENDMAIL_CF_DIR?=	/usr/src/contrib/sendmail/cf
66
.if exists(../../secure)
67
STARTTLS_SUPPORT=	true
68
.endif
62
.endif
69
.endif
63
70
71
M4FLAGS=	-D_CF_DIR_=${SENDMAIL_CF_DIR}/
72
64
#
73
#
65
# The pid is used to stop and restart the running daemon.
74
# The pid is used to stop and restart the running daemon.
66
#
75
#
Lines 74-79 Link Here
74
M4?=			/usr/bin/m4
83
M4?=			/usr/bin/m4
75
KILL?=			/bin/kill
84
KILL?=			/bin/kill
76
85
86
# STARTTLS support
87
.if (${STARTTLS_SUPPORT} == "true") && \
88
	!defined(NOCRYPT) && !defined(NOSECURE) && \
89
	!defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
90
M4FLAGS+=	-D_FFR_TLS_O_T
91
.endif
92
77
# Set a reasonable default
93
# Set a reasonable default
78
.MAIN:	all
94
.MAIN:	all
79
95
Lines 124-130 Link Here
124
.SUFFIXES:	.cf .mc
140
.SUFFIXES:	.cf .mc
125
141
126
.mc.cf:		${M4FILES}
142
.mc.cf:		${M4FILES}
127
	${M4} -D_CF_DIR_=${SENDMAIL_CF_DIR}/ ${SENDMAIL_CF_DIR}/m4/cf.m4 \
143
	${M4} ${M4FLAGS} ${SENDMAIL_CF_DIR}/m4/cf.m4 \
128
		${@:R}.mc > ${.TARGET}
144
		${@:R}.mc > ${.TARGET}
129
145
130
#
146
#

Return to bug 28361