Makefile 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. PKG_BUILD_DEPENDS := respondd
  7. include $(GLUONDIR)/include/package.mk
  8. define Package/gluon-autoupdater
  9. SECTION:=gluon
  10. CATEGORY:=Gluon
  11. DEPENDS:=+gluon-core +libgluonutil +micrond +autoupdater
  12. TITLE:=Automatically update firmware
  13. endef
  14. define Build/Prepare
  15. mkdir -p $(PKG_BUILD_DIR)
  16. $(CP) ./src/* $(PKG_BUILD_DIR)/
  17. endef
  18. define Package/gluon-autoupdater/install
  19. $(CP) ./files/* $(1)/
  20. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  21. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/autoupdater.so
  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))