From 0f0b241d56c89564878c40d66912e6aafbba5bb8 Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sun, 9 Nov 2014 10:23:54 +0200 Subject: [PATCH] sqm-scripts: Modify installation step to ensure correct file permissions Use INSTALL_BIN & INSTALL_DATA macros instead of cp to ensure correct file permissions for the executable files. Signed-off-by: Hannu Nyman --- net/sqm-scripts/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/net/sqm-scripts/Makefile b/net/sqm-scripts/Makefile index 31c548120..298220dfa 100644 --- a/net/sqm-scripts/Makefile +++ b/net/sqm-scripts/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=sqm-scripts PKG_VERSION:=7 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=GPLv2 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) @@ -44,8 +44,14 @@ define Build/Compile endef define Package/sqm-scripts/install - $(INSTALL_DIR) $(1) - $(CP) ./files/* $(1)/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/etc/init.d/sqm $(1)/etc/init.d/sqm + $(INSTALL_DIR) $(1)/etc/config + $(INSTALL_DATA) ./files/etc/config/sqm $(1)/etc/config/sqm + $(INSTALL_DIR) $(1)/usr/lib/sqm + $(INSTALL_BIN) ./files/usr/lib/sqm/*.sh $(1)/usr/lib/sqm/ + $(INSTALL_BIN) ./files/usr/lib/sqm/*.qos $(1)/usr/lib/sqm/ + $(INSTALL_DATA) ./files/usr/lib/sqm/*.help $(1)/usr/lib/sqm/ endef $(eval $(call BuildPackage,sqm-scripts))