Skip to content
Snippets Groups Projects
Commit ca16ce36 authored by Stefan Laudemann's avatar Stefan Laudemann
Browse files

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.
parent 17bdc9bc
No related branches found
No related tags found
No related merge requests found
......@@ -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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment