NetBSD Problem Report #13316

Received: from nef.pbox.org (193.104.112.170)
  by mail.netbsd.org with SMTP; 26 Jun 2001 23:52:46 -0000
Message-Id: <200106262354.f5QNspX01254@nef.pbox.org>
Date: Wed, 27 Jun 2001 01:54:51 +0200 (CEST)
From: Stoned Elipot <seb@pbox.org>
Reply-To: seb@pbox.org
To: gnats-bugs@gnats.netbsd.org
Cc: seb@pbox.org
Subject: patch on mail/sendmail for providing SASL support if wanted
X-Send-Pr-Version: 3.95

>Number:         13316
>Category:       pkg
>Synopsis:       patch on mail/sendmail for providing SASL support if wanted
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tron
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 26 23:53:00 +0000 2001
>Closed-Date:    Sun Jun 23 12:16:03 +0000 2002
>Last-Modified:  Sun Jun 23 12:16:03 +0000 2002
>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:
Responsible-Changed-From-To: pkg-manager->tron 
Responsible-Changed-By: tron 
Responsible-Changed-When: Mon Jun 17 14:10:04 PDT 2002 
Responsible-Changed-Why:  
I'll handle this PR. 
State-Changed-From-To: open->closed 
State-Changed-By: tron 
State-Changed-When: Sun Jun 23 05:15:26 PDT 2002 
State-Changed-Why:  
I've buildlinkified your changes and committed them. Thanks for the suggestion. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.