summaryrefslogtreecommitdiff
blob: cd2f21b65124ccb3c832818a2992aa64510913df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
}