package/xdg-dbus-proxy: new package
authorAdrian Perez de Castro <aperez@igalia.com>
Fri, 20 Sep 2019 15:31:05 +0000 (18:31 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 12 Dec 2019 20:59:25 +0000 (21:59 +0100)
xdg-dbus-proxy is a filtering proxy for D-Bus connections, which can
be used to limit access to a set of services. Typically it is used in
combination with containers to provide them with access to certain
services running outside the container.

https://github.com/flatpak/xdg-dbus-proxy

Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
[Peter: license is LGPL-2.1+]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
DEVELOPERS
package/Config.in
package/xdg-dbus-proxy/Config.in [new file with mode: 0644]
package/xdg-dbus-proxy/xdg-dbus-proxy.hash [new file with mode: 0644]
package/xdg-dbus-proxy/xdg-dbus-proxy.mk [new file with mode: 0644]

index 66964d035d2f20ebecd8df71f293ac0ab9a9ece8..8d11ad8a31e0b9bb0952827005edf69c67fb8740 100644 (file)
@@ -91,6 +91,7 @@ F:    package/webkitgtk/
 F:     package/woff2/
 F:     package/wpebackend-fdo/
 F:     package/wpewebkit/
+F:     package/xdg-dbus-proxy/
 
 N:     Adrien Gallouët <adrien@gallouet.fr>
 F:     package/bird/
index 405732bc7a3d0b3a7ca5ddedfb452937b4864181..4bac3aabffd4532677ba48bd8251fe67c8597ff6 100644 (file)
@@ -2314,6 +2314,7 @@ menu "System tools"
        source "package/tpm2-totp/Config.in"
        source "package/unscd/Config.in"
        source "package/util-linux/Config.in"
+       source "package/xdg-dbus-proxy/Config.in"
        source "package/xen/Config.in"
        source "package/xvisor/Config.in"
 endmenu
diff --git a/package/xdg-dbus-proxy/Config.in b/package/xdg-dbus-proxy/Config.in
new file mode 100644 (file)
index 0000000..94c144f
--- /dev/null
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_XDG_DBUS_PROXY
+       bool "xdg-dbus-proxy"
+       depends on BR2_USE_WCHAR # libglib2 -> gettext
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
+       depends on BR2_USE_MMU # libglib2
+       select BR2_PACKAGE_LIBGLIB2
+       help
+         Filtering proxy for D-Bus connections.
+
+         https://github.com/flatpak/xdg-dbus-proxy
+
+comment "xdg-dbus-proxy needs a toolchain w/ wchar, threads"
+       depends on BR2_USE_MMU
+       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/xdg-dbus-proxy/xdg-dbus-proxy.hash b/package/xdg-dbus-proxy/xdg-dbus-proxy.hash
new file mode 100644 (file)
index 0000000..37bda78
--- /dev/null
@@ -0,0 +1,5 @@
+# From https://github.com/flatpak/xdg-dbus-proxy/releases/tag/0.1.2
+sha256 1749d6f9f46dcc9edc87725641cf56cf91dcad1b01707891ea0850c1000c520f xdg-dbus-proxy-0.1.2.tar.xz
+
+# Hash for license files:
+sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING
diff --git a/package/xdg-dbus-proxy/xdg-dbus-proxy.mk b/package/xdg-dbus-proxy/xdg-dbus-proxy.mk
new file mode 100644 (file)
index 0000000..1b056c3
--- /dev/null
@@ -0,0 +1,17 @@
+################################################################################
+#
+# bubblewrap
+#
+################################################################################
+
+XDG_DBUS_PROXY_VERSION = 0.1.2
+XDG_DBUS_PROXY_SITE = https://github.com/flatpak/xdg-dbus-proxy/releases/download/$(XDG_DBUS_PROXY_VERSION)
+XDG_DBUS_PROXY_SOURCE = xdg-dbus-proxy-$(XDG_DBUS_PROXY_VERSION).tar.xz
+XDG_DBUS_PROXY_DEPENDENCIES = host-pkgconf libglib2
+
+XDG_DBUS_PROXY_LICENSE = LGPL-2.1+
+XDG_DBUS_PROXY_LICENSE_FILES = COPYING
+
+XDG_DBUS_PROXY_CONF_OPTS = --disable-man
+
+$(eval $(autotools-package))