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