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

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

ansible: also install sample conf files, docs and manual pages; closes #39775.

New files:

$prefix/etc/ansible/ansible.cfg.default
$prefix/etc/ansible/hosts.default
$prefix/share/doc/ansible/COPYING
$prefix/share/doc/ansible/README.md
$prefix/share/doc/ansible/examples/ansible.cfg
$prefix/share/doc/ansible/examples/hosts
$prefix/share/doc/ansible/examples/playbooks/README.md
$prefix/share/man/man1/ansible-doc.1.gz
$prefix/share/man/man1/ansible-playbook.1.gz
$prefix/share/man/man1/ansible-pull.1.gz
$prefix/share/man/man1/ansible.1.gz
$prefix/share/man/man3/ansible.add_host.3.gz
$prefix/share/man/man3/ansible.airbrake_deployment.3.gz
$prefix/share/man/man3/ansible.apt.3.gz
$prefix/share/man/man3/ansible.apt_key.3.gz
$prefix/share/man/man3/ansible.apt_repository.3.gz
$prefix/share/man/man3/ansible.assemble.3.gz
$prefix/share/man/man3/ansible.async_status.3.gz
$prefix/share/man/man3/ansible.authorized_key.3.gz
$prefix/share/man/man3/ansible.bigip_pool.3.gz
$prefix/share/man/man3/ansible.bzr.3.gz
$prefix/share/man/man3/ansible.campfire.3.gz
$prefix/share/man/man3/ansible.cloudformation.3.gz
$prefix/share/man/man3/ansible.command.3.gz
$prefix/share/man/man3/ansible.copy.3.gz
$prefix/share/man/man3/ansible.cron.3.gz
$prefix/share/man/man3/ansible.debug.3.gz
$prefix/share/man/man3/ansible.django_manage.3.gz
$prefix/share/man/man3/ansible.easy_install.3.gz
$prefix/share/man/man3/ansible.ec2.3.gz
$prefix/share/man/man3/ansible.ec2_elb.3.gz
$prefix/share/man/man3/ansible.ec2_facts.3.gz
$prefix/share/man/man3/ansible.ec2_vol.3.gz
$prefix/share/man/man3/ansible.facter.3.gz
$prefix/share/man/man3/ansible.fail.3.gz
$prefix/share/man/man3/ansible.fetch.3.gz
$prefix/share/man/man3/ansible.file.3.gz
$prefix/share/man/man3/ansible.filesystem.3.gz
$prefix/share/man/man3/ansible.fireball.3.gz
$prefix/share/man/man3/ansible.flowdock.3.gz
$prefix/share/man/man3/ansible.gem.3.gz
$prefix/share/man/man3/ansible.get_url.3.gz
$prefix/share/man/man3/ansible.git.3.gz
$prefix/share/man/man3/ansible.glance_image.3.gz
$prefix/share/man/man3/ansible.group.3.gz
$prefix/share/man/man3/ansible.group_by.3.gz
$prefix/share/man/man3/ansible.hg.3.gz
$prefix/share/man/man3/ansible.hipchat.3.gz
$prefix/share/man/man3/ansible.homebrew.3.gz
$prefix/share/man/man3/ansible.ini_file.3.gz
$prefix/share/man/man3/ansible.irc.3.gz
$prefix/share/man/man3/ansible.jabber.3.gz
$prefix/share/man/man3/ansible.keystone_user.3.gz
$prefix/share/man/man3/ansible.lineinfile.3.gz
$prefix/share/man/man3/ansible.lvg.3.gz
$prefix/share/man/man3/ansible.lvol.3.gz
$prefix/share/man/man3/ansible.macports.3.gz
$prefix/share/man/man3/ansible.mail.3.gz
$prefix/share/man/man3/ansible.mongodb_user.3.gz
$prefix/share/man/man3/ansible.monit.3.gz
$prefix/share/man/man3/ansible.mount.3.gz
$prefix/share/man/man3/ansible.mqtt.3.gz
$prefix/share/man/man3/ansible.mysql_db.3.gz
$prefix/share/man/man3/ansible.mysql_user.3.gz
$prefix/share/man/man3/ansible.nagios.3.gz
$prefix/share/man/man3/ansible.netscaler.3.gz
$prefix/share/man/man3/ansible.newrelic_deployment.3.gz
$prefix/share/man/man3/ansible.nova_compute.3.gz
$prefix/share/man/man3/ansible.nova_keypair.3.gz
$prefix/share/man/man3/ansible.npm.3.gz
$prefix/share/man/man3/ansible.ohai.3.gz
$prefix/share/man/man3/ansible.openbsd_pkg.3.gz
$prefix/share/man/man3/ansible.opkg.3.gz
$prefix/share/man/man3/ansible.osx_say.3.gz
$prefix/share/man/man3/ansible.pacman.3.gz
$prefix/share/man/man3/ansible.pagerduty.3.gz
$prefix/share/man/man3/ansible.pause.3.gz
$prefix/share/man/man3/ansible.ping.3.gz
$prefix/share/man/man3/ansible.pingdom.3.gz
$prefix/share/man/man3/ansible.pip.3.gz
$prefix/share/man/man3/ansible.pkgin.3.gz
$prefix/share/man/man3/ansible.pkgng.3.gz
$prefix/share/man/man3/ansible.postgresql_db.3.gz
$prefix/share/man/man3/ansible.postgresql_privs.3.gz
$prefix/share/man/man3/ansible.postgresql_user.3.gz
$prefix/share/man/man3/ansible.quantum_floating_ip.3.gz
$prefix/share/man/man3/ansible.quantum_floating_ip_associate.3.gz
$prefix/share/man/man3/ansible.quantum_network.3.gz
$prefix/share/man/man3/ansible.quantum_router.3.gz
$prefix/share/man/man3/ansible.quantum_router_gateway.3.gz
$prefix/share/man/man3/ansible.quantum_router_interface.3.gz
$prefix/share/man/man3/ansible.quantum_subnet.3.gz
$prefix/share/man/man3/ansible.rabbitmq_parameter.3.gz
$prefix/share/man/man3/ansible.rabbitmq_plugin.3.gz
$prefix/share/man/man3/ansible.rabbitmq_user.3.gz
$prefix/share/man/man3/ansible.rabbitmq_vhost.3.gz
$prefix/share/man/man3/ansible.raw.3.gz
$prefix/share/man/man3/ansible.rax.3.gz
$prefix/share/man/man3/ansible.redhat_subscription.3.gz
$prefix/share/man/man3/ansible.rhn_channel.3.gz
$prefix/share/man/man3/ansible.rhn_register.3.gz
$prefix/share/man/man3/ansible.riak.3.gz
$prefix/share/man/man3/ansible.s3.3.gz
$prefix/share/man/man3/ansible.s3~e45b0f5fb17358dfa2741bce2615ef489c4f2dc0.3.gz
$prefix/share/man/man3/ansible.script.3.gz
$prefix/share/man/man3/ansible.seboolean.3.gz
$prefix/share/man/man3/ansible.selinux.3.gz
$prefix/share/man/man3/ansible.service.3.gz
$prefix/share/man/man3/ansible.set_fact.3.gz
$prefix/share/man/man3/ansible.setup.3.gz
$prefix/share/man/man3/ansible.shell.3.gz
$prefix/share/man/man3/ansible.slurp.3.gz
$prefix/share/man/man3/ansible.subversion.3.gz
$prefix/share/man/man3/ansible.supervisorctl.3.gz
$prefix/share/man/man3/ansible.svr4pkg.3.gz
$prefix/share/man/man3/ansible.sysctl.3.gz
$prefix/share/man/man3/ansible.template.3.gz
$prefix/share/man/man3/ansible.uri.3.gz
$prefix/share/man/man3/ansible.user.3.gz
$prefix/share/man/man3/ansible.virt.3.gz
$prefix/share/man/man3/ansible.wait_for.3.gz
$prefix/share/man/man3/ansible.yum.3.gz
$prefix/share/man/man3/ansible.zfs.3.gz
$prefix/share/man/man3/ansible.zypper.3.gz

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 108818 2013-08-02 18:39:47Z blair@macports.org $
3
4PortSystem      1.0
5PortGroup       python 1.0
6
7name            ansible
8version         1.2.1
9revision        1
10categories      sysutils
11supported_archs noarch
12
13maintainers     blair
14
15homepage        http://ansible.cc/
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://www.ansibleworks.com/releases/
30checksums       rmd160 c70080fb28bdfc38ba5787af072a9f0f5eee9af5 \
31                sha256 92354d8320fd53ffc291b5ee7b47bef5a907c4479c8ce5512ca8ae89998bf166
32
33python.default_version  27
34depends_lib-append      port:py${python.version}-jinja2 \
35                        port:py${python.version}-paramiko \
36                        port:py${python.version}-yaml
37
38patch {
39    fs-traverse f ${worksrcpath} {
40        if {[file isfile ${f}]} {
41            reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
42            reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
43        }
44    }
45}
46
47post-destroot {
48    # Documentation and examples.
49    xinstall -m 644 -W ${worksrcpath} README.md COPYING \
50        ${destroot}${prefix}/share/doc/${name}
51
52    xinstall -m 755 -d ${destroot}${prefix}/share/doc/examples
53    xinstall -m 755 ${worksrcpath}/examples/ansible.cfg \
54        ${destroot}${prefix}/share/doc/${name}/examples
55    xinstall -m 755 ${worksrcpath}/examples/hosts \
56        ${destroot}${prefix}/share/doc/${name}/examples
57
58    file copy ${worksrcpath}/examples/playbooks \
59        ${destroot}${prefix}/share/doc/${name}/examples/
60
61    # Man pages.
62    xinstall -d 644 ${destroot}${prefix}/share/man/man1
63    eval xinstall -m 755 [glob ${worksrcpath}/docs/man/man1/*.1] \
64        ${destroot}${prefix}/share/man/man1
65    xinstall -d 644 ${destroot}${prefix}/share/man/man3
66    eval xinstall -m 755 [glob ${worksrcpath}/docs/man/man3/*.3] \
67        ${destroot}${prefix}/share/man/man3
68
69    # Install sample config and hosts file.
70    xinstall -m 755 -d ${destroot}${prefix}/etc/ansible
71    xinstall -b -m 755 ${worksrcpath}/examples/ansible.cfg \
72        ${destroot}${prefix}/etc/ansible/ansible.cfg.default
73    xinstall -b -m 755 ${worksrcpath}/examples/hosts \
74        ${destroot}${prefix}/etc/ansible/hosts.default
75}
76
77python.link_binaries_suffix
Note: See TracBrowser for help on using the repository browser.