From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 01949158094 for ; Fri, 22 Jul 2022 18:31:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E3E45E0C2A; Fri, 22 Jul 2022 18:31:02 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E38B2E0C2A for ; Fri, 22 Jul 2022 18:31:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 55DE7340C93 for ; Fri, 22 Jul 2022 18:30:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 894C37F for ; Fri, 22 Jul 2022 18:30:51 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1658514625.a974e34887092590c23c27cc4127bc5c29608edf.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/bolt/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/bolt/Manifest sys-apps/bolt/bolt-0.9.2.ebuild X-VCS-Directories: sys-apps/bolt/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: a974e34887092590c23c27cc4127bc5c29608edf X-VCS-Branch: master Date: Fri, 22 Jul 2022 18:30:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0b4e02b9-90fe-4213-94a7-4325192f861f X-Archives-Hash: 6c8f0219955d1d8e2cf2f758111226db commit: a974e34887092590c23c27cc4127bc5c29608edf Author: Matt Turner gentoo org> AuthorDate: Fri Jul 22 17:42:19 2022 +0000 Commit: Matt Turner gentoo org> CommitDate: Fri Jul 22 18:30:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a974e348 sys-apps/bolt: Version bump to 0.9.2 * Bump to EAPI=8 * Inherit udev.eclass and call udev_reload (bug #851807) * Add subslot operator on virtual/libudev dependency * Drop unnecessary IUSE=systemd and dependence on systemd * Drop unused systemd.eclass inherit * Move dependence on dev-util/umockdev from RDEPEND to DEPEND, and only under test? ( ... ) * Move dev-util/glib-utils from DEPEND/RDEPEND to BDEPEND * Add virtual/pkgconfig to BDEPEND * Remove IUSE=doc and unconditionally build man pages * Move dependence on app-text/asciidoc from DEPEND/RDEPEND to BDEPEND * Add ${EPREFIX} to configured paths * Add GPL-2+ to LICENSE for 90-bolt.rules * Move CONFIG_ checks from pkg_pretend to pkg_setup, which has the additional benefit of executing them only once Closes: https://bugs.gentoo.org/836896 Closes: https://bugs.gentoo.org/851807 Signed-off-by: Matt Turner gentoo.org> sys-apps/bolt/Manifest | 1 + sys-apps/bolt/bolt-0.9.2.ebuild | 70 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/sys-apps/bolt/Manifest b/sys-apps/bolt/Manifest index 397f4cbf599e..96e5b97f9ed7 100644 --- a/sys-apps/bolt/Manifest +++ b/sys-apps/bolt/Manifest @@ -1 +1,2 @@ DIST bolt-0.9.1.tar.gz 250978 BLAKE2B a3b1ea51704e2b54abb0135013019b9cad6ed9c0acfdb56797e19c9b5a1abe9f921446cfcc5b664f73bbbff857cf8d420f588517d4c633d1b3776a35c37fc882 SHA512 c925c290de75d3fa2dfb9e86b2f14ea39279b3f2ab6bebeced72a7853c901d44de02157d684534af2b54edd3a2e0b2ba61e889579ab1b192f99e98a2d73685d9 +DIST bolt-0.9.2.tar.gz 252532 BLAKE2B 45ea8ae2e77a90099152e708dafe68e63492d0370b734612b516d4a772507174c3df75ddd7d6bdea4be5022a88e1e286a738d3b8df6a662ef3b0b92ac7328730 SHA512 69e7ffa58a6dbc8a1b14fd7e11e2291fa60227896ead1a449839716b581c6ab0e351d3ed62f9b51c5e44a5a33ba5e23dc5af73a1b4eef87f733b3231d5454e90 diff --git a/sys-apps/bolt/bolt-0.9.2.ebuild b/sys-apps/bolt/bolt-0.9.2.ebuild new file mode 100644 index 000000000000..b6e173c5433b --- /dev/null +++ b/sys-apps/bolt/bolt-0.9.2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2022 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 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.56.0:2 + virtual/libudev:= + virtual/udev + sys-auth/polkit[introspection] +" +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 +}