From b975878c1470d65c6fb24a867fdcd25ffdceca7a Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 14 Sep 2010 23:55:54 +0000 Subject: sanitize permissions before packaging into .deb svn path=/trunk/; revision=14143 --- packages/linux_make/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packages') diff --git a/packages/linux_make/Makefile b/packages/linux_make/Makefile index 7af7fba6..5d5e52b6 100755 --- a/packages/linux_make/Makefile +++ b/packages/linux_make/Makefile @@ -138,6 +138,12 @@ deb: $(bindir) $(DESTDIR)/DEBIAN/control # add auto-generated dependencies sed -i 's!^\(Depends:.*\)!\1 $(PACKAGE_DEPENDS)!' $(DESTDIR)/DEBIAN/control +# sanitize permissions + chmod -R go-w $(DESTDIR) + chmod -R a+r $(DESTDIR) + find $(DESTDIR) -name \*.pd_linux | xargs chmod a-x + find $(DESTDIR) -name \*.pd | xargs chmod a-x + find $(DESTDIR) -type d | xargs chmod a+x fakeroot dpkg-deb --build $(DESTDIR) $(packages_src)/linux_make/$(PACKAGE_NAME).deb @@ -200,6 +206,7 @@ test_package: test_locations: @echo -------------------------------------------------- @echo "PD_VERSION: $(PD_VERSION)" + @echo "DEB_PD_VERSION: $(DEB_PD_VERSION)" @echo "PD-EXTENDED_VERSION: $(PD-EXTENDED_VERSION)" @echo "CWD $(CWD)" @echo "DESTDIR $(DESTDIR)" -- cgit v1.2.1