From 700220557cf657ebbfef09626f588d3eea25f552 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 29 Mar 2022 19:49:23 -0400 Subject: containers: introduce podman-tui Add the curses/terminal control application for podman. Signed-off-by: Bruce Ashfield --- recipes-containers/podman-tui/podman-tui_git.bb | 67 +++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 recipes-containers/podman-tui/podman-tui_git.bb diff --git a/recipes-containers/podman-tui/podman-tui_git.bb b/recipes-containers/podman-tui/podman-tui_git.bb new file mode 100644 index 00000000..bd9b7e27 --- /dev/null +++ b/recipes-containers/podman-tui/podman-tui_git.bb @@ -0,0 +1,67 @@ +HOMEPAGE = "https://github.com/containers/podman-tui" +SUMMARY = "podman-tui is a Terminal User Interface to interact with podman" +DESCRIPTION = "podman-tui is a Terminal User Interface to interact with the podman v4. \ +podman bindings has been used to communicate with podman environment through rest api API (unix socket). \ + " + +inherit features_check +REQUIRED_DISTRO_FEATURES ?= "seccomp ipv6" + +DEPENDS = " \ + libseccomp \ + libdevmapper \ + lvm2 \ + btrfs-tools \ + gpgme \ + libassuan \ + libgpg-error \ +" + +SRCREV = "ff962bb92d7f5fea9f819c4ef8a484bdceb3747b" +SRC_URI = " \ + git://github.com/containers/podman-tui;protocol=https;branch=main \ +" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +GO_IMPORT = "import" + +S = "${WORKDIR}/git" + +PV = "v0.3.0+git${SRCPV}" + +PODMAN_PKG = "github.com/containers/podman-tui" + +inherit go goarch +inherit pkgconfig + +do_configure[noexec] = "1" + +BUILD_TAGS ?= "exclude_graphdriver_btrfs exclude_graphdriver_devicemapper" + +do_compile() { + cd ${S}/src + + rm -rf .gopath + mkdir -p .gopath/src/"$(dirname "${PODMAN_PKG}")" + ln -sf ../../../../import/ .gopath/src/"${PODMAN_PKG}" + + cd ${S}/src/.gopath/src/"${PODMAN_PKG}" + + # Pass the needed cflags/ldflags so that cgo + # can find the needed headers files and libraries + export GOFLAGS="-mod=vendor" + + # oe_runmake BUILDTAGS="${BUILDTAGS}" + ${GO} build -tags "$(BUILDTAGS)" ${GO_LDFLAGS} -o bin/podman-tui +} + +do_install() { + cd ${S}/src/.gopath/src/"${PODMAN_PKG}" + + install -d ${D}/${bindir} + install bin/podman-tui ${D}/${bindir}/ +} + +RDEPENDS:${PN} += "podman" -- cgit v1.2.3-54-g00ecf