Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-status-page
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
  5. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  6. include $(TOPDIR)/../package/gluon.mk
  7. define Package/ffho-status-page
  8. SECTION:=ffho
  9. CATEGORY:=Gluon
  10. TITLE:=Adds a status page showing information about the node.
  11. DEPENDS:=+gluon-core +uhttpd +gluon-status-page-api +libiwinfo-lua +luci-lib-jsonc
  12. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  13. endef
  14. define Package/ffho-status-page/description
  15. Adds a status page showing information about the node.
  16. Especially useful in combination with the next-node feature.
  17. endef
  18. define Build/Prepare
  19. mkdir -p $(PKG_BUILD_DIR)
  20. endef
  21. define Build/Configure
  22. endef
  23. define Build/Compile
  24. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  25. endef
  26. define Package/ffho-status-page/install
  27. $(CP) ./files/* $(1)/
  28. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  29. endef
  30. $(eval $(call BuildPackage,ffho-status-page))