libgd: avoid recursive and redundant dependencies
[feed/packages.git] / utils / containerd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=containerd
4 PKG_VERSION:=1.6.6
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:=27afb673c20d53aa5c31aec07b38eb7e4dc911e7e1f0c76fac9513bbf070bd24
12
13 PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
14
15 PKG_BUILD_DEPENDS:=golang/host
16 PKG_BUILD_PARALLEL:=1
17 PKG_INSTALL:=1
18 PKG_USE_MIPS16:=0
19
20 GO_PKG:=github.com/containerd/containerd
21
22 include $(INCLUDE_DIR)/package.mk
23 include ../../lang/golang/golang-package.mk
24
25 define Package/containerd
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=containerd container runtime
29 URL:=https://containerd.io/
30 DEPENDS:=$(GO_ARCH_DEPENDS) +btrfs-progs +runc
31 MENU:=1
32 endef
33
34 define Package/containerd/description
35 An industry-standard container runtime with an emphasis on simplicity, robustness and portability
36 endef
37
38 GO_PKG_BUILD_VARS += GO111MODULE=auto
39 GO_PKG_INSTALL_ALL:=1
40 MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
41 MAKE_VARS += $(GO_PKG_VARS)
42 MAKE_FLAGS += \
43 VERSION=$(PKG_VERSION) \
44 REVISION=$(PKG_SOURCE_VERSION) \
45 PREFIX=""
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))