diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 20:03:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 20:03:01 +0000 |
commit | a453ac31f3428614cceb99027f8efbdb9258a40b (patch) | |
tree | f61f87408f32a8511cbd91799f9cececb53e0374 /packaging/macports | |
parent | Initial commit. (diff) | |
download | ansible-upstream.tar.xz ansible-upstream.zip |
Adding upstream version 2.10.7+merged+base+2.10.8+dfsg.upstream/2.10.7+merged+base+2.10.8+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/macports')
-rw-r--r-- | packaging/macports/.gitignore | 2 | ||||
-rw-r--r-- | packaging/macports/README.md | 39 | ||||
-rw-r--r-- | packaging/macports/sysutils/ansible/Portfile | 67 |
3 files changed, 108 insertions, 0 deletions
diff --git a/packaging/macports/.gitignore b/packaging/macports/.gitignore new file mode 100644 index 00000000..2af97a6f --- /dev/null +++ b/packaging/macports/.gitignore @@ -0,0 +1,2 @@ +PortIndex +PortIndex.quick diff --git a/packaging/macports/README.md b/packaging/macports/README.md new file mode 100644 index 00000000..7984a96c --- /dev/null +++ b/packaging/macports/README.md @@ -0,0 +1,39 @@ +This portfile installs ansible from the git repository, it will install the +latest and greatest version of ansible. This portfile does not install the +required dependencies to run in accelerated mode. + +## Installing the stable version of ansible via macports + +If you wish to run a stable version of ansible please do the following + +First update your macports repo to the latest versions + + $ sudo port sync + +Then install ansible + + $ sudo port install ansible + +## Installing the devel version of ansible via macports + +To use this Portfile to install the development version of ansible one should +follow the instructions at +<http://guide.macports.org/#development.local-repositories> + +The basic idea is to add the _ansible/packaging/macports_ directory to your +_/opt/local/etc/macports/sources.conf_ file. You should have something similar +to this at the end of the file + + file:///Users/jtang/develop/ansible/packaging/macports + rsync://rsync.macports.org/release/tarballs/ports.tar [default] + +In the _ansible/packaging/macports_ directory, do this + + $ portindex + +Once the index is created the _Portfile_ will override the one in the upstream +macports repository. + +Installing newer development versions should involve an uninstall, clean, +install process or else the Portfile will need its version number/epoch +bumped. diff --git a/packaging/macports/sysutils/ansible/Portfile b/packaging/macports/sysutils/ansible/Portfile new file mode 100644 index 00000000..9a386d77 --- /dev/null +++ b/packaging/macports/sysutils/ansible/Portfile @@ -0,0 +1,67 @@ +# -*- 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 $ + +PortSystem 1.0 +PortGroup python 1.0 + +name ansible +version devel +categories sysutils +supported_archs noarch + +maintainers nomaintainer + +homepage https://ansible.com/ +description Ansible IT Automation +long_description \ + Ansible is a radically simple model-driven configuration \ + management, multi-node deployment, and orchestration \ + engine. 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 + +fetch.type git +git.url https://github.com/ansible/ansible.git +git.branch ${version} + +python.default_version 27 +depends_lib-append port:py${python.version}-jinja2 \ + port:py${python.version}-paramiko \ + port:py${python.version}-yaml + +patch { + fs-traverse f ${worksrcpath} { + if {[file isfile ${f}]} { + reinplace -locale C "s#/etc/ansible#${prefix}/etc/ansible#g" ${f} + reinplace -locale C "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f} + } + } +} + +post-destroot { + # documentation and examples + xinstall -m 644 -W ${worksrcpath} README.rst 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 + xinstall -m 755 ${worksrcpath}/examples/hosts ${destroot}${prefix}/share/doc/${name}/examples + + file copy ${worksrcpath}/examples/playbooks ${destroot}${prefix}/share/doc/${name}/examples/ + + # man pages + xinstall -d 644 ${destroot}${prefix}/share/man/man1 + 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 -m 755 ${worksrcpath}/examples/ansible.cfg ${destroot}${prefix}/etc/ansible/ansible.cfg + xinstall -m 755 ${worksrcpath}/examples/hosts ${destroot}${prefix}/etc/ansible/hosts +} + +python.link_binaries_suffix |