# -*- 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$ PortSystem 1.0 PortGroup python 1.0 PortGroup github 1.0 name ansible epoch 1 categories sysutils github.setup ${name} ${name} 2.1.2.0-1 v version [string map {- .} ${version}] fetch.type git maintainers adfernandes blair gmail.com:pedro.salgado homepage https://github.com/ansible/ansible 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 supported_archs noarch python.versions 27 depends_lib-append port:py${python.version}-six \ port:py${python.version}-paramiko \ port:py${python.version}-httplib2 \ port:py${python.version}-jinja2 \ port:py${python.version}-yaml \ port:py${python.version}-setuptools \ port:py${python.version}-crypto depends_build-append port:asciidoc \ port:libxslt \ port:docbook-xsl post-fetch { # fetch submodules (https://github.com/ansible/ansible/issues/11199) system -W "${worksrcpath}" "git submodule update --init" } patch { fs-traverse f ${worksrcpath} { if {[file isfile ${f}] && ![regexp {\.(ico|png|eot|ttf|woff|reg|gz)$} ${f} match] && ![regexp {\.git} ${f} match] && ![regexp {v2/test/test.yml} ${f} match]} { reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f} reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f} } } } post-build { system -W "${worksrcpath}" "make docs" } post-destroot { # Documentation and examples. xinstall -m 644 -W ${worksrcpath} README.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 xinstall -m 755 ${worksrcpath}/examples/hosts \ ${destroot}${prefix}/share/doc/${name}/examples # Man pages. eval xinstall -m 755 [glob ${worksrcpath}/docs/man/man1/*.1] \ ${destroot}${prefix}/share/man/man1 # Install sample config and hosts file. xinstall -m 755 -d ${destroot}${prefix}/etc/ansible xinstall -b -m 755 ${worksrcpath}/examples/ansible.cfg \ ${destroot}${prefix}/etc/ansible/ansible.cfg.default xinstall -b -m 755 ${worksrcpath}/examples/hosts \ ${destroot}${prefix}/etc/ansible/hosts.default }