1 |
commit: fb61a37976b4f008365527f37317d0748277ae09 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 26 20:52:09 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 26 21:01:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb61a379 |
7 |
|
8 |
sys-apps/bolt: Version bump to 0.9.3 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
sys-apps/bolt/Manifest | 1 + |
13 |
sys-apps/bolt/bolt-0.9.3.ebuild | 70 +++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 71 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/bolt/Manifest b/sys-apps/bolt/Manifest |
17 |
index 96e5b97f9ed7..cedcf9f4e235 100644 |
18 |
--- a/sys-apps/bolt/Manifest |
19 |
+++ b/sys-apps/bolt/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST bolt-0.9.1.tar.gz 250978 BLAKE2B a3b1ea51704e2b54abb0135013019b9cad6ed9c0acfdb56797e19c9b5a1abe9f921446cfcc5b664f73bbbff857cf8d420f588517d4c633d1b3776a35c37fc882 SHA512 c925c290de75d3fa2dfb9e86b2f14ea39279b3f2ab6bebeced72a7853c901d44de02157d684534af2b54edd3a2e0b2ba61e889579ab1b192f99e98a2d73685d9 |
22 |
DIST bolt-0.9.2.tar.gz 252532 BLAKE2B 45ea8ae2e77a90099152e708dafe68e63492d0370b734612b516d4a772507174c3df75ddd7d6bdea4be5022a88e1e286a738d3b8df6a662ef3b0b92ac7328730 SHA512 69e7ffa58a6dbc8a1b14fd7e11e2291fa60227896ead1a449839716b581c6ab0e351d3ed62f9b51c5e44a5a33ba5e23dc5af73a1b4eef87f733b3231d5454e90 |
23 |
+DIST bolt-0.9.3.tar.gz 253085 BLAKE2B 7547a35aa16a7681737989c72dfd2e13245eb50c7b814de979974750e3c8805156fd22054308d715299baab3ebd4144923aacc04ef301ee039e84b6370cbcba7 SHA512 2160831011090e75cf54408525f53ead6c0e7797de8a4afdd07ef5a035f8e1aa58f34efb9bd52e6e7cd93ac17751e72ff27e99f2b372a5720b2cbadd6abb3c26 |
24 |
|
25 |
diff --git a/sys-apps/bolt/bolt-0.9.3.ebuild b/sys-apps/bolt/bolt-0.9.3.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..b6e173c5433b |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/bolt/bolt-0.9.3.ebuild |
30 |
@@ -0,0 +1,70 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+inherit linux-info meson udev |
37 |
+ |
38 |
+DESCRIPTION="Userspace system daemon to enable security levels for Thunderbolt 3" |
39 |
+HOMEPAGE="https://gitlab.freedesktop.org/bolt/bolt" |
40 |
+SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="LGPL-2.1 GPL-2+" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~riscv ~x86" |
45 |
+IUSE="test" |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-libs/glib-2.56.0:2 |
50 |
+ virtual/libudev:= |
51 |
+ virtual/udev |
52 |
+ sys-auth/polkit[introspection] |
53 |
+" |
54 |
+DEPEND=" |
55 |
+ ${RDEPEND} |
56 |
+ test? ( dev-util/umockdev ) |
57 |
+" |
58 |
+BDEPEND=" |
59 |
+ app-text/asciidoc |
60 |
+ dev-util/glib-utils |
61 |
+ virtual/pkgconfig |
62 |
+" |
63 |
+ |
64 |
+pkg_setup() { |
65 |
+ if use kernel_linux && kernel_is lt 5 6; then |
66 |
+ CONFIG_CHECK="~THUNDERBOLT" |
67 |
+ ERROR_THUNDERBOLT="This package requires the thunderbolt kernel driver." |
68 |
+ else |
69 |
+ CONFIG_CHECK="~USB4" |
70 |
+ ERROR_USB4="This package requires the USB4 kernel driver for Thunderbolt support." |
71 |
+ fi |
72 |
+ CONFIG_CHECK+=" ~HOTPLUG_PCI" |
73 |
+ ERROR_HOTPLUG_PCI="Thunderbolt requires PCI hotplug support." |
74 |
+ |
75 |
+ linux-info_pkg_setup |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ local emesonargs=( |
80 |
+ -Dman=true |
81 |
+ --sysconfdir="${EPREFIX}"/etc |
82 |
+ --localstatedir="${EPREFIX}"/var |
83 |
+ --sharedstatedir="${EPREFIX}"/var/lib |
84 |
+ ) |
85 |
+ meson_src_configure |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ meson_src_install |
90 |
+ newinitd "${FILESDIR}"/${PN}.openrc-r1 boltd |
91 |
+ keepdir /var/lib/boltd |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ udev_reload |
96 |
+} |
97 |
+ |
98 |
+pkg_postrm() { |
99 |
+ udev_reload |
100 |
+} |