Makefile 966 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-mesh-vpn-fastd
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1.$(GLUON_CONFIG_VERSION)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/gluon-mesh-vpn-fastd
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Support for connecting batman-adv meshes via fastd
  11. DEPENDS:=+gluon-core +gluon-mesh-batman-adv +fastd
  12. endef
  13. define Package/gluon-mesh-vpn-fastd/description
  14. Gluon community wifi mesh firmware framework: fastd support
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. endef
  19. define Build/Configure
  20. endef
  21. define Build/Compile
  22. $(GLUON_CONFIGURE) fastd.pl > $(PKG_BUILD_DIR)/fastd.sh
  23. endef
  24. define Package/gluon-mesh-vpn-fastd/install
  25. $(CP) ./files/* $(1)/
  26. $(INSTALL_DIR) $(1)/lib/gluon/upgrade/mesh-vpn-fastd/invariant
  27. $(INSTALL_BIN) $(PKG_BUILD_DIR)/fastd.sh $(1)/lib/gluon/upgrade/mesh-vpn-fastd/invariant/010-mesh-vpn-fastd
  28. endef
  29. $(eval $(call BuildPackage,gluon-mesh-vpn-fastd))