Skip to content

Commit

Permalink
sqm-scripts: Modify installation step to ensure correct chmod values
Browse files Browse the repository at this point in the history
Use INSTALL_BIN & INSTALL_DATA macros instead of cp
to ensure correct chmod values for the executable files.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
  • Loading branch information
hnyman committed Nov 9, 2014
1 parent d26911c commit 619d8a2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions net/sqm-scripts/Makefile
Expand Up @@ -9,7 +9,8 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=sqm-scripts
PKG_VERSION:=7
PKG_RELEASE:=1
PKG_RELEASE:=3
PKG_LICENSE:=GPLv2

PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

Expand Down Expand Up @@ -43,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))

0 comments on commit 619d8a2

Please sign in to comment.