Date: Sat, 10 Mar 2001 17:47:57 -0500 (EST) From: ken@nova.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/25661: Port: sendmail -- TLS/SASL/SFIO enhancement Message-ID: <200103102247.f2AMlvi38271@alpha.nova.org>
next in thread | raw e-mail | index | archive | help
>Number: 25661 >Category: ports >Synopsis: TLS/SASL/TLS enhancement of sendmail port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Mar 10 14:50:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Ken Beaty >Release: FreeBSD 4.2-RELEASE i386 >Organization: Fairfax Public Access/NVIAC >Environment: Small, non-profit ISP supporting diverse community and interests. Requires TLS and AUTH support for sendmail. >Description: Current port does adequate job, but does not implement SFIO as recommended by Sendmail, Inc. Also, current port does not implemnet SASL options which are desired to enhance security. >How-To-Repeat: N/A >Fix: 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. NOTE: New file: files/site.config.m4.sfio. Regards and thanks for your work! diff -ruN sendmail.bak/Makefile sendmail/Makefile --- sendmail.bak/Makefile Thu Feb 1 20:11:21 2001 +++ sendmail/Makefile Sat Mar 10 17:14:12 2001 @@ -1,6 +1,7 @@ # New ports collection makefile for: sendmail # Date created: 20 Apr 2000 # Whom: dirk.meyer@dinoex.sub.org +# Modified for SFIO and SASL/TLS by ken@nova.org # # $FreeBSD: ports/mail/sendmail/Makefile,v 1.5 2001/01/25 14:34:44 ijliao Exp $ # @@ -19,29 +20,36 @@ 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 diff -ruN sendmail.bak/files/site.config.m4.sasl sendmail/files/site.config.m4.sasl --- sendmail.bak/files/site.config.m4.sasl Sun Feb 11 15:34:24 2001 +++ sendmail/files/site.config.m4.sasl Sat Mar 10 17:21:15 2001 @@ -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') diff -ruN sendmail.bak/files/site.config.m4.sfio sendmail/files/site.config.m4.sfio --- sendmail.bak/files/site.config.m4.sfio Wed Dec 31 19:00:00 1969 +++ sendmail/files/site.config.m4.sfio Mon Feb 12 22:43:14 2001 @@ -0,0 +1,6 @@ +define(`confSTDIO_TYPE', `portable') +APPENDDEF(`confINCDIRS', `-I%%LOCALBASE%%/include/sfio') +APPENDDEF(`confINCDIRS', `-I%%LOCALBASE%%/include') +APPENDDEF(`confENVDEF', `-U_FFR_TLS_TOREK -DSFIO') +APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib') +APPENDDEF(`confLIBS', `-lsfio') >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103102247.f2AMlvi38271>