mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
sendmail -- TLS/SASL/SFIO enhancement:
This is a diff to the current port that implements SFIO and SASL options support in addition to TLS. It makes the sendmail port conform more closely to the available documentation for such security enhancements. ken@nova.org - renamed option from SENDMAIL_WITH_TSL to SENDMAIL_WITH_TLS - new option SENDMAIL_WITH_SFIO - fixed bug in site.config.m4.sasl PR: 25661 Submitted by: ken@nova.org
This commit is contained in:
parent
2bafa6b6e5
commit
ec702c06b2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39555
@ -19,29 +19,36 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
WCONF= ${WRKSRC}/devtools/Site
|
||||
PLIST= ${WRKDIR}/.PLIST.more
|
||||
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
USE_OPENSSL= yes
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SASL)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SFIO)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libsfio.a:${PORTSDIR}/devel/sfio
|
||||
.endif
|
||||
|
||||
.if exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4 > ${WCONF}/site.config.m4
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
${CAT} ${FILESDIR}/site.config.m4.tls >> ${WCONF}/site.config.m4
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SASL)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.sasl >>${WCONF}/site.config.m4
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SFIO)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.sfio >>${WCONF}/site.config.m4
|
||||
.endif
|
||||
.else
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4.pre4 > ${WCONF}/site.config.m4
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.ssl >> ${WCONF}/site.config.m4
|
||||
.endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-I%%LOCALBASE%%/include/sasl')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-DDSASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_UNSAFE_SASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_UNSAFE_SASL -D_FFR_SASL_OPTS')
|
||||
APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
|
||||
APPENDDEF(`conf_sendmail_LIBS', `-lsasl')
|
||||
|
6
mail/sendmail-old/files/site.config.m4.sfio
Normal file
6
mail/sendmail-old/files/site.config.m4.sfio
Normal file
@ -0,0 +1,6 @@
|
||||
define(`confSTDIO_TYPE', `portable')
|
||||
APPENDDEF(`confENVDEF', `-U_FFR_TLS_TOREK -DSFIO')
|
||||
APPENDDEF(`confINCDIRS', `-I%%LOCALBASE%%/include/sfio')
|
||||
APPENDDEF(`confINCDIRS', `-I%%LOCALBASE%%/include')
|
||||
APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
|
||||
APPENDDEF(`confLIBS', `-lsfio')
|
@ -19,29 +19,36 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
WCONF= ${WRKSRC}/devtools/Site
|
||||
PLIST= ${WRKDIR}/.PLIST.more
|
||||
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
USE_OPENSSL= yes
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SASL)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SFIO)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libsfio.a:${PORTSDIR}/devel/sfio
|
||||
.endif
|
||||
|
||||
.if exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4 > ${WCONF}/site.config.m4
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
${CAT} ${FILESDIR}/site.config.m4.tls >> ${WCONF}/site.config.m4
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SASL)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.sasl >>${WCONF}/site.config.m4
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SFIO)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.sfio >>${WCONF}/site.config.m4
|
||||
.endif
|
||||
.else
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4.pre4 > ${WCONF}/site.config.m4
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.ssl >> ${WCONF}/site.config.m4
|
||||
.endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-I%%LOCALBASE%%/include/sasl')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-DDSASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_UNSAFE_SASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_UNSAFE_SASL -D_FFR_SASL_OPTS')
|
||||
APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
|
||||
APPENDDEF(`conf_sendmail_LIBS', `-lsasl')
|
||||
|
6
mail/sendmail/files/site.config.m4.sfio
Normal file
6
mail/sendmail/files/site.config.m4.sfio
Normal file
@ -0,0 +1,6 @@
|
||||
define(`confSTDIO_TYPE', `portable')
|
||||
APPENDDEF(`confENVDEF', `-U_FFR_TLS_TOREK -DSFIO')
|
||||
APPENDDEF(`confINCDIRS', `-I%%LOCALBASE%%/include/sfio')
|
||||
APPENDDEF(`confINCDIRS', `-I%%LOCALBASE%%/include')
|
||||
APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
|
||||
APPENDDEF(`confLIBS', `-lsfio')
|
@ -19,29 +19,36 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
WCONF= ${WRKSRC}/devtools/Site
|
||||
PLIST= ${WRKDIR}/.PLIST.more
|
||||
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
USE_OPENSSL= yes
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SASL)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SFIO)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libsfio.a:${PORTSDIR}/devel/sfio
|
||||
.endif
|
||||
|
||||
.if exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4 > ${WCONF}/site.config.m4
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
${CAT} ${FILESDIR}/site.config.m4.tls >> ${WCONF}/site.config.m4
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SASL)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.sasl >>${WCONF}/site.config.m4
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SFIO)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.sfio >>${WCONF}/site.config.m4
|
||||
.endif
|
||||
.else
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4.pre4 > ${WCONF}/site.config.m4
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.ssl >> ${WCONF}/site.config.m4
|
||||
.endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-I%%LOCALBASE%%/include/sasl')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-DDSASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_UNSAFE_SASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_UNSAFE_SASL -D_FFR_SASL_OPTS')
|
||||
APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
|
||||
APPENDDEF(`conf_sendmail_LIBS', `-lsasl')
|
||||
|
6
mail/sendmail811/files/site.config.m4.sfio
Normal file
6
mail/sendmail811/files/site.config.m4.sfio
Normal file
@ -0,0 +1,6 @@
|
||||
define(`confSTDIO_TYPE', `portable')
|
||||
APPENDDEF(`confENVDEF', `-U_FFR_TLS_TOREK -DSFIO')
|
||||
APPENDDEF(`confINCDIRS', `-I%%LOCALBASE%%/include/sfio')
|
||||
APPENDDEF(`confINCDIRS', `-I%%LOCALBASE%%/include')
|
||||
APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
|
||||
APPENDDEF(`confLIBS', `-lsfio')
|
@ -19,29 +19,36 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
WCONF= ${WRKSRC}/devtools/Site
|
||||
PLIST= ${WRKDIR}/.PLIST.more
|
||||
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
USE_OPENSSL= yes
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SASL)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SFIO)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libsfio.a:${PORTSDIR}/devel/sfio
|
||||
.endif
|
||||
|
||||
.if exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4 > ${WCONF}/site.config.m4
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
${CAT} ${FILESDIR}/site.config.m4.tls >> ${WCONF}/site.config.m4
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SASL)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.sasl >>${WCONF}/site.config.m4
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_SFIO)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.sfio >>${WCONF}/site.config.m4
|
||||
.endif
|
||||
.else
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4.pre4 > ${WCONF}/site.config.m4
|
||||
.if defined(SENDMAIL_WITH_TSL)
|
||||
.if defined(SENDMAIL_WITH_TLS)
|
||||
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${FILESDIR}/site.config.m4.ssl >> ${WCONF}/site.config.m4
|
||||
.endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-I%%LOCALBASE%%/include/sasl')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-DDSASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_UNSAFE_SASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_UNSAFE_SASL -D_FFR_SASL_OPTS')
|
||||
APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
|
||||
APPENDDEF(`conf_sendmail_LIBS', `-lsasl')
|
||||
|
6
mail/sendmail812/files/site.config.m4.sfio
Normal file
6
mail/sendmail812/files/site.config.m4.sfio
Normal file
@ -0,0 +1,6 @@
|
||||
define(`confSTDIO_TYPE', `portable')
|
||||
APPENDDEF(`confENVDEF', `-U_FFR_TLS_TOREK -DSFIO')
|
||||
APPENDDEF(`confINCDIRS', `-I%%LOCALBASE%%/include/sfio')
|
||||
APPENDDEF(`confINCDIRS', `-I%%LOCALBASE%%/include')
|
||||
APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
|
||||
APPENDDEF(`confLIBS', `-lsfio')
|
Loading…
Reference in New Issue
Block a user