Date: Thu, 19 Mar 2009 11:32:04 -0300 From: Fernan Aguero <fernan.aguero@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/132815: add option to mail/nmzmail to override max number of mailboxes Message-ID: <520894aa0903190732q491409abyfabef3a3f789f15@mail.gmail.com> Resent-Message-ID: <200903191440.n2JEe3Jr042816@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?520894aa0903190732q491409abyfabef3a3f789f15>