Makefile 832 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-autoupdater
  3. PKG_VERSION:=4
  4. PKG_RELEASE:=$(GLUON_BRANCH)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(GLUONDIR)/include/package.mk
  7. define Package/gluon-autoupdater
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. DEPENDS:=+gluon-core +gluon-cron +autoupdater
  11. TITLE:=Automatically update firmware
  12. endef
  13. define Build/Prepare
  14. mkdir -p $(PKG_BUILD_DIR)
  15. endef
  16. define Build/Configure
  17. endef
  18. define Build/Compile
  19. endef
  20. define Package/gluon-autoupdater/install
  21. $(CP) ./files/* $(1)/
  22. if [ '$(GLUON_BRANCH)' ]; then \
  23. $(INSTALL_DIR) $(1)/lib/gluon/autoupdater; \
  24. echo '$(GLUON_BRANCH)' > $(1)/lib/gluon/autoupdater/default_branch; \
  25. fi
  26. endef
  27. define Package/gluon-autoupdater/postinst
  28. #!/bin/sh
  29. $(call GluonCheckSite,check_site.lua)
  30. endef
  31. $(eval $(call BuildPackage,gluon-autoupdater))