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