From 601bf47ef8a68f773393210b5a7c54f9020ec91a Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 20 Dec 2011 11:24:29 +0100 Subject: 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 --- package/flot/flot.mk | 2 +- package/jquery-sparkline/jquery-sparkline.mk | 2 +- package/jquery-validation/jquery-validation.mk | 2 +- package/jquery/jquery.mk | 3 ++- 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 -- cgit v1.2.3