Bug 174742 - mail/mailfront: patch update to mailfront-1.21
Summary: mail/mailfront: patch update to mailfront-1.21
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bryan Drewery
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-27 17:50 UTC by Uffe Jakobsen
Modified: 2013-02-12 17:40 UTC (History)
0 users

See Also:


Attachments
file.diff (773 bytes, patch)
2012-12-27 17:50 UTC, Uffe Jakobsen
no flags Details | Diff
freebsd-ports-mail-mailfront-1.21_1.patch (1.29 KB, patch)
2012-12-27 20:59 UTC, Uffe Jakobsen
no flags Details | Diff
freebsd-ports-mail-mailfront-1.21_2.patch (2.06 KB, patch)
2012-12-27 22:28 UTC, Uffe Jakobsen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Uffe Jakobsen 2012-12-27 17:50:00 UTC
This patch updates port mail/mailfront from version 1.18 to version 1.21

Changes in version 1.21

- Added controls for pop3front-auth to limit the number of USER commands
  and authentication failures allowed per session.

- Added control to imapfront-auth to limit the number of authentication
  failures allowed per session.

- Modified the clamav plugin to use the newer INSTREAM protocol.

- imapfront-auth now sets $DOVECONF_ENV in Dovecot mode in order to
  avoid having Dovecot imapd reset it through doveconf.

Changes in version 1.20

- Added Lua scripting plugin (optional, build with 'make lua').

- Modified the qmail backend to evaluate $QMAILQUEUE as late as possible.
  This allows more options for changing $QMAILQUEUE in plugins.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-12-27 17:50:08 UTC
Maintainer of mail/mailfront,

Please note that PR ports/174742 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/174742

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-12-27 17:50:09 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Uffe Jakobsen 2012-12-27 20:59:05 UTC
Wrong patch - the attached patch has proper lua plugin support.

/Uffe

Comment 4 Uffe Jakobsen 2012-12-27 22:28:31 UTC
Not exactly my day - forgot to add lua plugin into package - sorry

New patch attached

/Uffe
Comment 5 Uffe Jakobsen 2013-02-11 19:21:26 UTC
Any progress with this one ?
Comment 6 Bryan Drewery freebsd_committer freebsd_triage 2013-02-11 19:39:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bdrewery

I'll take it.
Comment 7 dfilter service freebsd_committer freebsd_triage 2013-02-12 17:38:19 UTC
Author: bdrewery
Date: Tue Feb 12 17:38:10 2013
New Revision: 312122
URL: http://svnweb.freebsd.org/changeset/ports/312122

Log:
  - Update to 1.21 [1]
  - Add support for LUA [1]
  - Trim header
  - Remove unneeded QMAIL_PREFIX (pulled in from bsd.mail.mk already)
  - Remove ABI version from LIB_DEPENDS
  - Convert NOPORTDOCS -> DOCS
  
  PR:		ports/174742 [1] (based on)
  Submitted by:	Uffe Jakobsen <uffe@uffe.org> [1]
  Approved by:	maintainer timeout

Modified:
  head/mail/mailfront/Makefile
  head/mail/mailfront/distinfo
  head/mail/mailfront/pkg-plist   (contents, props changed)

Modified: head/mail/mailfront/Makefile
==============================================================================
--- head/mail/mailfront/Makefile	Tue Feb 12 16:32:56 2013	(r312121)
+++ head/mail/mailfront/Makefile	Tue Feb 12 17:38:10 2013	(r312122)
@@ -1,12 +1,8 @@
-# New ports collection makefile for:	mailfront
-# Date created:		03 Mar 2003
-# Whom:			Sergei Kolobov <sergei@kolobov.com>
-#
+# Created by: Sergei Kolobov <sergei@kolobov.com>
 # $FreeBSD$
-#
 
 PORTNAME=	mailfront
-PORTVERSION=	1.18
+PORTVERSION=	1.21
 CATEGORIES=	mail
 MASTER_SITES=	http://untroubled.org/${PORTNAME}/ \
 		http://untroubled.org/${PORTNAME}/archive/
@@ -14,13 +10,14 @@ MASTER_SITES=	http://untroubled.org/${PO
 MAINTAINER=	tarkhil@over.ru
 COMMENT=	Mail server network protocol front-ends
 
