mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-apps/bolt: add 0.9.10
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST bolt-0.9.10.tar.bz2 193527 BLAKE2B 6daa0771566f488062e5fe66e372a02073d6030234fe0a5c3a5c49f70d6e52cc2e4ebb807932cd82eebfe96115035d1c8ddd2400370d0c5764914b9550906f30 SHA512 5833d69d033248585ce469b3e3af8b4718aef61ec28f5f036e1cb4572370170f2178bb2fe73fa45414d4c3bc698537639594f0f53bcbe216ca716d982605161f
|
||||
DIST bolt-0.9.8.tar.bz2 192836 BLAKE2B 7a06572562af5586d479fee58fb2469b8d804d6eafb41a52c5a575ef2acf616fb684b4e92181430444d67d9889c836bd6d96e1a6d3460cd01300f80d99876c04 SHA512 e9b2ccca66930ee40fd283b09e4bd2bffe1f496e4f898a9d4e069e673a2c9320d456b9ad4b33c4e3e26d25f363985a798c6c860c4c0b103558dbbab78f02ba2b
|
||||
DIST bolt-0.9.9.tar.bz2 193145 BLAKE2B 62038723349f9b234085693f6139b5d8e33efc84003aae346f47fbb9444ea564eab2a304ded598b12fe31e36be906771be1d7987ff60f016e7b305cbe4ebb4d6 SHA512 21214b325dc9a78a5096a9108a93e9dad1670b7400996a551ec4f62260e9253c50209bbc86ce2950348e5691ee9434114be890a6f34e2c9defe8c7308d7693de
|
||||
|
||||
84
sys-apps/bolt/bolt-0.9.10.ebuild
Normal file
84
sys-apps/bolt/bolt-0.9.10.ebuild
Normal file
@@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_1{0..4} python3_1{3..4}t )
|
||||
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}]'
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
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
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user