@ -36,36 +36,30 @@ define Download/default-policy
HASH:= cddfaa8e6a7e5497b67cc0dd8e8517058d0c97de91bf46fff867528415f2d946
HASH:= cddfaa8e6a7e5497b67cc0dd8e8517058d0c97de91bf46fff867528415f2d946
e n d e f
e n d e f
d e f i n e P a c k a g e / p o d m a n / D e f a u l t
d e f i n e P a c k a g e / p o d m a n
SECTION:= utils
SECTION:= utils
CATEGORY:= Utilities
CATEGORY:= Utilities
TITLE:= Podman
TITLE:= Podman
URL:= https://podman.io
URL:= https://podman.io
e n d e f
d e f i n e P a c k a g e / p o d m a n
$( call Package/podman/Default)
DEPENDS:= $( GO_ARCH_DEPENDS) +conmon +cni +cni-plugins +btrfs-progs +glib2 +gnupg2 +uci-firewall +libgpg-error +libseccomp +libgpgme +nsenter +zoneinfo-simple +kmod-veth
CONFLICTS:= podman-selinux
VARIANT:= default
PROVIDES:= podman
e n d e f
d e f i n e P a c k a g e / p o d m a n - s e l i n u x
$( call Package/podman/Default)
TITLE += with SELinux support
DEPENDS:= $( GO_ARCH_DEPENDS) +conmon +cni +cni-plugins +btrfs-progs +glib2 +gnupg2 +uci-firewall +libgpg-error +libseccomp +libgpgme +nsenter +zoneinfo-simple +kmod-veth +libselinux
VARIANT:= selinux
PROVIDES:= podman
DEPENDS:= $( GO_ARCH_DEPENDS) +conmon +cni +cni-plugins +btrfs-progs +glib2 +gnupg2 +uci-firewall +libgpg-error +libseccomp +libgpgme +nsenter +zoneinfo-simple +kmod-veth +catatonit +PODMAN_SELINUX_SUPPORT:libselinux +PODMAN_IPTABLES_FW:iptables
e n d e f
e n d e f
d e f i n e P a c k a g e / p o d m a n / d e s c r i p t i o n
d e f i n e P a c k a g e / p o d m a n / d e s c r i p t i o n
Podman: A tool for managing OCI containers and pods
Podman: A tool for managing OCI containers and pods
e n d e f
e n d e f
d e f i n e P a c k a g e / p o d m a n - s e l i n u x / d e s c r i p t i o n
Podman: A tool for managing OCI containers and pods
SELinux enabled.
d e f i n e P a c k a g e / p o d m a n / c o n f i g
menu "Configuration"
config PODMAN_SELINUX_SUPPORT
bool "Enable SELinux support"
default n
config PODMAN_IPTABLES_FW
bool "Add iptabels firewall options to default podman network"
default n
endmenu
e n d e f
e n d e f
d e f i n e P a c k a g e / p o d m a n / c o n f f i l e s
d e f i n e P a c k a g e / p o d m a n / c o n f f i l e s
@ -76,14 +70,18 @@ define Package/podman/conffiles
/ e t c / c n i / n e t . d / 8 7 - p o d m a n - b r i d g e . c o n f l i s t
/ e t c / c n i / n e t . d / 8 7 - p o d m a n - b r i d g e . c o n f l i s t
e n d e f
e n d e f
P a c k a g e / p o d m a n - s e l i n u x / conffiles = $( Package/podman/conffiles)
i f e q ( $( BUILD_VARIANT ) , s e l i n u x )
i f d e f C O N F I G _ P O D M A N _ S E L I N U X _ S U P P O R T
GO_PKG_TAGS = seccomp,exclude_graphdriver_devicemapper,selinux,apparmor
GO_PKG_TAGS = seccomp,exclude_graphdriver_devicemapper,selinux,apparmor
e l s e
e l s e
GO_PKG_TAGS = seccomp,exclude_graphdriver_devicemapper,apparmor
GO_PKG_TAGS = seccomp,exclude_graphdriver_devicemapper,apparmor
e n d i f
e n d i f
i f d e f C O N F I G _ P O D M A N _ I P T A B L E S _ F W
CNIFILE:= 87-podman-bridge-iptables.conflist
e l s e
CNIFILE:= 87-podman-bridge.conflist
e n d i f
d e f i n e B u i l d / P r e p a r e
d e f i n e B u i l d / P r e p a r e
$( call Build/Prepare/Default)
$( call Build/Prepare/Default)
$( eval $( call Download,default-registries) )
$( eval $( call Download,default-registries) )
@ -98,7 +96,7 @@ define Package/podman/install
$( INSTALL_DATA) $( PKG_BUILD_DIR) /vendor/github.com/containers/storage/storage.conf $( 1) /etc/containers/storage.conf
$( INSTALL_DATA) $( PKG_BUILD_DIR) /vendor/github.com/containers/storage/storage.conf $( 1) /etc/containers/storage.conf
$( INSTALL_DATA) ./files/containers.conf $( 1) /etc/containers/containers.conf
$( INSTALL_DATA) ./files/containers.conf $( 1) /etc/containers/containers.conf
$( INSTALL_DIR) $( 1) /etc/cni/net.d
$( INSTALL_DIR) $( 1) /etc/cni/net.d
$( INSTALL_CONF) $( PKG_BUILD_DIR) /cni/87-podman-bridge.conflist $( 1) /etc/cni/net.d/
$( INSTALL_CONF) ./files/$( CNIFILE) $( 1) /etc/cni/net.d/87-podman-bridge.conflist
$( INSTALL_DIR) $( 1) /usr/share/containers
$( INSTALL_DIR) $( 1) /usr/share/containers
$( INSTALL_DATA) $( PKG_BUILD_DIR) /vendor/github.com/containers/common/pkg/seccomp/seccomp.json $( 1) /usr/share/containers/
$( INSTALL_DATA) $( PKG_BUILD_DIR) /vendor/github.com/containers/common/pkg/seccomp/seccomp.json $( 1) /usr/share/containers/
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_DIR) $( 1) /etc/init.d
@ -106,9 +104,5 @@ define Package/podman/install
$( SED) 's/driver = \"\"/driver = \"overlay\"/g' $( 1) /etc/containers/storage.conf
$( SED) 's/driver = \"\"/driver = \"overlay\"/g' $( 1) /etc/containers/storage.conf
e n d e f
e n d e f
P a c k a g e / p o d m a n - s e l i n u x / install = $( Package/podman/install)
$( eval $ ( call GoBinPackage ,podman ) )
$( eval $ ( call GoBinPackage ,podman ) )
$( eval $ ( call BuildPackage ,podman ) )
$( eval $ ( call BuildPackage ,podman ) )
$( eval $ ( call GoBinPackage ,podman -selinux ) )
$( eval $ ( call BuildPackage ,podman -selinux ) )