From ca16ce36ffc264e1cd4ad506eaf57ec3ed265e14 Mon Sep 17 00:00:00 2001 From: Stefan Laudemann <thisco@webcake.de> Date: Mon, 24 Nov 2014 04:31:21 +0100 Subject: [PATCH] Changes Makefile of ffpb-alfred-watchdog to make use of OpenWRT INSTALL_{DIR, DATA, BIN} macros. Using these macros (instead of $(CP)) in the Package/.../install section ensures correct permissions of the files installed in the image. The script ffpb-alfred-watchdog itself now get installed to /bin using INSTALL_BIN, while the corresponding cron-file gets installed using INSTALL_DATA. In both cases we ensure that the directories exist by calling INSTALL_DIR (with parameters "/bin" and "/lib/gluon/cron" respectively) prior to installing the files. --- ffpb/ffpb-alfred-watchdog/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ffpb/ffpb-alfred-watchdog/Makefile b/ffpb/ffpb-alfred-watchdog/Makefile index 1bd6a02..b63757b 100644 --- a/ffpb/ffpb-alfred-watchdog/Makefile +++ b/ffpb/ffpb-alfred-watchdog/Makefile @@ -42,7 +42,10 @@ define Build/Compile endef define Package/ffpb-alfred-watchdog/install - $(CP) ./files/* $(1)/ + $(INSTALL_DIR) $(1)/bin/ + $(INSTALL_DIR) $(1)/lib/gluon/cron/ + $(INSTALL_BIN) ./files/bin/* $(1)/bin/ + $(INSTALL_DATA) ./files/lib/gluon/cron/* $(1)/lib/gluon/cron/ endef $(eval $(call BuildPackage,ffpb-alfred-watchdog)) -- GitLab