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

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

ansible: new upstream 1.6.10 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 123087 2014-08-05 03:11:52Z blair@macports.org $
3
4PortSystem      1.0
5PortGroup       python 1.0
6
7name            ansible
8epoch           1
9version         1.6.10
10categories      sysutils
11supported_archs noarch
12
13maintainers     blair
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
30checksums       rmd160 2e9160769d06b14fcd4446a8337c5ef3447139bc \
31                sha256 3d03c42073c4b6944f23dc06e150912f4f106d65fa00290c03f8972fd70e3c71
32
33python.default_version  27
34depends_lib-append      port:py${python.version}-httplib2 \
35                        port:py${python.version}-jinja2 \
36                        port:py${python.version}-paramiko \
37                        port:py${python.version}-yaml
38
39patch {
40    fs-traverse f ${worksrcpath} {
41        if {[file isfile ${f}]} {
42            reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
43            reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
44        }
45    }
46}
47
48post-destroot {
49    # Documentation and examples.
50    xinstall -m 644 -W ${worksrcpath} README.md COPYING \
51        ${destroot}${prefix}/share/doc/${name}
52
53    xinstall -m 755 -d ${destroot}${prefix}/share/doc/examples
54    xinstall -m 755 ${worksrcpath}/examples/ansible.cfg \
55        ${destroot}${prefix}/share/doc/${name}/examples
56    xinstall -m 755 ${worksrcpath}/examples/hosts \
57        ${destroot}${prefix}/share/doc/${name}/examples
58
59    file copy ${worksrcpath}/examples/playbooks \
60        ${destroot}${prefix}/share/doc/${name}/examples/
61
62    # Man pages.
63    xinstall -d 644 ${destroot}${prefix}/share/man/man1
64    eval xinstall -m 755 [glob ${worksrcpath}/docs/man/man1/*.1] \
65        ${destroot}${prefix}/share/man/man1
66
67    # Install sample config and hosts file.
68    xinstall -m 755 -d ${destroot}${prefix}/etc/ansible
69    xinstall -b -m 755 ${worksrcpath}/examples/ansible.cfg \
70        ${destroot}${prefix}/etc/ansible/ansible.cfg.default
71    xinstall -b -m 755 ${worksrcpath}/examples/hosts \
72        ${destroot}${prefix}/etc/ansible/hosts.default
73}
74
75python.link_binaries_suffix
Note: See TracBrowser for help on using the repository browser.