Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-autoupdater-wifi-fallback
  3. PKG_VERSION:=2
  4. PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. PKG_BUILD_DEPENDS := respondd
  7. include $(TOPDIR)/../package/gluon.mk
  8. define Package/ffho-autoupdater-wifi-fallback
  9. SECTION:=ffho
  10. CATEGORY:=FFHO
  11. TITLE:=Implements switching to fallback mode if we are cut off from the mesh
  12. DEPENDS:=+gluon-autoupdater +libiwinfo-lua +iw
  13. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  14. URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. $(CP) ./src/* $(PKG_BUILD_DIR)/
  19. endef
  20. define Build/Compile
  21. $(call Build/Compile/Default)
  22. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  23. endef
  24. define Package/ffho-autoupdater-wifi-fallback/install
  25. $(CP) ./files/* $(1)/
  26. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  27. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  28. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/autoupdater-wifi-fallback.so
  29. endef
  30. $(eval $(call BuildPackage,ffho-autoupdater-wifi-fallback))