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.

49 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=cni-plugins
  3. PKG_VERSION:=0.9.1
  4. PKG_RELEASE:=$(AUTORELEASE)
  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/plugins/archive/v$(PKG_VERSION)
  9. PKG_HASH:=35e96c6c47b9d080d1cbdcfca02808b01a95464607cd2a2c971b3ad596285928
  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/plugins/
  15. GO_PKG_BUILD_PKG:=github.com/containernetworking/plugins/plugins/main/... \
  16. github.com/containernetworking/plugins/plugins/meta/... \
  17. github.com/containernetworking/plugins/plugins/ipam/...
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../lang/golang/golang-package.mk
  20. PKG_UNPACK:=$(HOST_TAR) -C "$(PKG_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(PKG_SOURCE)"
  21. define Package/cni-plugins
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=cni-plugins
  25. URL:=https://github.com/containernetworking/cni-plugins
  26. DEPENDS:=$(GO_ARCH_DEPENDS) +ip-full
  27. endef
  28. define Package/cni-plugins/description
  29. Some CNI network plugins, maintained by the containernetworking team. For
  30. more information, see the individual READMEs.
  31. endef
  32. define Package/cni-plugins/install
  33. $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
  34. $(INSTALL_DIR) $(1)/usr/lib/cni
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/lib/cni
  36. endef
  37. $(eval $(call GoBinPackage,cni-plugins))
  38. $(eval $(call BuildPackage,cni-plugins))