diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /sys-apps/bolt | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'sys-apps/bolt')
| -rw-r--r-- | sys-apps/bolt/Manifest | 4 | ||||
| -rw-r--r-- | sys-apps/bolt/bolt-0.9.10.ebuild | 91 | ||||
| -rw-r--r-- | sys-apps/bolt/bolt-0.9.11.ebuild | 91 | ||||
| -rw-r--r-- | sys-apps/bolt/bolt-0.9.8-r1.ebuild | 93 | ||||
| -rw-r--r-- | sys-apps/bolt/bolt-0.9.9.ebuild | 91 | ||||
| -rw-r--r-- | sys-apps/bolt/files/bolt-0.9.8-sockaddr.patch | 46 | ||||
| -rw-r--r-- | sys-apps/bolt/files/bolt.openrc-r1 | 14 | ||||
| -rw-r--r-- | sys-apps/bolt/metadata.xml | 13 |
8 files changed, 443 insertions, 0 deletions
diff --git a/sys-apps/bolt/Manifest b/sys-apps/bolt/Manifest new file mode 100644 index 000000000000..e2647c31c5fa --- /dev/null +++ b/sys-apps/bolt/Manifest @@ -0,0 +1,4 @@ +DIST bolt-0.9.10.tar.bz2 193527 BLAKE2B 6daa0771566f488062e5fe66e372a02073d6030234fe0a5c3a5c49f70d6e52cc2e4ebb807932cd82eebfe96115035d1c8ddd2400370d0c5764914b9550906f30 SHA512 5833d69d033248585ce469b3e3af8b4718aef61ec28f5f036e1cb4572370170f2178bb2fe73fa45414d4c3bc698537639594f0f53bcbe216ca716d982605161f +DIST bolt-0.9.11.tar.bz2 193742 BLAKE2B 66871563344a406a7bb72038740dfd3db0af475118d6ca8312de30d9d57317dde7cfb8a1c64a5b2010c1a3879106724b248eeb34056e3eb1d8dc1e1cdeb84b2d SHA512 8b60cad29e938d5e16c2a7abc8db5e568bd22184fc45cb0f562c6cc645bb2ec0de67ad962b53bec841873fb3800b9b6f38db293cccca48f785b77c589f997419 +DIST bolt-0.9.8.tar.bz2 192836 BLAKE2B 7a06572562af5586d479fee58fb2469b8d804d6eafb41a52c5a575ef2acf616fb684b4e92181430444d67d9889c836bd6d96e1a6d3460cd01300f80d99876c04 SHA512 e9b2ccca66930ee40fd283b09e4bd2bffe1f496e4f898a9d4e069e673a2c9320d456b9ad4b33c4e3e26d25f363985a798c6c860c4c0b103558dbbab78f02ba2b +DIST bolt-0.9.9.tar.bz2 193145 BLAKE2B 62038723349f9b234085693f6139b5d8e33efc84003aae346f47fbb9444ea564eab2a304ded598b12fe31e36be906771be1d7987ff60f016e7b305cbe4ebb4d6 SHA512 21214b325dc9a78a5096a9108a93e9dad1670b7400996a551ec4f62260e9253c50209bbc86ce2950348e5691ee9434114be890a6f34e2c9defe8c7308d7693de diff --git a/sys-apps/bolt/bolt-0.9.10.ebuild b/sys-apps/bolt/bolt-0.9.10.ebuild new file mode 100644 index 000000000000..34e7824e1a17 --- /dev/null +++ b/sys-apps/bolt/bolt-0.9.10.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +inherit linux-info python-any-r1 meson udev + +DESCRIPTION="Userspace system daemon to enable security levels for Thunderbolt 3" +HOMEPAGE="https://gitlab.freedesktop.org/bolt/bolt" +SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="LGPL-2.1 GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~loong ~riscv ~x86" +IUSE="selinux test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.56.0:2 + virtual/libudev:= + virtual/udev + sys-auth/polkit[introspection] + selinux? ( sec-policy/selinux-thunderbolt ) +" +DEPEND=" + ${RDEPEND} + test? ( + dev-util/umockdev + ) +" +BDEPEND=" + app-text/asciidoc + dev-util/glib-utils + virtual/pkgconfig + test? ( + dev-util/umockdev + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/pygobject[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/python-dbusmock[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + python_has_version \ + "dev-python/pygobject[${PYTHON_USEDEP}]" \ + "dev-python/dbus-python[${PYTHON_USEDEP}]" \ + "dev-python/python-dbusmock[${PYTHON_USEDEP}]" +} + +pkg_setup() { + if use kernel_linux && kernel_is lt 5 6; then + CONFIG_CHECK="~THUNDERBOLT" + ERROR_THUNDERBOLT="This package requires the thunderbolt kernel driver." + else + CONFIG_CHECK="~USB4" + ERROR_USB4="This package requires the USB4 kernel driver for Thunderbolt support." + fi + CONFIG_CHECK+=" ~HOTPLUG_PCI" + ERROR_HOTPLUG_PCI="Thunderbolt requires PCI hotplug support." + + linux-info_pkg_setup + use test && python-any-r1_pkg_setup +} + +src_configure() { + local emesonargs=( + -Dman=true + --sysconfdir="${EPREFIX}"/etc + --localstatedir="${EPREFIX}"/var + --sharedstatedir="${EPREFIX}"/var/lib + ) + meson_src_configure +} + +src_install() { + meson_src_install + newinitd "${FILESDIR}"/${PN}.openrc-r1 boltd + keepdir /var/lib/boltd +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} diff --git a/sys-apps/bolt/bolt-0.9.11.ebuild b/sys-apps/bolt/bolt-0.9.11.ebuild new file mode 100644 index 000000000000..072e9eb92d6a --- /dev/null +++ b/sys-apps/bolt/bolt-0.9.11.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +inherit linux-info python-any-r1 meson udev + +DESCRIPTION="Userspace system daemon to enable security levels for Thunderbolt 3" +HOMEPAGE="https://gitlab.freedesktop.org/bolt/bolt" +SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="LGPL-2.1 GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~loong ~ppc64 ~riscv ~x86" +IUSE="selinux test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.56.0:2 + virtual/libudev:= + virtual/udev + sys-auth/polkit[introspection] + selinux? ( sec-policy/selinux-thunderbolt ) +" +DEPEND=" + ${RDEPEND} + test? ( + dev-util/umockdev + ) +" +BDEPEND=" + app-text/asciidoc + dev-util/glib-utils + virtual/pkgconfig + test? ( + dev-util/umockdev + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/pygobject[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/python-dbusmock[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + python_has_version \ + "dev-python/pygobject[${PYTHON_USEDEP}]" \ + "dev-python/dbus-python[${PYTHON_USEDEP}]" \ + "dev-python/python-dbusmock[${PYTHON_USEDEP}]" +} + +pkg_setup() { + if use kernel_linux && kernel_is lt 5 6; then + CONFIG_CHECK="~THUNDERBOLT" + ERROR_THUNDERBOLT="This package requires the thunderbolt kernel driver." + else + CONFIG_CHECK="~USB4" + ERROR_USB4="This package requires the USB4 kernel driver for Thunderbolt support." + fi + CONFIG_CHECK+=" ~HOTPLUG_PCI" + ERROR_HOTPLUG_PCI="Thunderbolt requires PCI hotplug support." + + linux-info_pkg_setup + use test && python-any-r1_pkg_setup +} + +src_configure() { + local emesonargs=( + -Dman=true + --sysconfdir="${EPREFIX}"/etc + --localstatedir="${EPREFIX}"/var + --sharedstatedir="${EPREFIX}"/var/lib + ) + meson_src_configure +} + +src_install() { + meson_src_install + newinitd "${FILESDIR}"/${PN}.openrc-r1 boltd + keepdir /var/lib/boltd +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} diff --git a/sys-apps/bolt/bolt-0.9.8-r1.ebuild b/sys-apps/bolt/bolt-0.9.8-r1.ebuild new file mode 100644 index 000000000000..b953f705dc55 --- /dev/null +++ b/sys-apps/bolt/bolt-0.9.8-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +inherit linux-info python-any-r1 meson udev + +DESCRIPTION="Userspace system daemon to enable security levels for Thunderbolt 3" +HOMEPAGE="https://gitlab.freedesktop.org/bolt/bolt" +SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="LGPL-2.1 GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~loong ~riscv ~x86" +IUSE="selinux test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.56.0:2 + virtual/libudev:= + virtual/udev + sys-auth/polkit[introspection] + selinux? ( sec-policy/selinux-thunderbolt ) +" +DEPEND=" + ${RDEPEND} + test? ( + dev-util/umockdev + ) +" +BDEPEND=" + app-text/asciidoc + dev-util/glib-utils + virtual/pkgconfig + test? ( + dev-util/umockdev + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/pygobject[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/python-dbusmock[${PYTHON_USEDEP}] + ') + ) +" + +PATCHES=( "${FILESDIR}"/${P}-sockaddr.patch ) + +python_check_deps() { + python_has_version \ + "dev-python/pygobject[${PYTHON_USEDEP}]" \ + "dev-python/dbus-python[${PYTHON_USEDEP}]" \ + "dev-python/python-dbusmock[${PYTHON_USEDEP}]" +} + +pkg_setup() { + if use kernel_linux && kernel_is lt 5 6; then + CONFIG_CHECK="~THUNDERBOLT" + ERROR_THUNDERBOLT="This package requires the thunderbolt kernel driver." + else + CONFIG_CHECK="~USB4" + ERROR_USB4="This package requires the USB4 kernel driver for Thunderbolt support." + fi + CONFIG_CHECK+=" ~HOTPLUG_PCI" + ERROR_HOTPLUG_PCI="Thunderbolt requires PCI hotplug support." + + linux-info_pkg_setup + use test && python-any-r1_pkg_setup +} + +src_configure() { + local emesonargs=( + -Dman=true + --sysconfdir="${EPREFIX}"/etc + --localstatedir="${EPREFIX}"/var + --sharedstatedir="${EPREFIX}"/var/lib + ) + meson_src_configure +} + +src_install() { + meson_src_install + newinitd "${FILESDIR}"/${PN}.openrc-r1 boltd + keepdir /var/lib/boltd +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} diff --git a/sys-apps/bolt/bolt-0.9.9.ebuild b/sys-apps/bolt/bolt-0.9.9.ebuild new file mode 100644 index 000000000000..ae3d0c5bb187 --- /dev/null +++ b/sys-apps/bolt/bolt-0.9.9.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +inherit linux-info python-any-r1 meson udev + +DESCRIPTION="Userspace system daemon to enable security levels for Thunderbolt 3" +HOMEPAGE="https://gitlab.freedesktop.org/bolt/bolt" +SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="LGPL-2.1 GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~loong ~riscv ~x86" +IUSE="selinux test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.56.0:2 + virtual/libudev:= + virtual/udev + sys-auth/polkit[introspection] + selinux? ( sec-policy/selinux-thunderbolt ) +" +DEPEND=" + ${RDEPEND} + test? ( + dev-util/umockdev + ) +" +BDEPEND=" + app-text/asciidoc + dev-util/glib-utils + virtual/pkgconfig + test? ( + dev-util/umockdev + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/pygobject[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/python-dbusmock[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + python_has_version \ + "dev-python/pygobject[${PYTHON_USEDEP}]" \ + "dev-python/dbus-python[${PYTHON_USEDEP}]" \ + "dev-python/python-dbusmock[${PYTHON_USEDEP}]" +} + +pkg_setup() { + if use kernel_linux && kernel_is lt 5 6; then + CONFIG_CHECK="~THUNDERBOLT" + ERROR_THUNDERBOLT="This package requires the thunderbolt kernel driver." + else + CONFIG_CHECK="~USB4" + ERROR_USB4="This package requires the USB4 kernel driver for Thunderbolt support." + fi + CONFIG_CHECK+=" ~HOTPLUG_PCI" + ERROR_HOTPLUG_PCI="Thunderbolt requires PCI hotplug support." + + linux-info_pkg_setup + use test && python-any-r1_pkg_setup +} + +src_configure() { + local emesonargs=( + -Dman=true + --sysconfdir="${EPREFIX}"/etc + --localstatedir="${EPREFIX}"/var + --sharedstatedir="${EPREFIX}"/var/lib + ) + meson_src_configure +} + +src_install() { + meson_src_install + newinitd "${FILESDIR}"/${PN}.openrc-r1 boltd + keepdir /var/lib/boltd +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} diff --git a/sys-apps/bolt/files/bolt-0.9.8-sockaddr.patch b/sys-apps/bolt/files/bolt-0.9.8-sockaddr.patch new file mode 100644 index 000000000000..684e31c5e60c --- /dev/null +++ b/sys-apps/bolt/files/bolt-0.9.8-sockaddr.patch @@ -0,0 +1,46 @@ +https://gitlab.freedesktop.org/bolt/bolt/-/commit/9f85914f1efd7b74fb7bd906b339fcba2214d86a +From 9f85914f1efd7b74fb7bd906b339fcba2214d86a Mon Sep 17 00:00:00 2001 +From: Kate Hsuan <hpa@redhat.com> +Date: Mon, 6 Jan 2025 14:12:47 +0800 +Subject: [PATCH] tests: bolt-test: Fix build error with gcc14 + +Fix build errors with gcc14. +The fix includes: +1. Cast sockaddr correctly. + +build errors: + +x86_64-pc-linux-musl-gcc -Itest-auth.p -I. -I../bolt-0.9.8 -I../bolt-0.9.8/tests -I../bolt-0.9.8/common -I../bolt-0.9.8/boltd -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/polkit-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -fstack-protector-strong -Waggregate-return -Wunused -Warray-bounds -Wcast-align -Wclobbered -Wdeclaration-after-statement -Wempty-body -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-signedness -Wignored-qualifiers -Wimplicit-function-declaration -Winit-self -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-discarded-qualifiers -Wno-missing-field-initializers -Wno-suggest-attribute=format -Wno-unused-parameter -Wold-style-definition -Woverride-init -Wpointer-arith -Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing=3 -Wstrict-prototypes -Wstringop-overflow -Wstringop-truncation -Wtype-limits -Wundef -Wuninitialized -Wunused-but-set-variable -Wwrite-strings -O2 -pipe -march=native -fno-diagnostics-color -pthread -MD -MQ test-auth.p/tests_bolt-test.c.o -MF test-auth.p/tests_bolt-test.c.o.d -o test-auth.p/tests_bolt-test.c.o -c ../bolt-0.9.8/tests/bolt-test.c +../bolt-0.9.8/tests/bolt-test.c: In function 'notify_socket_new': +../bolt-0.9.8/tests/bolt-test.c:131:17: error: passing argument 2 of 'bind' from incompatible pointer type [-Wincompatible-pointer-types] + 131 | r = bind (fd, &sau, socklen); + | ^~~~ + | | + | struct sockaddr_un * +In file included from ../bolt-0.9.8/tests/bolt-test.c:37: +/usr/include/sys/socket.h:385:16: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_un *' + 385 | int bind (int, const struct sockaddr *, socklen_t); + | ^~~~~~~~~~~~~~~~~~~~~~~ + +Resolves: #192 +Link: https://bugs.gentoo.org/937273 +--- + tests/bolt-test.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/bolt-test.c b/tests/bolt-test.c +index beabb8d..aa94222 100644 +--- a/tests/bolt-test.c ++++ b/tests/bolt-test.c +@@ -128,7 +128,7 @@ notify_socket_new (void) + + strlen (sau.sun_path) + + 1; + +- r = bind (fd, &sau, socklen); ++ r = bind (fd, (struct sockaddr *) &sau, socklen); + g_assert_cmpint (r, >, -1); + + r = setsockopt (fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof (one)); +-- +GitLab + diff --git a/sys-apps/bolt/files/bolt.openrc-r1 b/sys-apps/bolt/files/bolt.openrc-r1 new file mode 100644 index 000000000000..f47b15ffaecb --- /dev/null +++ b/sys-apps/bolt/files/bolt.openrc-r1 @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="Thunderbolt Security Daemon" +description="Userspace system daemon to enable security levels for Thunderbolt 3" +command="/usr/libexec/boltd" +command_background="true" +pidfile="/var/run/boltd.pid" + +depend() { + need dbus + before display-manager +} diff --git a/sys-apps/bolt/metadata.xml b/sys-apps/bolt/metadata.xml new file mode 100644 index 000000000000..31dd4cf0f2a8 --- /dev/null +++ b/sys-apps/bolt/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <maintainer type="person"> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
