Makefile 971 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-core
  3. PKG_VERSION:=3
  4. PKG_RELEASE:=$(GLUON_VERSION)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(GLUONDIR)/include/package.mk
  7. define Package/gluon-core
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Base files of Gluon
  11. DEPENDS:=+gluon-site +libgluonutil +lua-platform-info +luci-base +luci-lib-jsonc +odhcp6c +firewall
  12. endef
  13. define Package/gluon-core/description
  14. Gluon community wifi mesh firmware framework: core
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. endef
  19. define Build/Configure
  20. endef
  21. define Build/Compile
  22. endef
  23. define Package/gluon-core/install
  24. $(CP) ./files/* $(1)/
  25. $(SED) 's/__GLUON_OPENWRT_FEEDS__/{$(GLUON_OPENWRT_FEEDS:%="%",)}/' $(1)/lib/gluon/upgrade/500-opkg
  26. $(INSTALL_DIR) $(1)/lib/gluon
  27. echo "$(GLUON_VERSION)" > $(1)/lib/gluon/gluon-version
  28. endef
  29. define Package/gluon-core/postinst
  30. #!/bin/sh
  31. $(call GluonCheckSite,check_site.lua)
  32. endef
  33. $(eval $(call BuildPackage,gluon-core))