summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd2
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-03-23 17:10:47 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-03-23 17:10:47 +0000
commit873536d51cbbe63666fb647e259cebb3130b8624 (patch)
tree5822d46828247ca19bd7e9f7b440f209c3aff0ec /mail/cyrus-imapd2
parentFix bridge tests. Fixed in HEAD of OO.org, but not in srx644 branch. (diff)
Use REINPLACE_CMD.
Notes
Notes: svn path=/head/; revision=77273
Diffstat (limited to 'mail/cyrus-imapd2')
-rw-r--r--mail/cyrus-imapd2/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/mail/cyrus-imapd2/Makefile b/mail/cyrus-imapd2/Makefile
index beeedeb3f454..4b3405e418f3 100644
--- a/mail/cyrus-imapd2/Makefile
+++ b/mail/cyrus-imapd2/Makefile
@@ -24,6 +24,7 @@ BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend \
${LOCALBASE}/sbin/saslauthd:${PORTSDIR}/security/cyrus-sasl2
USE_PERL5= yes
+USE_REINPLACE= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \
--with-cyrus-user=${CYRUS_USER} \
@@ -92,17 +93,13 @@ post-patch:
${.CURDIR}/pkg-install > ${PKGINSTALL}
@${SED} -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \
${.CURDIR}/pkg-deinstall > ${PKGDEINSTALL}
- @${SED} -e "s|/etc/|${PREFIX}/etc/|" \
- -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \
- -e "s|%%CYRUS_GROUP%%|${CYRUS_GROUP}|g" \
- ${WRKSRC}/tools/mkimap > ${WRKSRC}/tools/mkimap.new
- @${MV} ${WRKSRC}/tools/mkimap.new ${WRKSRC}/tools/mkimap
+ @${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \
+ -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \
+ -e "s|%%CYRUS_GROUP%%|${CYRUS_GROUP}|g" \
+ ${WRKSRC}/tools/mkimap
@${CP} ${WRKSRC}/man/quota.8 ${WRKSRC}/man/cyrquota.8
.if ${PERL_LEVEL} < 500600
- @${SED} -e "s|exec perl -x|exec perl -I${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} -x|" \
- ${WRKSRC}/perl/sieve/scripts/sieveshell.pl \
- > ${WRKSRC}/perl/sieve/scripts/sieveshell.pl.new
- @${MV} ${WRKSRC}/perl/sieve/scripts/sieveshell.pl.new \
+ @${REINPLACE_CMD} -e "s|exec perl -x|exec perl -I${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} -x|" \
${WRKSRC}/perl/sieve/scripts/sieveshell.pl
.endif