Subject: pkg/13316: patch on mail/sendmail for providing SASL support if wanted
To: None <gnats-bugs@gnats.netbsd.org>
From: Stoned Elipot <seb@pbox.org>
List: netbsd-bugs
Date: 06/27/2001 01:54:51
>Number: 13316
>Category: pkg
>Synopsis: patch on mail/sendmail for providing SASL support if wanted
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jun 26 16:53:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Stoned Elipot
>Release: pkgsrc-current
>Organization:
SCRIPT, Paris VII University, France
>Environment:
System: NetBSD nef 1.4.1 NetBSD 1.4.1 (GENERIC_SCSI3) #1: Mon Aug 9 02:34:40 PDT 1999 mrg@sun4690:/work/tmp/mrg/src/sys/arch/sparc/compile/GENERIC_SCSI3 sparc
System: NetBSD bandsept 1.5 NetBSD 1.5 (BANDSEPT) #0: Mon Dec 18 14:43:36 CET 2000 seb@bandsept:/site/a/src/sys-nbsd15/arch/sparc/compile/BANDSEPT sparc
>Description:
A litte patch on pkgsrc/mail/sendmail/Makefile and a new file
(site.config.m4-sasl) in pkgsrc/mail/sendmail/files allow to build
sendmail with support for SASL if USE_SASL make variable is defined.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/sendmail/Makefile,v
retrieving revision 1.37
diff -u -r1.37 Makefile
--- Makefile 2001/05/29 03:31:26 1.37
+++ Makefile 2001/06/26 23:47:28
@@ -54,6 +54,9 @@
.if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES
USE_SSL= yes
.endif
+.if defined(USE_SASL) && ${USE_SASL} == YES
+DEPENDS+= cyrus-sasl>=1.5.24nb3:../../security/cyrus-sasl
+.endif
post-patch:
${CP} ${FILESDIR}/site.config.m4 ${SITECONFIG}
@@ -83,6 +86,10 @@
.if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES
${CAT} ${FILESDIR}/site.config.m4-starttls >> ${SITECONFIG}
${ECHO} -n ' STARTTLS' >> ${DESCR_SRC}
+.endif
+.if defined(USE_SASL) && ${USE_SASL} == YES
+ ${CAT} ${FILESDIR}/site.config.m4-sasl >> ${SITECONFIG}
+ ${ECHO} -n ' SASL' >> ${DESCR_SRC}
.endif
${ECHO} >> ${DESCR_SRC}
=============
pkgsrc/mail/sendmail/files/site.config.m4-sasl
-
# enable SASL
APPENDDEF(`confENVDEF', `-I${LOCALBASE}/include')
APPENDDEF(`confENVDEF', `-DSASL -D_FFR_UNSAFE_SASL')
APPENDDEF(`confLIBS', `-L${LOCALBASE}/lib')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl')
>Release-Note:
>Audit-Trail:
>Unformatted: