2019-09-20 17:31:04 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# bubblewrap
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-02-26 17:14:43 +01:00
|
|
|
BUBBLEWRAP_VERSION = 0.6.1
|
2019-09-20 17:31:04 +02:00
|
|
|
BUBBLEWRAP_SITE = https://github.com/containers/bubblewrap/releases/download/v$(BUBBLEWRAP_VERSION)
|
|
|
|
BUBBLEWRAP_SOURCE = bubblewrap-$(BUBBLEWRAP_VERSION).tar.xz
|
|
|
|
BUBBLEWRAP_DEPENDENCIES = host-pkgconf libcap
|
|
|
|
|
|
|
|
BUBBLEWRAP_LICENSE = LGPL-2.0+
|
|
|
|
BUBBLEWRAP_LICENSE_FILES = COPYING
|
2021-03-02 10:26:42 +01:00
|
|
|
BUBBLEWRAP_CPE_ID_VENDOR = projectatomic
|
2019-09-20 17:31:04 +02:00
|
|
|
|
|
|
|
BUBBLEWRAP_CONF_OPTS = \
|
2022-02-26 17:14:44 +01:00
|
|
|
-Dzsh_completion=disabled \
|
|
|
|
-Dman=disabled \
|
|
|
|
-Dpython=$(HOST_DIR)/bin/python \
|
2022-04-27 22:08:38 +02:00
|
|
|
-Drequire_userns=false \
|
|
|
|
-Dtests=false
|
2019-09-20 17:31:04 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
|
2022-02-26 17:14:44 +01:00
|
|
|
BUBBLEWRAP_CONF_OPTS += \
|
|
|
|
-Dbash_completion=enabled \
|
|
|
|
-Dbash_completion_dir=/usr/share/bash-completion/completions
|
2019-09-20 17:31:04 +02:00
|
|
|
else
|
2022-02-26 17:14:44 +01:00
|
|
|
BUBBLEWRAP_CONF_OPTS += -Dbash_completion=disabled
|
2019-09-20 17:31:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
2022-02-26 17:14:44 +01:00
|
|
|
BUBBLEWRAP_CONF_OPTS += -Dselinux=enabled
|
2019-09-20 17:31:04 +02:00
|
|
|
BUBBLEWRAP_DEPENDENCIES += libselinux
|
|
|
|
else
|
2022-02-26 17:14:44 +01:00
|
|
|
BUBBLEWRAP_CONF_OPTS += -Dselinux=disabled
|
2019-09-20 17:31:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# We need to mark bwrap as setuid, in case the kernel
|
|
|
|
# has user namespaces disabled for non-root users.
|
|
|
|
define BUBBLEWRAP_PERMISSIONS
|
|
|
|
/usr/bin/bwrap f 1755 0 0 - - - - -
|
|
|
|
endef
|
|
|
|
|
2022-02-26 17:14:44 +01:00
|
|
|
$(eval $(meson-package))
|