1
0

Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=vti
  9. PKG_VERSION:=1
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/vti/Default
  14. SECTION:=net
  15. CATEGORY:=Network
  16. MAINTAINER:=Andre Valentin <avalentin@marcant.net>
  17. endef
  18. define Package/vti
  19. $(call Package/vti/Default)
  20. TITLE:=Virtual IPsec Tunnel Interface config support
  21. endef
  22. define Package/vti/description
  23. Virtual IPsec Tunnel Interface config support (IPv4 and IPv6) in /etc/config/network.
  24. endef
  25. define Package/vtiv4
  26. $(call Package/vti/Default)
  27. TITLE:=Virtual IPsec Tunnel Interface (IPv4) config support
  28. DEPENDS:=@(PACKAGE_vti) +kmod-ip-vti
  29. endef
  30. define Package/vtiv4/description
  31. Virtual IPsec Tunnel Interface config support (IPv4) in /etc/config/network.
  32. endef
  33. define Package/vtiv6
  34. $(call Package/vti/Default)
  35. TITLE:=Virtual IPsec Tunnel Interface (IPv6) config support
  36. DEPENDS:=@(PACKAGE_vti) @IPV6 +kmod-ip6-vti
  37. endef
  38. define Package/vtiv6/description
  39. Virtual IPsec Tunnel Interface config support (IPv6) in /etc/config/network.
  40. endef
  41. define Build/Compile
  42. endef
  43. define Build/Configure
  44. endef
  45. define Package/vti/install
  46. $(INSTALL_DIR) $(1)/lib/netifd/proto
  47. $(INSTALL_BIN) ./files/vti.sh $(1)/lib/netifd/proto/vti.sh
  48. endef
  49. define Package/vtiv4/install
  50. :
  51. endef
  52. define Package/vtiv6/install
  53. :
  54. endef
  55. $(eval $(call BuildPackage,vti))
  56. $(eval $(call BuildPackage,vtiv4))
  57. $(eval $(call BuildPackage,vtiv6))