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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DDDF81382C5 for ; Wed, 24 Mar 2021 16:07:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 258D3E0884; Wed, 24 Mar 2021 16:07:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DE811E0886 for ; Wed, 24 Mar 2021 16:07:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EFFEF33BE39 for ; Wed, 24 Mar 2021 16:07:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 78770636 for ; Wed, 24 Mar 2021 16:07:10 +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: <1616602020.1d1ebd8a342cedd4a65cbce1da09113254df2ab0.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/bolt/files/, sys-apps/bolt/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/bolt/bolt-0.9-r3.ebuild sys-apps/bolt/files/bolt.openrc-r1 X-VCS-Directories: sys-apps/bolt/files/ sys-apps/bolt/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 1d1ebd8a342cedd4a65cbce1da09113254df2ab0 X-VCS-Branch: master Date: Wed, 24 Mar 2021 16:07:10 +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: 6b5c3cc6-ad4c-4a75-9db3-30a96ecc472c X-Archives-Hash: 1f9e35f09817c12fd888c2f21651b647 commit: 1d1ebd8a342cedd4a65cbce1da09113254df2ab0 Author: Aisha Tammy aisha cc> AuthorDate: Sat Feb 13 15:43:41 2021 +0000 Commit: Matt Turner gentoo 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 aisha.cc> Signed-off-by: Matt Turner 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 +}