Merge pull request #18312 from lowjoel/strongswan-wolfssl
[feed/packages.git] / utils / containerd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=containerd
4 PKG_VERSION:=1.5.11
5 PKG_RELEASE:=1
6 PKG_LICENSE:=Apache-2.0
7 PKG_LICENSE_FILES:=LICENSE
8
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:=02b79d5e2b07b5e64cd28f1fe84395ee11eef95fc49fd923a9ab93022b148be6
12 PKG_SOURCE_VERSION:=3df54a852345ae127d1fa3092b95168e4a88e2f8
13
14 PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
15
16 PKG_BUILD_DEPENDS:=golang/host
17 PKG_BUILD_PARALLEL:=1
18 PKG_INSTALL:=1
19 PKG_USE_MIPS16:=0
20
21 GO_PKG:=github.com/containerd/containerd
22
23 include $(INCLUDE_DIR)/package.mk
24 include ../../lang/golang/golang-package.mk
25
26 define Package/containerd
27 SECTION:=utils
28 CATEGORY:=Utilities
29 TITLE:=containerd container runtime
30 URL:=https://containerd.io/
31 DEPENDS:=$(GO_ARCH_DEPENDS) +btrfs-progs +runc
32 MENU:=1
33 endef
34
35 define Package/containerd/description
36 An industry-standard container runtime with an emphasis on simplicity, robustness and portability
37 endef
38
39 GO_PKG_BUILD_VARS += GO111MODULE=auto
40 GO_PKG_INSTALL_ALL:=1
41 MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
42 MAKE_VARS += $(GO_PKG_VARS)
43 MAKE_FLAGS += \
44 VERSION=$(PKG_VERSION) \
45 REVISION=$(PKG_SOURCE_VERSION)
46
47 ifeq ($(CONFIG_SELINUX),y)
48 MAKE_FLAGS += BUILDTAGS='selinux'
49 else
50 MAKE_FLAGS += BUILDTAGS=''
51 endif
52
53 # Reset golang-package.mk overrides so we can use the Makefile
54 Build/Compile=$(call Build/Compile/Default)
55
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/
59 endef
60
61 $(eval $(call BuildPackage,containerd))