| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.4 2018/09/14 15:43:23 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.5 2018/10/23 13:21:44 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= ansible-2.6.4 | | 3 | DISTNAME= ansible-2.6.4 |
4 | CATEGORIES= python sysutils | | 4 | CATEGORIES= python sysutils |
5 | MASTER_SITES= http://releases.ansible.com/ansible/ | | 5 | MASTER_SITES= http://releases.ansible.com/ansible/ |
6 | | | 6 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 7 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= http://ansible.com/ | | 8 | HOMEPAGE= http://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 | DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml | | 12 | DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml |
13 | DEPENDS+= ${PYPKGPREFIX}-paramiko-[0-9]*:../../security/py-paramiko | | 13 | DEPENDS+= ${PYPKGPREFIX}-paramiko-[0-9]*:../../security/py-paramiko |
14 | DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2 | | 14 | DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2 |
| @@ -29,26 +29,29 @@ SUBST_FILES.paths+= lib/ansible/module_u | | | @@ -29,26 +29,29 @@ SUBST_FILES.paths+= lib/ansible/module_u |
29 | SUBST_FILES.paths+= lib/ansible/modules/system/setup.py | | 29 | SUBST_FILES.paths+= lib/ansible/modules/system/setup.py |
30 | SUBST_FILES.paths+= lib/ansible/utils/module_docs_fragments/cnos.py | | 30 | SUBST_FILES.paths+= lib/ansible/utils/module_docs_fragments/cnos.py |
31 | SUBST_FILES.paths+= lib/ansible/utils/module_docs_fragments/openstack.py | | 31 | SUBST_FILES.paths+= lib/ansible/utils/module_docs_fragments/openstack.py |
32 | SUBST_MESSAGE.paths= Fixing hardcoded paths. | | 32 | SUBST_MESSAGE.paths= Fixing hardcoded paths. |
33 | SUBST_SED.paths= -e "s,/usr/share/ansible,${PREFIX}/share/ansible,g" | | 33 | SUBST_SED.paths= -e "s,/usr/share/ansible,${PREFIX}/share/ansible,g" |
34 | SUBST_SED.paths+= -e "s,/etc/ansible,${PKG_SYSCONFDIR},g" | | 34 | SUBST_SED.paths+= -e "s,/etc/ansible,${PKG_SYSCONFDIR},g" |
35 | | | 35 | |
36 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKG_SYSCONFDIR} ${EGDIR} | | 36 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKG_SYSCONFDIR} ${EGDIR} |
37 | OWN_DIRS= ${PREFIX}/share/ansible | | 37 | OWN_DIRS= ${PREFIX}/share/ansible |
38 | | | 38 | |
39 | CONF_FILES= ${EGDIR}/ansible.cfg ${PKG_SYSCONFDIR}/ansible.cfg | | 39 | CONF_FILES= ${EGDIR}/ansible.cfg ${PKG_SYSCONFDIR}/ansible.cfg |
40 | CONF_FILES+= ${EGDIR}/hosts ${PKG_SYSCONFDIR}/hosts | | 40 | CONF_FILES+= ${EGDIR}/hosts ${PKG_SYSCONFDIR}/hosts |
41 | | | 41 | |
| | | 42 | # Contains hardcoded paths to expected locations of package managers. |
| | | 43 | CHECK_WRKREF_SKIP+= */ansible/module_utils/facts/system/pkg_mgr.py |
| | | 44 | |
42 | post-install: | | 45 | post-install: |
43 | .for f in ansible-console.1 ansible-doc.1 ansible-galaxy.1 ansible-playbook.1 \ | | 46 | .for f in ansible-console.1 ansible-doc.1 ansible-galaxy.1 ansible-playbook.1 \ |
44 | ansible-pull.1 ansible-vault.1 ansible.1 | | 47 | ansible-pull.1 ansible-vault.1 ansible.1 |
45 | ${INSTALL_MAN} ${WRKSRC}/docs/man/man1/${f} \ | | 48 | ${INSTALL_MAN} ${WRKSRC}/docs/man/man1/${f} \ |
46 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ | | 49 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ |
47 | .endfor | | 50 | .endfor |
48 | .for f in ansible.cfg hosts | | 51 | .for f in ansible.cfg hosts |
49 | ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${DESTDIR}/${EGDIR} | | 52 | ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${DESTDIR}/${EGDIR} |
50 | .endfor | | 53 | .endfor |
51 | | | 54 | |
52 | .include "../../lang/python/application.mk" | | 55 | .include "../../lang/python/application.mk" |
53 | .include "../../lang/python/egg.mk" | | 56 | .include "../../lang/python/egg.mk" |
54 | .include "../../lang/python/tool.mk" | | 57 | .include "../../lang/python/tool.mk" |