Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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:=3
  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. PKGARCH:=all
  18. endef
  19. define Package/vti
  20. $(call Package/vti/Default)
  21. TITLE:=Virtual IPsec Tunnel Interface config support
  22. endef
  23. define Package/vti/description
  24. Virtual IPsec Tunnel Interface config support (IPv4 and IPv6) in /etc/config/network.
  25. endef
  26. define Package/vtiv4
  27. $(call Package/vti/Default)
  28. TITLE:=Virtual IPsec Tunnel Interface (IPv4) config support
  29. DEPENDS:=@(PACKAGE_vti) +kmod-ip-vti
  30. endef
  31. define Package/vtiv4/description
  32. Virtual IPsec Tunnel Interface config support (IPv4) in /etc/config/network.
  33. endef
  34. define Package/vtiv6
  35. $(call Package/vti/Default)
  36. TITLE:=Virtual IPsec Tunnel Interface (IPv6) config support
  37. DEPENDS:=@(PACKAGE_vti) @IPV6 +kmod-ip6-vti
  38. endef
  39. define Package/vtiv6/description
  40. Virtual IPsec Tunnel Interface config support (IPv6) in /etc/config/network.
  41. endef
  42. define Build/Compile
  43. endef
  44. define Build/Configure
  45. endef
  46. define Package/vti/install
  47. $(INSTALL_DIR) $(1)/lib/netifd/proto
  48. $(INSTALL_BIN) ./files/vti.sh $(1)/lib/netifd/proto/vti.sh
  49. endef
  50. define Package/vtiv4/install
  51. :
  52. endef
  53. define Package/vtiv6/install
  54. :
  55. endef
  56. $(eval $(call BuildPackage,vti))
  57. $(eval $(call BuildPackage,vtiv4))
  58. $(eval $(call BuildPackage,vtiv6))