Code

rules: Fix permissions of all PHP files.
authorSebastian Harl <sh@tokkee.org>
Thu, 27 Jan 2011 11:18:27 +0000 (12:18 +0100)
committerSebastian Harl <sh@tokkee.org>
Thu, 27 Jan 2011 11:18:27 +0000 (12:18 +0100)
Some of them are installed with the x-bit set and dh_fixperms does not seem to
take care of that.

debian/rules

index 4ed05371a5027f94e0cb2b70e31b564149aec435..2620bed4dc48d4e37f6ba34bafd89b9feaf88627 100755 (executable)
@@ -44,6 +44,10 @@ install: build
        rm -rf $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts
        ln -s /usr/share/fonts/truetype/ttf-dejavu $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts
 
        rm -rf $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts
        ln -s /usr/share/fonts/truetype/ttf-dejavu $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts
 
+       # fix permissions
+       for file in `find $(CURDIR)/debian/libkohana2-php -name '*.php'`; do \
+               chmod 644 $$file; \
+       done
 
 # Build architecture-independent files here.
 binary-indep: install
 
 # Build architecture-independent files here.
 binary-indep: install