1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

use correct permission mode when installing

This commit is contained in:
cgtx 2014-02-18 08:54:13 -06:00
parent bb465ef5da
commit a5434a987a

View file

@ -32,19 +32,21 @@ build() {
package() {
cd $pkgname
mkdir -p "$pkgdir/usr/share/ansible"
install -dm755 $pkgdir/usr/share/ansible
cp -dpr --no-preserve=ownership ./library/* "$pkgdir/usr/share/ansible/"
cp -dpr --no-preserve=ownership ./examples "$pkgdir/usr/share/ansible"
python2 setup.py install -O1 --root="$pkgdir"
install -D examples/ansible.cfg "$pkgdir/etc/ansible/ansible.cfg"
install -Dm644 examples/ansible.cfg $pkgdir/etc/ansible/ansible.cfg
install -dm755 $pkgdir/etc/ansible/group_vars
install -dm755 $pkgdir/etc/ansible/host_vars
install -D README.md "$pkgdir/usr/share/doc/ansible/README.md"
install -D COPYING "$pkgdir/usr/share/doc/ansible/COPYING"
install -D CHANGELOG.md "$pkgdir/usr/share/doc/ansible/CHANGELOG.md"
install -Dm644 README.md $pkgdir/usr/share/doc/ansible/README.md
install -Dm644 COPYING $pkgdir/usr/share/doc/ansible/COPYING
install -Dm644 CHANGELOG.md $pkgdir/usr/share/doc/ansible/CHANGELOG.md
mkdir -p "$pkgdir/usr/share/man/man{1,3}"
install -dm755 ${pkgdir}/usr/share/man/man{1,3}
cp -dpr --no-preserve=ownership docs/man/man1/*.1 "$pkgdir/usr/share/man/man1"
cp -dpr --no-preserve=ownership docs/man/man3/*.3 "$pkgdir/usr/share/man/man3"
}