Ticket #39775: ansible_post-destroot.diff

File ansible_post-destroot.diff, 1.1 KB (added by macports@…, 11 years ago)
Line 
145a46,68
2> post-destroot {
3>   # documentation and examples
4>   xinstall -m 644 -W ${worksrcpath} README.md COPYING  \
5>     ${destroot}${prefix}/share/doc/${name}
6>
7>   xinstall -m 755 -d ${destroot}${prefix}/share/doc/examples
8>   xinstall -m 755 ${worksrcpath}/examples/ansible.cfg ${destroot}${prefix}/share/doc/${name}/examples
9>   xinstall -m 755 ${worksrcpath}/examples/hosts ${destroot}${prefix}/share/doc/${name}/examples
10>
11>   file copy ${worksrcpath}/examples/playbooks ${destroot}${prefix}/share/doc/${name}/examples/
12>
13>   # man pages
14>   xinstall -d 644 ${destroot}${prefix}/share/man/man1
15>   eval xinstall -m 755 [glob ${worksrcpath}/docs/man/man1/*.1] ${destroot}${prefix}/share/man/man1
16>   xinstall -d 644 ${destroot}${prefix}/share/man/man3
17>   eval xinstall -m 755 [glob ${worksrcpath}/docs/man/man3/*.3] ${destroot}${prefix}/share/man/man3
18>
19>   # install sample config and hosts file
20>   xinstall -m 755 -d ${destroot}${prefix}/etc/ansible
21>   xinstall -b -m 755 ${worksrcpath}/examples/ansible.cfg ${destroot}${prefix}/etc/ansible/ansible.cfg
22>   xinstall -b -m 755 ${worksrcpath}/examples/hosts ${destroot}${prefix}/etc/ansible/hosts
23> }
24>