[108818] trunk/dports/sysutils/ansible/Portfile
blair at macports.org
blair at macports.org
Fri Aug 2 11:39:48 PDT 2013
Revision: 108818
https://trac.macports.org/changeset/108818
Author: blair at macports.org
Date: 2013-08-02 11:39:47 -0700 (Fri, 02 Aug 2013)
Log Message:
-----------
ansible: also install sample conf files, docs and manual pages; closes #39775.
Modified Paths:
--------------
trunk/dports/sysutils/ansible/Portfile
Modified: trunk/dports/sysutils/ansible/Portfile
===================================================================
--- trunk/dports/sysutils/ansible/Portfile 2013-08-02 14:50:21 UTC (rev 108817)
+++ trunk/dports/sysutils/ansible/Portfile 2013-08-02 18:39:47 UTC (rev 108818)
@@ -6,6 +6,7 @@
name ansible
version 1.2.1
+revision 1
categories sysutils
supported_archs noarch
@@ -43,4 +44,34 @@
}
}
+post-destroot {
+ # Documentation and examples.
+ xinstall -m 644 -W ${worksrcpath} README.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
+ xinstall -d 644 ${destroot}${prefix}/share/man/man3
+ eval xinstall -m 755 [glob ${worksrcpath}/docs/man/man3/*.3] \
+ ${destroot}${prefix}/share/man/man3
+
+ # Install sample config and hosts file.
+ xinstall -m 755 -d ${destroot}${prefix}/etc/ansible
+ xinstall -b -m 755 ${worksrcpath}/examples/ansible.cfg \
+ ${destroot}${prefix}/etc/ansible/ansible.cfg.default
+ xinstall -b -m 755 ${worksrcpath}/examples/hosts \
+ ${destroot}${prefix}/etc/ansible/hosts.default
+}
+
python.link_binaries_suffix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130802/c110e3c5/attachment.html>
More information about the macports-changes
mailing list