package: don't install javascript files as executable
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 20 Dec 2011 10:24:29 +0000 (11:24 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 20 Dec 2011 10:24:29 +0000 (11:24 +0100)
install defaults to mode 0755, not 0644, so explicitly pass mode to
ensure .js files aren't made executable.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/flot/flot.mk
package/jquery-sparkline/jquery-sparkline.mk
package/jquery-validation/jquery-validation.mk
package/jquery/jquery.mk

index df3f4d18af1a7aeac0675b146b6418b52e6eed99..8b51b55213c72ecb57a439a9d41821aa487b205a 100644 (file)
@@ -12,7 +12,7 @@ FLOT_FILES = jquery.flot $(addprefix jquery.flot.,\
 
 define FLOT_INSTALL_TARGET_CMDS
        for i in $(FLOT_FILES); do \
-               $(INSTALL) -D $(@D)/$$i.min.js $(TARGET_DIR)/var/www/$$i.js; \
+               $(INSTALL) -m 0644 -D $(@D)/$$i.min.js $(TARGET_DIR)/var/www/$$i.js; \
        done
 endef
 
index 93dddf094aa9003b208500c3802dcfe0597e1db5..d0b478a4cc820b6f028428fb6a4c522fa23e018e 100644 (file)
@@ -7,7 +7,7 @@ define JQUERY_SPARKLINE_EXTRACT_CMDS
 endef
 
 define JQUERY_SPARKLINE_INSTALL_TARGET_CMDS
-       $(INSTALL) -D $(@D)/$(JQUERY_SPARKLINE_SOURCE) \
+       $(INSTALL) -m 0644 -D $(@D)/$(JQUERY_SPARKLINE_SOURCE) \
                $(TARGET_DIR)/var/www/jquery.sparkline.js
 endef
 
index 5f25b58e953af0b22dfb9998c684fba3d913fc77..5fee4c16f5d826e52bba074536551110b0ddf2d5 100644 (file)
@@ -7,7 +7,7 @@ define JQUERY_VALIDATION_EXTRACT_CMDS
 endef
 
 define JQUERY_VALIDATION_INSTALL_TARGET_CMDS
-       $(INSTALL) -D $(@D)/jquery.validate.min.js \
+       $(INSTALL) -m 0644 -D $(@D)/jquery.validate.min.js \
                $(TARGET_DIR)/var/www/jquery.validate.js
 endef
 
index aba6301caeb0e422fb5aa2f50aa9cf429409334c..08dd4a37fb080d21b5bf006c11fe4805bfb48624 100644 (file)
@@ -7,7 +7,8 @@ define JQUERY_EXTRACT_CMDS
 endef
 
 define JQUERY_INSTALL_TARGET_CMDS
-       $(INSTALL) -D $(@D)/$(JQUERY_SOURCE) $(TARGET_DIR)/var/www/jquery.js
+       $(INSTALL) -m 0644 -D $(@D)/$(JQUERY_SOURCE) \
+               $(TARGET_DIR)/var/www/jquery.js
 endef
 
 define JQUERY_UNINSTALL_TARGET_CMDS