2
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:=gre
  9. PKG_VERSION:=1
  10. PKG_RELEASE:=7
  11. PKG_LICENSE:=GPL-2.0
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/gre/Default
  14. SECTION:=net
  15. CATEGORY:=Network
  16. MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
  17. endef
  18. define Package/gre
  19. $(call Package/gre/Default)
  20. TITLE:=Generic Routing Encapsulation config support
  21. endef
  22. define Package/gre/description
  23. Generic Routing Encapsulation config support (IPv4 and IPv6) in /etc/config/network.
  24. endef
  25. define Package/grev4
  26. $(call Package/gre/Default)
  27. TITLE:=Generic Routing Encapsulation (IPv4) config support
  28. DEPENDS:=@(PACKAGE_gre) +kmod-gre +resolveip
  29. endef
  30. define Package/grev4/description
  31. Generic Routing Encapsulation config support (IPv4) in /etc/config/network.
  32. endef
  33. define Package/grev6
  34. $(call Package/gre/Default)
  35. TITLE:=Generic Routing Encapsulation (IPv6) config support
  36. DEPENDS:=@(PACKAGE_gre) @IPV6 +kmod-gre6 +resolveip
  37. endef
  38. define Package/grev6/description
  39. Generic Routing Encapsulation config support (IPv6) in /etc/config/network.
  40. endef
  41. define Build/Compile
  42. endef
  43. define Build/Configure
  44. endef
  45. define Package/gre/install
  46. $(INSTALL_DIR) $(1)/lib/netifd/proto
  47. $(INSTALL_BIN) ./files/gre.sh $(1)/lib/netifd/proto/gre.sh
  48. endef
  49. define Package/grev4/install
  50. :
  51. endef
  52. define Package/grev6/install
  53. :
  54. endef
  55. $(eval $(call BuildPackage,gre))
  56. $(eval $(call BuildPackage,grev4))
  57. $(eval $(call BuildPackage,grev6))