ports/132569: New version of mailfront

Alex Povolotsky tarkhil at over.ru
Thu Mar 12 09:30:03 UTC 2009


>Number:         132569
>Category:       ports
>Synopsis:       New version of mailfront
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 12 09:30:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Alex Povolotsky
>Release:        6.3-RELEASE
>Organization:
>Environment:
FreeBSD webdev.countrycom.ru 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:45 UTC 2008     root at dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386

>Description:
1. DW_AUTH patch for mailfront is obsoleted years ago, it does not compile, and it's functionality is already in main source

2. I'm working on some improvements on mailfront (rewriting obsolete STARTTLS patches, and adding ability to check DNS name against regexps), the work is based on current version of mailfront
>How-To-Repeat:

>Fix:
Patch to mailfront's port is attached

Patch attached with submission follows:

diff -Ncr mailfront.orig/Makefile mailfront/Makefile
*** mailfront.orig/Makefile	Wed Mar 11 20:04:03 2009
--- mailfront/Makefile	Thu Mar 12 12:08:11 2009
***************
*** 6,13 ****
  #
  
  PORTNAME=	mailfront
! PORTVERSION=	1.11
! PORTREVISION=	2
  CATEGORIES=	mail
  MASTER_SITES=	http://untroubled.org/${PORTNAME}/ \
  		${MASTER_SITE_LOCAL}
--- 6,12 ----
  #
  
  PORTNAME=	mailfront
! PORTVERSION=	1.12
  CATEGORIES=	mail
  MASTER_SITES=	http://untroubled.org/${PORTNAME}/ \
  		${MASTER_SITE_LOCAL}
***************
*** 31,43 ****
  
  DOCS=		NEWS README TODO *.html
  
- OPTIONS=	DW_AUTH "Include Dale Woolridge's auth patch" off
  
  .include <bsd.port.pre.mk>
  
- .if defined(WITH_DW_AUTH)
- EXTRA_PATCHES+=	${FILESDIR}/extra-patch-mailfront-0.92-dw-auth
- .endif
  
  do-configure:
  	${ECHO_CMD} "${PREFIX}/bin"	> ${WRKSRC}/conf-bin
--- 30,38 ----
diff -Ncr mailfront.orig/distinfo mailfront/distinfo
*** mailfront.orig/distinfo	Fri Nov  7 13:19:37 2008
--- mailfront/distinfo	Thu Mar 12 12:08:54 2009
***************
*** 1,3 ****
! MD5 (mailfront-1.11.tar.gz) = 25f5d9029335c29bc541e2c17e1afc61
! SHA256 (mailfront-1.11.tar.gz) = fc78baad4ef064f9b3e2f4e98a0a0a8d9c9391fc3e3fddb5710df4a668d5d803
! SIZE (mailfront-1.11.tar.gz) = 102211
--- 1,3 ----
! MD5 (mailfront-1.12.tar.gz) = f28b2a1325e542b578d82e7153a1d2d2
! SHA256 (mailfront-1.12.tar.gz) = 23cf29608a32c22995e4c1b847875b4c43bc17b6f4ac9ee47e780f4cbd3dd25a
! SIZE (mailfront-1.12.tar.gz) = 104598
diff -Ncr mailfront.orig/files/extra-patch-mailfront-0.92-dw-auth mailfront/files/extra-patch-mailfront-0.92-dw-auth
*** mailfront.orig/files/extra-patch-mailfront-0.92-dw-auth	Tue Oct 25 21:41:47 2005
--- mailfront/files/extra-patch-mailfront-0.92-dw-auth	Thu Jan  1 03:00:00 1970
***************
*** 1,21 ****
- Index: mailrules.c
- ===================================================================
- --- mailrules.c	(revision 326)
- +++ mailrules.c	(working copy)
- @@ -296,7 +296,7 @@
-    struct rule* r;
-    unsigned long databytes;
-    
- -  if (*l != 'k' && *l != 'd' && *l != 'z' && *l != 'p' && *l != 'n') return 0;
- +  if (*l != 'k' && *l != 'd' && *l != 'z' && *l != 'p' && *l != 'n' && *l != 'a') return 0;
-    r = alloc_rule();
-    r->code = *l++;
-  
- @@ -423,6 +423,7 @@
-    case 'k': code = 250; defmsg = "OK"; break;
-    case 'd': code = 553; defmsg = "Rejected"; break;
-    case 'z': code = 451; defmsg = "Deferred"; break;
- +  case 'a': code = 553; defmsg = "Authenticate first"; if (authenticated) return 0; break;
-    default:  code = 451; defmsg = "Temporary failure"; break;
-    }
-  
--- 0 ----
diff -Ncr mailfront.orig/pkg-plist mailfront/pkg-plist
*** mailfront.orig/pkg-plist	Fri Nov 14 20:33:59 2008
--- mailfront/pkg-plist	Thu Mar 12 12:16:52 2009
***************
*** 1,4 ****
- @comment $FreeBSD: ports/mail/mailfront/pkg-plist,v 1.11 2008/11/14 17:33:59 araujo Exp $
  bin/imapfront-auth
  bin/mailfront
  bin/pop3front-auth
