commit:     c36a53996de7797e831150967c66536fdbea67d1
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 13 19:38:10 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Jun 13 19:41:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c36a5399

sys-apps/fwupd: wire up udev eclass

Closes: https://bugs.gentoo.org/842069
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-apps/fwupd/fwupd-1.8.1.ebuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/sys-apps/fwupd/fwupd-1.8.1.ebuild 
b/sys-apps/fwupd/fwupd-1.8.1.ebuild
index cc9c6194035c..3852c4032a8d 100644
--- a/sys-apps/fwupd/fwupd-1.8.1.ebuild
+++ b/sys-apps/fwupd/fwupd-1.8.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{8..10} )
 
-inherit bash-completion-r1 linux-info meson python-single-r1 vala xdg
+inherit bash-completion-r1 linux-info meson python-single-r1 vala udev xdg
 
 DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and 
reliable"
 HOMEPAGE="https://fwupd.org";
@@ -142,6 +142,7 @@ src_configure() {
                -Ddocs="$(usex gtk-doc gtkdoc none)"
                -Defi_binary="false"
                -Dsupported_build="enabled"
+               -Dudevdir="${EPREFIX}$(get_udevdir)"
                $(meson_feature archive libarchive)
                $(meson_use bash-completion bash_completion)
                $(meson_feature bluetooth bluez)
@@ -177,3 +178,11 @@ src_install() {
                fi
        fi
 }
+
+pkg_postinst() {
+       use minimal || udev_reload
+}
+
+pkg_postrm() {
+       use minimal || udev_reload
+}

Reply via email to