From 619b83a4438667cdb4cc8a7dddc79dbf6d84ec2a Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Thu, 2 Nov 2023 17:09:27 +0100 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in.host | 1 + package/skopeo/Config.in.host | 7 +++++++ package/skopeo/skopeo.hash | 3 +++ package/skopeo/skopeo.mk | 22 ++++++++++++++++++++++ 5 files changed, 34 insertions(+) create mode 100644 package/skopeo/Config.in.host create mode 100644 package/skopeo/skopeo.hash create mode 100644 package/skopeo/skopeo.mk diff --git a/DEVELOPERS b/DEVELOPERS index b66fda5fcb..7c47cda42f 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3340,6 +3340,7 @@ F: support/download/ N: Yann E. MORIN F: .editorconfig F: package/gpsd/ +F: package/skopeo/ N: Yegor Yefremov F: configs/beaglebone_defconfig diff --git a/package/Config.in.host b/package/Config.in.host index 66f3a6fa9d..89e5ca5191 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -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" diff --git a/package/skopeo/Config.in.host b/package/skopeo/Config.in.host new file mode 100644 index 0000000000..4a63a0829c --- /dev/null +++ b/package/skopeo/Config.in.host @@ -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 diff --git a/package/skopeo/skopeo.hash b/package/skopeo/skopeo.hash new file mode 100644 index 0000000000..d40585d52f --- /dev/null +++ b/package/skopeo/skopeo.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 0b788fc5725ac79327f7c29797821a2bafc1c3c87bbfcb2998c2a1be949e314d skopeo-1.13.3-go2.tar.gz +sha256 716a8b80635c394681e652823e1e42e411ad2d254e1f202403422d74f4b0b106 LICENSE diff --git a/package/skopeo/skopeo.mk b/package/skopeo/skopeo.mk new file mode 100644 index 0000000000..98b0e7ed0a --- /dev/null +++ b/package/skopeo/skopeo.mk @@ -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))