Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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:=3
  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
  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
  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. $(eval $(call BuildPackage,gre))
  50. $(eval $(call BuildPackage,grev4))
  51. $(eval $(call BuildPackage,grev6))