Makefile 983 B

123456789101112131415161718192021222324252627282930313233
  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 $(GLUONDIR)/include/package.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 Package/ffho-autoupdater-wifi-fallback/install
  21. $(CP) ./files/* $(1)/
  22. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  23. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/autoupdater-wifi-fallback.so
  24. endef
  25. $(eval $(call BuildPackage,ffho-autoupdater-wifi-fallback))