Makefile 1.1 KB

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