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.

51 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=cni
  3. PKG_VERSION:=0.8.0
  4. PKG_RELEASE:=3
  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. GO_PKG_BUILD_VARS += GO111MODULE=auto
  20. define Package/cni
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=cni
  24. URL:=https://github.com/containernetworking/cni
  25. DEPENDS:=$(GO_ARCH_DEPENDS)
  26. endef
  27. define Package/cni/description
  28. CNI (Container Network Interface), a Cloud Native Computing Foundation
  29. project, consists of a specification and libraries for writing plugins to
  30. configure network interfaces in Linux containers, along with a number of
  31. supported plugins. CNI concerns itself only with network connectivity of
  32. containers and removing allocated resources when the container is deleted.
  33. Because of this focus, CNI has a wide range of support and the specification
  34. is simple to implement.
  35. endef
  36. define Package/cni/install
  37. $(call GoPackage/Package/Install/Bin,$(1))
  38. endef
  39. $(eval $(call GoBinPackage,cni))
  40. $(eval $(call BuildPackage,cni))