Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 +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. endef
  31. define Package/gluon-core/postinst
  32. #!/bin/sh
  33. $(call GluonCheckSite,check_site.lua)
  34. endef
  35. $(eval $(call BuildPackage,gluon-core))