aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-01-06 04:16:03 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-01-06 04:16:03 +0000
commit2486c641e754d3fc6eebd5b0cb329d9d0f114ee2 (patch)
treed3c63b574083936caf140ab1496f83c89a3b07fb
parent74410f9362ed4c06276023588545a7e6c3ba0a3e (diff)
downloadsrc-2486c641e754d3fc6eebd5b0cb329d9d0f114ee2.tar.gz
src-2486c641e754d3fc6eebd5b0cb329d9d0f114ee2.zip
Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of
always building support into sendmail. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=311471
-rw-r--r--usr.sbin/sendmail/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile
index d7246cbef84b..3307bfe5a946 100644
--- a/usr.sbin/sendmail/Makefile
+++ b/usr.sbin/sendmail/Makefile
@@ -38,7 +38,7 @@ NIS= -DNIS
MAPS= -DMAP_REGEX -DDNSMAP
CFLAGS+= -I${SMDIR} -I${SENDMAIL_DIR}/include -I.
-CFLAGS+= ${DBMDEF} ${NIS} -DTCPWRAPPERS ${MAPS}
+CFLAGS+= ${DBMDEF} ${NIS} ${MAPS}
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DNETINET6
@@ -46,7 +46,7 @@ CFLAGS+= -DNETINET6
WARNS?= 0
-LIBADD= util wrap sm smutil
+LIBADD= util sm smutil
SRCS+= sm_os.h
CLEANFILES+=sm_os.h
@@ -57,6 +57,11 @@ CFLAGS+= -DSTARTTLS -D_FFR_TLS_1
LIBADD+= ssl crypto
.endif
+.if ${MK_TCP_WRAPPERS} != "no"
+CFLAGS+= -DTCPWRAPPERS
+LIBADD+= wrap
+.endif
+
# User customizations to the sendmail build environment
CFLAGS+=${SENDMAIL_CFLAGS}
DPADD+=${SENDMAIL_DPADD}