You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=cni
  3. PKG_VERSION:=0.8.0
  4. PKG_RELEASE:=2
  5. PKG_LICENSE:=Apache-2.0
  6. PKG_LICENSE_FILES:=LICENSE
  7. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  8. PKG_SOURCE_URL:=https://github.com/containernetworking/$(PKG_NAME)/archive/v$(PKG_VERSION)
  9. PKG_HASH:=df8afe3eeae3296ba33ca267041c42f13135c3a067bf2d932761bb02998247a6
  10. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>, Paul Spooren <mail@aparcar.org>
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_USE_MIPS16:=0
  14. GO_PKG:=github.com/containernetworking/cni/
  15. GO_PKG_BUILD_PKG:=github.com/containernetworking/cni/cnitool
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../lang/golang/golang-package.mk
  18. PKG_USE_MIPS16:=0
  19. define Package/cni
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=cni
  23. URL:=https://github.com/containernetworking/cni
  24. DEPENDS:=$(GO_ARCH_DEPENDS)
  25. endef
  26. define Package/cni/description
  27. CNI (Container Network Interface), a Cloud Native Computing Foundation
  28. project, consists of a specification and libraries for writing plugins to
  29. configure network interfaces in Linux containers, along with a number of
  30. supported plugins. CNI concerns itself only with network connectivity of
  31. containers and removing allocated resources when the container is deleted.
  32. Because of this focus, CNI has a wide range of support and the specification
  33. is simple to implement.
  34. endef
  35. define Package/cni/install
  36. $(call GoPackage/Package/Install/Bin,$(1))
  37. endef
  38. $(eval $(call GoBinPackage,cni))
  39. $(eval $(call BuildPackage,cni))