1 |
commit: 098be6c6eafc263fd824772c82c26d60c88f5ebe |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 4 14:12:40 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 4 14:13:40 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=098be6c6 |
7 |
|
8 |
app-emulation/open-vm-tools: use udev eclass |
9 |
|
10 |
Closes: https://bugs.gentoo.org/849599 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
.../open-vm-tools/open-vm-tools-11.3.5_p18557794.ebuild | 11 ++++++++++- |
14 |
.../open-vm-tools/open-vm-tools-12.0.5_p19716617.ebuild | 11 ++++++++++- |
15 |
2 files changed, 20 insertions(+), 2 deletions(-) |
16 |
|
17 |
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 |
18 |
index 5a59713f2a67..02e927c472da 100644 |
19 |
--- a/app-emulation/open-vm-tools/open-vm-tools-11.3.5_p18557794.ebuild |
20 |
+++ b/app-emulation/open-vm-tools/open-vm-tools-11.3.5_p18557794.ebuild |
21 |
@@ -3,7 +3,7 @@ |
22 |
|
23 |
EAPI=7 |
24 |
|
25 |
-inherit autotools linux-info pam systemd |
26 |
+inherit autotools linux-info pam systemd udev |
27 |
|
28 |
DESCRIPTION="Tools for VMware guests" |
29 |
HOMEPAGE="https://github.com/vmware/open-vm-tools" |
30 |
@@ -104,6 +104,7 @@ src_configure() { |
31 |
$(use_enable vgauth) |
32 |
$(use_with dnet) |
33 |
$(use_with icu) |
34 |
+ --with-udev-rules-dir="$(get_udevdir)/rules.d" |
35 |
) |
36 |
# Avoid a bug in configure.ac |
37 |
use ssl || myeconfargs+=( --without-ssl ) |
38 |
@@ -138,3 +139,11 @@ src_install() { |
39 |
dobin scripts/common/vmware-xdg-detect-de |
40 |
fi |
41 |
} |
42 |
+ |
43 |
+pkg_postinst() { |
44 |
+ udev_reload |
45 |
+} |
46 |
+ |
47 |
+pkg_postrm() { |
48 |
+ udev_reload |
49 |
+} |
50 |
|
51 |
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 |
52 |
index 81f1a30045a4..29730afa69b4 100644 |
53 |
--- a/app-emulation/open-vm-tools/open-vm-tools-12.0.5_p19716617.ebuild |
54 |
+++ b/app-emulation/open-vm-tools/open-vm-tools-12.0.5_p19716617.ebuild |
55 |
@@ -3,7 +3,7 @@ |
56 |
|
57 |
EAPI=8 |
58 |
|
59 |
-inherit autotools linux-info pam systemd |
60 |
+inherit autotools linux-info pam systemd udev |
61 |
|
62 |
DESCRIPTION="Tools for VMware guests" |
63 |
HOMEPAGE="https://github.com/vmware/open-vm-tools" |
64 |
@@ -104,6 +104,7 @@ src_configure() { |
65 |
$(use_enable vgauth) |
66 |
$(use_with dnet) |
67 |
$(use_with icu) |
68 |
+ --with-udev-rules-dir="$(get_udevdir)/rules.d" |
69 |
) |
70 |
# Avoid a bug in configure.ac |
71 |
use ssl || myeconfargs+=( --without-ssl ) |
72 |
@@ -138,3 +139,11 @@ src_install() { |
73 |
dobin scripts/common/vmware-xdg-detect-de |
74 |
fi |
75 |
} |
76 |
+ |
77 |
+pkg_postinst() { |
78 |
+ udev_reload |
79 |
+} |
80 |
+ |
81 |
+pkg_postrm() { |
82 |
+ udev_reload |
83 |
+} |