From lioux@uol.com.br  Mon Sep  6 03:22:33 2004
Return-Path: <lioux@uol.com.br>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 523B616A4D0
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Sep 2004 03:22:33 +0000 (GMT)
Received: from vette.gigo.com (vette.gigo.com [216.218.228.114])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3B68643D49
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Sep 2004 03:22:33 +0000 (GMT)
	(envelope-from lioux@uol.com.br)
Received: from 200.140.2.239 (200-140-002-239.pvoce205.dial.brasiltelecom.net.br [200.140.2.239])
	by vette.gigo.com (Postfix) with ESMTP id 940AA19E
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  5 Sep 2004 20:22:32 -0700 (PDT)
Received: (qmail 23169 invoked by uid 1001); 6 Sep 2004 03:13:41 -0000
Message-Id: <20040906031341.23082.qmail@exxodus.fedaykin.here>
Date: 6 Sep 2004 03:13:41 -0000
From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
Reply-To: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sergei@FreeBSD.org
Subject: [PATCH] port mail/serialmail SMTP AUTH
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         71414
>Category:       ports
>Synopsis:       [PATCH] port mail/serialmail SMTP AUTH
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sergei
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 06 03:30:25 GMT 2004
>Closed-Date:    Tue Oct 12 07:35:59 GMT 2004
>Last-Modified:  Tue Oct 12 07:35:59 GMT 2004
>Originator:     Mario Sergio Fujikawa Ferreira
>Release:        FreeBSD 5.3-BETA3 i386
>Organization:
>Environment:
System: FreeBSD exxodus.here.here 5.3-BETA3 FreeBSD 5.3-BETA3 #2: Sat Sep 4 15:24:14 BRT 2004 root@exxodus.here.here:/usr/obj/usr/src/sys/LIOUX i386


>Description:

	I made a little patch for the serialmail port. This adds
CRAM-MD5, PLAIN and LOGIN authentication support to serialmail.
The patch is referenced in the qmail page http://www.qmail.org/

        More information on the patch used can be found at

http://www.ingorohloff.de/soft/

        I've been successfully using this patch for a while now.
The email you're seeing has been sent using it. :)

        I hope you find this useful. Let me know if you need
anything.

>How-To-Repeat:
	n.a.
>Fix:

--- patch-serialmail begins here ---
diff -ruN /usr/ports/mail/serialmail/Makefile serialmail/Makefile
--- /usr/ports/mail/serialmail/Makefile	Thu Oct 23 03:42:46 2003
+++ serialmail/Makefile	Fri Aug  6 00:21:26 2004
@@ -26,6 +26,8 @@
 
 ALL_TARGET=	it
 
+OPTIONS=	AUTH "Add CRAM-MD5, PLAIN and LOGIN authentication" OFF
+
 PROGRAMS=	serialqmtp serialsmtp maildirserial setlock
 SCRIPTS=	maildirqmtp maildirsmtp
 MAN1=		maildirqmtp.1 maildirserial.1 maildirsmtp.1 serialqmtp.1 \
@@ -48,4 +50,12 @@
 	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_AUTH)
+PATCH_SITES=	http://www.ingorohloff.de/soft/
+PATCHFILES=	serialmail-auth.patch
+PATCH_DIST_STRIP=	-p1
+.endif
+
+.include <bsd.port.post.mk>
diff -ruN /usr/ports/mail/serialmail/distinfo serialmail/distinfo
--- /usr/ports/mail/serialmail/distinfo	Wed Jul 28 21:34:36 2004
+++ serialmail/distinfo	Thu Aug  5 23:36:28 2004
@@ -1,2 +1,4 @@
 MD5 (serialmail-0.75.tar.gz) = e6a3049863ae8577b1780fcd9fbc98a9
 SIZE (serialmail-0.75.tar.gz) = 55079
+MD5 (serialmail-auth.patch) = 71eab909047c7151d42ce5bb6757f272
+SIZE (serialmail-auth.patch) = 24469
--- patch-serialmail ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sergei 
Responsible-Changed-By: lioux 
Responsible-Changed-When: Mon Sep 6 03:42:14 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71414 
State-Changed-From-To: open->analyzed 
State-Changed-By: sergei 
State-Changed-When: Mon Sep 13 08:24:04 GMT 2004 
State-Changed-Why:  
The patch looks good - I will commit it after the freeze is over. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71414 
State-Changed-From-To: analyzed->closed 
State-Changed-By: sergei 
State-Changed-When: Tue Oct 12 07:35:53 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71414 
>Unformatted:
