public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-apps/bolt/files/, sys-apps/bolt/
@ 2025-01-06 22:43 Patrick McLean
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick McLean @ 2025-01-06 22:43 UTC (permalink / raw
  To: gentoo-commits

commit:     a96cc9c522dc52b2f739f381da4869b3492aeacd
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Mon Jan  6 14:31:03 2025 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Mon Jan  6 22:42:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a96cc9c5

sys-apps/bolt: C23 porting: upstream patch

https://gitlab.freedesktop.org/bolt/bolt/-/commit/9f85914f1efd7b74fb7bd906b339fcba2214d86a
Also pushed Python to 3.13

Bug: https://bugs.gentoo.org/937273
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40011
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 sys-apps/bolt/bolt-0.9.8-r1.ebuild            |  6 ++--
 sys-apps/bolt/files/bolt-0.9.8-sockaddr.patch | 46 +++++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/sys-apps/bolt/bolt-0.9.8-r1.ebuild b/sys-apps/bolt/bolt-0.9.8-r1.ebuild
index 52152993deca..53796044710b 100644
--- a/sys-apps/bolt/bolt-0.9.8-r1.ebuild
+++ b/sys-apps/bolt/bolt-0.9.8-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_1{0..2} )
+PYTHON_COMPAT=( python3_1{0..3} )
 inherit linux-info python-any-r1 meson udev
 
 DESCRIPTION="Userspace system daemon to enable security levels for Thunderbolt 3"
@@ -44,6 +44,8 @@ BDEPEND="
 	)
 "
 
