diff options
author | ume <ume@FreeBSD.org> | 2003-03-23 17:10:47 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-03-23 17:10:47 +0000 |
commit | 18ce8317475b4d7557d3e71b6bed8991ee89e053 (patch) | |
tree | b158d57a42084ca8007c1dc47f2122d77462ed5b /mail/cyrus-imapd2 | |
parent | 5bf7b51d04cbd225f980e9f842a5b516e5263344 (diff) | |
download | FreeBSD-ports-18ce8317475b4d7557d3e71b6bed8991ee89e053.zip FreeBSD-ports-18ce8317475b4d7557d3e71b6bed8991ee89e053.tar.gz |
Use REINPLACE_CMD.
Diffstat (limited to 'mail/cyrus-imapd2')
-rw-r--r-- | mail/cyrus-imapd2/Makefile | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/mail/cyrus-imapd2/Makefile b/mail/cyrus-imapd2/Makefile index beeedeb..4b3405e 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 |