77d68471ad
PR: 267994 Differential revision: D37518 Approved by: bapt
59 lines
2.2 KiB
Makefile
59 lines
2.2 KiB
Makefile
PORTNAME= ansible
|
|
DISTVERSION= 6.1.0
|
|
CATEGORIES= sysutils python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= 0mp@FreeBSD.org
|
|
COMMENT= Radically simple IT automation
|
|
WWW= https://www.ansible.com/
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ansible-core>0:sysutils/py-ansible-core@${PY_FLAVOR}
|
|
|
|
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 \
|
|
ansible_collections/ovirt/ovirt/roles/disaster_recovery/files/ovirt-dr \
|
|
ansible_collections/cisco/meraki/scripts/sublime-build/build.py.generic
|
|
# It's probably best to leave shebangs in modules untouched as they must be
|
|
# either unversioned or absent.
|
|
# See [1] and [2].
|
|
# [1]: https://github.com/ansible/ansible/issues/78243
|
|
# [2]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265211
|
|
SHEBANG_REGEX= (([^/])|(/[^m])|(/m[^o])|(/mo[^d])|(/mod[^u])|(/modu[^l])|(/modul[^e])|(/module[^s])|(/modules[^/]))*\.(py|sh|build.py.generic)
|
|
python_OLD_CMD= /Users/kbreit/Documents/Programming/ansible_collections/cisco/meraki/venv/bin/python
|
|
|
|
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 4
|
|
_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}|g' \
|
|
-e 's|/usr/share/ansible|${DATADIR}|g'
|
|
${FIND} ${WRKSRC} -type f -name "*.bak" -delete
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
# Make sure that we override the unique DATADIR and ETCDIR set
|
|
# by the implicit USES=uniquefiles.
|
|
DATADIR= ${ANSIBLE_DATADIR}
|
|
ETCDIR= ${ANSIBLE_ETCDIR}
|