From 8fde4ddb039431e4b59eb144e8600c013cc9d2fb Mon Sep 17 00:00:00 2001 From: pav Date: Tue, 12 May 2009 08:48:02 +0000 Subject: - Add MAX_MAIL_DIRS option to define a number of mailboxes to process PR: ports/132815 Submitted by: Fernan Aguero (maintainer) --- mail/nmzmail/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'mail') diff --git a/mail/nmzmail/Makefile b/mail/nmzmail/Makefile index f9a43d7f3c43..47a33093070c 100644 --- a/mail/nmzmail/Makefile +++ b/mail/nmzmail/Makefile @@ -23,6 +23,18 @@ USE_GMAKE= yes 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}/ -- cgit