Honor NOINET6 and disable IPv6 support in libmilter and sendmail if it
is set. MFC after: 4 days
This commit is contained in:
parent
866046f5a6
commit
0c56527f65
@ -4,9 +4,13 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
||||
.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm
|
||||
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
||||
CFLAGS+=-DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf
|
||||
CFLAGS+=-DNOT_SENDMAIL -Dsm_snprintf=snprintf
|
||||
CFLAGS+=-D_THREAD_SAFE
|
||||
|
||||
.if !defined(NOINET6)
|
||||
CFLAGS+=-DNETINET6
|
||||
.endif
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
CFLAGS+=${SENDMAIL_CFLAGS}
|
||||
|
||||
|
@ -4,7 +4,11 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
||||
.PATH: ${SENDMAIL_DIR}/libsm
|
||||
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
||||
CFLAGS+=-DNETINET6 -DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
|
||||
CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
|
||||
|
||||
.if !defined(NOINET6)
|
||||
CFLAGS+=-DNETINET6
|
||||
.endif
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
CFLAGS+=${SENDMAIL_CFLAGS}
|
||||
|
@ -32,7 +32,11 @@ MAPS= -DMAP_REGEX -DDNSMAP
|
||||
|
||||
CSTD?= c89
|
||||
CFLAGS+= -I${SMDIR} -I${SENDMAIL_DIR}/include -I.
|
||||
CFLAGS+= ${DBMDEF} ${NIS} -DMILTER -DNETINET6 -DTCPWRAPPERS ${MAPS}
|
||||
CFLAGS+= ${DBMDEF} ${NIS} -DMILTER -DTCPWRAPPERS ${MAPS}
|
||||
|
||||
.if !defined(NOINET6)
|
||||
CFLAGS+= -DNETINET6
|
||||
.endif
|
||||
|
||||
DPADD= ${LIBUTIL} ${LIBWRAP}
|
||||
LDADD= -lutil -lwrap
|
||||
|
Loading…
Reference in New Issue
Block a user