Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 ../gluon.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 +lua-hash +luci-base +luci-lib-jsonc +odhcp6c +firewall +pretty-hostname
  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. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  23. endef
  24. define Package/gluon-core/install
  25. $(CP) ./files/* $(1)/
  26. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  27. $(SED) 's/__GLUON_OPENWRT_FEEDS__/{$(GLUON_OPENWRT_FEEDS:%="%",)}/' $(1)/lib/gluon/upgrade/500-opkg
  28. $(INSTALL_DIR) $(1)/lib/gluon
  29. echo "$(GLUON_VERSION)" > $(1)/lib/gluon/gluon-version
  30. echo "$(GLUON_SITE_VERSION)" > $(1)/lib/gluon/site-version
  31. endef
  32. define Package/gluon-core/postinst
  33. #!/bin/sh
  34. $(call GluonCheckSite,check_site.lua)
  35. endef
  36. $(eval $(call BuildPackage,gluon-core))