aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Vyshenski <svysh.fbsd@gmail.com>2022-05-23 19:42:53 +0000
committerNuno Teixeira <eduardo@FreeBSD.org>2022-05-23 19:49:19 +0000
commitd8b81c2c885b061e33e5975ee5e2eef71a7ddfce (patch)
tree1c600489e0f36340e87988b6c99a72c0f6b6420e
parent2d88b73b83e0d1220373939528c3316b2ceb88fb (diff)
downloadports-d8b81c2c885b061e33e5975ee5e2eef71a7ddfce.tar.gz
ports-d8b81c2c885b061e33e5975ee5e2eef71a7ddfce.zip
security/p5-openxpki: adjust REINPLACE_CMD warnings
- adjust REINPLACE_CMD for better hits and eliminate lots of warnings about files that it don't apply. - not bumping PORTREVISION since there are no funcionality changes. PR: 263795
-rw-r--r--security/p5-openxpki/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/security/p5-openxpki/Makefile b/security/p5-openxpki/Makefile
index bdf0e017a33b..465e7566450c 100644
--- a/security/p5-openxpki/Makefile
+++ b/security/p5-openxpki/Makefile
@@ -123,11 +123,13 @@ post-patch:
@${REINPLACE_CMD} -e 's|..vergen --format version.|"${PORTVERSION}"|g' ${WRKSRC}/Makefile.PL
@( \
cd ${WRKSRC}/../..; \
- ${FIND} config core/server doc qatest tools -type f -print0 >filelist; \
- ${CAT} filelist | ${XARGS} -0 -I % ${REINPLACE_CMD} -e 's|/etc/openxpki|${PREFIX}/etc/openxpki|g' "%"; \
- ${CAT} filelist | ${XARGS} -0 -I % ${REINPLACE_CMD} -e 's|/var/run/openxpkid.pid|/var/openxpki/openxpkid.pid|g' "%"; \
- ${CAT} filelist | ${XARGS} -0 -I % ${REINPLACE_CMD} -e 's|/var/openxpki/\([^\.]*\)\.log|/var/log/openxpki/\1\.log|g' "%"; \
- ${CAT} filelist | ${XARGS} -0 -I % ${RM} "%.bak"; \
+ ${ECHO} "Patching dir names..."; \
+ ${GREP} -RIFl -e "/etc/openxpki" config core/server doc qatest tools >filelist; \
+ ${CAT} filelist | ${XARGS} -I % ${REINPLACE_CMD} -e 's|/etc/openxpki|${PREFIX}/etc/openxpki|g' "%"; \
+ ${CAT} filelist | ${XARGS} -I % ${RM} "%.bak"; \
+ ${GREP} -RIFl -e "/var/run/openxpkid.pid" config core/server doc qatest tools >filelist; \
+ ${CAT} filelist | ${XARGS} -I % ${REINPLACE_CMD} -e 's|/var/run/openxpkid.pid|/var/openxpki/openxpkid.pid|g' "%"; \
+ ${CAT} filelist | ${XARGS} -I % ${RM} "%.bak"; \
${RM} filelist; \
)
@${MKDIR} ${WRKSRC}/t/var/log/openxpki