diff --git a/sysutils/ansible/Makefile b/sysutils/ansible/Makefile index ea0df08d9a5d..392148684466 100644 --- a/sysutils/ansible/Makefile +++ b/sysutils/ansible/Makefile @@ -1,46 +1,51 @@ PORTNAME= ansible DISTVERSION= 3.4.0 PORTREVISION= 1 CATEGORIES= sysutils python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= 0mp@FreeBSD.org COMMENT= Radically simple IT automation LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ansible-base>0:sysutils/py-ansible-base@${PY_FLAVOR} -USES= cpe python:3.6+ shebangfix +USES= ansible:env cpe python:3.6+ shebangfix CPE_VENDOR= redhat USE_PYTHON= autoplist concurrent distutils SHEBANG_FILES= ansible_collections/community/zabbix/roles/zabbix_proxy/files/install_semodule.bsx \ ansible_collections/community/zabbix/roles/zabbix_server/files/install_semodule.bsx \ ansible_collections/cyberark/conjur/ci/build_release \ ansible_collections/cyberark/conjur/ci/publish_to_galaxy \ ansible_collections/ovirt/ovirt/roles/disaster_recovery/files/ovirt-dr SHEBANG_GLOB= *.py *.sh CONFLICTS_INSTALL= ${_ANSIBLE_PACKAGES:N${PKGBASE}-*} NO_ARCH= yes DO_MAKE_TEST= ansible -m ping TEST_TARGET= localhost _ANSIBLE_VERSIONS= 1 2 23 24 25 26 27 28 _ANSIBLE_PACKAGES= ${PYTHON_PKGNAMEPREFIX}ansible-* .for version in ${_ANSIBLE_VERSIONS} _ANSIBLE_PACKAGES+= ${PYTHON_PKGNAMEPREFIX}ansible${version}-* .endfor post-patch: ${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|/etc/ansible|${ETCDIR}|g' \ -e 's|/usr/share/ansible|${DATADIR}|g' ${FIND} ${WRKSRC} -type f -name "*.bak" -delete .include + +# Make sure that we override the unique DATADIR and ETCDIR set +# by the implicit USES=uniquefiles. +DATADIR= ${ANSIBLE_DATADIR} +ETCDIR= ${ANSIBLE_ETCDIR}