From 3d3235743dc1fff19fc211a1da57289365813baa Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Mon, 28 Feb 2011 23:49:53 +0600 Subject: [PATCH] Fix permissions for modules's static data. With cp -Rp, the files's permissions were just copied from source. But 4c7808c5c broke that behaviour, so after copying we set permissions for new installed files. Why "install" doesn't support installing directories? :( --- modules/Makefile.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/Makefile.in b/modules/Makefile.in index 56d2a475..b87f4626 100644 --- a/modules/Makefile.in +++ b/modules/Makefile.in @@ -106,6 +106,8 @@ install_metadirs: create_install_dir d=$$(echo $$a | sed -e "s:$(srcdir)/::g;s:modperl::;s:modpython::"); \ if [ -d $$a ] && [ -f $${d}.so ]; then \ cp -R $$a $(DESTDIR)$(DATADIR); \ + find $(DESTDIR)$(DATADIR)/$$a -type d -exec chmod 0755 '{}' \;; \ + find $(DESTDIR)$(DATADIR)/$$a -type f -exec chmod 0644 '{}' \;; \ fi \ done