summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-12-20 11:24:29 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2011-12-20 11:24:29 +0100
commit601bf47ef8a68f773393210b5a7c54f9020ec91a (patch)
treefa0457c19625a535b5a5377b2851ebf05ad557a5
parent4565a1d75f7576c4b654152e1e5162f8b932f1ca (diff)
package: don't install javascript files as executable
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>
-rw-r--r--package/flot/flot.mk2
-rw-r--r--package/jquery-sparkline/jquery-sparkline.mk2
-rw-r--r--package/jquery-validation/jquery-validation.mk2
-rw-r--r--package/jquery/jquery.mk3
4 files changed, 5 insertions, 4 deletions
diff --git a/package/flot/flot.mk b/package/flot/flot.mk
index df3f4d18a..8b51b5521 100644
--- a/package/flot/flot.mk
+++ b/package/flot/flot.mk
@@ -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
diff --git a/package/jquery-sparkline/jquery-sparkline.mk b/package/jquery-sparkline/jquery-sparkline.mk
index 93dddf094..d0b478a4c 100644
--- a/package/jquery-sparkline/jquery-sparkline.mk
+++ b/package/jquery-sparkline/jquery-sparkline.mk
@@ -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
diff --git a/package/jquery-validation/jquery-validation.mk b/package/jquery-validation/jquery-validation.mk
index 5f25b58e9..5fee4c16f 100644
--- a/package/jquery-validation/jquery-validation.mk
+++ b/package/jquery-validation/jquery-validation.mk
@@ -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
diff --git a/package/jquery/jquery.mk b/package/jquery/jquery.mk
index aba6301ca..08dd4a37f 100644
--- a/package/jquery/jquery.mk
+++ b/package/jquery/jquery.mk
@@ -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