Makefile 767 B

123456789101112131415161718192021222324252627282930313233343536
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-node-info
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. PKG_BUILD_DEPENDS := respondd
  7. include $(GLUONDIR)/include/package.mk
  8. define Package/gluon-node-info
  9. SECTION:=gluon
  10. CATEGORY:=Gluon
  11. TITLE:=Add /etc/config/gluon-node-info to uci
  12. DEPENDS:=+gluon-core +libgluonutil
  13. endef
  14. define Build/Prepare
  15. mkdir -p $(PKG_BUILD_DIR)
  16. $(CP) ./src/* $(PKG_BUILD_DIR)/
  17. endef
  18. define Package/gluon-node-info/install
  19. $(CP) ./files/* $(1)/
  20. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  21. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/node-info.so
  22. endef
  23. define Package/gluon-node-info/postinst
  24. #!/bin/sh
  25. $(call GluonCheckSite,check_site.lua)
  26. endef
  27. $(eval $(call BuildPackage,gluon-node-info))