ded50f69c6
Prior to commit 2dccb4f2fe
("package/docker-containerd: convert to golang infrastructure"), the
containerd binary was installed as docker-containerd. Following the
conversion to the golang package infrastructure, the binary is now
installed as "containerd", which breaks some use cases.
Let's add a symlink link docker-containerd -> containerd to fix such
use cases.
Fixes: https://bugs.busybox.net/show_bug.cgi?id=11076
Signed-off-by: Sam Lancia <sam@gpsm.co.uk>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
30 lines
1.0 KiB
Makefile
30 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# docker-containerd
|
|
#
|
|
################################################################################
|
|
|
|
DOCKER_CONTAINERD_VERSION = 9048e5e50717ea4497b757314bad98ea3763c145
|
|
DOCKER_CONTAINERD_SITE = $(call github,docker,containerd,$(DOCKER_CONTAINERD_VERSION))
|
|
DOCKER_CONTAINERD_LICENSE = Apache-2.0
|
|
DOCKER_CONTAINERD_LICENSE_FILES = LICENSE.code
|
|
|
|
DOCKER_CONTAINERD_WORKSPACE = vendor
|
|
|
|
DOCKER_CONTAINERD_LDFLAGS = \
|
|
-X github.com/docker/containerd.GitCommit=$(DOCKER_CONTAINERD_VERSION)
|
|
|
|
DOCKER_CONTAINERD_BUILD_TARGETS = ctr containerd containerd-shim
|
|
|
|
DOCKER_CONTAINERD_INSTALL_BINS = containerd containerd-shim
|
|
|
|
define DOCKER_CONTAINERD_INSTALL_SYMLINKS
|
|
ln -fs runc $(TARGET_DIR)/usr/bin/docker-runc
|
|
ln -fs containerd-shim $(TARGET_DIR)/usr/bin/docker-containerd-shim
|
|
ln -fs containerd $(TARGET_DIR)/usr/bin/docker-containerd
|
|
endef
|
|
|
|
DOCKER_CONTAINERD_POST_INSTALL_TARGET_HOOKS += DOCKER_CONTAINERD_INSTALL_SYMLINKS
|
|
|
|
$(eval $(golang-package))
|