git: 375b227ceb5f - main - sysutils/ansible: Fix the post-patch target
Mateusz Piotrowski
0mp at FreeBSD.org
Sun May 16 14:15:09 UTC 2021
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/ports/commit/?id=375b227ceb5f3eef62029768d1357d5a2ec308e2
commit 375b227ceb5f3eef62029768d1357d5a2ec308e2
Author: Mateusz Piotrowski <0mp at FreeBSD.org>
AuthorDate: 2021-05-16 12:43:21 +0000
Commit: Mateusz Piotrowski <0mp at FreeBSD.org>
CommitDate: 2021-05-16 14:15:22 +0000
sysutils/ansible: Fix the post-patch target
---
sysutils/ansible/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sysutils/ansible/Makefile b/sysutils/ansible/Makefile
index 38501a51ca79..ea0df08d9a5d 100644
--- a/sysutils/ansible/Makefile
+++ b/sysutils/ansible/Makefile
@@ -1,5 +1,6 @@
PORTNAME= ansible
DISTVERSION= 3.4.0
+PORTREVISION= 1
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -37,7 +38,7 @@ _ANSIBLE_PACKAGES+= ${PYTHON_PKGNAMEPREFIX}ansible${version}-*
.endfor
post-patch:
- ${FIND} ${WRKSRC} -type f -exec grep --null -El '(/etc/ansible|/usr/share/ansible)' | ${XARGS} -0 ${REINPLACE_CMD} \
+ ${FIND} ${WRKSRC} -type f -exec ${GREP} --null -El '(/etc/ansible|/usr/share/ansible)' {} + | ${XARGS} -n 500 -0 ${REINPLACE_CMD} \
-e 's|/etc/ansible|${ETCDIR:S/${PY_FLAVOR}-//}|g' \
-e 's|/usr/share/ansible|${DATADIR}|g'
${FIND} ${WRKSRC} -type f -name "*.bak" -delete
More information about the dev-commits-ports-all
mailing list