Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
  14. endef
  15. define Package/ffho-status-page/description
  16. Adds a status page showing information about the node.
  17. Especially useful in combination with the next-node feature.
  18. endef
  19. define Build/Prepare
  20. mkdir -p $(PKG_BUILD_DIR)
  21. endef
  22. define Build/Configure
  23. endef
  24. define Build/Compile
  25. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  26. endef
  27. define Package/ffho-status-page/install
  28. $(CP) ./files/* $(1)/
  29. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  30. endef
  31. $(eval $(call BuildPackage,ffho-status-page))