- Add MAX_MAIL_DIRS option to define a number of mailboxes to process

PR:		ports/132815
Submitted by:	Fernan Aguero <fernan.aguero@gmail.com> (maintainer)
This commit is contained in:
Pav Lucistnik
2009-05-12 08:48:02 +00:00
parent 90d3db9b1e
commit 995017539a

View File

@@ -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}/