2019-01-17 13:44:33 +01:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=containerd
|
2023-12-31 04:44:26 +01:00
|
|
|
PKG_VERSION:=1.7.6
|
2023-01-03 05:19:38 +01:00
|
|
|
PKG_RELEASE:=1
|
2019-01-17 13:44:33 +01:00
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2024-02-02 18:37:33 +01:00
|
|
|
PKG_CPE_ID:=cpe:/a:linuxfoundation:containerd
|
2019-01-17 13:44:33 +01:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/containerd/containerd/tar.gz/v${PKG_VERSION}?
|
2023-12-31 04:44:26 +01:00
|
|
|
PKG_HASH:=084a62f78f96cb5fda02221425f14df09d3e0acd093e4d4b3527900e3ff94677
|
2019-01-17 13:44:33 +01:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=golang/host
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_INSTALL:=1
|
2023-03-23 08:39:01 +01:00
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
2019-01-17 13:44:33 +01:00
|
|
|
|
|
|
|
GO_PKG:=github.com/containerd/containerd
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include ../../lang/golang/golang-package.mk
|
|
|
|
|
|
|
|
define Package/containerd
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=containerd container runtime
|
|
|
|
URL:=https://containerd.io/
|
2021-01-08 00:58:47 +01:00
|
|
|
DEPENDS:=$(GO_ARCH_DEPENDS) +btrfs-progs +runc
|
2019-01-17 13:44:33 +01:00
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/containerd/description
|
|
|
|
An industry-standard container runtime with an emphasis on simplicity, robustness and portability
|
|
|
|
endef
|
|
|
|
|
2021-02-24 19:37:59 +01:00
|
|
|
GO_PKG_BUILD_VARS += GO111MODULE=auto
|
2019-01-17 13:44:33 +01:00
|
|
|
GO_PKG_INSTALL_ALL:=1
|
|
|
|
MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
|
2020-05-12 18:05:18 +02:00
|
|
|
MAKE_VARS += $(GO_PKG_VARS)
|
2019-01-17 13:44:33 +01:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
VERSION=$(PKG_VERSION) \
|
2022-05-16 13:51:30 +02:00
|
|
|
REVISION=$(PKG_SOURCE_VERSION) \
|
|
|
|
PREFIX=""
|
2019-01-17 13:44:33 +01:00
|
|
|
|
2020-11-08 02:55:31 +01:00
|
|
|
ifeq ($(CONFIG_SELINUX),y)
|
|
|
|
MAKE_FLAGS += BUILDTAGS='selinux'
|
2019-01-17 13:44:33 +01:00
|
|
|
else
|
|
|
|
MAKE_FLAGS += BUILDTAGS=''
|
|
|
|
endif
|
|
|
|
|
2020-07-27 11:39:54 +02:00
|
|
|
# Reset golang-package.mk overrides so we can use the Makefile
|
|
|
|
Build/Compile=$(call Build/Compile/Default)
|
2019-01-17 13:44:33 +01:00
|
|
|
|
|
|
|
define Package/containerd/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
2020-11-08 02:55:31 +01:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/{ctr,containerd,containerd-stress,containerd-shim,containerd-shim-runc-v1,containerd-shim-runc-v2} $(1)/usr/bin/
|
2019-01-17 13:44:33 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,containerd))
|