Makefile 719 B

1234567891011121314151617181920212223242526272829303132333435
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-mesh-vpn-core
  3. PKG_VERSION:=1
  4. include ../gluon.mk
  5. define Package/gluon-mesh-vpn-core
  6. SECTION:=gluon
  7. CATEGORY:=Gluon
  8. TITLE:=Basic support for connecting meshes via VPN tunnels
  9. DEPENDS:=+gluon-core +gluon-wan-dnsmasq +iptables +iptables-mod-extra +simple-tc
  10. endef
  11. define Build/Prepare
  12. mkdir -p $(PKG_BUILD_DIR)
  13. endef
  14. define Build/Compile
  15. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  16. endef
  17. define Package/gluon-mesh-vpn-core/install
  18. $(CP) ./files/* $(1)/
  19. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  20. endef
  21. define Package/gluon-mesh-vpn-core/postinst
  22. #!/bin/sh
  23. $(call GluonCheckSite,check_site.lua)
  24. endef
  25. $(eval $(call BuildPackage,gluon-mesh-vpn-core))