[102014] trunk/dports/sysutils

Ryan Schmidt ryandesign at macports.org
Fri Jan 25 00:18:21 PST 2013


On Jan 24, 2013, at 14:05, blair at macports.org wrote:

> Revision: 102014
>          https://trac.macports.org/changeset/102014
> Author:   blair at macports.org
> Date:     2013-01-24 12:05:14 -0800 (Thu, 24 Jan 2013)
> Log Message:
> -----------
> ansible: new port for an SSH-based configuration management and deployment system.
> 
> Added Paths:
> -----------
>    trunk/dports/sysutils/ansible/
>    trunk/dports/sysutils/ansible/Portfile

> +github.setup    ansible ansible 0.9

To fix the livecheck, you can add the tag prefix as the 4th argument. Looks like with version 0.9 they started using a "v" prefix on their tag names.


> +master_sites    https://github.com/ansible/ansible/downloads

This can be changed to "github.tarball_from downloads" for now. The github uploads / downloads feature is deprecated and going away soon, so the developers will probably be picking a new place to host their downloads and this will change again.


> +patch {
> +    foreach f [exec find ${worksrcpath} -type f] {
> +        reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
> +        reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
> +    }
> +}

This should use fs-traverse instead of calling out to the shell.


The attached patch makes these changes and works for me.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ansible.diff
Type: application/octet-stream
Size: 1159 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130125/0cb269ff/attachment-0001.obj>


More information about the macports-dev mailing list