source: trunk/dports/sysutils/ansible/Portfile @ 139387

Last change on this file since 139387 was 139387, checked in by blair@…, 4 years ago

ansible: new upstream 1.9.2 release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- 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
2# $Id: Portfile 139387 2015-08-15 03:12:32Z blair@macports.org $
3
4PortSystem      1.0
5PortGroup       python 1.0
6
7name            ansible
8epoch           1
9version         1.9.2
10categories      sysutils
11supported_archs noarch
12
13maintainers     blair gmail.com:pedro.salgado
14
15homepage        https://github.com/ansible/ansible
16description     SSH-based configuration management and deployment system
17long_description \
18    Ansible is a radically simple model-driven configuration \
19    management, multi-node deployment, and remote task execution \
20    system.  Ansible works over SSH and does not require any software \
21    or daemons to be installed on remote nodes.  Extension modules can \
22    be written in any language and are transferred to managed machines \
23    automatically.
24
25license         GPL-3+
26
27platforms       darwin
28
29master_sites    http://releases.ansible.com/ansible \
30                http://pypi.python.org/packages/source/a/ansible
31checksums       rmd160 71f8634c3f6cd7e07538f3813531ce6f087fa29b \
32                sha256 c25ef4738b08fdfb3094247c012f3fd1b29972acbd37f988070b2a85f5fbee00
33
34python.default_version  27
35depends_lib-append      port:py${python.version}-httplib2 \
36                        port:py${python.version}-jinja2 \
37                        port:py${python.version}-paramiko \
38                        port:py${python.version}-yaml
39
40patch {
41    fs-traverse f ${worksrcpath} {
42        if {[file isfile ${f}]} {
43            reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
44            reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
45        }
46    }
47}
48
49post-destroot {
50    # Documentation and examples.
51    xinstall -m 644 -W ${worksrcpath} README.md COPYING \
52        ${destroot}${prefix}/share/doc/${name}
53
54    xinstall -m 755 -d ${destroot}${prefix}/share/doc/examples
55    xinstall -m 755 ${worksrcpath}/examples/ansible.cfg \
56        ${destroot}${prefix}/share/doc/${name}/examples
57    xinstall -m 755 ${worksrcpath}/examples/hosts \
58        ${destroot}${prefix}/share/doc/${name}/examples
59
60    # Man pages.
61    eval xinstall -m 755 [glob ${worksrcpath}/docs/man/man1/*.1] \
62        ${destroot}${prefix}/share/man/man1
63
64    # Install sample config and hosts file.
65    xinstall -m 755 -d ${destroot}${prefix}/etc/ansible
66    xinstall -b -m 755 ${worksrcpath}/examples/ansible.cfg \
67        ${destroot}${prefix}/etc/ansible/ansible.cfg.default
68    xinstall -b -m 755 ${worksrcpath}/examples/hosts \
69        ${destroot}${prefix}/etc/ansible/hosts.default
70}
71
72python.link_binaries_suffix
Note: See TracBrowser for help on using the repository browser.