-LIB_DEPENDS=	cvm-v2client.2:${PORTSDIR}/security/cvm
+LIB_DEPENDS=	cvm-v2client:${PORTSDIR}/security/cvm
+
+OPTIONS_DEFINE=	LUA
 
 WANT_QMAIL=	yes
-QMAIL_PREFIX?=	/var/qmail
 CFLAGS+=	-I${CVM_INC}
 CFLAGS_SO=	${CFLAGS} -fPIC -shared -L${CVM_LIB}
-LDFLAGS+=	-g -L${CVM_LIB} -rdynamic
+LDFLAGS+=	-g -L${CVM_LIB}
 BGLIBS_INC=	${LOCALBASE}/include/bglibs
 BGLIBS_LIB=	${LOCALBASE}/lib/bglibs
 CVM_INC=	${LOCALBASE}/include
@@ -31,6 +28,21 @@ DOCS=		NEWS README TODO *.html
 
 .include <bsd.port.pre.mk>
 
+ALL_TARGET=	all
+
+.if ${PORT_OPTIONS:MLUA}
+ALL_TARGET+=	lua
+USE_LUA=	yes
+CFLAGS+=	-I${LUA_INCDIR}
+CFLAGS_SO+=	-L${LUA_LIBDIR}
+LDFLAGS+=	-L${LUA_LIBDIR}
+PLIST_SUB+=	LUA=""
+.else
+PLIST_SUB+=	LUA="@comment "
+.endif
+
+LDFLAGS+=	-rdynamic
+
 do-configure:
 	${ECHO_CMD} "${PREFIX}/bin"	> ${WRKSRC}/conf-bin
 	${ECHO_CMD} "${PREFIX}/include"	> ${WRKSRC}/conf-include
@@ -42,7 +54,7 @@ do-configure:
 	${ECHO_CMD} "${BGLIBS_LIB}"	> ${WRKSRC}/conf-bglibs
 	${ECHO_CMD} "${QMAIL_PREFIX}"	> ${WRKSRC}/conf-qmail
 
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 post-install:
 	@${MKDIR} ${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}

Modified: head/mail/mailfront/distinfo
==============================================================================
--- head/mail/mailfront/distinfo	Tue Feb 12 16:32:56 2013	(r312121)
+++ head/mail/mailfront/distinfo	Tue Feb 12 17:38:10 2013	(r312122)
@@ -1,2 +1,2 @@
-SHA256 (mailfront-1.18.tar.gz) = 18d2815949f6126fa4b6a2496c07121e13b89db0d0847538c7c6746c6f8db896
-SIZE (mailfront-1.18.tar.gz) = 109988
+SHA256 (mailfront-1.21.tar.gz) = 219dcefafc1a458407ac0605168499f2e3e585cd14b89659809e5bcda2c82825
+SIZE (mailfront-1.21.tar.gz) = 113966

Modified: head/mail/mailfront/pkg-plist
==============================================================================
--- head/mail/mailfront/pkg-plist	Tue Feb 12 16:32:56 2013	(r312121)
+++ head/mail/mailfront/pkg-plist	Tue Feb 12 17:38:10 2013	(r312122)
@@ -18,6 +18,7 @@ libexec/mailfront/plugin-check-fqdn.so
 libexec/mailfront/plugin-clamav.so
 libexec/mailfront/plugin-counters.so
 libexec/mailfront/plugin-cvm-validate.so
+%%LUA%%libexec/mailfront/plugin-lua.so
 libexec/mailfront/plugin-mailrules.so
 libexec/mailfront/plugin-patterns.so
 libexec/mailfront/plugin-qmail-validate.so
@@ -45,6 +46,7 @@ libexec/mailfront/protocol-smtp.so
 %%PORTDOCS%%%%DOCSDIR%%/plugin-counters.html
 %%PORTDOCS%%%%DOCSDIR%%/plugin-cvm-validate.html
 %%PORTDOCS%%%%DOCSDIR%%/plugin-force-file.html
+%%PORTDOCS%%%%DOCSDIR%%/plugin-lua.html
 %%PORTDOCS%%%%DOCSDIR%%/plugin-mailrules.html
 %%PORTDOCS%%%%DOCSDIR%%/plugin-patterns.html
 %%PORTDOCS%%%%DOCSDIR%%/plugin-qmail-validate.html
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 8 Bryan Drewery freebsd_committer freebsd_triage 2013-02-12 17:38:33 UTC
State Changed
From-To: feedback->closed

Committed patch based on yours. Thanks!