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.

60 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=containerd
  3. PKG_VERSION:=1.4.3
  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://codeload.github.com/containerd/containerd/tar.gz/v${PKG_VERSION}?
  9. PKG_HASH:=bc6d9452c700af0ebc09c0da8ddba55be4c03ac8928e72ca92d98905800c8018
  10. PKG_SOURCE_VERSION:=269548fa27e0089a8b8278fc4fc781d7f65a939b
  11. PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
  12. PKG_BUILD_DEPENDS:=golang/host
  13. PKG_BUILD_PARALLEL:=1
  14. PKG_INSTALL:=1
  15. PKG_USE_MIPS16:=0
  16. GO_PKG:=github.com/containerd/containerd
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../lang/golang/golang-package.mk
  19. define Package/containerd
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=containerd container runtime
  23. URL:=https://containerd.io/
  24. DEPENDS:=$(GO_ARCH_DEPENDS) +btrfs-progs +runc
  25. MENU:=1
  26. endef
  27. define Package/containerd/description
  28. An industry-standard container runtime with an emphasis on simplicity, robustness and portability
  29. endef
  30. GO_PKG_INSTALL_ALL:=1
  31. MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
  32. MAKE_VARS += $(GO_PKG_VARS)
  33. MAKE_FLAGS += \
  34. VERSION=$(PKG_VERSION) \
  35. REVISION=$(PKG_SOURCE_VERSION)
  36. ifeq ($(CONFIG_SELINUX),y)
  37. MAKE_FLAGS += BUILDTAGS='selinux'
  38. else
  39. MAKE_FLAGS += BUILDTAGS=''
  40. endif
  41. # Reset golang-package.mk overrides so we can use the Makefile
  42. Build/Compile=$(call Build/Compile/Default)
  43. define Package/containerd/install
  44. $(INSTALL_DIR) $(1)/usr/bin/
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/{ctr,containerd,containerd-stress,containerd-shim,containerd-shim-runc-v1,containerd-shim-runc-v2} $(1)/usr/bin/
  46. endef
  47. $(eval $(call BuildPackage,containerd))