Makefile 1.0 KB

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