1 include $(TOPDIR
)/rules.mk
6 PKG_LICENSE
:=Apache-2.0
7 PKG_LICENSE_FILES
:=LICENSE
9 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
10 PKG_SOURCE_URL
:=https
://codeload.github.com
/containerd
/containerd
/tar.gz
/v
${PKG_VERSION}?
11 PKG_HASH
:=bc6d9452c700af0ebc09c0da8ddba55be4c03ac8928e72ca92d98905800c8018
12 PKG_SOURCE_VERSION
:=269548fa27e0089a8b8278fc4fc781d7f65a939b
14 PKG_MAINTAINER
:=Gerard Ryan
<G.M0N3Y
.2503@gmail.com
>
16 PKG_BUILD_DEPENDS
:=golang
/host
20 GO_PKG
:=github.com
/containerd
/containerd
22 include $(INCLUDE_DIR
)/package.mk
23 include ..
/..
/lang
/golang
/golang-package.mk
25 define Package
/containerd
28 TITLE
:=containerd container runtime
29 URL
:=https
://containerd.io
/
30 DEPENDS
:=$(GO_ARCH_DEPENDS
) @
(aarch64||arm||x86_64
) +btrfs-progs
+runc
34 define Package
/containerd
/description
35 An industry-standard container runtime with an emphasis on simplicity
, robustness and portability
39 MAKE_PATH
:=$(GO_PKG_WORK_DIR_NAME
)/build
/src
/$(GO_PKG
)
40 MAKE_VARS
+= $(GO_PKG_VARS
)
42 VERSION
=$(PKG_VERSION
) \
43 REVISION
=$(PKG_SOURCE_VERSION
)
45 ifeq ($(CONFIG_SELINUX
),y
)
46 MAKE_FLAGS
+= BUILDTAGS
='selinux'
48 MAKE_FLAGS
+= BUILDTAGS
=''
51 # Reset golang-package.mk overrides so we can use the Makefile
52 Build
/Compile
=$(call Build
/Compile
/Default
)
54 define Package
/containerd
/install
55 $(INSTALL_DIR
) $(1)/usr
/bin
/
56 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/bin
/{ctr
,containerd
,containerd-stress
,containerd-shim
,containerd-shim-runc-v1
,containerd-shim-runc-v2
} $(1)/usr
/bin
/
59 $(eval
$(call BuildPackage
,containerd
))