aboutsummaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd24/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/cyrus-imapd24/Makefile')
-rw-r--r--mail/cyrus-imapd24/Makefile27
1 files changed, 16 insertions, 11 deletions
diff --git a/mail/cyrus-imapd24/Makefile b/mail/cyrus-imapd24/Makefile
index 9fcf2ff2f986..d907502edeea 100644
--- a/mail/cyrus-imapd24/Makefile
+++ b/mail/cyrus-imapd24/Makefile
@@ -2,7 +2,7 @@
PORTNAME= cyrus-imapd
PORTVERSION= 2.4.18
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.cyrusimap.org/cyrus-imapd/ \
http://cyrusimap.org/releases/
@@ -116,7 +116,6 @@ DRAC_USE= AUTOTOOLS=autoconf,autoheader
MANDIRS= ${CYRUS_PREFIX}/man
PORTDOCS= *
-PORTEXAMPLES= *
SUB_FILES= pkg-message pkg-install pkg-deinstall cyrus-imapd-man.conf
@@ -141,6 +140,9 @@ CYRUS_PERL_MAN1=cyradm
CYRUS_PERL_MAN3=Cyrus::IMAP Cyrus::IMAP::Admin Cyrus::IMAP::IMSP \
Cyrus::IMAP::Shell Cyrus::SIEVE::managesieve
+CONFS= cmu-backend.conf cmu-frontend.conf normal.conf prefork.conf \
+ small.conf
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBDB}
@@ -171,8 +173,11 @@ post-patch-DRAC-on:
@${RM} -rf ${WRKSRC}/autom4te.cache
post-install:
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/imapd.conf \
${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/master/conf/normal.conf \
+ ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/tools/mkimap \
${STAGEDIR}${CYRUS_PREFIX}/bin/mkimap
${INSTALL_SCRIPT} ${WRKSRC}/tools/masssievec \
@@ -196,18 +201,18 @@ post-install:
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
- "! ( -name Makefile.dist -o -name Makefile -o -name .cvsignore )"
+ "! ( -name Makefile.dist -o -name Makefile \
+ -o -name .cvsignore -o -name htmlstrip.c )"
-# there are already files in examplesdir at that point, so no
+# there are already files in EXAMPLESDIR at that point, so no
# need to create it.
post-install-EXAMPLES-on:
- cd ${WRKSRC}/master/conf && ${COPYTREE_SHARE} . \
- ${STAGEDIR}${EXAMPLESDIR}
-
-post-install-EXAMPLES-off:
- ${INSTALL_DATA} ${WRKSRC}/master/conf/normal.conf \
+.for f in ${CONFS}
+.if ${f} != normal.conf
+ @${INSTALL_DATA} ${WRKSRC}/master/conf/${f} \
${STAGEDIR}${EXAMPLESDIR}
- @${ECHO_CMD} ${EXAMPLESDIR}/imapd.conf >> ${TMPPLIST}
- @${ECHO_CMD} ${EXAMPLESDIR}/normal.conf >> ${TMPPLIST}
+ @${ECHO_CMD} ${EXAMPLESDIR:S,^${PREFIX}/,,}/${f} >>${TMPPLIST}
+.endif
+.endfor
.include <bsd.port.mk>