-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
podman is a CLI tool for spawning and running containers according to the OCI specification. https://github.com/containers/podman Signed-off-by: Christian Stewart <[email protected]> --- v1 -> v2: - package/podman: bump version to v4.5.0 - Add cmd/quadlet target as required by the install script. v2 -> v3: - remove duplicate CNI_PLUGINS line in Config.in Signed-off-by: Christian Stewart <[email protected]> Signed-off-by: Christian Stewart <[email protected]>
- Loading branch information
Showing
5 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
config BR2_PACKAGE_PODMAN | ||
bool "podman" | ||
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 | ||
depends on !BR2_TOOLCHAIN_USES_UCLIBC # no fexecve | ||
depends on BR2_USE_MMU # libgpgme | ||
select BR2_PACKAGE_CATATONIT | ||
select BR2_PACKAGE_CNI_PLUGINS | ||
select BR2_PACKAGE_CONMON | ||
select BR2_PACKAGE_CRUN | ||
select BR2_PACKAGE_IPTABLES | ||
select BR2_PACKAGE_LIBGPGME | ||
help | ||
podman is a CLI tool for spawning and running containers | ||
according to the OCI specification. | ||
|
||
https://github.com/containers/podman | ||
|
||
if BR2_PACKAGE_PODMAN | ||
|
||
config BR2_PACKAGE_PODMAN_DRIVER_BTRFS | ||
bool "btrfs filesystem driver" | ||
depends on BR2_USE_MMU # btrfs-progs | ||
depends on BR2_TOOLCHAIN_HAS_THREADS # btrfs-progs | ||
select BR2_PACKAGE_BTRFS_PROGS | ||
help | ||
Build the btrfs filesystem driver. | ||
|
||
config BR2_PACKAGE_PODMAN_DRIVER_DEVICEMAPPER | ||
bool "devicemapper filesystem driver" | ||
depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2 | ||
depends on BR2_USE_MMU # lvm2 | ||
depends on !BR2_STATIC_LIBS # lvm2 | ||
select BR2_PACKAGE_LVM2 | ||
help | ||
Build the devicemapper filesystem driver. | ||
|
||
config BR2_PACKAGE_PODMAN_DRIVER_VFS | ||
bool "vfs filesystem driver" | ||
depends on BR2_USE_WCHAR # gvfs | ||
depends on BR2_USE_MMU # gvfs | ||
depends on BR2_TOOLCHAIN_HAS_THREADS # gvfs | ||
depends on !BR2_STATIC_LIBS # gvfs | ||
select BR2_PACKAGE_GVFS | ||
help | ||
Build the vfs filesystem driver. | ||
|
||
endif | ||
|
||
comment "podman needs a glibc or musl toolchain w/ threads" | ||
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS && \ | ||
BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS | ||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_UCLIBC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"default": [ | ||
{ | ||
"type": "insecureAcceptAnything" | ||
} | ||
], | ||
"transports": | ||
{ | ||
"docker-daemon": | ||
{ | ||
"": [{"type":"insecureAcceptAnything"}] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Locally computed | ||
sha256 830a633630bf6e61f2b8d4ca00efdd9a173ef25cdd49d4a4364c293e088561df podman-4.5.0.tar.gz | ||
sha256 62fb8a3a9621dc2388174caaabe9c2317b694bb9a1d46c98bcf5655b68f51be3 LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
################################################################################ | ||
# | ||
# podman | ||
# | ||
################################################################################ | ||
|
||
PODMAN_VERSION = 4.5.0 | ||
PODMAN_SITE = $(call github,containers,podman,v$(PODMAN_VERSION)) | ||
PODMAN_LICENSE = Apache-2.0 | ||
PODMAN_LICENSE_FILES = LICENSE | ||
|
||
PODMAN_CPE_ID_VENDOR = podman_project | ||
PODMAN_GOMOD = github.com/containers/podman/v4 | ||
|
||
PODMAN_BUILD_TARGETS = cmd/podman cmd/rootlessport cmd/quadlet | ||
PODMAN_DEPENDENCIES += libgpgme | ||
PODMAN_LDFLAGS = \ | ||
-X $(PODMAN_GOMOD)/libpod/define.gitCommit=$(PODMAN_VERSION) | ||
PODMAN_TAGS = \ | ||
btrfs_noversion containers_image_openpgp \ | ||
exclude_graphdriver_devicemapper exclude_graphdriver_zfs | ||
|
||
ifeq ($(BR2_INIT_SYSTEMD),y) | ||
PODMAN_TAGS += systemd | ||
endif | ||
|
||
ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y) | ||
PODMAN_DEPENDENCIES += libapparmor | ||
PODMAN_TAGS += apparmor | ||
endif | ||
|
||
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y) | ||
PODMAN_TAGS += seccomp | ||
PODMAN_DEPENDENCIES += libseccomp host-pkgconf | ||
endif | ||
|
||
ifeq ($(BR2_PACKAGE_LIBSELINUX),y) | ||
PODMAN_TAGS += selinux | ||
PODMAN_DEPENDENCIES += libselinux | ||
endif | ||
|
||
ifeq ($(BR2_PACKAGE_PODMAN_DRIVER_BTRFS),y) | ||
PODMAN_DEPENDENCIES += btrfs-progs | ||
else | ||
PODMAN_TAGS += exclude_graphdriver_btrfs | ||
endif | ||
|
||
ifeq ($(BR2_PACKAGE_PODMAN_DRIVER_DEVICEMAPPER),y) | ||
PODMAN_DEPENDENCIES += lvm2 | ||
else | ||
PODMAN_TAGS += exclude_graphdriver_devicemapper | ||
endif | ||
|
||
ifeq ($(BR2_PACKAGE_PODMAN_DRIVER_VFS),y) | ||
PODMAN_DEPENDENCIES += gvfs | ||
else | ||
PODMAN_TAGS += exclude_graphdriver_vfs | ||
endif | ||
|
||
define PODMAN_INSTALL_TARGET_CMDS | ||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr \ | ||
install.bin | ||
$(INSTALL) -d -m 700 $(TARGET_DIR)/etc/cni | ||
$(INSTALL) -d -m 700 $(TARGET_DIR)/etc/cni/net.d | ||
$(INSTALL) -D -m 644 $(@D)/cni/87-podman-bridge.conflist \ | ||
$(TARGET_DIR)/etc/cni/net.d/87-podman-bridge.conflist | ||
$(INSTALL) -d -m 755 $(TARGET_DIR)/etc/containers | ||
$(INSTALL) -D -m 644 $(PODMAN_PKGDIR)/containers-policy.json \ | ||
$(TARGET_DIR)/etc/containers/policy.json | ||
endef | ||
|
||
define PODMAN_INSTALL_INIT_SYSTEMD | ||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr \ | ||
install.systemd | ||
endef | ||
|
||
$(eval $(golang-package)) |