1 |
commit: c61a49faebd143a946a61929cb81fbf8ab2e8f0f |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 9 15:21:51 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 9 15:22:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c61a49fa |
7 |
|
8 |
app-emulation/open-vm-tools: add 12.1.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/866227 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
app-emulation/open-vm-tools/Manifest | 1 + |
14 |
.../open-vm-tools/open-vm-tools-12.1.0.ebuild | 149 +++++++++++++++++++++ |
15 |
2 files changed, 150 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/open-vm-tools/Manifest b/app-emulation/open-vm-tools/Manifest |
18 |
index d08114d619fc..74894d02da55 100644 |
19 |
--- a/app-emulation/open-vm-tools/Manifest |
20 |
+++ b/app-emulation/open-vm-tools/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST open-vm-tools-11.3.5-18557794.tar.gz 4218935 BLAKE2B 41e3f5877a5074bfb206870d7bdba613a468aa104d6d497dcf16e80b24fcbdd2195fcce370b150ced4665dd19296ff27dc06922d2742a43f5bf70b1b5eea9d48 SHA512 fa31f5615c9c90865ba9122f7fcd0831068d48defee30a5f5c620e744b76ccd5b7cc2de20cea4e37b596f99619ffb7bb47774de04e7c4bea666c7c0b6fa1560e |
23 |
DIST open-vm-tools-12.0.5-19716617.tar.gz 4348389 BLAKE2B 9b5160ce6c7025c948a5ee9e3906e2bbe2cdfddbd27a6e6ca142624bbb11bf08651ad3d38685e84a8d65898eacb9b9e4e9c584c8f1e0c80987996b8624608338 SHA512 d0e842a33e423cb07f86c2c7c9b3d2e7bca85c49c922d14529a72db322931b3baedad386bffc1bb500bb4fe8b572529f3c63fc823732405849edb6344b405714 |
24 |
+DIST open-vm-tools-12.1.0-20219665.tar.gz 4355225 BLAKE2B 4405e3f23963b8d86c079d7dfd0cabecd18199ee88599775d5bb1bdbe1f5fe870983b299978a8ba22e749462dc984c0e8e985629dc3e56cd008cb3ad8836af85 SHA512 00cd71a5fc25d854d0043b2ddfb7f759e3b3138acb9f33f7452641d7520e46bfa39ff784bde6c711de6e8aec24309720532100d7a8588fb1bebaa378b9566a2a |
25 |
|
26 |
diff --git a/app-emulation/open-vm-tools/open-vm-tools-12.1.0.ebuild b/app-emulation/open-vm-tools/open-vm-tools-12.1.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..c6408545e1e6 |
29 |
--- /dev/null |
30 |
+++ b/app-emulation/open-vm-tools/open-vm-tools-12.1.0.ebuild |
31 |
@@ -0,0 +1,149 @@ |
32 |
+# Copyright 2007-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit autotools linux-info pam systemd udev |
38 |
+ |
39 |
+DESCRIPTION="Tools for VMware guests" |
40 |
+HOMEPAGE="https://github.com/vmware/open-vm-tools" |
41 |
+MY_P="${P}-20219665" |
42 |
+SRC_URI="https://github.com/vmware/open-vm-tools/releases/download/stable-${PV}/${MY_P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="LGPL-2.1" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="X +deploypkg +dnet doc +fuse gtkmm +icu multimon pam +resolutionkms +ssl +vgauth" |
48 |
+REQUIRED_USE=" |
49 |
+ multimon? ( X ) |
50 |
+ vgauth? ( ssl ) |
51 |
+" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ dev-libs/glib |
55 |
+ net-libs/libtirpc |
56 |
+ deploypkg? ( dev-libs/libmspack ) |
57 |
+ fuse? ( sys-fs/fuse:0 ) |
58 |
+ pam? ( sys-libs/pam ) |
59 |
+ !pam? ( virtual/libcrypt:= ) |
60 |
+ ssl? ( dev-libs/openssl:0= ) |
61 |
+ vgauth? ( |
62 |
+ dev-libs/libxml2 |
63 |
+ dev-libs/xmlsec |
64 |
+ ) |
65 |
+ X? ( |
66 |
+ x11-libs/libXext |
67 |
+ multimon? ( x11-libs/libXinerama ) |
68 |
+ x11-libs/libXi |
69 |
+ x11-libs/libXrender |
70 |
+ x11-libs/libXrandr |
71 |
+ x11-libs/libXtst |
72 |
+ x11-libs/libSM |
73 |
+ x11-libs/libXcomposite |
74 |
+ x11-libs/gdk-pixbuf-xlib |
75 |
+ x11-libs/gtk+:3 |
76 |
+ gtkmm? ( |
77 |
+ dev-cpp/gtkmm:3.0 |
78 |
+ dev-libs/libsigc++:2 |
79 |
+ ) |
80 |
+ ) |
81 |
+ dnet? ( dev-libs/libdnet ) |
82 |
+ icu? ( dev-libs/icu:= ) |
83 |
+ resolutionkms? ( |
84 |
+ x11-libs/libdrm[video_cards_vmware] |
85 |
+ virtual/libudev |
86 |
+ ) |
87 |
+" |
88 |
+ |
89 |
+DEPEND="${RDEPEND} |
90 |
+ net-libs/rpcsvc-proto |
91 |
+" |
92 |
+ |
93 |
+BDEPEND=" |
94 |
+ dev-util/glib-utils |
95 |
+ virtual/pkgconfig |
96 |
+ doc? ( app-doc/doxygen ) |
97 |
+" |
98 |
+ |
99 |
+S="${WORKDIR}/${MY_P}" |
100 |
+ |
101 |
+PATCHES=( |
102 |
+ "${FILESDIR}/10.1.0-Werror.patch" |
103 |
+ "${FILESDIR}/11.3.5-icu.patch" |
104 |
+) |
105 |
+ |
106 |
+pkg_setup() { |
107 |
+ local CONFIG_CHECK="~VMWARE_BALLOON ~VMWARE_PVSCSI ~VMXNET3" |
108 |
+ use X && CONFIG_CHECK+=" ~DRM_VMWGFX" |
109 |
+ kernel_is -lt 3 9 || CONFIG_CHECK+=" ~VMWARE_VMCI ~VMWARE_VMCI_VSOCKETS" |
110 |
+ kernel_is -lt 3 || CONFIG_CHECK+=" ~FUSE_FS" |
111 |
+ kernel_is -lt 5 5 || CONFIG_CHECK+=" ~X86_IOPL_IOPERM" |
112 |
+ linux-info_pkg_setup |
113 |
+} |
114 |
+ |
115 |
+src_prepare() { |
116 |
+ eapply -p2 "${PATCHES[@]}" |
117 |
+ eapply_user |
118 |
+ eautoreconf |
119 |
+} |
120 |
+ |
121 |
+src_configure() { |
122 |
+ local myeconfargs=( |
123 |
+ --disable-glibc-check |
124 |
+ --without-root-privileges |
125 |
+ $(use_enable multimon) |
126 |
+ $(use_with X x) |
127 |
+ $(use_with X gtk3) |
128 |
+ $(use_with gtkmm gtkmm3) |
129 |
+ $(use_enable doc docs) |
130 |
+ --disable-tests |
131 |
+ $(use_enable resolutionkms) |
132 |
+ --disable-static |
133 |
+ $(use_enable deploypkg) |
134 |
+ $(use_with pam) |
135 |
+ $(use_enable vgauth) |
136 |
+ $(use_with dnet) |
137 |
+ $(use_with icu) |
138 |
+ --with-udev-rules-dir="$(get_udevdir)/rules.d" |
139 |
+ ) |
140 |
+ # Avoid a bug in configure.ac |
141 |
+ use ssl || myeconfargs+=( --without-ssl ) |
142 |
+ |
143 |
+ econf "${myeconfargs[@]}" |
144 |
+} |
145 |
+ |
146 |
+src_install() { |
147 |
+ default |
148 |
+ find "${ED}" -name '*.la' -delete || die |
149 |
+ |
150 |
+ if use pam; then |
151 |
+ rm "${ED}"/etc/pam.d/vmtoolsd || die |
152 |
+ pamd_mimic_system vmtoolsd auth account |
153 |
+ fi |
154 |
+ |
155 |
+ newinitd "${FILESDIR}/open-vm-tools.initd" vmware-tools |
156 |
+ newconfd "${FILESDIR}/open-vm-tools.confd" vmware-tools |
157 |
+ |
158 |
+ if use vgauth; then |
159 |
+ systemd_newunit "${FILESDIR}"/vmtoolsd.vgauth.service vmtoolsd.service |
160 |
+ systemd_dounit "${FILESDIR}"/vgauthd.service |
161 |
+ else |
162 |
+ systemd_dounit "${FILESDIR}"/vmtoolsd.service |
163 |
+ fi |
164 |
+ |
165 |
+ # Make fstype = vmhgfs-fuse work in fstab |
166 |
+ dosym vmhgfs-fuse /usr/bin/mount.vmhgfs-fuse |
167 |
+ |
168 |
+ if use X; then |
169 |
+ fperms 4711 /usr/bin/vmware-user-suid-wrapper |
170 |
+ dobin scripts/common/vmware-xdg-detect-de |
171 |
+ fi |
172 |
+} |
173 |
+ |
174 |
+pkg_postinst() { |
175 |
+ udev_reload |
176 |
+} |
177 |
+ |
178 |
+pkg_postrm() { |
179 |
+ udev_reload |
180 |
+} |