commit:     098be6c6eafc263fd824772c82c26d60c88f5ebe
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  4 14:12:40 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Jun  4 14:13:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=098be6c6

app-emulation/open-vm-tools: use udev eclass

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

 .../open-vm-tools/open-vm-tools-11.3.5_p18557794.ebuild       | 11 ++++++++++-
 .../open-vm-tools/open-vm-tools-12.0.5_p19716617.ebuild       | 11 ++++++++++-
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/app-emulation/open-vm-tools/open-vm-tools-11.3.5_p18557794.ebuild 
b/app-emulation/open-vm-tools/open-vm-tools-11.3.5_p18557794.ebuild
index 5a59713f2a67..02e927c472da 100644
--- a/app-emulation/open-vm-tools/open-vm-tools-11.3.5_p18557794.ebuild
+++ b/app-emulation/open-vm-tools/open-vm-tools-11.3.5_p18557794.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit autotools linux-info pam systemd
+inherit autotools linux-info pam systemd udev
 
 DESCRIPTION="Tools for VMware guests"
 HOMEPAGE="https://github.com/vmware/open-vm-tools";
@@ -104,6 +104,7 @@ src_configure() {
                $(use_enable vgauth)
                $(use_with dnet)
                $(use_with icu)
+               --with-udev-rules-dir="$(get_udevdir)/rules.d"
        )
        # Avoid a bug in configure.ac
        use ssl || myeconfargs+=( --without-ssl )
@@ -138,3 +139,11 @@ src_install() {
                dobin scripts/common/vmware-xdg-detect-de
        fi
 }
+
+pkg_postinst() {
+       udev_reload
+}
+
+pkg_postrm() {
+       udev_reload
+}

diff --git a/app-emulation/open-vm-tools/open-vm-tools-12.0.5_p19716617.ebuild 
b/app-emulation/open-vm-tools/open-vm-tools-12.0.5_p19716617.ebuild
index 81f1a30045a4..29730afa69b4 100644
--- a/app-emulation/open-vm-tools/open-vm-tools-12.0.5_p19716617.ebuild
+++ b/app-emulation/open-vm-tools/open-vm-tools-12.0.5_p19716617.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools linux-info pam systemd
+inherit autotools linux-info pam systemd udev
 
 DESCRIPTION="Tools for VMware guests"
 HOMEPAGE="https://github.com/vmware/open-vm-tools";
@@ -104,6 +104,7 @@ src_configure() {
                $(use_enable vgauth)
                $(use_with dnet)
                $(use_with icu)
+               --with-udev-rules-dir="$(get_udevdir)/rules.d"
        )
        # Avoid a bug in configure.ac
        use ssl || myeconfargs+=( --without-ssl )
@@ -138,3 +139,11 @@ src_install() {
                dobin scripts/common/vmware-xdg-detect-de
        fi
 }
+
+pkg_postinst() {
+       udev_reload
+}
+
+pkg_postrm() {
+       udev_reload
+}

Reply via email to