package/slirp4netns: new package

slirp4netns is for user-mode networking for unprivileged network
namespace.

Signed-off-by: Raphael Pavlidis <raphael.pavlidis@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Raphael Pavlidis 2022-06-14 20:01:52 +02:00 committed by Yann E. MORIN
parent 89d764720d
commit 6fc91c4359
4 changed files with 39 additions and 0 deletions

View File

@ -1939,6 +1939,7 @@ menu "Networking"
source "package/rtmpdump/Config.in"
source "package/siproxd/Config.in"
source "package/slirp/Config.in"
source "package/slirp4netns/Config.in"
source "package/snmppp/Config.in"
source "package/sofia-sip/Config.in"
source "package/sysrepo/Config.in"

View File

@ -0,0 +1,20 @@
config BR2_PACKAGE_SLIRP4NETNS
bool "slirp4netns"
depends on BR2_USE_MMU # libcap, libglib2, slirp
depends on BR2_USE_WCHAR # libglib2, slirp
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2, slirp
depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS # libseccomp
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # libseccomp
select BR2_PACKAGE_LIBCAP
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_LIBSECCOMP
select BR2_PACKAGE_SLIRP
help
User-mode networking for unprivileged network namespaces.
https://github.com/rootless-containers/slirp4netns
comment "slirp4netns needs a toolchain w/ wchar, threads, headers >= 3.17"
depends on BR2_USE_MMU
depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17

View File

@ -0,0 +1,3 @@
# Locally computed:
sha256 b584edde686d3cfbac210cbdb93c4b0ba5d8cc0a6a4d92b9dfc3c5baec99c727 slirp4netns-1.2.0.tar.gz
sha256 58db3cfabf8ec806bc060e54ab5466a31de4a3ae80fe4a8aa02fb6b1c053c93f COPYING

View File

@ -0,0 +1,15 @@
################################################################################
#
# slirp4netns
#
################################################################################
SLIRP4NETNS_VERSION = 1.2.0
SLIRP4NETNS_SITE = $(call github,rootless-containers,slirp4netns,v$(SLIRP4NETNS_VERSION))
SLIRP4NETNS_LICENSE = GPL-2.0
SLIRP4NETNS_LICENSE_FILES = COPYING
SLIRP4NETNS_DEPENDENCIES = libcap libglib2 libseccomp slirp
SLIRP4NETNS_AUTORECONF = YES
$(eval $(autotools-package))