From a5434a987a4d92e7355c8d0ee267d2a5738c5896 Mon Sep 17 00:00:00 2001 From: cgtx Date: Tue, 18 Feb 2014 08:54:13 -0600 Subject: [PATCH 1/2] use correct permission mode when installing --- packaging/arch/PKGBUILD | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packaging/arch/PKGBUILD b/packaging/arch/PKGBUILD index 6f5c587ea9..916ecb6cba 100644 --- a/packaging/arch/PKGBUILD +++ b/packaging/arch/PKGBUILD @@ -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" } From f1aee1cfaf006071d1a48951b59d248d233f85e3 Mon Sep 17 00:00:00 2001 From: cgtx Date: Tue, 18 Feb 2014 15:56:11 -0600 Subject: [PATCH 2/2] remove optional vars folders --- packaging/arch/PKGBUILD | 2 -- 1 file changed, 2 deletions(-) diff --git a/packaging/arch/PKGBUILD b/packaging/arch/PKGBUILD index 916ecb6cba..0df907ed28 100644 --- a/packaging/arch/PKGBUILD +++ b/packaging/arch/PKGBUILD @@ -39,8 +39,6 @@ package() { python2 setup.py install -O1 --root="$pkgdir" 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 -Dm644 README.md $pkgdir/usr/share/doc/ansible/README.md install -Dm644 COPYING $pkgdir/usr/share/doc/ansible/COPYING