aboutsummaryrefslogtreecommitdiffstats
path: root/mail/cyrus-imapd24/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/cyrus-imapd24/Makefile')
-rw-r--r--mail/cyrus-imapd24/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/cyrus-imapd24/Makefile b/mail/cyrus-imapd24/Makefile
index 27a9b718accf..60ab2850cd12 100644
--- a/mail/cyrus-imapd24/Makefile
+++ b/mail/cyrus-imapd24/Makefile
@@ -7,7 +7,7 @@
PORTNAME= cyrus-imapd
PORTVERSION= 2.2.1.b
-#PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/ \
@@ -142,6 +142,9 @@ USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
.endif
+RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
+ RC_SUBR=${RC_SUBR}
+
pre-everything::
.if !defined(WITH_BDB_VER)
@if ${LDCONFIG} -r | ${GREP} -qwE -e "-ldb(41|4)"; then \
@@ -202,8 +205,9 @@ post-install:
@${ECHO} "@dirrm share/doc/cyrus-imapd22/man" >>${TMPPLIST}
@${ECHO} "@dirrm share/doc/cyrus-imapd22" >>${TMPPLIST}
.endif
- ${INSTALL_SCRIPT} ${FILESDIR}/imapd.sh \
- ${PREFIX}/etc/rc.d/imapd.sh.sample
+ @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${FILESDIR}/imapd.sh > ${PREFIX}/etc/rc.d/imapd.sh
+ @${CHMOD} 755 ${PREFIX}/etc/rc.d/imapd.sh
${INSTALL_DATA} ${FILESDIR}/imapd.conf \
${PREFIX}/etc/imapd.conf.dist
${INSTALL_DATA} ${WRKSRC}/master/conf/normal.conf \