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
:=285a3f4c00a87538bd7d0a82a0a8a758458c02b925349f44f3189f480c326038
12 PKG_SOURCE_VERSION
:=d71fcd7d8303cbf684402823e425e9dd2e99285d
14 PKG_MAINTAINER
:=Gerard Ryan
<G.M0N3Y
.2503@gmail.com
>
16 PKG_BUILD_DEPENDS
:=golang
/host
21 GO_PKG
:=github.com
/containerd
/containerd
23 include $(INCLUDE_DIR
)/package.mk
24 include ..
/..
/lang
/golang
/golang-package.mk
26 define Package
/containerd
29 TITLE
:=containerd container runtime
30 URL
:=https
://containerd.io
/
31 DEPENDS
:=$(GO_ARCH_DEPENDS
) +btrfs-progs
+runc
35 define Package
/containerd
/description
36 An industry-standard container runtime with an emphasis on simplicity
, robustness and portability
39 GO_PKG_BUILD_VARS
+= GO111MODULE
=auto
41 MAKE_PATH
:=$(GO_PKG_WORK_DIR_NAME
)/build
/src
/$(GO_PKG
)
42 MAKE_VARS
+= $(GO_PKG_VARS
)
44 VERSION
=$(PKG_VERSION
) \
45 REVISION
=$(PKG_SOURCE_VERSION
)
47 ifeq ($(CONFIG_SELINUX
),y
)
48 MAKE_FLAGS
+= BUILDTAGS
='selinux'
50 MAKE_FLAGS
+= BUILDTAGS
=''
53 # Reset golang-package.mk overrides so we can use the Makefile
54 Build
/Compile
=$(call Build
/Compile
/Default
)
56 define Package
/containerd
/install
57 $(INSTALL_DIR
) $(1)/usr
/bin
/
58 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/bin
/{ctr
,containerd
,containerd-stress
,containerd-shim
,containerd-shim-runc-v1
,containerd-shim-runc-v2
} $(1)/usr
/bin
/
61 $(eval
$(call BuildPackage
,containerd
))