- 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:
@@ -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}/
|
||||
|
||||
Reference in New Issue
Block a user