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.

61 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=containerd
  3. PKG_VERSION:=1.4.9
  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:=3bb9f54be022067847f5930d21ebbfe4e7a67f589d78930aa0ac713492c28bcc
  10. PKG_SOURCE_VERSION:=e25210fe30a0a703442421b0f60afac609f950a3
  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_BUILD_VARS += GO111MODULE=auto
  31. GO_PKG_INSTALL_ALL:=1
  32. MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
  33. MAKE_VARS += $(GO_PKG_VARS)
  34. MAKE_FLAGS += \
  35. VERSION=$(PKG_VERSION) \
  36. REVISION=$(PKG_SOURCE_VERSION)
  37. ifeq ($(CONFIG_SELINUX),y)
  38. MAKE_FLAGS += BUILDTAGS='selinux'
  39. else
  40. MAKE_FLAGS += BUILDTAGS=''
  41. endif
  42. # Reset golang-package.mk overrides so we can use the Makefile
  43. Build/Compile=$(call Build/Compile/Default)
  44. define Package/containerd/install
  45. $(INSTALL_DIR) $(1)/usr/bin/
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/{ctr,containerd,containerd-stress,containerd-shim,containerd-shim-runc-v1,containerd-shim-runc-v2} $(1)/usr/bin/
  47. endef
  48. $(eval $(call BuildPackage,containerd))