summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-block/wait-for-dri-devices-rules/Manifest1
-rw-r--r--sys-block/wait-for-dri-devices-rules/metadata.xml10
-rw-r--r--sys-block/wait-for-dri-devices-rules/wait-for-dri-devices-rules-1.ebuild43
3 files changed, 54 insertions, 0 deletions
diff --git a/sys-block/wait-for-dri-devices-rules/Manifest b/sys-block/wait-for-dri-devices-rules/Manifest
new file mode 100644
index 000000000000..4f046c13b95f
--- /dev/null
+++ b/sys-block/wait-for-dri-devices-rules/Manifest
@@ -0,0 +1 @@
+DIST wait-for-dri-devices-rules-1.tar.bz2 6995 BLAKE2B 0cd257c1223844948040728be2ceef53b71007e6d87d23c7c6f697f125ca89432d7bfe4011605dc2dec9185091f777c1205233cfd425471c7b2bc25f65bf79b3 SHA512 51149b8d604a97eb531452b17c1290779ced8ec300c615e89accfb80522287d53c47177c0aee58714686fc9c1c0544e865611d09634d5b8f7ee3e542d74d3f9d
diff --git a/sys-block/wait-for-dri-devices-rules/metadata.xml b/sys-block/wait-for-dri-devices-rules/metadata.xml
new file mode 100644
index 000000000000..c288b0ec6a5f
--- /dev/null
+++ b/sys-block/wait-for-dri-devices-rules/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pacho@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="gitlab">pachoramos/wait-for-dri-devices-rules</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-block/wait-for-dri-devices-rules/wait-for-dri-devices-rules-1.ebuild b/sys-block/wait-for-dri-devices-rules/wait-for-dri-devices-rules-1.ebuild
new file mode 100644
index 000000000000..cd2f21b65124
--- /dev/null
+++ b/sys-block/wait-for-dri-devices-rules/wait-for-dri-devices-rules-1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2019-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit readme.gentoo-r1 udev
+
+DESCRIPTION="Udev and systemd rules to wait for dri devices"
+HOMEPAGE="https://gitlab.com/pachoramos/wait-for-dri-devices-rules"
+SRC_URI="https://gitlab.com/pachoramos/${PN}/-/archive/${PV}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ sys-apps/systemd
+ virtual/udev
+"
+BDEPEND=""
+
+DOC_CONTENTS="
+ Feel free to modify
+ /etc/systemd/system/display-manager.service.d/10-wait-for-dri-devices.conf
+ according to your needed cards."
+
+src_install() {
+ udev_dorules udev/rules.d/99-systemd-dri-devices.rules
+ insinto /etc/systemd/system/display-manager.service.d/10-wait-for-dri-devices.conf
+ doins systemd/system/display-manager.service.d/10-wait-for-dri-devices.conf
+ einstalldocs
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ udev_reload
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ udev_reload
+}