+PATCHES=( "${FILESDIR}"/${P}-sockaddr.patch )
+
 pkg_setup() {
 	if use kernel_linux && kernel_is lt 5 6; then
 		CONFIG_CHECK="~THUNDERBOLT"

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
+


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-apps/bolt/files/, sys-apps/bolt/
@ 2025-01-28 16:38 Andreas Sturmlechner
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2025-01-28 16:38 UTC (permalink / raw
  To: gentoo-commits

commit:     d5e19217a57c910fc83ff051c7147cc101df2daa
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 28 16:37:18 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Jan 28 16:38:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5e19217

sys-apps/bolt: drop 0.9.3, 0.9.6, 0.9.7, drop x86 stable

It had its chance.

Closes: https://bugs.gentoo.org/940097
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sys-apps/bolt/Manifest          |  3 --
 sys-apps/bolt/bolt-0.9.3.ebuild | 71 -----------------------------------------
 sys-apps/bolt/bolt-0.9.6.ebuild | 71 -----------------------------------------
 sys-apps/bolt/bolt-0.9.7.ebuild | 71 -----------------------------------------
 sys-apps/bolt/files/bolt.openrc | 14 --------
 5 files changed, 230 deletions(-)

diff --git a/sys-apps/bolt/Manifest b/sys-apps/bolt/Manifest
index 97d16f04311a..d460a8973baa 100644
--- a/sys-apps/bolt/Manifest
+++ b/sys-apps/bolt/Manifest
@@ -1,4 +1 @@
-DIST bolt-0.9.3.tar.gz 253085 BLAKE2B 7547a35aa16a7681737989c72dfd2e13245eb50c7b814de979974750e3c8805156fd22054308d715299baab3ebd4144923aacc04ef301ee039e84b6370cbcba7 SHA512 2160831011090e75cf54408525f53ead6c0e7797de8a4afdd07ef5a035f8e1aa58f34efb9bd52e6e7cd93ac17751e72ff27e99f2b372a5720b2cbadd6abb3c26
-DIST bolt-0.9.6.tar.bz2 192324 BLAKE2B 88e5b94e75833bb5cef090650158ffd26e642188e876cf54407fee7535498faa7ff138b7d47911ea85cacf2bb6ac778b32c23d5cd942c27d1edacc395ec6c9a3 SHA512 7a72b17dbb02917fd55cc480bc4c3ec948577b61aab2ffb366608e82ca65add4e7b402c3b89fd3f98f660165b335ebc9564444bbae3ab55bd6a63c4e0019266a
-DIST bolt-0.9.7.tar.gz 255976 BLAKE2B c7764cb1334f2df96856cb9a92fe6c0ba97ed81340690537fe4567f81bbbf1ee4fbfc659c8b43716f6756d53ab21c71a5c8c9952aea19d1c3f0c14386d327331 SHA512 a9ae0425cdba8932356ec4dcf3f6b3469478c01d47ef3b741c0a841117c81b354f35860be6011ea3b43b28ae10164909a82e2bdbcf92e8541c637cf44277a36c
 DIST bolt-0.9.8.tar.bz2 192836 BLAKE2B 7a06572562af5586d479fee58fb2469b8d804d6eafb41a52c5a575ef2acf616fb684b4e92181430444d67d9889c836bd6d96e1a6d3460cd01300f80d99876c04 SHA512 e9b2ccca66930ee40fd283b09e4bd2bffe1f496e4f898a9d4e069e673a2c9320d456b9ad4b33c4e3e26d25f363985a798c6c860c4c0b103558dbbab78f02ba2b

diff --git a/sys-apps/bolt/bolt-0.9.3.ebuild b/sys-apps/bolt/bolt-0.9.3.ebuild
deleted file mode 100644
index 16e2be81e05b..000000000000
--- a/sys-apps/bolt/bolt-0.9.3.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit linux-info 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.gz"
-
-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
-"
-
-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
-}
-
-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.6.ebuild b/sys-apps/bolt/bolt-0.9.6.ebuild
deleted file mode 100644
index eceef5e6be77..000000000000
--- a/sys-apps/bolt/bolt-0.9.6.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit linux-info 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
-"
-
-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
-}
-
-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.7.ebuild b/sys-apps/bolt/bolt-0.9.7.ebuild
deleted file mode 100644
index 3fc4a5615f8e..000000000000
--- a/sys-apps/bolt/bolt-0.9.7.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit linux-info 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.gz"
-
-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
-"
-
-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
-}
-
-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.openrc b/sys-apps/bolt/files/bolt.openrc
deleted file mode 100644
index b80a7b31b26e..000000000000
--- a/sys-apps/bolt/files/bolt.openrc
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2020 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 xdm
-}


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-apps/bolt/files/, sys-apps/bolt/
@ 2021-03-24 16:07 Matt Turner
  0 siblings, 0 replies; 4+ messages in thread