--- 1,3 ----
***************
*** 28,35 ****
  libexec/mailfront/protocol-qmqp.so
  libexec/mailfront/protocol-qmtp.so
  libexec/mailfront/protocol-smtp.so
- @dirrmtry libexec/mailfront
- @dirrm include/mailfront
  %%PORTDOCS%%%%DOCSDIR%%/NEWS
  %%PORTDOCS%%%%DOCSDIR%%/README
  %%PORTDOCS%%%%DOCSDIR%%/TODO
--- 27,32 ----
***************
*** 43,51 ****
  %%PORTDOCS%%%%DOCSDIR%%/plugin-accept-recipient.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-accept-sender.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-accept.html
- %%PORTDOCS%%%%DOCSDIR%%/plugin-api.html
- %%PORTDOCS%%%%DOCSDIR%%/plugin-template.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-add-received.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-check-fqdn.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-clamav.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-counters.html
--- 40,47 ----
  %%PORTDOCS%%%%DOCSDIR%%/plugin-accept-recipient.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-accept-sender.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-accept.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-add-received.html
+ %%PORTDOCS%%%%DOCSDIR%%/plugin-api.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-check-fqdn.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-clamav.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-counters.html
***************
*** 57,65 ****
  %%PORTDOCS%%%%DOCSDIR%%/plugin-reject.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-relayclient.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-require-auth.html
  %%PORTDOCS%%%%DOCSDIR%%/pop3front.html
  %%PORTDOCS%%%%DOCSDIR%%/protocol-qmqp.html
  %%PORTDOCS%%%%DOCSDIR%%/protocol-qmtp.html
  %%PORTDOCS%%%%DOCSDIR%%/protocol-smtp.html
  %%PORTDOCS%%%%DOCSDIR%%/std-handle.html
! %%PORTDOCS%%@dirrm %%DOCSDIR%%
--- 53,64 ----
  %%PORTDOCS%%%%DOCSDIR%%/plugin-reject.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-relayclient.html
  %%PORTDOCS%%%%DOCSDIR%%/plugin-require-auth.html
+ %%PORTDOCS%%%%DOCSDIR%%/plugin-template.html
  %%PORTDOCS%%%%DOCSDIR%%/pop3front.html
  %%PORTDOCS%%%%DOCSDIR%%/protocol-qmqp.html
  %%PORTDOCS%%%%DOCSDIR%%/protocol-qmtp.html
  %%PORTDOCS%%%%DOCSDIR%%/protocol-smtp.html
  %%PORTDOCS%%%%DOCSDIR%%/std-handle.html
! @dirrm %%PORTDOCS%%%%DOCSDIR%%
! @dirrm libexec/mailfront
! @dirrm include/mailfront


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list