package/skopeo: new host package

skopeo is a command line utility that performs various operations on
container images and image repositories.

We introduce it as a host-only package, as the expected usage is to
transform an OCI image into a docker image, or to help in uploading an
OCI image to a (local) docker daemon or to a docker registry, for
example, in a post-build script.

As such, it needs a prompt in the host packages section.

Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Yann E. MORIN 2023-11-02 17:09:27 +01:00 committed by Thomas Petazzoni
parent 6a4ad23a07
commit 619b83a443
5 changed files with 34 additions and 0 deletions

View File

@ -3340,6 +3340,7 @@ F: support/download/
N: Yann E. MORIN <yann.morin@orange.com>
F: .editorconfig
F: package/gpsd/
F: package/skopeo/
N: Yegor Yefremov <yegorslists@googlemail.com>
F: configs/beaglebone_defconfig

View File

@ -103,6 +103,7 @@ menu "Host utilities"
source "package/sdbus-cpp/Config.in.host"
source "package/sdbusplus/Config.in.host"
source "package/sentry-cli/Config.in.host"
source "package/skopeo/Config.in.host"
source "package/sloci-image/Config.in.host"
source "package/squashfs/Config.in.host"
source "package/starfive-spltool/Config.in.host"

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_HOST_SKOPEO
bool "host skopeo"
help
skopeo is a command line utility that performs various
operations on container images and image repositories.
https://github.com/containers/skopeo

View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 0b788fc5725ac79327f7c29797821a2bafc1c3c87bbfcb2998c2a1be949e314d skopeo-1.13.3-go2.tar.gz
sha256 716a8b80635c394681e652823e1e42e411ad2d254e1f202403422d74f4b0b106 LICENSE

22
package/skopeo/skopeo.mk Normal file
View File

@ -0,0 +1,22 @@
################################################################################
#
# skopeo
#
################################################################################
SKOPEO_VERSION = 1.13.3
SKOPEO_SITE = $(call github,containers,skopeo,v$(SKOPEO_VERSION))
SKOPEO_LICENSE = Apache-2.0
SKOPEO_LICENSE_FILES = LICENSE
HOST_SKOPEO_DEPENDENCIES = \
host-btrfs-progs \
host-libgpgme \
host-lvm2 \
host-pkgconf
HOST_SKOPEO_GO_ENV = PKG_CONFIG_PATH=$(HOST_DIR)/lib/pkgconfig
HOST_SKOPEO_BUILD_TARGETS = cmd/skopeo
$(eval $(host-golang-package))