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.

70 lines
1.9 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=containerd
  3. PKG_VERSION:=1.3.7
  4. PKG_RELEASE:=1
  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:=d30d59e143697aa4f0960205b3f5ac59c573b332f20507740ef2dc0fb5ae8ded
  10. PKG_SOURCE_VERSION:=8fba4e9a7d01810a393d5d25a3621dc101981175
  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. GO_PKG:=github.com/containerd/containerd
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../lang/golang/golang-package.mk
  18. define Package/containerd/config
  19. config CONTAINERD_SECCOMP
  20. depends on PACKAGE_containerd
  21. bool "Enable support for seccomp in containerd"
  22. default DOCKER_SECCOMP
  23. select KERNEL_SECCOMP
  24. help
  25. Build containerd with support for seccomp filters.
  26. Also pulls-in the needed kernel features.
  27. endef
  28. define Package/containerd
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. TITLE:=containerd container runtime
  32. URL:=https://containerd.io/
  33. DEPENDS:=$(GO_ARCH_DEPENDS) @(aarch64||arm||x86_64) +btrfs-progs +runc +libseccomp
  34. MENU:=1
  35. endef
  36. define Package/containerd/description
  37. An industry-standard container runtime with an emphasis on simplicity, robustness and portability
  38. endef
  39. GO_PKG_INSTALL_ALL:=1
  40. MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
  41. MAKE_VARS += $(GO_PKG_VARS)
  42. MAKE_FLAGS += \
  43. VERSION=$(PKG_VERSION) \
  44. REVISION=$(PKG_SOURCE_VERSION)
  45. ifeq ($(CONFIG_CONTAINERD_SECCOMP),y)
  46. MAKE_FLAGS += BUILDTAGS='seccomp'
  47. else
  48. MAKE_FLAGS += BUILDTAGS=''
  49. endif
  50. # Reset golang-package.mk overrides so we can use the Makefile
  51. Build/Compile=$(call Build/Compile/Default)
  52. define Package/containerd/install
  53. $(INSTALL_DIR) $(1)/usr/bin/
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/{ctr,containerd,containerd-stress,containerd-shim} $(1)/usr/bin/
  55. endef
  56. $(eval $(call BuildPackage,containerd))