@@ -529,6 +529,7 @@ F: package/python-pylibftdi/
N: Christian Stewart <christian@paral.in>
F: package/batman-adv/
+F: package/buildah/
F: package/containerd/
F: package/delve/
F: package/docker-cli/
@@ -2523,6 +2523,7 @@ menu "System tools"
source "package/audit/Config.in"
source "package/balena-engine/Config.in"
source "package/bubblewrap/Config.in"
+ source "package/buildah/Config.in"
source "package/cgroupfs-mount/Config.in"
source "package/circus/Config.in"
source "package/containerd/Config.in"
@@ -7,6 +7,7 @@ menu "Host utilities"
source "package/babeltrace2/Config.in.host"
source "package/bmap-tools/Config.in.host"
source "package/btrfs-progs/Config.in.host"
+ source "package/buildah/Config.in.host"
source "package/cbootimage/Config.in.host"
source "package/checkpolicy/Config.in.host"
source "package/checksec/Config.in.host"
new file mode 100644
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_BUILDAH
+ bool "buildah"
+ depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
+ depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
+ depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgpgme -> libgpg-error
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_USE_MMU # libgpgme -> libassuan
+ # gnupg is not needed to build, but at runtime.
+ select BR2_PACKAGE_LIBGPGME
+ select BR2_PACKAGE_GNUPG if !BR2_PACKAGE_GNUPG2
+ select BR2_PACKAGE_LIBGPG_ERROR
+ select BR2_PACKAGE_LIBASSUAN
+ help
+ Buildah is a tool that facilitates building OCI images.
+
+ https://github.com/containers/buildah
+
+comment "buildah needs a toolchain w/ threads"
+ depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
+ depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
new file mode 100644
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_BUILDAH
+ bool "buildah"
+ depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS
+ help
+ Buildah is a tool that facilitates building OCI images.
+
+ https://github.com/containers/buildah
new file mode 100644
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 d99b5187a25bc9d7385408732a0e155df0458b4d2cea6e8d002f3fa2cbaac76f buildah-1.24.0.tar.gz
+sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE
new file mode 100644
@@ -0,0 +1,39 @@
+################################################################################
+#
+# buildah
+#
+################################################################################
+
+BUILDAH_VERSION = 1.24.0
+BUILDAH_SITE = $(call github,containers,buildah,v$(BUILDAH_VERSION))
+
+BUILDAH_LICENSE = Apache-2.0
+BUILDAH_LICENSE_FILES = LICENSE
+
+BUILDAH_DEPENDENCIES = libgpgme
+
+BUILDAH_CPE_ID_VENDOR = buildah_project
+BUILDAH_CPE_ID_PRODUCT = buildah
+
+BUILDAH_TAGS = \
+ cgo \
+ exclude_graphdriver_aufs \
+ exclude_graphdriver_btrfs \
+ exclude_graphdriver_devicemapper \
+ exclude_graphdriver_zfs
+BUILDAH_BUILD_TARGETS = cmd/buildah
+BUILDAH_GOMOD = github.com/containers/buildah
+
+BUILDAH_LDFLAGS = \
+ -X $(BUILDAH_GOMOD)/cmd/buildah.GitCommit=v$(BUILDAH_VERSION) \
+ -X $(BUILDAH_GOMOD)/define.Version=v$(BUILDAH_VERSION)
+
+BUILDAH_INSTALL_BINS = $(notdir $(BUILDAH_BUILD_TARGETS))
+
+HOST_BUILDAH_BUILD_TARGETS = $(BUILDAH_BUILD_TARGETS)
+HOST_BUILDAH_TAGS = $(BUILDAH_TAGS)
+HOST_BUILDAH_LDFLAGS = $(BUILDAH_LDFLAGS)
+HOST_BUILDAH_INSTALL_BINS = $(BUILDAH_INSTALL_BINS)
+
+$(eval $(golang-package))
+$(eval $(host-golang-package))
Adds both host and target packages for buildah. Buildah is a tool that facilitates building OCI images. https://github.com/containers/buildah Signed-off-by: Christian Stewart <christian@paral.in> --- DEVELOPERS | 1 + package/Config.in | 1 + package/Config.in.host | 1 + package/buildah/Config.in | 21 ++++++++++++++++++ package/buildah/Config.in.host | 7 ++++++ package/buildah/buildah.hash | 3 +++ package/buildah/buildah.mk | 39 ++++++++++++++++++++++++++++++++++ 7 files changed, 73 insertions(+) create mode 100644 package/buildah/Config.in create mode 100644 package/buildah/Config.in.host create mode 100644 package/buildah/buildah.hash create mode 100644 package/buildah/buildah.mk