Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144592936
D29332.id85990.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
28 KB
Referenced Files
None
Subscribers
None
D29332.id85990.diff
View Options
Index: sysutils/Makefile
===================================================================
--- sysutils/Makefile
+++ sysutils/Makefile
@@ -424,6 +424,7 @@
SUBDIR += fusefs-zip
SUBDIR += fvcool
SUBDIR += fwup
+ SUBDIR += fwupd
SUBDIR += gaffitter
SUBDIR += ganglia-monitor-core
SUBDIR += ganglia-webfrontend
Index: sysutils/fwupd/Makefile
===================================================================
--- /dev/null
+++ sysutils/fwupd/Makefile
@@ -0,0 +1,57 @@
+# Created by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
+# $FreeBSD$
+
+PORTNAME= fwupd
+DISTVERSION= 1.5.7
+CATEGORIES= sysutils
+
+MAINTAINER= norbert.kaminski@3mdeb.com
+COMMENT= Update firmware automatically, safely, and reliably
+
+LICENSE= LGPL21
+
+BUILD_DEPENDS= ${RUN_DEPENDS} \
+ git:devel/git \
+ meson:devel/meson \
+ pkgconf:devel/pkgconf \
+ vala:lang/vala
+LIB_DEPENDS= libarchive.so:archivers/libarchive \
+ libcurl.so:ftp/curl \
+ libgcab-1.0.so:archivers/gcab \
+ libglib-2.0.so:devel/glib20 \
+ libgpg-error.so:security/libgpg-error \
+ libgpgme.so:security/gpgme \
+ libgnutls.so:security/gnutls \
+ libjson-glib-1.0.so:devel/json-glib \
+ libsqlite3.so:databases/sqlite3 \
+ libxmlb.so:textproc/libxmlb
+RUN_DEPENDS= gobject-introspection>=1.36:devel/gobject-introspection \
+ gtkdocize:textproc/gtk-doc
+
+USES= gnome meson pkgconfig python:3.7+
+USE_GITHUB= yes
+USE_GNOME= glib20 introspection:build
+INSTALLS_ICONS= yes
+USE_LDCONFIG= yes
+
+SHEBANG_REGEX= '.*\.py$$'
+MESON_ARGS= -Dgcab:docs='false' \
+ -Dgudev='false' \
+ -Dlibjcat:man='false' \
+ -Dman='false' \
+ -Dplugin_altos='false' \
+ -Dplugin_amt='false' \
+ -Dplugin_dell='false' \
+ -Dplugin_emmc='false' \
+ -Dplugin_nvme='false' \
+ -Dplugin_redfish='false' \
+ -Dplugin_synaptics_mst='false' \
+ -Dplugin_synaptics_rmi='false' \
+ -Dplugin_thunderbolt='false' \
+ -Dplugin_tpm='false' \
+ -Dplugin_uefi_capsule='false' \
+ -Dpolkit='false' \
+ -Dsystemd='false' \
+ -Dtests='false'
+
+.include <bsd.port.mk>
Index: sysutils/fwupd/distinfo
===================================================================
--- /dev/null
+++ sysutils/fwupd/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1615551252
+SHA256 (fwupd-fwupd-1.5.7_GH0.tar.gz) = 2e5990ee5e308a369469bc602f7be7d9810ff24bffa885835268275630ecf78b
+SIZE (fwupd-fwupd-1.5.7_GH0.tar.gz) = 2498618
Index: sysutils/fwupd/files/patch-libfwupd_meson.build
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-libfwupd_meson.build
@@ -0,0 +1,10 @@
+--- libfwupd/meson.build.orig 2021-02-23 14:54:50 UTC
++++ libfwupd/meson.build
+@@ -154,6 +154,7 @@ if get_option('introspection')
+ input: fwupd_gir[0],
+ output: 'fwupd.map',
+ command: [
++ python3,
+ join_paths(meson.source_root(), 'contrib', 'generate-version-script.py'),
+ 'LIBFWUPD',
+ '@INPUT@',
Index: sysutils/fwupd/files/patch-libfwupdplugin_fu-common.c
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-libfwupdplugin_fu-common.c
@@ -0,0 +1,11 @@
+--- libfwupdplugin/fu-common.c.orig 2021-02-23 14:54:50 UTC
++++ libfwupdplugin/fu-common.c
+@@ -2257,7 +2257,7 @@ fu_byte_array_set_size (GByteArray *array, guint lengt
+ gboolean
+ fu_common_kernel_locked_down (void)
+ {
+-#ifndef _WIN32
++#ifdef __linux__
+ gsize len = 0;
+ g_autofree gchar *dir = fu_common_get_path (FU_PATH_KIND_SYSFSDIR_SECURITY);
+ g_autofree gchar *fname = g_build_filename (dir, "lockdown", NULL);
Index: sysutils/fwupd/files/patch-libfwupdplugin_fu-efivar.c
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-libfwupdplugin_fu-efivar.c
@@ -0,0 +1,56 @@
+--- libfwupdplugin/fu-efivar.c.orig 2021-02-23 14:54:50 UTC
++++ libfwupdplugin/fu-efivar.c
+@@ -10,7 +10,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <string.h>
+-#ifndef _WIN32
++#ifdef __linux__
+ #include <linux/fs.h>
+ #include <sys/ioctl.h>
+ #include <gio/gunixinputstream.h>
+@@ -49,7 +49,7 @@ fu_efivar_get_filename (const gchar *guid, const gchar
+ gboolean
+ fu_efivar_supported (GError **error)
+ {
+-#ifndef _WIN32
++#ifdef __linux__
+ g_autofree gchar *efivardir = fu_efivar_get_path ();
+ g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+ if (!g_file_test (efivardir, G_FILE_TEST_IS_DIR)) {
+@@ -71,7 +71,7 @@ fu_efivar_supported (GError **error)
+ #endif
+ }
+
+-#ifndef _WIN32
++#ifdef __linux__
+ static gboolean
+ fu_efivar_set_immutable_fd (int fd,
+ gboolean value,
+@@ -135,7 +135,7 @@ fu_efivar_set_immutable (const gchar *fn,
+ gboolean *value_old,
+ GError **error)
+ {
+-#ifndef _WIN32
++#ifdef __linux__
+ gint fd;
+ g_autoptr(GInputStream) istr = NULL;
+
+@@ -298,7 +298,7 @@ gboolean
+ fu_efivar_get_data (const gchar *guid, const gchar *name, guint8 **data,
+ gsize *data_sz, guint32 *attr, GError **error)
+ {
+-#ifndef _WIN32
++#ifdef __linux__
+ gssize attr_sz;
+ gssize data_sz_tmp;
+ guint32 attr_tmp;
+@@ -546,7 +546,7 @@ gboolean
+ fu_efivar_set_data (const gchar *guid, const gchar *name, const guint8 *data,
+ gsize sz, guint32 attr, GError **error)
+ {
+-#ifndef _WIN32
++#ifdef __linux__
+ int fd;
+ int open_wflags;
+ gboolean was_immutable;
Index: sysutils/fwupd/files/patch-libfwupdplugin_fu-udev-device.c
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-libfwupdplugin_fu-udev-device.c
@@ -0,0 +1,11 @@
+--- libfwupdplugin/fu-udev-device.c.orig 2021-02-23 14:54:50 UTC
++++ libfwupdplugin/fu-udev-device.c
+@@ -1588,7 +1588,7 @@ gboolean
+ fu_udev_device_write_sysfs (FuUdevDevice *self, const gchar *attribute,
+ const gchar *val, GError **error)
+ {
+-#ifndef _WIN32
++#ifdef __linux__
+ ssize_t n;
+ int r;
+ int fd;
Index: sysutils/fwupd/files/patch-libfwupdplugin_meson.build
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-libfwupdplugin_meson.build
@@ -0,0 +1,10 @@
+--- libfwupdplugin/meson.build.orig 2021-02-23 14:54:50 UTC
++++ libfwupdplugin/meson.build
+@@ -222,6 +222,7 @@ if get_option('introspection') and get_option('gusb')
+ input: fwupdplugin_gir[0],
+ output: 'fwupdplugin.map',
+ command: [
++ python3,
+ join_paths(meson.source_root(), 'contrib', 'generate-version-script.py'),
+ 'LIBFWUPDPLUGIN',
+ '@INPUT@',
Index: sysutils/fwupd/files/patch-meson.build
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-meson.build
@@ -0,0 +1,11 @@
+--- meson.build.orig 2021-02-23 14:54:50 UTC
++++ meson.build
+@@ -242,7 +242,7 @@ if build_daemon
+ warning('Polkit is disabled, the daemon will allow ALL client actions')
+ endif
+ udevdir = get_option('udevdir')
+- if udevdir == ''
++ if udevdir == '' and host_machine.system() == 'linux'
+ udev = dependency('udev')
+ udevdir = udev.get_pkgconfig_variable('udevdir')
+ endif
Index: sysutils/fwupd/files/patch-plugins_dfu-csr_meson.build
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-plugins_dfu-csr_meson.build
@@ -0,0 +1,8 @@
+--- plugins/dfu-csr/meson.build.orig 2021-02-23 14:54:50 UTC
++++ plugins/dfu-csr/meson.build
+@@ -1,4 +1,4 @@
+-if get_option('gusb')
++if get_option('gusb') and host_machine.system() == 'linux'
+ cargs = ['-DG_LOG_DOMAIN="FuPluginDfuCsr"']
+
+ install_data(['dfu-csr.quirk'],
Index: sysutils/fwupd/files/patch-plugins_dfu_meson.build
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-plugins_dfu_meson.build
@@ -0,0 +1,8 @@
+--- plugins/dfu/meson.build.orig 2021-02-23 14:54:50 UTC
++++ plugins/dfu/meson.build
+@@ -1,4 +1,4 @@
+-if get_option('gusb')
++if get_option('gusb') and host_machine.system() == 'linux'
+ cargs = ['-DG_LOG_DOMAIN="FuPluginDfu"']
+
+ install_data(['dfu.quirk'],
Index: sysutils/fwupd/files/patch-src_fu-engine.c
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-src_fu-engine.c
@@ -0,0 +1,20 @@
+--- src/fu-engine.c.orig 2021-02-23 14:54:50 UTC
++++ src/fu-engine.c
+@@ -6299,7 +6299,7 @@ fu_engine_load (FuEngine *self, FuEngineLoadFlags flag
+ guint backend_cnt = 0;
+ g_autoptr(GPtrArray) checksums_approved = NULL;
+ g_autoptr(GPtrArray) checksums_blocked = NULL;
+-#ifndef _WIN32
++#ifdef __linux__
+ g_autoptr(GError) error_local = NULL;
+ #endif
+
+@@ -6311,7 +6311,7 @@ fu_engine_load (FuEngine *self, FuEngineLoadFlags flag
+ return TRUE;
+
+ /* TODO: Read registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography] "MachineGuid" */
+-#ifndef _WIN32
++#ifdef __linux__
+ /* cache machine ID so we can use it from a sandboxed app */
+ self->host_machine_id = fwupd_build_machine_id ("fwupd", &error_local);
+ if (self->host_machine_id == NULL)
Index: sysutils/fwupd/files/patch-src_fu-main.c
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-src_fu-main.c
@@ -0,0 +1,14 @@
+--- src/fu-main.c.orig 2021-02-23 14:54:50 UTC
++++ src/fu-main.c
+@@ -2037,9 +2037,10 @@ main (int argc, char *argv[])
+ else if (timed_exit)
+ g_timeout_add_seconds (5, fu_main_timed_exit_cb, priv->loop);
+
++#ifdef __linux__
+ /* drop heap except one page */
+ malloc_trim (4096);
+-
++#endif
+ /* wait */
+ g_message ("Daemon ready for requests (locale %s)", g_getenv ("LANG"));
+ g_main_loop_run (priv->loop);
Index: sysutils/fwupd/files/patch-src_fu-self-test.c
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-src_fu-self-test.c
@@ -0,0 +1,11 @@
+--- src/fu-self-test.c.orig 2021-02-23 14:54:50 UTC
++++ src/fu-self-test.c
+@@ -583,7 +583,7 @@ fu_engine_requirements_device_func (gconstpointer user
+ " <firmware compare=\"ge\" version=\"1.2.3\"/>"
+ " <firmware compare=\"eq\" version=\"4.5.6\">bootloader</firmware>"
+ " <firmware compare=\"regex\" version=\"USB:0xFFFF|DMI:Lenovo\">vendor-id</firmware>"
+-#ifndef _WIN32
++#ifdef __linux__
+ " <id compare=\"ge\" version=\"4.0.0\">org.kernel</id>"
+ #endif
+ " </requires>"
Index: sysutils/fwupd/files/patch-subprojects_gusb.wrap
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-subprojects_gusb.wrap
@@ -0,0 +1,9 @@
+--- subprojects/gusb.wrap.orig 2021-02-23 14:54:50 UTC
++++ subprojects/gusb.wrap
+@@ -1,4 +1,4 @@
+ [wrap-git]
+ directory = gusb
+-url = https://github.com/hughsie/libgusb.git
+-revision = 0.3.5
++url = https://github.com/3mdeb/libgusb.git
++revision = 36c91ab059c8446902dddd3693070559611c8980
Index: sysutils/fwupd/files/patch-subprojects_libjcat.wrap
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-subprojects_libjcat.wrap
@@ -0,0 +1,9 @@
+--- subprojects/libjcat.wrap.orig 2021-02-23 14:54:50 UTC
++++ subprojects/libjcat.wrap
+@@ -1,4 +1,4 @@
+ [wrap-git]
+ directory = libjcat
+-url = https://github.com/hughsie/libjcat.git
++url = https://github.com/3mdeb/libjcat.git
+-revision = 0.1.0
++revision = b5af577e63a009f6423dd5c62cf096ac38386210
Index: sysutils/fwupd/files/patch-subprojects_libxmlb.wrap
===================================================================
--- /dev/null
+++ sysutils/fwupd/files/patch-subprojects_libxmlb.wrap
@@ -0,0 +1,8 @@
+--- subprojects/libxmlb.wrap.orig 2021-02-23 14:54:50 UTC
++++ subprojects/libxmlb.wrap
+@@ -1,4 +1,4 @@
+ [wrap-git]
+ directory = libxmlb
+ url = https://github.com/hughsie/libxmlb.git
+-revision = 0.1.14
++revision = 0.2.1
Index: sysutils/fwupd/pkg-descr
===================================================================
--- /dev/null
+++ sysutils/fwupd/pkg-descr
@@ -0,0 +1,9 @@
+Make firmware updates automatic, safe, and reliable.
+
+fwupd is a simple daemon to allow session software to update device firmware on
+your local machine. It is designed for desktops, but also usable on phones and
+headless servers. You can either use a GUI software manager like GNOME Software
+to view and apply updates, the command-line tool, or the system D-Bus interface
+directly.
+
+WWW: https://fwupd.org/
Index: sysutils/fwupd/pkg-plist
===================================================================
--- /dev/null
+++ sysutils/fwupd/pkg-plist
@@ -0,0 +1,280 @@
+bin/fwupdagent
+bin/fwupdmgr
+bin/fwupdtool
+bin/gusbcmd
+bin/jcat-tool
+%%ETCDIR%%/daemon.conf
+%%ETCDIR%%/remotes.d/lvfs-testing.conf
+%%ETCDIR%%/remotes.d/lvfs.conf
+%%ETCDIR%%/remotes.d/vendor-directory.conf
+%%ETCDIR%%/remotes.d/vendor.conf
+etc/pki/fwupd-metadata/GPG-KEY-Linux-Foundation-Metadata
+etc/pki/fwupd-metadata/GPG-KEY-Linux-Vendor-Firmware-Service
+etc/pki/fwupd-metadata/LVFS-CA.pem
+etc/pki/fwupd/GPG-KEY-Hughski-Limited
+etc/pki/fwupd/GPG-KEY-Linux-Foundation-Firmware
+etc/pki/fwupd/GPG-KEY-Linux-Vendor-Firmware-Service
+etc/pki/fwupd/LVFS-CA.pem
+include/fwupd-1/fwupd.h
+include/fwupd-1/fwupdplugin.h
+include/fwupd-1/libfwupd/fwupd-client-sync.h
+include/fwupd-1/libfwupd/fwupd-client.h
+include/fwupd-1/libfwupd/fwupd-common.h
+include/fwupd-1/libfwupd/fwupd-deprecated.h
+include/fwupd-1/libfwupd/fwupd-device.h
+include/fwupd-1/libfwupd/fwupd-enums.h
+include/fwupd-1/libfwupd/fwupd-error.h
+include/fwupd-1/libfwupd/fwupd-plugin.h
+include/fwupd-1/libfwupd/fwupd-release.h
+include/fwupd-1/libfwupd/fwupd-remote.h
+include/fwupd-1/libfwupd/fwupd-security-attr.h
+include/fwupd-1/libfwupd/fwupd-version.h
+include/fwupd-1/libfwupdplugin/fu-archive.h
+include/fwupd-1/libfwupdplugin/fu-bluez-device.h
+include/fwupd-1/libfwupdplugin/fu-cabinet.h
+include/fwupd-1/libfwupdplugin/fu-chunk.h
+include/fwupd-1/libfwupdplugin/fu-common-cab.h
+include/fwupd-1/libfwupdplugin/fu-common-guid.h
+include/fwupd-1/libfwupdplugin/fu-common-version.h
+include/fwupd-1/libfwupdplugin/fu-common.h
+include/fwupd-1/libfwupdplugin/fu-deprecated.h
+include/fwupd-1/libfwupdplugin/fu-device-locker.h
+include/fwupd-1/libfwupdplugin/fu-device-metadata.h
+include/fwupd-1/libfwupdplugin/fu-device.h
+include/fwupd-1/libfwupdplugin/fu-dfu-firmware.h
+include/fwupd-1/libfwupdplugin/fu-dfuse-firmware.h
+include/fwupd-1/libfwupdplugin/fu-efi-signature-list.h
+include/fwupd-1/libfwupdplugin/fu-efi-signature.h
+include/fwupd-1/libfwupdplugin/fu-efivar.h
+include/fwupd-1/libfwupdplugin/fu-firmware-common.h
+include/fwupd-1/libfwupdplugin/fu-firmware-image.h
+include/fwupd-1/libfwupdplugin/fu-firmware.h
+include/fwupd-1/libfwupdplugin/fu-fmap-firmware.h
+include/fwupd-1/libfwupdplugin/fu-hid-device.h
+include/fwupd-1/libfwupdplugin/fu-hwids.h
+include/fwupd-1/libfwupdplugin/fu-ihex-firmware.h
+include/fwupd-1/libfwupdplugin/fu-io-channel.h
+include/fwupd-1/libfwupdplugin/fu-plugin-vfuncs.h
+include/fwupd-1/libfwupdplugin/fu-plugin.h
+include/fwupd-1/libfwupdplugin/fu-quirks.h
+include/fwupd-1/libfwupdplugin/fu-security-attrs.h
+include/fwupd-1/libfwupdplugin/fu-smbios.h
+include/fwupd-1/libfwupdplugin/fu-srec-firmware.h
+include/fwupd-1/libfwupdplugin/fu-udev-device.h
+include/fwupd-1/libfwupdplugin/fu-usb-device.h
+include/fwupd-1/libfwupdplugin/fu-volume.h
+include/gusb-1/gusb.h
+include/gusb-1/gusb/gusb-autocleanups.h
+include/gusb-1/gusb/gusb-context-private.h
+include/gusb-1/gusb/gusb-context.h
+include/gusb-1/gusb/gusb-device-list.h
+include/gusb-1/gusb/gusb-device-private.h
+include/gusb-1/gusb/gusb-device.h
+include/gusb-1/gusb/gusb-endpoint-private.h
+include/gusb-1/gusb/gusb-endpoint.h
+include/gusb-1/gusb/gusb-interface-private.h
+include/gusb-1/gusb/gusb-interface.h
+include/gusb-1/gusb/gusb-source.h
+include/gusb-1/gusb/gusb-util.h
+include/gusb-1/gusb/gusb-version.h
+include/libjcat-1/jcat.h
+include/libjcat-1/libjcat/jcat-blob.h
+include/libjcat-1/libjcat/jcat-common.h
+include/libjcat-1/libjcat/jcat-context.h
+include/libjcat-1/libjcat/jcat-engine.h
+include/libjcat-1/libjcat/jcat-file.h
+include/libjcat-1/libjcat/jcat-item.h
+include/libjcat-1/libjcat/jcat-result.h
+include/libjcat-1/libjcat/jcat-version.h
+include/libxmlb-2/libxmlb/xb-builder-fixup.h
+include/libxmlb-2/libxmlb/xb-builder-node.h
+include/libxmlb-2/libxmlb/xb-builder-source-ctx.h
+include/libxmlb-2/libxmlb/xb-builder-source.h
+include/libxmlb-2/libxmlb/xb-builder.h
+include/libxmlb-2/libxmlb/xb-machine.h
+include/libxmlb-2/libxmlb/xb-node-query.h
+include/libxmlb-2/libxmlb/xb-node-silo.h
+include/libxmlb-2/libxmlb/xb-node.h
+include/libxmlb-2/libxmlb/xb-opcode.h
+include/libxmlb-2/libxmlb/xb-query.h
+include/libxmlb-2/libxmlb/xb-silo-export.h
+include/libxmlb-2/libxmlb/xb-silo-query.h
+include/libxmlb-2/libxmlb/xb-silo.h
+include/libxmlb-2/libxmlb/xb-stack.h
+include/libxmlb-2/libxmlb/xb-string.h
+include/libxmlb-2/libxmlb/xb-version.h
+include/libxmlb-2/xmlb.h
+lib/fwupd-plugins-3/libfu_plugin_bcm57xx.so
+lib/fwupd-plugins-3/libfu_plugin_ccgx.so
+lib/fwupd-plugins-3/libfu_plugin_colorhug.so
+lib/fwupd-plugins-3/libfu_plugin_cpu.so
+lib/fwupd-plugins-3/libfu_plugin_cros_ec.so
+lib/fwupd-plugins-3/libfu_plugin_dell_dock.so
+lib/fwupd-plugins-3/libfu_plugin_ebitdo.so
+lib/fwupd-plugins-3/libfu_plugin_ep963x.so
+lib/fwupd-plugins-3/libfu_plugin_fastboot.so
+lib/fwupd-plugins-3/libfu_plugin_fresco_pd.so
+lib/fwupd-plugins-3/libfu_plugin_goodixmoc.so
+lib/fwupd-plugins-3/libfu_plugin_hailuck.so
+lib/fwupd-plugins-3/libfu_plugin_jabra.so
+lib/fwupd-plugins-3/libfu_plugin_msr.so
+lib/fwupd-plugins-3/libfu_plugin_nitrokey.so
+lib/fwupd-plugins-3/libfu_plugin_rts54hid.so
+lib/fwupd-plugins-3/libfu_plugin_rts54hub.so
+lib/fwupd-plugins-3/libfu_plugin_solokey.so
+lib/fwupd-plugins-3/libfu_plugin_steelseries.so
+lib/fwupd-plugins-3/libfu_plugin_synaptics_cxaudio.so
+lib/fwupd-plugins-3/libfu_plugin_synaptics_prometheus.so
+lib/fwupd-plugins-3/libfu_plugin_system76_launch.so
+lib/fwupd-plugins-3/libfu_plugin_uefi_pk.so
+lib/fwupd-plugins-3/libfu_plugin_vli.so
+lib/fwupd-plugins-3/libfu_plugin_wacom_usb.so
+lib/girepository-1.0/Fwupd-2.0.typelib
+lib/girepository-1.0/FwupdPlugin-1.0.typelib
+lib/girepository-1.0/GUsb-1.0.typelib
+lib/girepository-1.0/Jcat-1.0.typelib
+lib/girepository-1.0/Xmlb-2.0.typelib
+lib/libfwupd.so
+lib/libfwupd.so.2
+lib/libfwupd.so.2.0.0
+lib/libfwupdplugin.so
+lib/libfwupdplugin.so.1
+lib/libfwupdplugin.so.1.0.0
+lib/libgusb.so
+lib/libgusb.so.2
+lib/libgusb.so.2.0.10
+lib/libjcat.so
+lib/libjcat.so.1
+lib/libjcat.so.1.0.0
+lib/libxmlb.so
+lib/libxmlb.so.2
+lib/libxmlb.so.2.0.0
+libdata/pkgconfig/fwupd.pc
+libdata/pkgconfig/fwupdplugin.pc
+libdata/pkgconfig/gusb.pc
+libdata/pkgconfig/jcat.pc
+libdata/pkgconfig/xmlb.pc
+libexec/fwupd/fwupd
+libexec/fwupd/fwupd-detect-cet
+libexec/installed-tests/libjcat/colorhug/firmware.bin
+libexec/installed-tests/libjcat/colorhug/firmware.bin.asc
+libexec/installed-tests/libjcat/colorhug/firmware.bin.p7b
+libexec/installed-tests/libjcat/colorhug/firmware.bin.p7c
+libexec/installed-tests/libjcat/jcat-self-test
+libexec/installed-tests/libjcat/pki/GPG-KEY-Linux-Vendor-Firmware-Service
+libexec/installed-tests/libjcat/pki/LVFS-CA.pem
+libexec/installed-tests/libxmlb/test.xml.gz.gz.gz
+libexec/installed-tests/libxmlb/xb-self-test
+libexec/xb-tool
+share/bash-completion/completions/fwupdagent
+share/bash-completion/completions/fwupdmgr
+share/bash-completion/completions/fwupdtool
+share/dbus-1/interfaces/org.freedesktop.fwupd.xml
+share/dbus-1/system.d/org.freedesktop.fwupd.conf
+share/fish/vendor_completions.d/fwupdmgr.fish
+%%DATADIR%%/add_capsule_header.py
+%%DATADIR%%/firmware_packager.py
+%%DATADIR%%/install_dell_bios_exe.py
+%%DATADIR%%/quirks.d/bcm57xx.quirk
+%%DATADIR%%/quirks.d/ccgx-ids.quirk
+%%DATADIR%%/quirks.d/ccgx.quirk
+%%DATADIR%%/quirks.d/colorhug.quirk
+%%DATADIR%%/quirks.d/cpu.quirk
+%%DATADIR%%/quirks.d/cros-ec.quirk
+%%DATADIR%%/quirks.d/dell-dock.quirk
+%%DATADIR%%/quirks.d/ebitdo.quirk
+%%DATADIR%%/quirks.d/ep963x.quirk
+%%DATADIR%%/quirks.d/fastboot.quirk
+%%DATADIR%%/quirks.d/fresco-pd.quirk
+%%DATADIR%%/quirks.d/goodixmoc.quirk
+%%DATADIR%%/quirks.d/hailuck.quirk
+%%DATADIR%%/quirks.d/jabra.quirk
+%%DATADIR%%/quirks.d/msr.quirk
+%%DATADIR%%/quirks.d/nitrokey.quirk
+%%DATADIR%%/quirks.d/rts54hid.quirk
+%%DATADIR%%/quirks.d/rts54hub.quirk
+%%DATADIR%%/quirks.d/solokey.quirk
+%%DATADIR%%/quirks.d/steelseries.quirk
+%%DATADIR%%/quirks.d/synaptics-cxaudio.quirk
+%%DATADIR%%/quirks.d/synaptics-prometheus.quirk
+%%DATADIR%%/quirks.d/system76-launch.quirk
+%%DATADIR%%/quirks.d/vli-pd.quirk
+%%DATADIR%%/quirks.d/vli-usbhub-hyper.quirk
+%%DATADIR%%/quirks.d/vli-usbhub-lenovo.quirk
+%%DATADIR%%/quirks.d/vli-usbhub.quirk
+%%DATADIR%%/quirks.d/wacom-usb.quirk
+%%DATADIR%%/remotes.d/vendor/firmware/README.md
+%%DATADIR%%/simple_client.py
+share/gir-1.0/Fwupd-2.0.gir
+share/gir-1.0/FwupdPlugin-1.0.gir
+share/gir-1.0/GUsb-1.0.gir
+share/gir-1.0/Jcat-1.0.gir
+share/gir-1.0/Xmlb-2.0.gir
+share/gtk-doc/html/gusb/faq.html
+share/gtk-doc/html/gusb/gusb-GUsbContext.html
+share/gtk-doc/html/gusb/gusb-GUsbDevice.html
+share/gtk-doc/html/gusb/gusb-GUsbDeviceList.html
+share/gtk-doc/html/gusb/gusb-gusb-interface.html
+share/gtk-doc/html/gusb/gusb-gusb-source.html
+share/gtk-doc/html/gusb/gusb-gusb-version.html
+share/gtk-doc/html/gusb/gusb.devhelp2
+share/gtk-doc/html/gusb/home.png
+share/gtk-doc/html/gusb/index.html
+share/gtk-doc/html/gusb/introduction.html
+share/gtk-doc/html/gusb/left-insensitive.png
+share/gtk-doc/html/gusb/left.png
+share/gtk-doc/html/gusb/libgusb-helpers.html
+share/gtk-doc/html/gusb/libgusb.html
+share/gtk-doc/html/gusb/right-insensitive.png
+share/gtk-doc/html/gusb/right.png
+share/gtk-doc/html/gusb/specification.html
+share/gtk-doc/html/gusb/style.css
+share/gtk-doc/html/gusb/up-insensitive.png
+share/gtk-doc/html/gusb/up.png
+share/gtk-doc/html/libxmlb/annotation-glossary.html
+share/gtk-doc/html/libxmlb/api-index-full.html
+share/gtk-doc/html/libxmlb/deprecated-api-index.html
+share/gtk-doc/html/libxmlb/home.png
+share/gtk-doc/html/libxmlb/index.html
+share/gtk-doc/html/libxmlb/intro.html
+share/gtk-doc/html/libxmlb/left-insensitive.png
+share/gtk-doc/html/libxmlb/left.png
+share/gtk-doc/html/libxmlb/libxmlb-XbBuilder.html
+share/gtk-doc/html/libxmlb/libxmlb-XbBuilderFixup.html
+share/gtk-doc/html/libxmlb/libxmlb-XbBuilderNode.html
+share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSource.html
+share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSourceCtx.html
+share/gtk-doc/html/libxmlb/libxmlb-XbMachine.html
+share/gtk-doc/html/libxmlb/libxmlb-XbNode.html
+share/gtk-doc/html/libxmlb/libxmlb-XbQuery.html
+share/gtk-doc/html/libxmlb/libxmlb-XbSilo.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-node-query.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-opcode.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-silo-export.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-silo-query.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-stack.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-string.html
+share/gtk-doc/html/libxmlb/libxmlb.devhelp2
+share/gtk-doc/html/libxmlb/libxmlb.html
+share/gtk-doc/html/libxmlb/right-insensitive.png
+share/gtk-doc/html/libxmlb/right.png
+share/gtk-doc/html/libxmlb/style.css
+share/gtk-doc/html/libxmlb/up-insensitive.png
+share/gtk-doc/html/libxmlb/up.png
+share/icons/hicolor/scalable/apps/org.freedesktop.fwupd.svg
+share/installed-tests/libjcat/libjcat.test
+share/installed-tests/libxmlb/libxmlb.test
+share/metainfo/org.freedesktop.fwupd.metainfo.xml
+share/vala/vapi/fwupd.deps
+share/vala/vapi/fwupd.vapi
+share/vala/vapi/fwupdplugin.deps
+share/vala/vapi/fwupdplugin.vapi
+share/vala/vapi/gusb.deps
+share/vala/vapi/gusb.vapi
+share/vala/vapi/jcat.deps
+share/vala/vapi/jcat.vapi
+/var/local/lib/fwupd/builder/README.md
+@dir /var/local/lib/fwupd/builder
+@dir /var/local/lib/fwupd
+@dir /var/local/lib
+@dir /var/local
Index: textproc/Makefile
===================================================================
--- textproc/Makefile
+++ textproc/Makefile
@@ -401,6 +401,7 @@
SUBDIR += libxdiff
SUBDIR += libxml++26
SUBDIR += libxml2
+ SUBDIR += libxmlb
SUBDIR += libxmlbird
SUBDIR += libxode
SUBDIR += libxslt
Index: textproc/libxmlb/Makefile
===================================================================
--- /dev/null
+++ textproc/libxmlb/Makefile
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+PORTNAME= libxmlb
+DISTVERSION= 0.3.0
+CATEGORIES= textproc
+
+MAINTAINER= norbert.kaminski@3mdeb.com
+COMMENT= Help create and query binary XML blobs
+
+LICENSE= LGPL21
+
+BUILD_DEPENDS= gobject-introspection>=1.36:devel/gobject-introspection \
+ gtkdocize:textproc/gtk-doc
+
+USES= gnome meson pkgconfig python:3.7+
+USE_GITHUB= yes
+GH_ACCOUNT= hughsie
+USE_GNOME= glib20
+USE_LDCONFIG= yes
+
+#SHEBANG_REGEX= '.*\.py$$'
+
+.include <bsd.port.mk>
Index: textproc/libxmlb/distinfo
===================================================================
--- /dev/null
+++ textproc/libxmlb/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1616097369
+SHA256 (hughsie-libxmlb-0.3.0_GH0.tar.gz) = be136770805e27087519c6366014c1ba2f48d7e4b8867950a942915feca47a5f
+SIZE (hughsie-libxmlb-0.3.0_GH0.tar.gz) = 112097
Index: textproc/libxmlb/files/patch-meson.build
===================================================================
--- /dev/null
+++ textproc/libxmlb/files/patch-meson.build
@@ -0,0 +1,11 @@
+--- meson.build.orig 2021-03-18 20:16:56 UTC
++++ meson.build
+@@ -149,7 +149,7 @@ configure_file(
+ )
+
+ python = import('python')
+-python3 = python.find_installation('python3')
++python3 = python.find_installation('python3.7')
+
+ subdir('data')
+ subdir('src')
Index: textproc/libxmlb/pkg-descr
===================================================================
--- /dev/null
+++ textproc/libxmlb/pkg-descr
@@ -0,0 +1,10 @@
+XML is slow to parse and strings inside the document cannot be memory mapped as
+they do not have a trailing NUL char. The libxmlb library takes XML source, and
+converts it to a structured binary representation with a deduplicated string
+table -- where the strings have the NULs included.
+
+This allows an application to mmap the binary XML file, do an XPath query and
+return some strings without actually parsing the entire document. This is all
+done using (almost) zero allocations and no actual copying of the binary data.
+
+WWW: https://github.com/hughsie/libxmlb
Index: textproc/libxmlb/pkg-plist
===================================================================
--- /dev/null
+++ textproc/libxmlb/pkg-plist
@@ -0,0 +1,62 @@
+include/libxmlb-2/libxmlb/xb-builder-fixup.h
+include/libxmlb-2/libxmlb/xb-builder-node.h
+include/libxmlb-2/libxmlb/xb-builder-source-ctx.h
+include/libxmlb-2/libxmlb/xb-builder-source.h
+include/libxmlb-2/libxmlb/xb-builder.h
+include/libxmlb-2/libxmlb/xb-machine.h
+include/libxmlb-2/libxmlb/xb-node-query.h
+include/libxmlb-2/libxmlb/xb-node-silo.h
+include/libxmlb-2/libxmlb/xb-node.h
+include/libxmlb-2/libxmlb/xb-opcode.h
+include/libxmlb-2/libxmlb/xb-query-context.h
+include/libxmlb-2/libxmlb/xb-query.h
+include/libxmlb-2/libxmlb/xb-silo-export.h
+include/libxmlb-2/libxmlb/xb-silo-query.h
+include/libxmlb-2/libxmlb/xb-silo.h
+include/libxmlb-2/libxmlb/xb-stack.h
+include/libxmlb-2/libxmlb/xb-string.h
+include/libxmlb-2/libxmlb/xb-value-bindings.h
+include/libxmlb-2/libxmlb/xb-version.h
+include/libxmlb-2/xmlb.h
+lib/girepository-1.0/Xmlb-2.0.typelib
+lib/libxmlb.so
+lib/libxmlb.so.2
+lib/libxmlb.so.2.0.0
+libdata/pkgconfig/xmlb.pc
+libexec/installed-tests/libxmlb/test.xml.gz.gz.gz
+libexec/installed-tests/libxmlb/xb-self-test
+libexec/xb-tool
+share/gir-1.0/Xmlb-2.0.gir
+share/gtk-doc/html/libxmlb/annotation-glossary.html
+share/gtk-doc/html/libxmlb/api-index-full.html
+share/gtk-doc/html/libxmlb/deprecated-api-index.html
+share/gtk-doc/html/libxmlb/home.png
+share/gtk-doc/html/libxmlb/index.html
+share/gtk-doc/html/libxmlb/intro.html
+share/gtk-doc/html/libxmlb/left-insensitive.png
+share/gtk-doc/html/libxmlb/left.png
+share/gtk-doc/html/libxmlb/libxmlb-XbBuilder.html
+share/gtk-doc/html/libxmlb/libxmlb-XbBuilderFixup.html
+share/gtk-doc/html/libxmlb/libxmlb-XbBuilderNode.html
+share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSource.html
+share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSourceCtx.html
+share/gtk-doc/html/libxmlb/libxmlb-XbMachine.html
+share/gtk-doc/html/libxmlb/libxmlb-XbNode.html
+share/gtk-doc/html/libxmlb/libxmlb-XbQuery.html
+share/gtk-doc/html/libxmlb/libxmlb-XbSilo.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-node-query.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-opcode.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-query-context.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-silo-export.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-silo-query.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-stack.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-string.html
+share/gtk-doc/html/libxmlb/libxmlb-xb-value-bindings.html
+share/gtk-doc/html/libxmlb/libxmlb.devhelp2
+share/gtk-doc/html/libxmlb/libxmlb.html
+share/gtk-doc/html/libxmlb/right-insensitive.png
+share/gtk-doc/html/libxmlb/right.png
+share/gtk-doc/html/libxmlb/style.css
+share/gtk-doc/html/libxmlb/up-insensitive.png
+share/gtk-doc/html/libxmlb/up.png
+share/installed-tests/libxmlb/libxmlb.test
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 11, 12:36 AM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28634493
Default Alt Text
D29332.id85990.diff (28 KB)
Attached To
Mode
D29332: WIP to add sysutils/fwupd (if it runs well)
Attached
Detach File
Event Timeline
Log In to Comment