ports/132815: add option to mail/nmzmail to override max number of mailboxes
Fernan Aguero
fernan.aguero at gmail.com
Thu Mar 19 14:40:10 UTC 2009
>Number: 132815
>Category: ports
>Synopsis: add option to mail/nmzmail to override max number of mailboxes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 19 14:40:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Fernan Aguero
>Release: FreeBSD 6.3-RELEASE-p1 i386
>Organization:
IIB-UNSAM
>Environment:
FreeBSD gama.iib.unsam.edu.ar 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #0:
Wed Apr 2 18:37:14 ART 2008
fernan at gama.iib.unsam.edu.ar:/usr/obj/freebsd/freebsd-6.3/src/sys/GAMA
i386
<machine, os, target, libraries (multiple lines)>
>Description:
<precise description of the problem (multiple lines)>
nmzmail will only index 32 mailboxes per run. This is a
hard-coded value that is set at compile time.
The proposed patch allows the user to compile nmzmail with a
different limit by setting MAX_MAIL_DIRS
>How-To-Repeat:
<code/input/activities to reproduce the problem (multiple lines)>
>Fix:
<how to correct or work around the problem, if known (multiple lines)>
--- nmzmail.diff begins here ---
diff -ruN --exclude=CVS /usr/ports/mail/nmzmail/Makefile nmzmail/Makefile
--- /usr/ports/mail/nmzmail/Makefile 2009-03-19 11:26:46.000000000 -0300
+++ nmzmail/Makefile 2009-03-19 11:25:59.000000000 -0300
@@ -23,6 +23,18 @@
PLIST_FILES= bin/nmzmail
PORTDOCS= README NEWS
+pre-extract:
+.if !defined(MAX_MAIL_DIRS)
+ @ ${ECHO_MSG} "You can define MAX_MAIL_DIRS=n."
+ @ ${ECHO_MSG} "nmzmail will only process this many mailboxes, the
default is 32."
+.endif
+
+post-extract:
+.if defined(MAX_MAIL_DIRS)
+ @ ${SED} -i.bak -e 's/MAX_MAIL_DIRS 32/MAX_MAIL_DIRS ${MAX_MAIL_DIRS}/' \
+ ${WRKSRC}/src/nmzmail.c
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
@${INSTALL} -d ${DOCSDIR}/
--- nmzmail.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list