1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $NetBSD: Makefile,v 1.8 2013/12/02 22:54:46 hubertf Exp $
#
DISTNAME= ansible-1.4.1
CATEGORIES= sysutils
MASTER_SITES= http://ansibleworks.com/releases/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ansibleworks.com/
COMMENT= SSH-based configuration management, deployment, and task execution
LICENSE= gnu-gpl-v3
EGDIR= ${PREFIX}/share/examples/ansible
#USE_LANGUAGES= # none
USE_TOOLS+= gmake
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_FILES.prefix+= examples/ansible.cfg
SUBST_FILES.prefix+= lib/ansible/constants.py
SUBST_SED.prefix= -e "s,@PREFIX@,${PREFIX},"
SUBST_SED.prefix+= -e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},"
SUBST_CLASSES+= localbase
SUBST_STAGE.localbase= pre-configure
SUBST_FILES.localbase= \
lib/ansible/callbacks.py \
library/packaging/pkgin \
library/system/setup
SUBST_SED.localbase= -e "s,@LOCALBASE@,${LOCALBASE},"
SUBST_CLASSES+= pythonbin
SUBST_STAGE.pythonbin= pre-configure
SUBST_FILES.pythonbin= Makefile
SUBST_FILES.pythonbin= -e "s,@PYTHONBIN@,${PYTHONBIN},"
MANPAGES= ansible-doc.1 ansible-pull.1 ansible-playbook.1 ansible.1
DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
DEPENDS+= ${PYPKGPREFIX}-paramiko-[0-9]*:../../security/py-paramiko
DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man3
INSTALLATION_DIRS+= ${PKG_SYSCONFDIR}/ansible ${EGDIR}/playbooks
CHECK_INTERPRETER_SKIP= share/ansible/*
pre-install:
find ${WRKSRC} -name \*.orig -exec rm {} \;
post-install:
.for f in ${MANPAGES}
${INSTALL_MAN} ${WRKSRC}/docs/man/man1/${f} \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
.endfor
${INSTALL_MAN} ${WRKSRC}/docs/man/man3/* \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/
.for f in ansible.cfg hosts
${INSTALL_DATA} ${WRKSRC}/examples/${f} \
${DESTDIR}/${EGDIR}
.endfor
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
|