Skip to content

Commit

Permalink
mail/cyrus-imapd34: disable http and https services in cyrus.conf, wh…
Browse files Browse the repository at this point in the history
…en HTTP is not enabled

PR:		263168
  • Loading branch information
Hajimu UMEMOTO authored and Hajimu UMEMOTO committed Apr 10, 2022
1 parent db328f3 commit c34f92a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mail/cyrus-imapd34/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= cyrus-imapd
PORTVERSION= 3.4.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= https://github.com/cyrusimap/cyrus-imapd/releases/download/${PORTNAME}-${PORTVERSION}/
PKGNAMESUFFIX= ${CYRUS_IMAPD_VER}
Expand Down Expand Up @@ -166,6 +166,8 @@ CYRUS_PERL_MAN3=Cyrus::Annotator::Daemon Cyrus::Annotator::Message \

INSTALL_TARGET= install-strip

REINPLACE_ARGS= -i ''

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MHTTP} || ${PORT_OPTIONS:MSQLITE}
Expand Down Expand Up @@ -217,6 +219,10 @@ post-install:
${SED} -e 's,/run/cyrus/socket,/var/imap/socket,' \
${WRKSRC}/doc/examples/cyrus_conf/normal.conf \
> ${STAGEDIR}${EXAMPLESDIR}/cyrus.conf
.if !${PORT_OPTIONS:MHTTP}
${REINPLACE_CMD} -e 's/^\( http\)/#\1/' \
${STAGEDIR}${EXAMPLESDIR}/cyrus.conf
.endif
.for f in mkimap masssievec translatesieve
${INSTALL_SCRIPT} ${WRKSRC}/tools/${f} \
${STAGEDIR}${CYRUS_PREFIX}/sbin/${f}
Expand Down

0 comments on commit c34f92a

Please sign in to comment.