[gentoo-commits] repo/gentoo:master commit in: sys-apps/bolt/files/, sys-apps/bolt/

2021-03-24 Thread Matt Turner
commit: 1d1ebd8a342cedd4a65cbce1da09113254df2ab0
Author: Aisha Tammy  aisha  cc>
AuthorDate: Sat Feb 13 15:43:41 2021 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Mar 24 16:07:00 2021 +
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 000..34cd75e
--- /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 000..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
+}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/bolt/files/, sys-apps/bolt/

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

sys-apps/bolt: add openrc support

thanks to redflyhacker+gentoo  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  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 000..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 000..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
+}