2013-02-03 13:18:14 +01:00
|
|
|
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
# $Id: Portfile 102428 2013-02-02 18:34:49Z blair@macports.org $
|
2013-02-01 16:42:18 +01:00
|
|
|
|
2013-02-03 13:18:14 +01:00
|
|
|
PortSystem 1.0
|
|
|
|
PortGroup python 1.0
|
2013-02-01 16:42:18 +01:00
|
|
|
|
2013-02-03 13:18:14 +01:00
|
|
|
name ansible
|
|
|
|
version devel
|
|
|
|
categories sysutils
|
|
|
|
supported_archs noarch
|
2013-02-01 16:42:18 +01:00
|
|
|
|
2013-02-03 13:18:14 +01:00
|
|
|
maintainers nomaintainer
|
2013-02-01 16:42:18 +01:00
|
|
|
|
2013-02-03 13:18:14 +01:00
|
|
|
homepage http://ansible.cc/
|
|
|
|
description SSH-based configuration management and deployment system
|
|
|
|
long_description \
|
|
|
|
Ansible is a radically simple model-driven configuration \
|
|
|
|
management, multi-node deployment, and remote task execution \
|
|
|
|
system. Ansible works over SSH and does not require any software \
|
|
|
|
or daemons to be installed on remote nodes. Extension modules can \
|
|
|
|
be written in any language and are transferred to managed machines \
|
|
|
|
automatically.
|
|
|
|
|
|
|
|
license GPL-3+
|
|
|
|
|
|
|
|
platforms darwin
|
2013-02-01 16:42:18 +01:00
|
|
|
|
|
|
|
fetch.type git
|
|
|
|
git.url https://github.com/ansible/ansible.git
|
|
|
|
git.branch ${version}
|
|
|
|
|
2013-02-03 13:18:14 +01:00
|
|
|
python.default_version 27
|
|
|
|
depends_lib-append port:py${python.version}-jinja2 \
|
|
|
|
port:py${python.version}-paramiko \
|
|
|
|
port:py${python.version}-yaml
|
|
|
|
# fireball mode requires py-zmq, py-asn1, py-crypto and py-keyczar
|
2013-02-01 16:42:18 +01:00
|
|
|
|
2013-02-03 13:18:14 +01:00
|
|
|
patch {
|
|
|
|
fs-traverse f ${worksrcpath} {
|
|
|
|
if {[file isfile ${f}]} {
|
|
|
|
reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
|
|
|
|
reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
|
|
|
|
}
|
|
|
|
}
|
2013-02-01 16:42:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
post-destroot {
|
2013-02-03 13:18:14 +01:00
|
|
|
# documentation and examples
|
2013-02-01 16:42:18 +01:00
|
|
|
xinstall -m 644 -W ${worksrcpath} README.md CHANGELOG.md CONTRIBUTING.md COPYING \
|
|
|
|
${destroot}${prefix}/share/doc/${name}
|
|
|
|
|
|
|
|
xinstall -m 755 -d ${destroot}${prefix}/share/doc/examples
|
|
|
|
xinstall -m 755 ${worksrcpath}/examples/ansible.cfg ${destroot}${prefix}/share/doc/${name}/examples
|
2013-02-03 13:18:14 +01:00
|
|
|
xinstall -m 755 ${worksrcpath}/examples/hosts ${destroot}${prefix}/share/doc/${name}/examples
|
|
|
|
|
2013-02-01 16:42:18 +01:00
|
|
|
file copy ${worksrcpath}/examples/playbooks ${destroot}${prefix}/share/doc/${name}/examples/
|
|
|
|
|
2013-02-03 13:18:14 +01:00
|
|
|
# man pages
|
2013-02-01 16:42:18 +01:00
|
|
|
xinstall -d 644 ${destroot}${prefix}/share/man/man1
|
2013-02-03 13:18:14 +01:00
|
|
|
eval xinstall -m 755 [glob ${worksrcpath}/docs/man/man1/*.1] ${destroot}${prefix}/share/man/man1
|
2013-02-01 16:42:18 +01:00
|
|
|
|
|
|
|
# install sample config and hosts file
|
|
|
|
xinstall -m 755 -d ${destroot}${prefix}/etc/ansible
|
|
|
|
xinstall -m 755 ${worksrcpath}/examples/ansible.cfg ${destroot}${prefix}/etc/ansible/ansible.cfg
|
|
|
|
xinstall -m 755 ${worksrcpath}/examples/hosts ${destroot}${prefix}/etc/ansible/hosts
|
|
|
|
}
|
2013-02-03 13:18:14 +01:00
|
|
|
|
|
|
|
python.link_binaries_suffix
|