From: Matt Turner @ 2021-03-24 16:07 UTC (permalink / raw
  To: gentoo-commits

commit:     1d1ebd8a342cedd4a65cbce1da09113254df2ab0
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Sat Feb 13 15:43:41 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Mar 24 16:07:00 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d1ebd8a

sys-apps/bolt: revbump for d-m-i

Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 sys-apps/bolt/bolt-0.9-r3.ebuild   | 57 ++++++++++++++++++++++++++++++++++++++
 sys-apps/bolt/files/bolt.openrc-r1 | 14 ++++++++++
 2 files changed, 71 insertions(+)

diff --git a/sys-apps/bolt/bolt-0.9-r3.ebuild b/sys-apps/bolt/bolt-0.9-r3.ebuild
new file mode 100644
index 00000000000..34cd766665e
--- /dev/null
+++ b/sys-apps/bolt/bolt-0.9-r3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info meson systemd
+
+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.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc systemd"
+
+DEPEND="
+	>=dev-libs/glib-2.56.0:2
+	dev-util/glib-utils
+	virtual/libudev
+	virtual/udev
+	dev-util/umockdev
+	sys-auth/polkit[introspection]
+	systemd? ( sys-apps/systemd )
+	doc? ( app-text/asciidoc )"
+RDEPEND="${DEPEND}"
+
+pkg_pretend() {
+	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
+	check_extra_config
+
+	CONFIG_CHECK="~HOTPLUG_PCI"
+	ERROR_HOTPLUG_PCI="Thunderbolt requires PCI hotplug support."
+	check_extra_config
+}
+
+src_configure() {
+	local emesonargs=(
+		-Dman=$(usex doc true false)
+		--sysconfdir=/etc
+		--localstatedir=/var
+		--sharedstatedir=/var/lib
+	)
+	meson_src_configure
+}
+
+src_install() {
+	meson_src_install
+	newinitd "${FILESDIR}"/${PN}.openrc-r1 boltd
+	keepdir /var/lib/boltd
+}

diff --git a/sys-apps/bolt/files/bolt.openrc-r1 b/sys-apps/bolt/files/bolt.openrc-r1
new file mode 100644
index 00000000000..f47b15ffaec
--- /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
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-apps/bolt/files/, sys-apps/bolt/
@ 2020-08-24 18:14 Matthew Thode
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Thode @ 2020-08-24 18:14 UTC (permalink / raw
  To: gentoo-commits

commit:     046e89752c49f8542e53ef2b0f695b8e19dcf418
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 24 18:13:19 2020 +0000
Commit:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Mon Aug 24 18:14:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=046e8975

sys-apps/bolt: add openrc support

thanks to redflyhacker+gentoo <AT> gmail.com for providing the init script
and the kernel config checks.

Closes: https://bugs.gentoo.org/692510
Package-Manager: Portage-3.0.4, Repoman-2.3.23
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>

 sys-apps/bolt/bolt-0.9-r1.ebuild | 52 ++++++++++++++++++++++++++++++++++++++++
 sys-apps/bolt/files/bolt.openrc  | 14 +++++++++++
 2 files changed, 66 insertions(+)

diff --git a/sys-apps/bolt/bolt-0.9-r1.ebuild b/sys-apps/bolt/bolt-0.9-r1.ebuild
new file mode 100644
index 00000000000..8145c75880e
--- /dev/null
+++ b/sys-apps/bolt/bolt-0.9-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info meson systemd
+
+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.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc systemd"
+
+DEPEND="
+	>=dev-libs/glib-2.56.0:2
+	dev-util/glib-utils
+	virtual/libudev
+	virtual/udev
+	dev-util/umockdev
+	sys-auth/polkit[introspection]
+	systemd? ( sys-apps/systemd )
+	doc? ( app-text/asciidoc )"
+RDEPEND="${DEPEND}"
+
+pkg_pretend() {
+	CONFIG_CHECK="~THUNDERBOLT"
+	ERROR_THUNDERBOLT="This package requires the thunderbolt kernel driver."
+	check_extra_config
+
+	CONFIG_CHECK="~HOTPLUG_PCI"
+	ERROR_HOTPLUG_PCI="Thunderbolt requires PCI hotplug support."
+	check_extra_config
+}
+
+src_configure() {
+	local emesonargs=(
+		-Dman=$(usex doc true false)
+		--sysconfdir=/etc
+		--localstatedir=/var
+		--sharedstatedir=/var/lib
+	)
+	meson_src_configure
+}
+
+src_install() {
+	meson_src_install
+	newinitd "${FILESDIR}"/${PN}.openrc boltd
+	keepdir /var/lib/boltd
+}

diff --git a/sys-apps/bolt/files/bolt.openrc b/sys-apps/bolt/files/bolt.openrc
new file mode 100644
index 00000000000..b80a7b31b26
--- /dev/null
+++ b/sys-apps/bolt/files/bolt.openrc
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 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 xdm
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-28 16:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-06 22:43 [gentoo-commits] repo/gentoo:master commit in: sys-apps/bolt/files/, sys-apps/bolt/ Patrick McLean
  -- strict thread matches above, loose matches on Subject: below --
2025-01-28 16:38 Andreas Sturmlechner
2021-03-24 16:07 Matt Turner
2020-08-24 18:14 Matthew Thode

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox