| @@ -1,65 +1,65 @@ | | | @@ -1,65 +1,65 @@ |
1 | # $NetBSD: Makefile,v 1.1 2021/03/09 12:10:31 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.2 2021/03/16 08:19:47 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= ansible-base-2.10.6 | | 3 | DISTNAME= ansible-base-2.10.7 |
4 | CATEGORIES= sysutils python | | 4 | CATEGORIES= sysutils python |
5 | MASTER_SITES= ${MASTER_SITE_PYPI:=a/ansible-base/} | | 5 | MASTER_SITES= ${MASTER_SITE_PYPI:=a/ansible-base/} |
6 | | | 6 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 7 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= https://ansible.com/ | | 8 | HOMEPAGE= https://ansible.com/ |
9 | COMMENT= SSH-based configuration management, deployment, and task execution | | 9 | COMMENT= SSH-based configuration management, deployment, and task execution |
10 | LICENSE= gnu-gpl-v3 | | 10 | LICENSE= gnu-gpl-v3 |
11 | | | 11 | |
12 | CONFLICTS+= ansible<2.10 | | 12 | CONFLICTS+= ansible<2.10 |
13 | | | 13 | |
14 | DEPENDS+= ${PYPKGPREFIX}-cryptography-[0-9]*:../../security/py-cryptography | | 14 | DEPENDS+= ${PYPKGPREFIX}-cryptography-[0-9]*:../../security/py-cryptography |
15 | DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2 | | 15 | DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2 |
16 | DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging | | 16 | DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging |
17 | DEPENDS+= ${PYPKGPREFIX}-paramiko-[0-9]*:../../security/py-paramiko | | 17 | DEPENDS+= ${PYPKGPREFIX}-paramiko-[0-9]*:../../security/py-paramiko |
18 | DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml | | 18 | DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml |
19 | | | 19 | |
20 | USE_TOOLS+= gmake | | 20 | USE_TOOLS+= gmake |
21 | | | 21 | |
22 | PKG_SYSCONFSUBDIR= ansible | | 22 | PKG_SYSCONFSUBDIR= ansible |
23 | EGDIR= ${PREFIX}/share/examples/ansible | | 23 | EGDIR= ${PREFIX}/share/examples/ansible |
24 | | | 24 | |
25 | REPLACE_PYTHON= test/lib/ansible_test/_data/*.py | | 25 | REPLACE_PYTHON= test/lib/ansible_test/_data/*.py |
26 | REPLACE_PYTHON+= test/lib/ansible_test/_data/*/*.py | | 26 | REPLACE_PYTHON+= test/lib/ansible_test/_data/*/*.py |
27 | REPLACE_PYTHON+= test/lib/ansible_test/_data/*/*/*.py | | 27 | REPLACE_PYTHON+= test/lib/ansible_test/_data/*/*/*.py |
28 | | | 28 | |
29 | CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/ansible_test/_data/requirements/sanity.ps1 | | 29 | CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/ansible_test/_data/requirements/sanity.ps1 |
30 | CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/ansible_test/_data/sanity/pslint/pslint.ps1 | | 30 | CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/ansible_test/_data/sanity/pslint/pslint.ps1 |
31 | CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/ansible_test/_data/sanity/validate-modules/validate_modules/ps_argspec.ps1 | | 31 | CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/ansible_test/_data/sanity/validate-modules/validate_modules/ps_argspec.ps1 |
32 | | | 32 | |
33 | SUBST_CLASSES+= paths | | 33 | SUBST_CLASSES+= paths |
34 | SUBST_STAGE.paths= pre-configure | | 34 | SUBST_STAGE.paths= pre-configure |
35 | SUBST_FILES.paths+= docs/man/man1/*.1 | | 35 | SUBST_FILES.paths+= docs/man/man1/*.1 |
36 | SUBST_FILES.paths+= examples/ansible.cfg | | 36 | SUBST_FILES.paths+= examples/ansible.cfg |
37 | SUBST_FILES.paths+= examples/hosts | | 37 | SUBST_FILES.paths+= examples/hosts |
38 | SUBST_FILES.paths+= lib/ansible/config/base.yml | | 38 | SUBST_FILES.paths+= lib/ansible/config/base.yml |
39 | SUBST_FILES.paths+= lib/ansible/module_utils/urls.py | | 39 | SUBST_FILES.paths+= lib/ansible/module_utils/urls.py |
40 | SUBST_MESSAGE.paths= Fixing hardcoded paths. | | 40 | SUBST_MESSAGE.paths= Fixing hardcoded paths. |
41 | SUBST_SED.paths= -e "s,/usr/share/ansible,${PREFIX}/share/ansible,g" | | 41 | SUBST_SED.paths= -e "s,/usr/share/ansible,${PREFIX}/share/ansible,g" |
42 | SUBST_SED.paths+= -e "s,/etc/ansible,${PKG_SYSCONFDIR},g" | | 42 | SUBST_SED.paths+= -e "s,/etc/ansible,${PKG_SYSCONFDIR},g" |
43 | | | 43 | |
44 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} | | 44 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} |
45 | OWN_DIRS= ${PREFIX}/share/ansible | | 45 | OWN_DIRS= ${PREFIX}/share/ansible |
46 | | | 46 | |
47 | CONF_FILES= ${EGDIR}/ansible.cfg ${PKG_SYSCONFDIR}/ansible.cfg | | 47 | CONF_FILES= ${EGDIR}/ansible.cfg ${PKG_SYSCONFDIR}/ansible.cfg |
48 | CONF_FILES+= ${EGDIR}/hosts ${PKG_SYSCONFDIR}/hosts | | 48 | CONF_FILES+= ${EGDIR}/hosts ${PKG_SYSCONFDIR}/hosts |
49 | | | 49 | |
50 | # Contains hardcoded paths to expected locations of package managers. | | 50 | # Contains hardcoded paths to expected locations of package managers. |
51 | CHECK_WRKREF_SKIP+= */ansible/module_utils/facts/system/pkg_mgr.py | | 51 | CHECK_WRKREF_SKIP+= */ansible/module_utils/facts/system/pkg_mgr.py |
52 | | | 52 | |
53 | post-install: | | 53 | post-install: |
54 | .for f in ansible-console.1 ansible-doc.1 ansible-galaxy.1 ansible-inventory.1 \ | | 54 | .for f in ansible-console.1 ansible-doc.1 ansible-galaxy.1 ansible-inventory.1 \ |
55 | ansible-playbook.1 ansible-pull.1 ansible-vault.1 ansible.1 | | 55 | ansible-playbook.1 ansible-pull.1 ansible-vault.1 ansible.1 |
56 | ${INSTALL_MAN} ${WRKSRC}/docs/man/man1/${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ | | 56 | ${INSTALL_MAN} ${WRKSRC}/docs/man/man1/${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ |
57 | .endfor | | 57 | .endfor |
58 | .for f in ansible.cfg hosts | | 58 | .for f in ansible.cfg hosts |
59 | ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${DESTDIR}/${EGDIR} | | 59 | ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${DESTDIR}/${EGDIR} |
60 | .endfor | | 60 | .endfor |
61 | | | 61 | |
62 | .include "../../lang/python/application.mk" | | 62 | .include "../../lang/python/application.mk" |
63 | .include "../../lang/python/egg.mk" | | 63 | .include "../../lang/python/egg.mk" |
64 | .include "../../lang/python/tool.mk" | | 64 | .include "../../lang/python/tool.mk" |
65 | .include "../../mk/bsd.pkg.mk" | | 65 | .include "../../mk/bsd.pkg.mk" |