Makefile 873 B

1234567891011121314151617181920212223242526272829303132333435
  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 $(GLUONDIR)/include/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 +libgluonutil gluon-mesh-batman-adv +gluon-wan-dnsmasq +fastd +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 Package/gluon-mesh-vpn-fastd/install
  18. $(CP) ./files/* $(1)/
  19. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  20. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/mesh-vpn-fastd.so
  21. endef
  22. define Package/gluon-mesh-vpn-fastd/postinst
  23. #!/bin/sh
  24. $(call GluonCheckSite,check_site.lua)
  25. endef
  26. $(eval $(call BuildPackage,gluon-mesh-vpn-fastd))