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.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=containerd
  3. PKG_VERSION:=1.6.8
  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://codeload.github.com/containerd/containerd/tar.gz/v${PKG_VERSION}?
  9. PKG_HASH:=f5f938513c28377f64f85e84f2750d39f26b01262f3a062b7e8ce35b560ca407
  10. PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_INSTALL:=1
  14. PKG_USE_MIPS16:=0
  15. GO_PKG:=github.com/containerd/containerd
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../lang/golang/golang-package.mk
  18. define Package/containerd
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=containerd container runtime
  22. URL:=https://containerd.io/
  23. DEPENDS:=$(GO_ARCH_DEPENDS) +btrfs-progs +runc
  24. MENU:=1
  25. endef
  26. define Package/containerd/description
  27. An industry-standard container runtime with an emphasis on simplicity, robustness and portability
  28. endef
  29. GO_PKG_BUILD_VARS += GO111MODULE=auto
  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. PREFIX=""
  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))