aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/courier-imap/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/courier-imap/Makefile b/mail/courier-imap/Makefile
index 5eca4f367e0e..37225ae56b43 100644
--- a/mail/courier-imap/Makefile
+++ b/mail/courier-imap/Makefile
@@ -14,6 +14,7 @@ MASTER_SITE_SUBDIR= courier
MAINTAINER= nbm@FreeBSD.org
+USE_REINPLACE= yes
USE_PERL5= yes
GNU_CONFIGURE= YES
USE_GMAKE= YES
@@ -131,8 +132,8 @@ EXTRA_DOCS= README INSTALL AUTHORS imap/ChangeLog
.include <bsd.port.pre.mk>
post-patch:
- @${PERL} -i.nbm -pe \
- 'm#^\timapd.cnf pop3d.cnf# && s@[ip][mo][ap][p3]d.cnf@@g;' \
+ @${REINPLACE_CMD} -Ee \
+ '/^ imapd.cnf pop3d.cnf/s/(imapd.cnf|pop3d.cnf)//g' \
${WRKSRC}/Makefile.in
post-install: