2014-04-10 17:50:37 +02:00
|
|
|
# Created by: Nikolai Lifanov <lifanov@mail.lifanov.com>
|
2013-02-20 19:58:07 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ansible
|
2014-08-07 01:32:24 +02:00
|
|
|
PORTVERSION= 1.7
|
2013-02-20 19:58:07 +01:00
|
|
|
CATEGORIES= sysutils python
|
2014-04-10 17:50:37 +02:00
|
|
|
MASTER_SITES= SF/lifanov-ports-distfiles/sysutils/${PORTNAME}/:icons
|
|
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}.png:icons
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
2013-02-20 19:58:07 +01:00
|
|
|
|
|
|
|
MAINTAINER= lifanov@mail.lifanov.com
|
|
|
|
COMMENT= Simple ssh-based configuration management and orchestration system
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-11-22 17:38:39 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}paramiko>0:${PORTSDIR}/security/py-paramiko \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}Jinja2>0:${PORTSDIR}/devel/py-Jinja2
|
2013-02-20 19:58:07 +01:00
|
|
|
|
2013-11-22 17:38:39 +01:00
|
|
|
OPTIONS_DEFINE= ACCELERATE EXAMPLES
|
2013-10-12 05:33:40 +02:00
|
|
|
OPTIONS_DEFAULT= ACCELERATE
|
|
|
|
|
2013-11-22 17:38:39 +01:00
|
|
|
ACCELERATE_DESC= Enable Accelerated Mode (Uses pycrypto and keyczar)
|
|
|
|
ACCELERATE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}keyczar>0:${PORTSDIR}/security/py-keyczar
|
2013-10-12 05:33:40 +02:00
|
|
|
|
2014-03-23 00:52:01 +01:00
|
|
|
USE_GITHUB= yes
|
2014-04-10 17:50:37 +02:00
|
|
|
GH_ACCOUNT= ${PORTNAME}
|
|
|
|
GH_PROJECT= ${PORTNAME}
|
|
|
|
GH_TAGNAME= ${GH_COMMIT}
|
2014-08-07 01:32:24 +02:00
|
|
|
GH_COMMIT= 92382c4
|
2014-03-23 00:52:01 +01:00
|
|
|
|
2013-10-12 05:33:40 +02:00
|
|
|
USE_PYTHON= 2
|
2013-02-20 19:58:07 +01:00
|
|
|
USE_PYDISTUTILS= yes
|
2013-10-12 05:33:40 +02:00
|
|
|
PYDISTUTILS_AUTOPLIST= yes
|
2013-02-20 19:58:07 +01:00
|
|
|
|
2014-07-24 18:16:24 +02:00
|
|
|
USES= cpe shebangfix
|
2013-12-21 00:21:05 +01:00
|
|
|
SHEBANG_FILES= library/*/* \
|
2013-12-19 15:32:47 +01:00
|
|
|
lib/ansible/runner/action_plugins/synchronize.py
|
2014-07-24 18:16:24 +02:00
|
|
|
CPE_VENDOR= ansibleworks
|
2013-05-23 18:36:28 +02:00
|
|
|
|
2013-02-20 19:58:07 +01:00
|
|
|
SUB_FILES= pkg-message
|
2014-04-10 17:50:37 +02:00
|
|
|
|
2014-03-02 20:10:50 +01:00
|
|
|
PLIST_FILES+= man/man1/ansible-doc.1.gz \
|
2014-05-10 22:44:55 +02:00
|
|
|
man/man1/ansible-galaxy.1.gz \
|
2014-03-02 20:10:50 +01:00
|
|
|
man/man1/ansible-playbook.1.gz \
|
|
|
|
man/man1/ansible-pull.1.gz \
|
2014-05-10 22:44:55 +02:00
|
|
|
man/man1/ansible-vault.1.gz \
|
2014-04-10 17:50:37 +02:00
|
|
|
man/man1/ansible.1.gz \
|
2014-07-07 18:14:46 +02:00
|
|
|
${DESKTOPDIR:S,^${PREFIX}/,,}/${PORTNAME}.desktop \
|
2014-04-10 17:50:37 +02:00
|
|
|
share/pixmaps/${PORTNAME}.png
|
2013-02-20 19:58:07 +01:00
|
|
|
|
2013-10-12 05:33:40 +02:00
|
|
|
PORTEXAMPLES= ansible.cfg hosts
|
|
|
|
|
2013-12-21 00:21:05 +01:00
|
|
|
post-patch:
|
2014-04-10 17:50:37 +02:00
|
|
|
.for f in bin/ansible-galaxy docs/man/man1/ansible-playbook.1 \
|
|
|
|
docs/man/man1/ansible.1 examples/ansible.cfg \
|
|
|
|
examples/hosts lib/ansible/constants.py \
|
|
|
|
lib/ansible/playbook/__init__.py lib/ansible/runner/__init__.py \
|
|
|
|
library/system/setup
|
|
|
|
@${REINPLACE_CMD} -e 's|/etc/ansible|${ETCDIR}|' ${WRKSRC}/${f}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.for f in docs/man/man1/ansible-playbook.1 docs/man/man1/ansible.1 \
|
|
|
|
examples/ansible.cfg lib/ansible/constants.py \
|
|
|
|
lib/ansible/playbook/__init__.py lib/ansible/runner/__init__.py
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/ansible|${DATADIR}|' ${WRKSRC}/${f}
|
|
|
|
.endfor
|
2013-02-20 19:58:07 +01:00
|
|
|
|
|
|
|
post-install:
|
2013-09-25 16:08:58 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/man/man1/*.1 \
|
|
|
|
${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2014-03-02 20:10:50 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/ansible.cfg ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/hosts ${STAGEDIR}${EXAMPLESDIR}
|
2014-04-10 17:50:37 +02:00
|
|
|
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop \
|
|
|
|
${STAGEDIR}${DESKTOPDIR}
|
2013-02-20 19:58:07 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|