Makefile 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-mesh-vpn-fastd
  3. PKG_VERSION:=3
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. PKG_BUILD_DEPENDS := respondd
  6. include ../gluon.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 +libgluonutil gluon-mesh-batman-adv +gluon-wan-dnsmasq +fastd +iptables +iptables-mod-extra +simple-tc
  12. endef
  13. define Build/Prepare
  14. mkdir -p $(PKG_BUILD_DIR)
  15. $(CP) ./src/* $(PKG_BUILD_DIR)/
  16. endef
  17. define Build/Compile
  18. $(call Build/Compile/Default)
  19. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  20. endef
  21. define Package/gluon-mesh-vpn-fastd/install
  22. $(CP) ./files/* $(1)/
  23. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  24. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  25. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/mesh-vpn-fastd.so
  26. endef
  27. define Package/gluon-mesh-vpn-fastd/postinst
  28. #!/bin/sh
  29. $(call GluonCheckSite,check_site.lua)
  30. endef
  31. $(eval $(call BuildPackage,gluon-mesh-vpn-fastd))