1 |
commit: a2d54401ad16fe676b80bb5618a569ebe02636d5 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 1 13:45:43 2017 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 1 13:46:23 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2d54401 |
7 |
|
8 |
app-emulation/vmware-*: Remove. Please use the vmware overlay. |
9 |
|
10 |
.../vmware-modules/files/271-3.10-00-userns.patch | 41 -- |
11 |
.../files/271-3.10-01-create_proc_entry.patch | 28 - |
12 |
.../vmware-modules/files/271-3.10-02-getname.patch | 24 - |
13 |
.../files/271-3.10-03-deprecated.patch | 89 --- |
14 |
.../files/271-3.10-04-unused-typedef.patch | 115 --- |
15 |
.../vmware-modules/files/271-3.10-05-dentry.patch | 34 - |
16 |
.../vmware-modules/files/271-3.10-06-inode.patch | 36 - |
17 |
.../vmware-modules/files/271-3.10-07-hub.patch | 26 - |
18 |
.../vmware-modules/files/271-3.10.0.patch | 809 --------------------- |
19 |
.../vmware-modules/files/271-3.11-00-readdir.patch | 41 -- |
20 |
.../vmware-modules/files/271-3.11-01-filldir.patch | 53 -- |
21 |
.../vmware-modules/files/271-3.13-00-vmnet.patch | 39 - |
22 |
.../files/271-3.15-00-readlink.patch | 15 - |
23 |
.../vmware-modules/files/271-3.15-01-vsock.patch | 46 -- |
24 |
.../vmware-modules/files/271-3.17-00-netdev.patch | 16 - |
25 |
.../files/271-3.19-00-vmnet-warning.patch | 13 - |
26 |
.../files/271-3.19-01-vmblock-path.patch | 67 -- |
27 |
.../vmware-modules/files/271-3.19-02-vmci.patch | 29 - |
28 |
.../vmware-modules/files/271-3.19-03-vmnet.patch | 29 - |
29 |
.../vmware-modules/files/271-3.19-04-vsock.patch | 12 - |
30 |
.../vmware-modules/files/271-3.19-05-vsock.patch | 15 - |
31 |
.../files/271-3.19-06-vmci_qpair.patch | 24 - |
32 |
app-emulation/vmware-modules/files/271-apic.patch | 12 - |
33 |
.../vmware-modules/files/271-filldir.patch | 91 --- |
34 |
.../vmware-modules/files/271-hardened.patch | 170 ----- |
35 |
.../files/271-makefile-include.patch | 65 -- |
36 |
.../files/271-makefile-kernel-dir.patch | 85 --- |
37 |
.../vmware-modules/files/271-netdevice.patch | 24 - |
38 |
.../vmware-modules/files/271-putname.patch | 13 - |
39 |
.../vmware-modules/files/271-vfsfollowlink.patch | 30 - |
40 |
app-emulation/vmware-modules/files/271-vmmon.patch | 44 -- |
41 |
.../vmware-modules/files/279-3.10-00-userns.patch | 41 -- |
42 |
.../vmware-modules/files/279-3.10-01-getname.patch | 24 - |
43 |
.../files/279-3.10-03-deprecated.patch | 89 --- |
44 |
.../vmware-modules/files/279-3.10-04-dentry.patch | 34 - |
45 |
.../vmware-modules/files/279-3.10-05-inode.patch | 36 - |
46 |
.../files/279-3.15-00-readlink.patch | 15 - |
47 |
.../vmware-modules/files/279-3.15-01-vsock.patch | 46 -- |
48 |
.../vmware-modules/files/279-3.17-00-netdev.patch | 16 - |
49 |
.../files/279-3.18-00-version-redefined.patch | 24 - |
50 |
.../files/279-3.19-00-compat-namei.patch | 23 - |
51 |
.../vmware-modules/files/279-3.19-01-dentry.patch | 13 - |
52 |
.../files/279-3.19-02-vmblock-path.patch | 67 -- |
53 |
.../vmware-modules/files/279-3.19-03-iovec.patch | 19 - |
54 |
.../vmware-modules/files/279-3.19-04-iovec.patch | 39 - |
55 |
.../files/279-3.19-05-vmci_qpair.patch | 24 - |
56 |
.../vmware-modules/files/279-3.19-06-vsock.patch | 15 - |
57 |
.../vmware-modules/files/279-3.19-07-vsock.patch | 12 - |
58 |
.../vmware-modules/files/279-4.2-00-cookie.patch | 79 -- |
59 |
.../vmware-modules/files/279-5.10-00-userns.patch | 16 - |
60 |
app-emulation/vmware-modules/files/279-apic.patch | 12 - |
61 |
.../vmware-modules/files/279-filldir.patch | 91 --- |
62 |
.../vmware-modules/files/279-hardened.patch | 113 --- |
63 |
.../files/279-makefile-include.patch | 65 -- |
64 |
.../files/279-makefile-kernel-dir.patch | 85 --- |
65 |
.../vmware-modules/files/279-netdevice.patch | 24 - |
66 |
.../vmware-modules/files/279-putname.patch | 13 - |
67 |
.../vmware-modules/files/279-vfsfollowlink.patch | 30 - |
68 |
.../vmware-modules/files/279-vmblock.patch | 23 - |
69 |
.../vmware-modules/files/304-3.10-00-dentry.patch | 43 -- |
70 |
.../vmware-modules/files/304-3.10-01-inode.patch | 94 --- |
71 |
.../vmware-modules/files/304-3.10-02-control.patch | 57 -- |
72 |
.../vmware-modules/files/304-3.10-03-inline.patch | 14 - |
73 |
.../vmware-modules/files/304-3.11-00-readdir.patch | 41 -- |
74 |
.../vmware-modules/files/304-3.11-01-filldir.patch | 53 -- |
75 |
.../vmware-modules/files/304-3.15-00-vsock.patch | 46 -- |
76 |
.../files/304-3.18-00-version-redefined.patch | 25 - |
77 |
.../files/304-3.19-00-compat-namei.patch | 24 - |
78 |
.../vmware-modules/files/304-3.19-01-dentry.patch | 14 - |
79 |
.../files/304-3.19-02-vmblock-path.patch | 67 -- |
80 |
.../vmware-modules/files/304-3.19-03-iovec.patch | 20 - |
81 |
.../vmware-modules/files/304-3.19-04-iovec.patch | 59 -- |
82 |
.../files/304-3.19-05-vmci_qpair.patch | 25 - |
83 |
.../vmware-modules/files/304-3.19-06-vsock.patch | 16 - |
84 |
.../vmware-modules/files/304-3.19-07-vsock.patch | 13 - |
85 |
.../vmware-modules/files/304-4.2-00-inode_op.patch | 45 -- |
86 |
.../vmware-modules/files/304-4.2-01-inode.patch | 46 -- |
87 |
.../files/304-4.2-01-vmci_vmalloc.patch | 13 - |
88 |
.../vmware-modules/files/304-4.2-02-vmnetInt.patch | 23 - |
89 |
.../vmware-modules/files/304-4.2-02-vsock.patch | 77 -- |
90 |
.../vmware-modules/files/304-4.2-03-af_vsock.patch | 13 - |
91 |
.../vmware-modules/files/304-4.2-03-vsock.patch | 14 - |
92 |
.../vmware-modules/files/304-4.2-04-driver.patch | 50 -- |
93 |
.../files/304-4.3-00-misc_deregister.patch | 34 - |
94 |
.../vmware-modules/files/304-4.5-00-get_link.patch | 67 -- |
95 |
app-emulation/vmware-modules/files/304-apic.patch | 12 - |
96 |
.../vmware-modules/files/304-hardened.patch | 113 --- |
97 |
.../files/304-makefile-include.patch | 65 -- |
98 |
.../files/304-makefile-kernel-dir.patch | 85 --- |
99 |
.../vmware-modules/files/304-netdevice.patch | 24 - |
100 |
.../vmware-modules/files/308-3.10-00-dentry.patch | 43 -- |
101 |
.../vmware-modules/files/308-3.10-01-inode.patch | 94 --- |
102 |
.../vmware-modules/files/308-3.10-02-control.patch | 57 -- |
103 |
.../vmware-modules/files/308-3.10-03-inline.patch | 14 - |
104 |
.../vmware-modules/files/308-3.11-00-readdir.patch | 41 -- |
105 |
.../vmware-modules/files/308-3.11-01-filldir.patch | 53 -- |
106 |
.../vmware-modules/files/308-3.15-00-vsock.patch | 46 -- |
107 |
.../files/308-3.18-00-version-redefined.patch | 25 - |
108 |
.../files/308-3.19-00-compat-namei.patch | 24 - |
109 |
.../files/308-3.19-02-vmblock-path.patch | 67 -- |
110 |
.../vmware-modules/files/308-3.19-04-iovec.patch | 59 -- |
111 |
.../files/308-3.19-05-vmci_qpair.patch | 25 - |
112 |
.../vmware-modules/files/308-3.19-06-vsock.patch | 16 - |
113 |
.../vmware-modules/files/308-3.19-07-vsock.patch | 13 - |
114 |
.../vmware-modules/files/308-4.01-00-vsock.patch | 61 -- |
115 |
.../files/308-4.02-00-nd_set_link.patch | 56 -- |
116 |
.../files/308-4.02-01-sk_alloc.patch | 22 - |
117 |
.../files/308-4.03-00-vmci-misc_deregister.patch | 27 - |
118 |
.../files/308-4.03-00-vmmon-misc_deregister.patch | 14 - |
119 |
.../files/308-4.05-00-vmblock-follow_link.patch | 56 -- |
120 |
app-emulation/vmware-modules/files/308-apic.patch | 12 - |
121 |
.../vmware-modules/files/308-hardened.patch | 89 --- |
122 |
.../files/308-makefile-include.patch | 65 -- |
123 |
.../files/308-makefile-kernel-dir.patch | 85 --- |
124 |
.../vmware-modules/files/308-netdevice.patch | 24 - |
125 |
app-emulation/vmware-modules/files/hardened.patch | 170 ----- |
126 |
app-emulation/vmware-modules/metadata.xml | 16 - |
127 |
.../vmware-modules/vmware-modules-271.3-r1.ebuild | 107 --- |
128 |
.../vmware-modules/vmware-modules-279.6.ebuild | 116 --- |
129 |
.../vmware-modules/vmware-modules-304.2.ebuild | 116 --- |
130 |
.../vmware-modules/vmware-modules-304.3-r1.ebuild | 118 --- |
131 |
.../vmware-modules/vmware-modules-308.1.0.ebuild | 149 ---- |
132 |
app-emulation/vmware-player/Manifest | 3 - |
133 |
app-emulation/vmware-player/files/vmware-11.0.rc | 43 -- |
134 |
app-emulation/vmware-player/files/vmware-11.2.rc | 43 -- |
135 |
app-emulation/vmware-player/files/vmware-12.1.rc | 43 -- |
136 |
.../vmware-player/files/vmware-network.service | 17 - |
137 |
.../files/vmware-usbarbitrator.service | 11 - |
138 |
app-emulation/vmware-player/metadata.xml | 16 - |
139 |
.../vmware-player-12.1.0.3272444-r2.ebuild | 417 ----------- |
140 |
.../vmware-player-7.1.2.2780323-r1.ebuild | 258 ------- |
141 |
app-emulation/vmware-tools/Manifest | 36 - |
142 |
app-emulation/vmware-tools/metadata.xml | 8 - |
143 |
.../vmware-tools/vmware-tools-9.2.3.1031769.ebuild | 55 -- |
144 |
.../vmware-tools/vmware-tools-9.6.5.2700073.ebuild | 54 -- |
145 |
.../vmware-tools/vmware-tools-9.9.3.2780323.ebuild | 57 -- |
146 |
.../vmware-tools/vmware-tools-9.9.4.3206955.ebuild | 57 -- |
147 |
app-emulation/vmware-workstation/Manifest | 10 - |
148 |
.../vmware-workstation/files/configure-hostd.sh | 20 - |
149 |
.../vmware-workstation/files/vmware-10.0.rc | 36 - |
150 |
.../vmware-workstation/files/vmware-11.1.rc | 43 -- |
151 |
.../vmware-workstation/files/vmware-12.1.rc | 43 -- |
152 |
.../vmware-workstation/files/vmware-9.0.rc | 36 - |
153 |
.../vmware-workstation/files/vmware-server-10.0.rc | 54 -- |
154 |
.../vmware-workstation/files/vmware-server-11.1.rc | 54 -- |
155 |
.../vmware-workstation/files/vmware-server-12.1.rc | 54 -- |
156 |
.../vmware-workstation/files/vmware-server-9.0.rc | 54 -- |
157 |
app-emulation/vmware-workstation/metadata.xml | 25 - |
158 |
.../vmware-workstation-10.0.6.2700073-r1.ebuild | 498 ------------- |
159 |
.../vmware-workstation-11.1.2.2780323-r4.ebuild | 548 -------------- |
160 |
.../vmware-workstation-11.1.3.3206955-r3.ebuild | 548 -------------- |
161 |
.../vmware-workstation-11.1.3.3206955-r4.ebuild | 548 -------------- |
162 |
.../vmware-workstation-12.1.0.3272444-r2.ebuild | 627 ---------------- |
163 |
.../vmware-workstation-9.0.3.1410761.ebuild | 490 ------------- |
164 |
154 files changed, 11201 deletions(-) |
165 |
|
166 |
diff --git a/app-emulation/vmware-modules/files/271-3.10-00-userns.patch b/app-emulation/vmware-modules/files/271-3.10-00-userns.patch |
167 |
deleted file mode 100644 |
168 |
index b1b78b76300..00000000000 |
169 |
--- a/app-emulation/vmware-modules/files/271-3.10-00-userns.patch |
170 |
+++ /dev/null |
171 |
@@ -1,41 +0,0 @@ |
172 |
-correctly initializes UID/GID values |
173 |
-gets UID correctly in light of user namespace API |
174 |
-origionally from https://462666.bugs.gentoo.org/attachment.cgi?id=342888 |
175 |
- |
176 |
---- a/vmblock-only/linux/inode.c 2013-03-20 17:37:48.000000000 +0100 |
177 |
-+++ b/vmblock-only/linux/inode.c 2013-03-20 17:41:22.000000000 +0100 |
178 |
-@@ -135,7 +135,8 @@ |
179 |
- inode->i_size = INODE_TO_IINFO(inode)->nameLen; |
180 |
- inode->i_version = 1; |
181 |
- inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
182 |
-- inode->i_uid = inode->i_gid = 0; |
183 |
-+ inode->i_uid = GLOBAL_ROOT_UID; |
184 |
-+ inode->i_gid = GLOBAL_ROOT_GID; |
185 |
- inode->i_op = &LinkInodeOps; |
186 |
- |
187 |
- d_add(dentry, inode); |
188 |
- |
189 |
---- a/vmci-only/linux/driver.c 2013-03-20 17:57:35.000000000 +0100 |
190 |
-+++ b/vmci-only/linux/driver.c 2013-03-20 17:57:43.000000000 +0100 |
191 |
-@@ -740,7 +740,7 @@ |
192 |
- goto init_release; |
193 |
- } |
194 |
- |
195 |
-- user = current_uid(); |
196 |
-+ user = from_kuid(current_user_ns(), current_uid()); |
197 |
- retval = VMCIContext_InitContext(initBlock.cid, initBlock.flags, |
198 |
- 0 /* Unused */, vmciLinux->userVersion, |
199 |
- &user, &vmciLinux->context); |
200 |
- |
201 |
---- a/vsock-only/linux/af_vsock.c 2013-03-20 18:01:48.000000000 +0100 |
202 |
-+++ b/vsock-only/linux/af_vsock.c 2013-03-20 18:01:58.000000000 +0100 |
203 |
-@@ -2866,7 +2866,7 @@ |
204 |
- vsk->connectTimeout = psk->connectTimeout; |
205 |
- } else { |
206 |
- vsk->trusted = capable(CAP_NET_ADMIN); |
207 |
-- vsk->owner = current_uid(); |
208 |
-+ vsk->owner = from_kuid(current_user_ns(), current_uid()); |
209 |
- vsk->queuePairSize = VSOCK_DEFAULT_QP_SIZE; |
210 |
- vsk->queuePairMinSize = VSOCK_DEFAULT_QP_SIZE_MIN; |
211 |
- vsk->queuePairMaxSize = VSOCK_DEFAULT_QP_SIZE_MAX; |
212 |
- |
213 |
|
214 |
diff --git a/app-emulation/vmware-modules/files/271-3.10-01-create_proc_entry.patch b/app-emulation/vmware-modules/files/271-3.10-01-create_proc_entry.patch |
215 |
deleted file mode 100644 |
216 |
index 889ae71be47..00000000000 |
217 |
--- a/app-emulation/vmware-modules/files/271-3.10-01-create_proc_entry.patch |
218 |
+++ /dev/null |
219 |
@@ -1,28 +0,0 @@ |
220 |
-uses the new proc_create function to create /proc entries |
221 |
-instead of create_proc_entry which was deprecated: |
222 |
-https://lkml.org/lkml/2013/4/11/215 |
223 |
- |
224 |
---- a/vmblock-only/linux/control.c 2013-05-21 19:21:19.165750556 +0200 |
225 |
-+++ b/vmblock-only/linux/control.c 2013-05-21 19:22:18.363747723 +0200 |
226 |
-@@ -208,9 +208,10 @@ |
227 |
- VMBlockSetProcEntryOwner(controlProcMountpoint); |
228 |
- |
229 |
- /* Create /proc/fs/vmblock/dev */ |
230 |
-- controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME, |
231 |
-- VMBLOCK_CONTROL_MODE, |
232 |
-- controlProcDirEntry); |
233 |
-+ controlProcEntry = proc_create(VMBLOCK_CONTROL_DEVNAME, |
234 |
-+ VMBLOCK_CONTROL_MODE, |
235 |
-+ controlProcDirEntry, |
236 |
-+ &ControlFileOps); |
237 |
- if (!controlProcEntry) { |
238 |
- Warning("SetupProcDevice: could not create " VMBLOCK_DEVICE "\n"); |
239 |
- remove_proc_entry(VMBLOCK_CONTROL_MOUNTPOINT, controlProcDirEntry); |
240 |
-@@ -218,7 +219,6 @@ |
241 |
- return -EINVAL; |
242 |
- } |
243 |
- |
244 |
-- controlProcEntry->proc_fops = &ControlFileOps; |
245 |
- return 0; |
246 |
- } |
247 |
- |
248 |
|
249 |
diff --git a/app-emulation/vmware-modules/files/271-3.10-02-getname.patch b/app-emulation/vmware-modules/files/271-3.10-02-getname.patch |
250 |
deleted file mode 100644 |
251 |
index 05ed8dbcc37..00000000000 |
252 |
--- a/app-emulation/vmware-modules/files/271-3.10-02-getname.patch |
253 |
+++ /dev/null |
254 |
@@ -1,24 +0,0 @@ |
255 |
-uses __getname/__putname instead of getname. getname was deprecated |
256 |
-the new code calls __getname (which really is a specific type of |
257 |
-memory allocator, then copies the string safely from user space |
258 |
-into the allocated buffer |
259 |
- |
260 |
---- vmblock-only/linux/control.c 2014-03-15 15:28:40.871076076 +0100 |
261 |
-+++ vmblock-only/linux/control.c.new 2014-03-15 15:29:15.079074439 +0100 |
262 |
-@@ -279,11 +279,17 @@ |
263 |
- int i; |
264 |
- int retval; |
265 |
- |
266 |
-- name = getname(buf); |
267 |
-+ name = __getname(); |
268 |
- if (IS_ERR(name)) { |
269 |
- return PTR_ERR(name); |
270 |
- } |
271 |
- |
272 |
-+ i = strncpy_from_user(name, buf, PATH_MAX); |
273 |
-+ if (i < 0 || i == PATH_MAX) { |
274 |
-+ __putname(name); |
275 |
-+ return -EINVAL; |
276 |
-+ } |
277 |
-+ |
278 |
- for (i = strlen(name) - 1; i >= 0 && name[i] == '/'; i--) { |
279 |
|
280 |
diff --git a/app-emulation/vmware-modules/files/271-3.10-03-deprecated.patch b/app-emulation/vmware-modules/files/271-3.10-03-deprecated.patch |
281 |
deleted file mode 100644 |
282 |
index 981aabdd126..00000000000 |
283 |
--- a/app-emulation/vmware-modules/files/271-3.10-03-deprecated.patch |
284 |
+++ /dev/null |
285 |
@@ -1,89 +0,0 @@ |
286 |
-undefines DEPRECATED which is unfortunately also defined (as a string) |
287 |
-in <linux/printk.h>. Realistically, this macro isn't even used, so this |
288 |
-doesn't matter much. But it hushes some very loud warnings. |
289 |
- |
290 |
-diff -rupN vmblock-only/shared/vm_assert.h vmblock-only.new/shared/vm_assert.h |
291 |
---- vmblock-only/shared/vm_assert.h 2014-10-09 21:50:54.221159088 -0400 |
292 |
-+++ vmblock-only.new/shared/vm_assert.h 2014-10-09 21:53:04.612166156 -0400 |
293 |
-@@ -237,11 +237,13 @@ EXTERN void WarningThrottled(uint32 *cou |
294 |
- #define LOG_ONCE(_s) DO_ONCE(Log _s) |
295 |
- |
296 |
- #ifdef VMX86_DEVEL |
297 |
-+ #undef DEPRECATED |
298 |
- #define DEPRECATED(_fix) DO_ONCE( \ |
299 |
- Warning("%s:%d: %s is DEPRECATED; %s\n", \ |
300 |
- __FILE__, __LINE__, __FUNCTION__, \ |
301 |
- _fix)) |
302 |
- #else |
303 |
-+ #undef DEPRECATED |
304 |
- #define DEPRECATED(_fix) do {} while (0) |
305 |
- #endif |
306 |
- |
307 |
-diff -rupN vmci-only/shared/vm_assert.h vmci-only.new/shared/vm_assert.h |
308 |
---- vmci-only/shared/vm_assert.h 2014-10-09 21:50:54.222159088 -0400 |
309 |
-+++ vmci-only.new/shared/vm_assert.h 2014-10-09 21:52:52.348165492 -0400 |
310 |
-@@ -237,11 +237,13 @@ EXTERN void WarningThrottled(uint32 *cou |
311 |
- #define LOG_ONCE(_s) DO_ONCE(Log _s) |
312 |
- |
313 |
- #ifdef VMX86_DEVEL |
314 |
-+ #undef DEPRECATED |
315 |
- #define DEPRECATED(_fix) DO_ONCE( \ |
316 |
- Warning("%s:%d: %s is DEPRECATED; %s\n", \ |
317 |
- __FILE__, __LINE__, __FUNCTION__, \ |
318 |
- _fix)) |
319 |
- #else |
320 |
-+ #undef DEPRECATED |
321 |
- #define DEPRECATED(_fix) do {} while (0) |
322 |
- #endif |
323 |
- |
324 |
-diff -rupN vmmon-only/include/vm_assert.h vmmon-only.new/include/vm_assert.h |
325 |
---- vmmon-only/include/vm_assert.h 2014-10-09 21:50:54.222159088 -0400 |
326 |
-+++ vmmon-only.new/include/vm_assert.h 2014-10-09 21:52:36.877164653 -0400 |
327 |
-@@ -237,11 +237,13 @@ EXTERN void WarningThrottled(uint32 *cou |
328 |
- #define LOG_ONCE(_s) DO_ONCE(Log _s) |
329 |
- |
330 |
- #ifdef VMX86_DEVEL |
331 |
-+ #undef DEPRECATED |
332 |
- #define DEPRECATED(_fix) DO_ONCE( \ |
333 |
- Warning("%s:%d: %s is DEPRECATED; %s\n", \ |
334 |
- __FILE__, __LINE__, __FUNCTION__, \ |
335 |
- _fix)) |
336 |
- #else |
337 |
-+ #undef DEPRECATED |
338 |
- #define DEPRECATED(_fix) do {} while (0) |
339 |
- #endif |
340 |
- |
341 |
-diff -rupN vmnet-only/vm_assert.h vmnet-only.new/vm_assert.h |
342 |
---- vmnet-only/vm_assert.h 2014-10-09 21:50:54.222159088 -0400 |
343 |
-+++ vmnet-only.new/vm_assert.h 2014-10-09 21:52:57.736165784 -0400 |
344 |
-@@ -237,11 +237,13 @@ EXTERN void WarningThrottled(uint32 *cou |
345 |
- #define LOG_ONCE(_s) DO_ONCE(Log _s) |
346 |
- |
347 |
- #ifdef VMX86_DEVEL |
348 |
-+ #undef DEPRECATED |
349 |
- #define DEPRECATED(_fix) DO_ONCE( \ |
350 |
- Warning("%s:%d: %s is DEPRECATED; %s\n", \ |
351 |
- __FILE__, __LINE__, __FUNCTION__, \ |
352 |
- _fix)) |
353 |
- #else |
354 |
-+ #undef DEPRECATED |
355 |
- #define DEPRECATED(_fix) do {} while (0) |
356 |
- #endif |
357 |
- |
358 |
-diff -rupN vsock-only/shared/vm_assert.h vsock-only.new/shared/vm_assert.h |
359 |
---- vsock-only/shared/vm_assert.h 2014-10-09 21:50:54.222159088 -0400 |
360 |
-+++ vsock-only.new/shared/vm_assert.h 2014-10-09 21:52:45.352165112 -0400 |
361 |
-@@ -237,11 +237,13 @@ EXTERN void WarningThrottled(uint32 *cou |
362 |
- #define LOG_ONCE(_s) DO_ONCE(Log _s) |
363 |
- |
364 |
- #ifdef VMX86_DEVEL |
365 |
-+ #undef DEPRECATED |
366 |
- #define DEPRECATED(_fix) DO_ONCE( \ |
367 |
- Warning("%s:%d: %s is DEPRECATED; %s\n", \ |
368 |
- __FILE__, __LINE__, __FUNCTION__, \ |
369 |
- _fix)) |
370 |
- #else |
371 |
-+ #undef DEPRECATED |
372 |
- #define DEPRECATED(_fix) do {} while (0) |
373 |
- #endif |
374 |
- |
375 |
|
376 |
diff --git a/app-emulation/vmware-modules/files/271-3.10-04-unused-typedef.patch b/app-emulation/vmware-modules/files/271-3.10-04-unused-typedef.patch |
377 |
deleted file mode 100644 |
378 |
index d5129ec689a..00000000000 |
379 |
--- a/app-emulation/vmware-modules/files/271-3.10-04-unused-typedef.patch |
380 |
+++ /dev/null |
381 |
@@ -1,115 +0,0 @@ |
382 |
-hushes warnings about unused typedefs which are part of the "static assert" |
383 |
-technique that the code uses. We simply add an "__attribute__((unused)) to each of them |
384 |
- |
385 |
---- vmblock-only/shared/vm_assert.h 2014-10-07 22:43:39.519402467 -0400 |
386 |
-+++ vmblock-only/shared/vm_assert.h 2014-10-07 22:48:01.346409957 -0400 |
387 |
-@@ -317,7 +317,7 @@ EXTERN void WarningThrottled(uint32 *cou |
388 |
- #define ASSERT_ON_COMPILE(e) \ |
389 |
- do { \ |
390 |
- enum { AssertOnCompileMisused = ((e) ? 1 : -1) }; \ |
391 |
-- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
392 |
-+ __attribute__((unused)) typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
393 |
- } while (0) |
394 |
- |
395 |
- |
396 |
---- vmci-only/shared/vm_assert.h 2014-10-07 22:43:39.519402467 -0400 |
397 |
-+++ vmci-only/shared/vm_assert.h 2014-10-07 22:47:51.829409685 -0400 |
398 |
-@@ -317,7 +317,7 @@ EXTERN void WarningThrottled(uint32 *cou |
399 |
- #define ASSERT_ON_COMPILE(e) \ |
400 |
- do { \ |
401 |
- enum { AssertOnCompileMisused = ((e) ? 1 : -1) }; \ |
402 |
-- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
403 |
-+ __attribute__((unused)) typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
404 |
- } while (0) |
405 |
- |
406 |
- |
407 |
---- vmmon-only/include/vm_assert.h 2014-10-07 22:43:39.520402467 -0400 |
408 |
-+++ vmmon-only/include/vm_assert.h 2014-10-07 22:47:39.246409325 -0400 |
409 |
-@@ -317,7 +317,7 @@ EXTERN void WarningThrottled(uint32 *cou |
410 |
- #define ASSERT_ON_COMPILE(e) \ |
411 |
- do { \ |
412 |
- enum { AssertOnCompileMisused = ((e) ? 1 : -1) }; \ |
413 |
-- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
414 |
-+ __attribute__((unused)) typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
415 |
- } while (0) |
416 |
- |
417 |
- |
418 |
---- vmnet-only/vm_assert.h 2014-10-07 22:43:39.520402467 -0400 |
419 |
-+++ vmnet-only/vm_assert.h 2014-10-07 22:47:55.804409799 -0400 |
420 |
-@@ -317,7 +317,7 @@ EXTERN void WarningThrottled(uint32 *cou |
421 |
- #define ASSERT_ON_COMPILE(e) \ |
422 |
- do { \ |
423 |
- enum { AssertOnCompileMisused = ((e) ? 1 : -1) }; \ |
424 |
-- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
425 |
-+ __attribute__((unused)) typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
426 |
- } while (0) |
427 |
- |
428 |
- |
429 |
---- vsock-only/shared/vm_assert.h 2014-10-07 22:47:11.595408534 -0400 |
430 |
-+++ vsock-only/shared/vm_assert.h 2014-10-07 22:45:55.715406363 -0400 |
431 |
-@@ -317,7 +317,7 @@ EXTERN void WarningThrottled(uint32 *cou |
432 |
- #define ASSERT_ON_COMPILE(e) \ |
433 |
- do { \ |
434 |
- enum { AssertOnCompileMisused = ((e) ? 1 : -1) }; \ |
435 |
-- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
436 |
-+ __attribute__((unused)) typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
437 |
- } while (0) |
438 |
- |
439 |
- |
440 |
---- vsock-only/shared/vm_atomic.h 2013-11-05 23:33:27.000000000 -0500 |
441 |
-+++ vsock-only/shared/vm_atomic.h 2014-10-07 22:53:06.024418673 -0400 |
442 |
-@@ -2394,7 +2394,7 @@ Atomic_TestBit64(Atomic_uint64 *var, // |
443 |
- && 8 * sizeof (out) == size \ |
444 |
- && 8 * sizeof (cast) == size \ |
445 |
- ? 1 : -1 }; \ |
446 |
-- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
447 |
-+ __attribute__((unused)) typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
448 |
- } \ |
449 |
- \ |
450 |
- \ |
451 |
---- vmci-only/shared/vm_atomic.h 2013-11-05 23:33:27.000000000 -0500 |
452 |
-+++ vmci-only/shared/vm_atomic.h 2014-10-07 22:53:24.873419213 -0400 |
453 |
-@@ -2394,7 +2394,7 @@ Atomic_TestBit64(Atomic_uint64 *var, // |
454 |
- && 8 * sizeof (out) == size \ |
455 |
- && 8 * sizeof (cast) == size \ |
456 |
- ? 1 : -1 }; \ |
457 |
-- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
458 |
-+ __attribute__((unused)) typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
459 |
- } \ |
460 |
- \ |
461 |
- \ |
462 |
- |
463 |
---- vmblock-only/shared/vm_atomic.h 2013-11-05 23:33:27.000000000 -0500 |
464 |
-+++ vmblock-only/shared/vm_atomic.h 2014-10-07 22:53:31.073419390 -0400 |
465 |
-@@ -2394,7 +2394,7 @@ Atomic_TestBit64(Atomic_uint64 *var, // |
466 |
- && 8 * sizeof (out) == size \ |
467 |
- && 8 * sizeof (cast) == size \ |
468 |
- ? 1 : -1 }; \ |
469 |
-- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
470 |
-+ __attribute__((unused)) typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
471 |
- } \ |
472 |
- \ |
473 |
- |
474 |
---- vmnet-only/vm_atomic.h 2013-11-06 00:40:52.000000000 -0500 |
475 |
-+++ vmnet-only/vm_atomic.h 2014-10-07 23:04:50.637438831 -0400 |
476 |
-@@ -2394,7 +2394,7 @@ Atomic_TestBit64(Atomic_uint64 *var, // |
477 |
- && 8 * sizeof (out) == size \ |
478 |
- && 8 * sizeof (cast) == size \ |
479 |
- ? 1 : -1 }; \ |
480 |
-- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
481 |
-+ __attribute__((unused)) typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
482 |
- } \ |
483 |
- \ |
484 |
- \ |
485 |
- |
486 |
---- vmmon-only/include/vm_atomic.h 2013-11-06 00:40:52.000000000 -0500 |
487 |
-+++ vmmon-only/include/vm_atomic.h 2014-10-07 23:04:50.637438831 -0400 |
488 |
-@@ -2394,7 +2394,7 @@ Atomic_TestBit64(Atomic_uint64 *var, // |
489 |
- && 8 * sizeof (out) == size \ |
490 |
- && 8 * sizeof (cast) == size \ |
491 |
- ? 1 : -1 }; \ |
492 |
-- typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
493 |
-+ __attribute__((unused)) typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \ |
494 |
- } \ |
495 |
- \ |
496 |
- \ |
497 |
|
498 |
diff --git a/app-emulation/vmware-modules/files/271-3.10-05-dentry.patch b/app-emulation/vmware-modules/files/271-3.10-05-dentry.patch |
499 |
deleted file mode 100644 |
500 |
index f4f59d97740..00000000000 |
501 |
--- a/app-emulation/vmware-modules/files/271-3.10-05-dentry.patch |
502 |
+++ /dev/null |
503 |
@@ -1,34 +0,0 @@ |
504 |
-starting with kernel 3.6, d_revalidate takes an unsigned int "flags" |
505 |
-as the second argument, not a nameidata pointer! see fs/namei.c |
506 |
-for implementation |
507 |
- |
508 |
-diff -Naur vmblock-only/linux/dentry.c vmblock-only/linux/dentry.c |
509 |
---- vmblock-only/linux/dentry.c 2013-11-05 23:33:26.000000000 -0500 |
510 |
-+++ vmblock-only/linux/dentry.c 2014-04-26 10:58:03.062635343 -0400 |
511 |
-@@ -32,7 +32,7 @@ |
512 |
- #include "block.h" |
513 |
- |
514 |
- |
515 |
--static int DentryOpRevalidate(struct dentry *dentry, struct nameidata *nd); |
516 |
-+static int DentryOpRevalidate(struct dentry *dentry, unsigned int flags); |
517 |
- |
518 |
- struct dentry_operations LinkDentryOps = { |
519 |
- .d_revalidate = DentryOpRevalidate, |
520 |
-@@ -60,7 +60,7 @@ |
521 |
- |
522 |
- static int |
523 |
- DentryOpRevalidate(struct dentry *dentry, // IN: dentry revalidating |
524 |
-- struct nameidata *nd) // IN: lookup flags & intent |
525 |
-+ unsigned int flags) // IN: lookup flags & intent |
526 |
- { |
527 |
- VMBlockInodeInfo *iinfo; |
528 |
- struct nameidata actualNd; |
529 |
-@@ -101,7 +101,7 @@ |
530 |
- if (actualDentry && |
531 |
- actualDentry->d_op && |
532 |
- actualDentry->d_op->d_revalidate) { |
533 |
-- return actualDentry->d_op->d_revalidate(actualDentry, nd); |
534 |
-+ return actualDentry->d_op->d_revalidate(actualDentry, flags); |
535 |
- } |
536 |
- |
537 |
- if (compat_path_lookup(iinfo->name, 0, &actualNd)) { |
538 |
|
539 |
diff --git a/app-emulation/vmware-modules/files/271-3.10-06-inode.patch b/app-emulation/vmware-modules/files/271-3.10-06-inode.patch |
540 |
deleted file mode 100644 |
541 |
index 01c88930899..00000000000 |
542 |
--- a/app-emulation/vmware-modules/files/271-3.10-06-inode.patch |
543 |
+++ /dev/null |
544 |
@@ -1,36 +0,0 @@ |
545 |
-starting with kernel 3.6, d_revalidate takes an unsigned int "flags" |
546 |
-as the second argument, not a nameidata pointer! see fs/namei.c |
547 |
-for implementation. Also changing vfs_follow_link to nd_set_link. |
548 |
-See: https://lkml.org/lkml/2013/9/9/236 |
549 |
- |
550 |
-diff -Naur vmblock-only/linux/inode.c vmblock-only/linux/inode.c |
551 |
---- vmblock-only/linux/inode.c 2013-11-05 23:33:26.000000000 -0500 |
552 |
-+++ vmblock-only/linux/inode.c 2014-04-26 10:58:03.063635343 -0400 |
553 |
-@@ -36,7 +36,7 @@ |
554 |
- |
555 |
- /* Inode operations */ |
556 |
- static struct dentry *InodeOpLookup(struct inode *dir, |
557 |
-- struct dentry *dentry, struct nameidata *nd); |
558 |
-+ struct dentry *dentry, unsigned int flags); |
559 |
- static int InodeOpReadlink(struct dentry *dentry, char __user *buffer, int buflen); |
560 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
561 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
562 |
-@@ -75,7 +75,7 @@ |
563 |
- static struct dentry * |
564 |
- InodeOpLookup(struct inode *dir, // IN: parent directory's inode |
565 |
- struct dentry *dentry, // IN: dentry to lookup |
566 |
-- struct nameidata *nd) // IN: lookup intent and information |
567 |
-+ unsigned int flags) // IN: lookup intent and information |
568 |
- { |
569 |
- char *filename; |
570 |
- struct inode *inode; |
571 |
-@@ -221,7 +221,8 @@ |
572 |
- goto out; |
573 |
- } |
574 |
- |
575 |
-- ret = vfs_follow_link(nd, iinfo->name); |
576 |
-+ nd_set_link(nd, iinfo->name); |
577 |
-+ ret = 0; |
578 |
- |
579 |
- out: |
580 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
581 |
|
582 |
diff --git a/app-emulation/vmware-modules/files/271-3.10-07-hub.patch b/app-emulation/vmware-modules/files/271-3.10-07-hub.patch |
583 |
deleted file mode 100644 |
584 |
index eebe4a23b30..00000000000 |
585 |
--- a/app-emulation/vmware-modules/files/271-3.10-07-hub.patch |
586 |
+++ /dev/null |
587 |
@@ -1,26 +0,0 @@ |
588 |
-fixes a bug where sizeof was being used on a pointer when they clearly |
589 |
-meant to use the size of the array referred to. Fortunately, the amount is |
590 |
-always smaller than the actual size of the buffer, so likely not a security issue |
591 |
-(and was fixed in vmware-workstaiton 10 |
592 |
- |
593 |
-diff -rupN vmnet-only/hub.c vmnet-only.new/hub.c |
594 |
---- vmnet-only/hub.c 2013-11-06 00:40:52.000000000 -0500 |
595 |
-+++ vmnet-only.new/hub.c 2014-10-07 18:45:34.403918680 -0400 |
596 |
-@@ -129,7 +129,7 @@ VNetHubFindHubByID(uint8 idNum[VNET_PVN_ |
597 |
- { |
598 |
- VNetHub *currHub = vnetHub; |
599 |
- while (currHub && (currHub->hubType != HUB_TYPE_PVN || |
600 |
-- memcmp(idNum, currHub->id.pvnID, sizeof idNum))) { |
601 |
-+ memcmp(idNum, currHub->id.pvnID, VNET_PVN_ID_LEN))) { |
602 |
- currHub = currHub->next; |
603 |
- } |
604 |
- return currHub; |
605 |
-@@ -312,7 +312,7 @@ VNetHubAlloc(Bool allocPvn, // IN: TRUE |
606 |
- |
607 |
- if (allocPvn) { |
608 |
- hub->hubType = HUB_TYPE_PVN; |
609 |
-- memcpy(hub->id.pvnID, id, sizeof id); |
610 |
-+ memcpy(hub->id.pvnID, id, VNET_PVN_ID_LEN); |
611 |
- ++pvnInstance; |
612 |
- } else { |
613 |
- hub->hubType = HUB_TYPE_VNET; |
614 |
|
615 |
diff --git a/app-emulation/vmware-modules/files/271-3.10.0.patch b/app-emulation/vmware-modules/files/271-3.10.0.patch |
616 |
deleted file mode 100644 |
617 |
index 7795b18f5d7..00000000000 |
618 |
--- a/app-emulation/vmware-modules/files/271-3.10.0.patch |
619 |
+++ /dev/null |
620 |
@@ -1,809 +0,0 @@ |
621 |
---- a/vmnet-only/bridge.c |
622 |
-+++ b/vmnet-only/bridge.c |
623 |
-@@ -105,8 +105,6 @@ static Bool VNetBridgeCycleDetect(VNetJack *this, int generation); |
624 |
- static Bool VNetBridgeIsDeviceWireless(struct net_device *dev); |
625 |
- static void VNetBridgePortsChanged(VNetJack *this); |
626 |
- static int VNetBridgeIsBridged(VNetJack *this); |
627 |
--static int VNetBridgeProcRead(char *page, char **start, off_t off, |
628 |
-- int count, int *eof, void *data); |
629 |
- static void VNetBridgeComputeHeaderPosIPv6(struct sk_buff *skb); |
630 |
- static PacketStatus VNetCallSMACFunc(struct SMACState *state, |
631 |
- struct sk_buff **skb, void *startOfData, |
632 |
-@@ -225,6 +223,53 @@ VNetBridgeDevCompatible(VNetBridge *bridge, // IN: Bridge |
633 |
- /* |
634 |
- *---------------------------------------------------------------------- |
635 |
- * |
636 |
-+ * VNetBridgeProcShow -- |
637 |
-+ * |
638 |
-+ * Callback for read operation on this bridge entry in vnets proc fs. |
639 |
-+ * |
640 |
-+ * Results: |
641 |
-+ * Length of read operation. |
642 |
-+ * |
643 |
-+ * Side effects: |
644 |
-+ * None. |
645 |
-+ * |
646 |
-+ *---------------------------------------------------------------------- |
647 |
-+ */ |
648 |
-+ |
649 |
-+int |
650 |
-+VNetBridgeProcShow(struct seq_file *seqf, // IN/OUT: buffer to write into |
651 |
-+ void *data) // IN: client data - pointer to bridge |
652 |
-+{ |
653 |
-+ VNetBridge *bridge = (VNetBridge*)data; |
654 |
-+ |
655 |
-+ if (!bridge) { |
656 |
-+ return 0; |
657 |
-+ } |
658 |
-+ |
659 |
-+ VNetPrintPort(&bridge->port, seqf); |
660 |
-+ |
661 |
-+ seq_printf(seqf, "dev %s ", bridge->name); |
662 |
-+ |
663 |
-+ seq_printf(seqf, "\n"); |
664 |
-+ |
665 |
-+ return 0; |
666 |
-+} |
667 |
-+ |
668 |
-+static int proc_bridge_open(struct inode *inode, struct file *file) |
669 |
-+{ |
670 |
-+ return single_open(file, VNetBridgeProcShow, PDE_DATA(inode)); |
671 |
-+} |
672 |
-+ |
673 |
-+static const struct file_operations proc_bridge_fops = { |
674 |
-+ .open = proc_bridge_open, |
675 |
-+ .read = seq_read, |
676 |
-+ .llseek = seq_lseek, |
677 |
-+ .release = seq_release, |
678 |
-+}; |
679 |
-+ |
680 |
-+/* |
681 |
-+ *---------------------------------------------------------------------- |
682 |
-+ * |
683 |
- * VNetBridge_Create -- |
684 |
- * |
685 |
- * Creates a bridge. Allocates struct, allocates internal device, |
686 |
-@@ -319,17 +364,14 @@ VNetBridge_Create(const char *devName, // IN: name of device (e.g., "eth0") |
687 |
- * Make proc entry for this jack. |
688 |
- */ |
689 |
- |
690 |
-- retval = VNetProc_MakeEntry(bridge->port.jack.name, S_IFREG, |
691 |
-- &bridge->port.jack.procEntry); |
692 |
-+ retval = VNetProc_MakeEntryOps(bridge->port.jack.name, S_IFREG, |
693 |
-+ &bridge->port.jack.procEntry, &proc_bridge_fops, bridge); |
694 |
- if (retval) { |
695 |
- if (retval == -ENXIO) { |
696 |
- bridge->port.jack.procEntry = NULL; |
697 |
- } else { |
698 |
- goto out; |
699 |
- } |
700 |
-- } else { |
701 |
-- bridge->port.jack.procEntry->read_proc = VNetBridgeProcRead; |
702 |
-- bridge->port.jack.procEntry->data = bridge; |
703 |
- } |
704 |
- |
705 |
- /* |
706 |
-@@ -1719,45 +1761,3 @@ VNetBridgeReceiveFromDev(struct sk_buff *skb, // IN: packet to receive |
707 |
- return 0; |
708 |
- } |
709 |
- |
710 |
-- |
711 |
--/* |
712 |
-- *---------------------------------------------------------------------- |
713 |
-- * |
714 |
-- * VNetBridgeProcRead -- |
715 |
-- * |
716 |
-- * Callback for read operation on this bridge entry in vnets proc fs. |
717 |
-- * |
718 |
-- * Results: |
719 |
-- * Length of read operation. |
720 |
-- * |
721 |
-- * Side effects: |
722 |
-- * None. |
723 |
-- * |
724 |
-- *---------------------------------------------------------------------- |
725 |
-- */ |
726 |
-- |
727 |
--int |
728 |
--VNetBridgeProcRead(char *page, // IN/OUT: buffer to write into |
729 |
-- char **start, // OUT: 0 if file < 4k, else offset into page |
730 |
-- off_t off, // IN: (unused) offset of read into the file |
731 |
-- int count, // IN: (unused) maximum number of bytes to read |
732 |
-- int *eof, // OUT: TRUE if there is nothing more to read |
733 |
-- void *data) // IN: client data - pointer to bridge |
734 |
--{ |
735 |
-- VNetBridge *bridge = (VNetBridge*)data; |
736 |
-- int len = 0; |
737 |
-- |
738 |
-- if (!bridge) { |
739 |
-- return len; |
740 |
-- } |
741 |
-- |
742 |
-- len += VNetPrintPort(&bridge->port, page+len); |
743 |
-- |
744 |
-- len += sprintf(page+len, "dev %s ", bridge->name); |
745 |
-- |
746 |
-- len += sprintf(page+len, "\n"); |
747 |
-- |
748 |
-- *start = 0; |
749 |
-- *eof = 1; |
750 |
-- return len; |
751 |
--} |
752 |
---- a/vmnet-only/driver.c |
753 |
-+++ b/vmnet-only/driver.c |
754 |
-@@ -1785,21 +1785,17 @@ VNetSetMACUnique(VNetPort *port, // IN: |
755 |
- *---------------------------------------------------------------------- |
756 |
- */ |
757 |
- |
758 |
--int |
759 |
-+void |
760 |
- VNetPrintJack(const VNetJack *jack, // IN: jack |
761 |
-- char *buf) // OUT: info about jack |
762 |
-+ struct seq_file *seqf) // OUT: info about jack |
763 |
- { |
764 |
-- int len = 0; |
765 |
-- |
766 |
- read_lock(&vnetPeerLock); |
767 |
- if (!jack->peer) { |
768 |
-- len += sprintf(buf+len, "connected not "); |
769 |
-+ seq_printf(seqf, "connected not "); |
770 |
- } else { |
771 |
-- len += sprintf(buf+len, "connected %s ", jack->peer->name); |
772 |
-+ seq_printf(seqf, "connected %s ", jack->peer->name); |
773 |
- } |
774 |
- read_unlock(&vnetPeerLock); |
775 |
-- |
776 |
-- return len; |
777 |
- } |
778 |
- |
779 |
- |
780 |
-@@ -1819,52 +1815,48 @@ VNetPrintJack(const VNetJack *jack, // IN: jack |
781 |
- *---------------------------------------------------------------------- |
782 |
- */ |
783 |
- |
784 |
--int |
785 |
-+void |
786 |
- VNetPrintPort(const VNetPort *port, // IN: port |
787 |
-- char *buf) // OUT: info about port |
788 |
-+ struct seq_file *seqf) // OUT: info about port |
789 |
- { |
790 |
-- int len = 0; |
791 |
-+ VNetPrintJack(&port->jack, seqf); |
792 |
- |
793 |
-- len += VNetPrintJack(&port->jack, buf+len); |
794 |
-- |
795 |
-- len += sprintf(buf+len, "mac %02x:%02x:%02x:%02x:%02x:%02x ", |
796 |
-+ seq_printf(seqf, "mac %02x:%02x:%02x:%02x:%02x:%02x ", |
797 |
- port->paddr[0], port->paddr[1], port->paddr[2], |
798 |
- port->paddr[3], port->paddr[4], port->paddr[5]); |
799 |
- |
800 |
-- len += sprintf(buf+len, "ladrf %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x ", |
801 |
-+ seq_printf(seqf, "ladrf %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x ", |
802 |
- port->ladrf[0], port->ladrf[1], port->ladrf[2], |
803 |
- port->ladrf[3], port->ladrf[4], port->ladrf[5], |
804 |
- port->ladrf[6], port->ladrf[7]); |
805 |
- |
806 |
-- len += sprintf(buf+len, "flags IFF_RUNNING"); |
807 |
-+ seq_printf(seqf, "flags IFF_RUNNING"); |
808 |
- |
809 |
- if (port->flags & IFF_UP) { |
810 |
-- len += sprintf(buf+len, ",IFF_UP"); |
811 |
-+ seq_printf(seqf, ",IFF_UP"); |
812 |
- } |
813 |
- |
814 |
- if (port->flags & IFF_BROADCAST) { |
815 |
-- len += sprintf(buf+len, ",IFF_BROADCAST"); |
816 |
-+ seq_printf(seqf, ",IFF_BROADCAST"); |
817 |
- } |
818 |
- |
819 |
- if (port->flags & IFF_DEBUG) { |
820 |
-- len += sprintf(buf+len, ",IFF_DEBUG"); |
821 |
-+ seq_printf(seqf, ",IFF_DEBUG"); |
822 |
- } |
823 |
- |
824 |
- if (port->flags & IFF_PROMISC) { |
825 |
-- len += sprintf(buf+len, ",IFF_PROMISC"); |
826 |
-+ seq_printf(seqf, ",IFF_PROMISC"); |
827 |
- } |
828 |
- |
829 |
- if (port->flags & IFF_MULTICAST) { |
830 |
-- len += sprintf(buf+len, ",IFF_MULTICAST"); |
831 |
-+ seq_printf(seqf, ",IFF_MULTICAST"); |
832 |
- } |
833 |
- |
834 |
- if (port->flags & IFF_ALLMULTI) { |
835 |
-- len += sprintf(buf+len, ",IFF_ALLMULTI"); |
836 |
-+ seq_printf(seqf, ",IFF_ALLMULTI"); |
837 |
- } |
838 |
- |
839 |
-- len += sprintf(buf+len, " "); |
840 |
-- |
841 |
-- return len; |
842 |
-+ seq_printf(seqf, " "); |
843 |
- } |
844 |
- |
845 |
- |
846 |
---- a/vmnet-only/hub.c |
847 |
-+++ b/vmnet-only/hub.c |
848 |
-@@ -25,6 +25,7 @@ |
849 |
- #include <linux/sched.h> |
850 |
- #include <linux/slab.h> |
851 |
- #include <linux/poll.h> |
852 |
-+#include <linux/seq_file.h> |
853 |
- |
854 |
- #include <linux/netdevice.h> |
855 |
- #include <linux/etherdevice.h> |
856 |
-@@ -71,8 +72,6 @@ static void VNetHubReceive(VNetJack *this, struct sk_buff *skb); |
857 |
- static Bool VNetHubCycleDetect(VNetJack *this, int generation); |
858 |
- static void VNetHubPortsChanged(VNetJack *this); |
859 |
- static int VNetHubIsBridged(VNetJack *this); |
860 |
--static int VNetHubProcRead(char *page, char **start, off_t off, |
861 |
-- int count, int *eof, void *data); |
862 |
- |
863 |
- static VNetHub *vnetHub; |
864 |
- static DEFINE_SPINLOCK(vnetHubLock); |
865 |
-@@ -241,6 +240,53 @@ VNetHub_AllocPvn(uint8 id[]) // IN: the PVN ID to alloc on |
866 |
- /* |
867 |
- *---------------------------------------------------------------------- |
868 |
- * |
869 |
-+ * VNetHubProcShow -- |
870 |
-+ * |
871 |
-+ * Callback for read operation on hub entry in vnets proc fs. |
872 |
-+ * |
873 |
-+ * Results: |
874 |
-+ * Length of read operation. |
875 |
-+ * |
876 |
-+ * Side effects: |
877 |
-+ * None. |
878 |
-+ * |
879 |
-+ *---------------------------------------------------------------------- |
880 |
-+ */ |
881 |
-+ |
882 |
-+int |
883 |
-+VNetHubProcShow(struct seq_file *seqf, // IN/OUT: buffer to write into |
884 |
-+ void *data) // IN: client data - not used |
885 |
-+{ |
886 |
-+ VNetJack *jack = (VNetJack*)data; |
887 |
-+ VNetHub *hub; |
888 |
-+ |
889 |
-+ if (!jack || !jack->private) { |
890 |
-+ return 0; |
891 |
-+ } |
892 |
-+ hub = (VNetHub*)jack->private; |
893 |
-+ |
894 |
-+ VNetPrintJack(jack, seqf); |
895 |
-+ |
896 |
-+ seq_printf(seqf, "tx %u ", hub->stats[jack->index].tx); |
897 |
-+ seq_printf(seqf, "\n"); |
898 |
-+ return 0; |
899 |
-+} |
900 |
-+ |
901 |
-+static int proc_hub_open(struct inode *inode, struct file *file) |
902 |
-+{ |
903 |
-+ return single_open(file, VNetHubProcShow, PDE_DATA(inode)); |
904 |
-+} |
905 |
-+ |
906 |
-+static const struct file_operations proc_hub_fops = { |
907 |
-+ .open = proc_hub_open, |
908 |
-+ .read = seq_read, |
909 |
-+ .llseek = seq_lseek, |
910 |
-+ .release = seq_release, |
911 |
-+}; |
912 |
-+ |
913 |
-+/* |
914 |
-+ *---------------------------------------------------------------------- |
915 |
-+ * |
916 |
- * VNetHubAlloc -- |
917 |
- * |
918 |
- * Allocate a jack on this hub. |
919 |
-@@ -354,7 +400,7 @@ VNetHubAlloc(Bool allocPvn, // IN: TRUE for PVN, FALSE for vnet |
920 |
- * Make proc entry for this jack. |
921 |
- */ |
922 |
- |
923 |
-- retval = VNetProc_MakeEntry(jack->name, S_IFREG, &jack->procEntry); |
924 |
-+ retval = VNetProc_MakeEntryOps(jack->name, S_IFREG, &jack->procEntry, &proc_hub_fops, jack); |
925 |
- if (retval) { |
926 |
- if (retval == -ENXIO) { |
927 |
- jack->procEntry = NULL; |
928 |
-@@ -362,9 +408,6 @@ VNetHubAlloc(Bool allocPvn, // IN: TRUE for PVN, FALSE for vnet |
929 |
- hub->used[i] = FALSE; |
930 |
- return NULL; |
931 |
- } |
932 |
-- } else { |
933 |
-- jack->procEntry->read_proc = VNetHubProcRead; |
934 |
-- jack->procEntry->data = jack; |
935 |
- } |
936 |
- |
937 |
- /* |
938 |
-@@ -686,46 +729,3 @@ VNetHubIsBridged(VNetJack *this) |
939 |
- } |
940 |
- |
941 |
- |
942 |
--/* |
943 |
-- *---------------------------------------------------------------------- |
944 |
-- * |
945 |
-- * VNetHubProcRead -- |
946 |
-- * |
947 |
-- * Callback for read operation on hub entry in vnets proc fs. |
948 |
-- * |
949 |
-- * Results: |
950 |
-- * Length of read operation. |
951 |
-- * |
952 |
-- * Side effects: |
953 |
-- * None. |
954 |
-- * |
955 |
-- *---------------------------------------------------------------------- |
956 |
-- */ |
957 |
-- |
958 |
--int |
959 |
--VNetHubProcRead(char *page, // IN/OUT: buffer to write into |
960 |
-- char **start, // OUT: 0 if file < 4k, else offset into page |
961 |
-- off_t off, // IN: offset of read into the file |
962 |
-- int count, // IN: maximum number of bytes to read |
963 |
-- int *eof, // OUT: TRUE if there is nothing more to read |
964 |
-- void *data) // IN: client data - not used |
965 |
--{ |
966 |
-- VNetJack *jack = (VNetJack*)data; |
967 |
-- VNetHub *hub; |
968 |
-- int len = 0; |
969 |
-- |
970 |
-- if (!jack || !jack->private) { |
971 |
-- return len; |
972 |
-- } |
973 |
-- hub = (VNetHub*)jack->private; |
974 |
-- |
975 |
-- len += VNetPrintJack(jack, page+len); |
976 |
-- |
977 |
-- len += sprintf(page+len, "tx %u ", hub->stats[jack->index].tx); |
978 |
-- |
979 |
-- len += sprintf(page+len, "\n"); |
980 |
-- |
981 |
-- *start = 0; |
982 |
-- *eof = 1; |
983 |
-- return len; |
984 |
--} |
985 |
---- a/vmnet-only/netif.c |
986 |
-+++ b/vmnet-only/netif.c |
987 |
-@@ -62,8 +62,6 @@ static int VNetNetifStartXmit(struct sk_buff *skb, struct net_device *dev); |
988 |
- static struct net_device_stats *VNetNetifGetStats(struct net_device *dev); |
989 |
- static int VNetNetifSetMAC(struct net_device *dev, void *addr); |
990 |
- static void VNetNetifSetMulticast(struct net_device *dev); |
991 |
--static int VNetNetIfProcRead(char *page, char **start, off_t off, |
992 |
-- int count, int *eof, void *data); |
993 |
- |
994 |
- /* |
995 |
- *---------------------------------------------------------------------- |
996 |
-@@ -116,6 +114,53 @@ VNetNetIfSetup(struct net_device *dev) // IN: |
997 |
- |
998 |
- } |
999 |
- |
1000 |
-+/* |
1001 |
-+ *---------------------------------------------------------------------- |
1002 |
-+ * |
1003 |
-+ * VNetNetIfProcShow -- |
1004 |
-+ * |
1005 |
-+ * Callback for read operation on this netif entry in vnets proc fs. |
1006 |
-+ * |
1007 |
-+ * Results: |
1008 |
-+ * Length of read operation. |
1009 |
-+ * |
1010 |
-+ * Side effects: |
1011 |
-+ * None. |
1012 |
-+ * |
1013 |
-+ *---------------------------------------------------------------------- |
1014 |
-+ */ |
1015 |
-+ |
1016 |
-+int |
1017 |
-+VNetNetIfProcShow(struct seq_file *seqf, // IN/OUT: buffer to write into |
1018 |
-+ void *data) // IN: client data |
1019 |
-+{ |
1020 |
-+ VNetNetIF *netIf = data; |
1021 |
-+ |
1022 |
-+ if (!netIf) { |
1023 |
-+ return 0; |
1024 |
-+ } |
1025 |
-+ |
1026 |
-+ VNetPrintPort(&netIf->port, seqf); |
1027 |
-+ |
1028 |
-+ seq_printf(seqf, "dev %s ", netIf->dev->name); |
1029 |
-+ |
1030 |
-+ seq_printf(seqf, "\n"); |
1031 |
-+ |
1032 |
-+ return 0; |
1033 |
-+} |
1034 |
-+ |
1035 |
-+static int proc_netif_open(struct inode *inode, struct file *file) |
1036 |
-+{ |
1037 |
-+ return single_open(file, VNetNetIfProcShow, PDE_DATA(inode)); |
1038 |
-+} |
1039 |
-+ |
1040 |
-+static const struct file_operations proc_netif_fops = { |
1041 |
-+ .open = proc_netif_open, |
1042 |
-+ .read = seq_read, |
1043 |
-+ .llseek = seq_lseek, |
1044 |
-+ .release = seq_release, |
1045 |
-+}; |
1046 |
-+ |
1047 |
- |
1048 |
- /* |
1049 |
- *---------------------------------------------------------------------- |
1050 |
-@@ -180,16 +225,13 @@ VNetNetIf_Create(char *devName, // IN: |
1051 |
- * Make proc entry for this jack. |
1052 |
- */ |
1053 |
- |
1054 |
-- retval = VNetProc_MakeEntry(netIf->port.jack.name, S_IFREG, |
1055 |
-- &netIf->port.jack.procEntry); |
1056 |
-+ retval = VNetProc_MakeEntryOps(netIf->port.jack.name, S_IFREG, |
1057 |
-+ &netIf->port.jack.procEntry, &proc_netif_fops, netIf); |
1058 |
- if (retval) { |
1059 |
- netIf->port.jack.procEntry = NULL; |
1060 |
- if (retval != -ENXIO) { |
1061 |
- goto outFreeDev; |
1062 |
- } |
1063 |
-- } else { |
1064 |
-- netIf->port.jack.procEntry->read_proc = VNetNetIfProcRead; |
1065 |
-- netIf->port.jack.procEntry->data = netIf; |
1066 |
- } |
1067 |
- |
1068 |
- /* |
1069 |
-@@ -553,45 +595,3 @@ VNetNetifGetStats(struct net_device *dev) // IN: |
1070 |
- return &netIf->stats; |
1071 |
- } |
1072 |
- |
1073 |
-- |
1074 |
--/* |
1075 |
-- *---------------------------------------------------------------------- |
1076 |
-- * |
1077 |
-- * VNetNetIfProcRead -- |
1078 |
-- * |
1079 |
-- * Callback for read operation on this netif entry in vnets proc fs. |
1080 |
-- * |
1081 |
-- * Results: |
1082 |
-- * Length of read operation. |
1083 |
-- * |
1084 |
-- * Side effects: |
1085 |
-- * None. |
1086 |
-- * |
1087 |
-- *---------------------------------------------------------------------- |
1088 |
-- */ |
1089 |
-- |
1090 |
--int |
1091 |
--VNetNetIfProcRead(char *page, // IN/OUT: buffer to write into |
1092 |
-- char **start, // OUT: 0 if file < 4k, else offset into page |
1093 |
-- off_t off, // IN: (unused) offset of read into the file |
1094 |
-- int count, // IN: (unused) maximum number of bytes to read |
1095 |
-- int *eof, // OUT: TRUE if there is nothing more to read |
1096 |
-- void *data) // IN: client data |
1097 |
--{ |
1098 |
-- VNetNetIF *netIf = data; |
1099 |
-- int len = 0; |
1100 |
-- |
1101 |
-- if (!netIf) { |
1102 |
-- return len; |
1103 |
-- } |
1104 |
-- |
1105 |
-- len += VNetPrintPort(&netIf->port, page+len); |
1106 |
-- |
1107 |
-- len += sprintf(page+len, "dev %s ", netIf->dev->name); |
1108 |
-- |
1109 |
-- len += sprintf(page+len, "\n"); |
1110 |
-- |
1111 |
-- *start = 0; |
1112 |
-- *eof = 1; |
1113 |
-- return len; |
1114 |
--} |
1115 |
---- a/vmnet-only/procfs.c |
1116 |
-+++ b/vmnet-only/procfs.c |
1117 |
-@@ -45,10 +45,6 @@ |
1118 |
- |
1119 |
- #if defined(CONFIG_PROC_FS) |
1120 |
- |
1121 |
--static int VNetProcMakeEntryInt(VNetProcEntry *parent, char *name, int mode, |
1122 |
-- VNetProcEntry **ret); |
1123 |
--static void VNetProcRemoveEntryInt(VNetProcEntry *node, VNetProcEntry *parent); |
1124 |
-- |
1125 |
- static VNetProcEntry *base = NULL; |
1126 |
- |
1127 |
- |
1128 |
-@@ -71,7 +67,12 @@ static VNetProcEntry *base = NULL; |
1129 |
- int |
1130 |
- VNetProc_Init(void) |
1131 |
- { |
1132 |
-- return VNetProcMakeEntryInt(NULL, "vmnet", S_IFDIR, &base); |
1133 |
-+ base = proc_mkdir("vmnet", NULL); |
1134 |
-+ if(IS_ERR(base)) { |
1135 |
-+ base = NULL; |
1136 |
-+ return PTR_ERR(base); |
1137 |
-+ } |
1138 |
-+ return 0; |
1139 |
- } |
1140 |
- |
1141 |
- |
1142 |
-@@ -94,14 +95,14 @@ VNetProc_Init(void) |
1143 |
- void |
1144 |
- VNetProc_Cleanup(void) |
1145 |
- { |
1146 |
-- VNetProcRemoveEntryInt(base, NULL); |
1147 |
-+ proc_remove(base); |
1148 |
- base = NULL; |
1149 |
- } |
1150 |
- |
1151 |
- /* |
1152 |
- *---------------------------------------------------------------------- |
1153 |
- * |
1154 |
-- * VNetProcMakeEntryInt -- |
1155 |
-+ * VNetProc_MakeEntryOps -- |
1156 |
- * |
1157 |
- * Make an entry in the vnets proc file system. |
1158 |
- * |
1159 |
-@@ -116,72 +117,21 @@ VNetProc_Cleanup(void) |
1160 |
- */ |
1161 |
- |
1162 |
- int |
1163 |
--VNetProcMakeEntryInt(VNetProcEntry *parent, // IN: |
1164 |
-- char *name, // IN: |
1165 |
-+VNetProc_MakeEntryOps(char *name, // IN: |
1166 |
- int mode, // IN: |
1167 |
-- VNetProcEntry **ret) // OUT: |
1168 |
-+ VNetProcEntry **ret, |
1169 |
-+ const struct file_operations *fops, |
1170 |
-+ void *data |
1171 |
-+ ) // OUT: |
1172 |
- { |
1173 |
- VNetProcEntry *ent; |
1174 |
-- ent = create_proc_entry(name, mode, parent); |
1175 |
-+ ent = proc_create_data(name, mode, base, fops, data); |
1176 |
- *ret = ent; |
1177 |
- if (!ent) |
1178 |
- return -ENOMEM; |
1179 |
- return 0; |
1180 |
- } |
1181 |
- |
1182 |
-- |
1183 |
--/* |
1184 |
-- *---------------------------------------------------------------------- |
1185 |
-- * |
1186 |
-- * VNetProcRemoveEntryInt -- |
1187 |
-- * |
1188 |
-- * Remove a previously installed proc entry. |
1189 |
-- * |
1190 |
-- * Results: |
1191 |
-- * None. |
1192 |
-- * |
1193 |
-- * Side effects: |
1194 |
-- * None. |
1195 |
-- * |
1196 |
-- *---------------------------------------------------------------------- |
1197 |
-- */ |
1198 |
-- |
1199 |
--void |
1200 |
--VNetProcRemoveEntryInt(VNetProcEntry *node, |
1201 |
-- VNetProcEntry *parent) |
1202 |
--{ |
1203 |
-- if (node) { |
1204 |
-- remove_proc_entry(node->name, parent); |
1205 |
-- } |
1206 |
--} |
1207 |
-- |
1208 |
-- |
1209 |
--/* |
1210 |
-- *---------------------------------------------------------------------- |
1211 |
-- * |
1212 |
-- * VNetProc_MakeEntry -- |
1213 |
-- * |
1214 |
-- * Make an entry in the vnets proc file system. |
1215 |
-- * |
1216 |
-- * Results: |
1217 |
-- * errno. If errno is 0 and ret is non NULL then ret is filled |
1218 |
-- * in with the resulting proc entry. |
1219 |
-- * |
1220 |
-- * Side effects: |
1221 |
-- * None. |
1222 |
-- * |
1223 |
-- *---------------------------------------------------------------------- |
1224 |
-- */ |
1225 |
-- |
1226 |
--int |
1227 |
--VNetProc_MakeEntry(char *name, // IN: |
1228 |
-- int mode, // IN: |
1229 |
-- VNetProcEntry **ret) // OUT: |
1230 |
--{ |
1231 |
-- return VNetProcMakeEntryInt(base, name, mode, ret); |
1232 |
--} |
1233 |
-- |
1234 |
-- |
1235 |
- /* |
1236 |
- *---------------------------------------------------------------------- |
1237 |
- * |
1238 |
-@@ -201,7 +151,8 @@ VNetProc_MakeEntry(char *name, // IN: |
1239 |
- void |
1240 |
- VNetProc_RemoveEntry(VNetProcEntry *node) |
1241 |
- { |
1242 |
-- VNetProcRemoveEntryInt(node, base); |
1243 |
-+ if(node) |
1244 |
-+ proc_remove(node); |
1245 |
- } |
1246 |
- |
1247 |
- |
1248 |
-@@ -253,31 +204,6 @@ VNetProc_Cleanup(void) |
1249 |
- } |
1250 |
- |
1251 |
- |
1252 |
--/* |
1253 |
-- *---------------------------------------------------------------------- |
1254 |
-- * |
1255 |
-- * VNetProc_MakeEntry -- |
1256 |
-- * |
1257 |
-- * Make an entry in the vnets proc file system. |
1258 |
-- * |
1259 |
-- * Results: |
1260 |
-- * errno. If errno is 0 and ret is non NULL then ret is filled |
1261 |
-- * in with the resulting proc entry. |
1262 |
-- * |
1263 |
-- * Side effects: |
1264 |
-- * None. |
1265 |
-- * |
1266 |
-- *---------------------------------------------------------------------- |
1267 |
-- */ |
1268 |
-- |
1269 |
--int |
1270 |
--VNetProc_MakeEntry(char *name, |
1271 |
-- int mode, |
1272 |
-- VNetProcEntry **ret) |
1273 |
--{ |
1274 |
-- return -ENXIO; |
1275 |
--} |
1276 |
-- |
1277 |
- |
1278 |
- /* |
1279 |
- *---------------------------------------------------------------------- |
1280 |
---- a/vmnet-only/userif.c |
1281 |
-+++ b/vmnet-only/userif.c |
1282 |
-@@ -389,7 +389,7 @@ VNetUserIfReceive(VNetJack *this, // IN |
1283 |
- /* |
1284 |
- *---------------------------------------------------------------------- |
1285 |
- * |
1286 |
-- * VNetUserIfProcRead -- |
1287 |
-+ * VNetUserIfProcShow -- |
1288 |
- * |
1289 |
- * Callback for read operation on this userif entry in vnets proc fs. |
1290 |
- * |
1291 |
-@@ -403,30 +403,23 @@ VNetUserIfReceive(VNetJack *this, // IN |
1292 |
- */ |
1293 |
- |
1294 |
- static int |
1295 |
--VNetUserIfProcRead(char *page, // IN/OUT: buffer to write into |
1296 |
-- char **start, // OUT: 0 if file < 4k, else offset into |
1297 |
-- // page |
1298 |
-- off_t off, // IN: offset of read into the file |
1299 |
-- int count, // IN: maximum number of bytes to read |
1300 |
-- int *eof, // OUT: TRUE if there is nothing more to |
1301 |
-- // read |
1302 |
-+VNetUserIfProcShow(struct seq_file *seqf, // IN/OUT: buffer to write into |
1303 |
- void *data) // IN: client data - not used |
1304 |
- { |
1305 |
- VNetUserIF *userIf = (VNetUserIF*)data; |
1306 |
-- int len = 0; |
1307 |
- |
1308 |
- if (!userIf) { |
1309 |
-- return len; |
1310 |
-+ return 0; |
1311 |
- } |
1312 |
- |
1313 |
-- len += VNetPrintPort(&userIf->port, page+len); |
1314 |
-+ VNetPrintPort(&userIf->port, seqf); |
1315 |
- |
1316 |
-- len += sprintf(page+len, "read %u written %u queued %u ", |
1317 |
-+ seq_printf(seqf, "read %u written %u queued %u ", |
1318 |
- userIf->stats.read, |
1319 |
- userIf->stats.written, |
1320 |
- userIf->stats.queued); |
1321 |
- |
1322 |
-- len += sprintf(page+len, |
1323 |
-+ seq_printf(seqf, |
1324 |
- "dropped.down %u dropped.mismatch %u " |
1325 |
- "dropped.overflow %u dropped.largePacket %u", |
1326 |
- userIf->stats.droppedDown, |
1327 |
-@@ -434,13 +427,23 @@ VNetUserIfProcRead(char *page, // IN/OUT: buffer to write into |
1328 |
- userIf->stats.droppedOverflow, |
1329 |
- userIf->stats.droppedLargePacket); |
1330 |
- |
1331 |
-- len += sprintf(page+len, "\n"); |
1332 |
-+ seq_printf(seqf, "\n"); |
1333 |
- |
1334 |
-- *start = 0; |
1335 |
-- *eof = 1; |
1336 |
-- return len; |
1337 |
-+ return 0; |
1338 |
-+} |
1339 |
-+ |
1340 |
-+static int proc_userif_open(struct inode *inode, struct file *file) |
1341 |
-+{ |
1342 |
-+ return single_open(file, VNetUserIfProcShow, PDE_DATA(inode)); |
1343 |
- } |
1344 |
- |
1345 |
-+static const struct file_operations proc_userif_fops = { |
1346 |
-+ .open = proc_userif_open, |
1347 |
-+ .read = seq_read, |
1348 |
-+ .llseek = seq_lseek, |
1349 |
-+ .release = seq_release, |
1350 |
-+}; |
1351 |
-+ |
1352 |
- |
1353 |
- /* |
1354 |
- *---------------------------------------------------------------------- |
1355 |
-@@ -1036,8 +1039,8 @@ VNetUserIf_Create(VNetPort **ret) // OUT |
1356 |
- * Make proc entry for this jack. |
1357 |
- */ |
1358 |
- |
1359 |
-- retval = VNetProc_MakeEntry(userIf->port.jack.name, S_IFREG, |
1360 |
-- &userIf->port.jack.procEntry); |
1361 |
-+ retval = VNetProc_MakeEntryOps(userIf->port.jack.name, S_IFREG, |
1362 |
-+ &userIf->port.jack.procEntry, &proc_userif_fops, userIf); |
1363 |
- if (retval) { |
1364 |
- if (retval == -ENXIO) { |
1365 |
- userIf->port.jack.procEntry = NULL; |
1366 |
-@@ -1045,9 +1048,6 @@ VNetUserIf_Create(VNetPort **ret) // OUT |
1367 |
- kfree(userIf); |
1368 |
- return retval; |
1369 |
- } |
1370 |
-- } else { |
1371 |
-- userIf->port.jack.procEntry->read_proc = VNetUserIfProcRead; |
1372 |
-- userIf->port.jack.procEntry->data = userIf; |
1373 |
- } |
1374 |
- |
1375 |
- /* |
1376 |
---- a/vmnet-only/vnetInt.h |
1377 |
-+++ b/vmnet-only/vnetInt.h |
1378 |
-@@ -171,12 +171,14 @@ VNetJack *VNetDisconnect(VNetJack *jack); |
1379 |
- |
1380 |
- void VNetSend(const VNetJack *jack, struct sk_buff *skb); |
1381 |
- |
1382 |
--int VNetProc_MakeEntry(char *name, int mode, |
1383 |
-- VNetProcEntry **ret); |
1384 |
-+int VNetProc_MakeEntryOps(char *name, int mode, |
1385 |
-+ VNetProcEntry **ret, |
1386 |
-+ const struct file_operations *fops, |
1387 |
-+ void *data); |
1388 |
- |
1389 |
- void VNetProc_RemoveEntry(VNetProcEntry *node); |
1390 |
- |
1391 |
--int VNetPrintJack(const VNetJack *jack, char *buf); |
1392 |
-+void VNetPrintJack(const VNetJack *jack, struct seq_file *seqf); |
1393 |
- |
1394 |
- int VNet_MakeMACAddress(VNetPort *port); |
1395 |
- |
1396 |
-@@ -196,7 +198,7 @@ Bool VNetPacketMatch(const uint8 *destAddr, const uint8 *ifAddr, |
1397 |
- |
1398 |
- Bool VNetCycleDetectIf(const char *name, int generation); |
1399 |
- |
1400 |
--int VNetPrintPort(const VNetPort *port, char *buf); |
1401 |
-+void VNetPrintPort(const VNetPort *port, struct seq_file *seqf); |
1402 |
- |
1403 |
- int VNetSnprintf(char *str, size_t size, const char *format, ...); |
1404 |
- |
1405 |
--- |
1406 |
---- a/vmblock-only/linux/control.c 2013-05-21 19:21:19.165750556 +0200 |
1407 |
-+++ b/vmblock-only/linux/control.c 2013-05-21 19:22:18.363747723 +0200 |
1408 |
-@@ -208,9 +208,10 @@ |
1409 |
- VMBlockSetProcEntryOwner(controlProcMountpoint); |
1410 |
- |
1411 |
- /* Create /proc/fs/vmblock/dev */ |
1412 |
-- controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME, |
1413 |
-- VMBLOCK_CONTROL_MODE, |
1414 |
-- controlProcDirEntry); |
1415 |
-+ controlProcEntry = proc_create(VMBLOCK_CONTROL_DEVNAME, |
1416 |
-+ VMBLOCK_CONTROL_MODE, |
1417 |
-+ controlProcDirEntry, |
1418 |
-+ &ControlFileOps); |
1419 |
- if (!controlProcEntry) { |
1420 |
- Warning("SetupProcDevice: could not create " VMBLOCK_DEVICE "\n"); |
1421 |
- remove_proc_entry(VMBLOCK_CONTROL_MOUNTPOINT, controlProcDirEntry); |
1422 |
-@@ -218,7 +219,6 @@ |
1423 |
- return -EINVAL; |
1424 |
- } |
1425 |
- |
1426 |
-- controlProcEntry->proc_fops = &ControlFileOps; |
1427 |
- return 0; |
1428 |
- } |
1429 |
- |
1430 |
|
1431 |
diff --git a/app-emulation/vmware-modules/files/271-3.11-00-readdir.patch b/app-emulation/vmware-modules/files/271-3.11-00-readdir.patch |
1432 |
deleted file mode 100644 |
1433 |
index b2f76d3e2b3..00000000000 |
1434 |
--- a/app-emulation/vmware-modules/files/271-3.11-00-readdir.patch |
1435 |
+++ /dev/null |
1436 |
@@ -1,41 +0,0 @@ |
1437 |
-replaces usage of vfs_readdir with iterate_dir. origionally found here: |
1438 |
-https://bugs.gentoo.org/show_bug.cgi?id=508204 |
1439 |
- |
1440 |
-diff -Naur vmblock-only/linux/file.c vmblock-only/linux/file.c |
1441 |
---- vmblock-only/linux/file.c 2013-11-05 23:33:26.000000000 -0500 |
1442 |
-+++ vmblock-only/linux/file.c 2014-04-26 10:58:03.062635343 -0400 |
1443 |
-@@ -166,11 +166,9 @@ |
1444 |
- |
1445 |
- static int |
1446 |
- FileOpReaddir(struct file *file, // IN |
1447 |
-- void *dirent, // IN |
1448 |
-- filldir_t filldir) // IN |
1449 |
-+ struct dir_context *ctx) |
1450 |
- { |
1451 |
- int ret; |
1452 |
-- FilldirInfo info; |
1453 |
- struct file *actualFile; |
1454 |
- |
1455 |
- if (!file) { |
1456 |
-@@ -184,11 +182,8 @@ |
1457 |
- return -EINVAL; |
1458 |
- } |
1459 |
- |
1460 |
-- info.filldir = filldir; |
1461 |
-- info.dirent = dirent; |
1462 |
-- |
1463 |
- actualFile->f_pos = file->f_pos; |
1464 |
-- ret = vfs_readdir(actualFile, Filldir, &info); |
1465 |
-+ ret = iterate_dir(actualFile, ctx); |
1466 |
- file->f_pos = actualFile->f_pos; |
1467 |
- |
1468 |
- return ret; |
1469 |
-@@ -237,7 +232,7 @@ |
1470 |
- |
1471 |
- |
1472 |
- struct file_operations RootFileOps = { |
1473 |
-- .readdir = FileOpReaddir, |
1474 |
-+ .iterate = FileOpReaddir, |
1475 |
- .open = FileOpOpen, |
1476 |
- .release = FileOpRelease, |
1477 |
- }; |
1478 |
|
1479 |
diff --git a/app-emulation/vmware-modules/files/271-3.11-01-filldir.patch b/app-emulation/vmware-modules/files/271-3.11-01-filldir.patch |
1480 |
deleted file mode 100644 |
1481 |
index 2eec99b7c1f..00000000000 |
1482 |
--- a/app-emulation/vmware-modules/files/271-3.11-01-filldir.patch |
1483 |
+++ /dev/null |
1484 |
@@ -1,53 +0,0 @@ |
1485 |
-simply remove the code for Filldir since it is no longer used with the new |
1486 |
-iterate_dir API |
1487 |
- |
1488 |
-diff -rupN vmblock-only/linux/file.c vmblock-only.new/linux/file.c |
1489 |
---- vmblock-only/linux/file.c 2014-10-07 23:22:46.832469618 -0400 |
1490 |
-+++ vmblock-only.new/linux/file.c 2014-10-07 23:24:35.276472720 -0400 |
1491 |
-@@ -38,46 +38,6 @@ typedef u64 inode_num_t; |
1492 |
- typedef ino_t inode_num_t; |
1493 |
- #endif |
1494 |
- |
1495 |
--/* Specifically for our filldir_t callback */ |
1496 |
--typedef struct FilldirInfo { |
1497 |
-- filldir_t filldir; |
1498 |
-- void *dirent; |
1499 |
--} FilldirInfo; |
1500 |
-- |
1501 |
-- |
1502 |
--/* |
1503 |
-- *---------------------------------------------------------------------------- |
1504 |
-- * |
1505 |
-- * Filldir -- |
1506 |
-- * |
1507 |
-- * Callback function for readdir that we use in place of the one provided. |
1508 |
-- * This allows us to specify that each dentry is a symlink, but pass through |
1509 |
-- * everything else to the original filldir function. |
1510 |
-- * |
1511 |
-- * Results: |
1512 |
-- * Original filldir's return value. |
1513 |
-- * |
1514 |
-- * Side effects: |
1515 |
-- * Directory information gets copied to user's buffer. |
1516 |
-- * |
1517 |
-- *---------------------------------------------------------------------------- |
1518 |
-- */ |
1519 |
-- |
1520 |
--static int |
1521 |
--Filldir(void *buf, // IN: Dirent buffer passed from FileOpReaddir |
1522 |
-- const char *name, // IN: Dirent name |
1523 |
-- int namelen, // IN: len of dirent's name |
1524 |
-- loff_t offset, // IN: Offset |
1525 |
-- inode_num_t ino, // IN: Inode number of dirent |
1526 |
-- unsigned int d_type) // IN: Type of file |
1527 |
--{ |
1528 |
-- FilldirInfo *info = buf; |
1529 |
-- |
1530 |
-- /* Specify DT_LNK regardless */ |
1531 |
-- return info->filldir(info->dirent, name, namelen, offset, ino, DT_LNK); |
1532 |
--} |
1533 |
-- |
1534 |
-- |
1535 |
- /* File operations */ |
1536 |
- |
1537 |
- /* |
1538 |
|
1539 |
diff --git a/app-emulation/vmware-modules/files/271-3.13-00-vmnet.patch b/app-emulation/vmware-modules/files/271-3.13-00-vmnet.patch |
1540 |
deleted file mode 100644 |
1541 |
index 1bf22077b72..00000000000 |
1542 |
--- a/app-emulation/vmware-modules/files/271-3.13-00-vmnet.patch |
1543 |
+++ /dev/null |
1544 |
@@ -1,39 +0,0 @@ |
1545 |
-the new API to get the hooknum |
1546 |
-origionally from http://forums.gentoo.org/viewtopic-t-979802-start-25.html |
1547 |
- |
1548 |
---- work/vmnet-only/filter.c 2013-08-27 20:29:04.000000000 +0100 |
1549 |
-+++ patched/vmnet-only/filter.c 2014-01-26 01:09:05.184893854 +0000 |
1550 |
-@@ -27,6 +27,7 @@ |
1551 |
- #include "compat_module.h" |
1552 |
- #include <linux/mutex.h> |
1553 |
- #include <linux/netdevice.h> |
1554 |
-+#include <linux/version.h> |
1555 |
- #if COMPAT_LINUX_VERSION_CHECK_LT(3, 2, 0) |
1556 |
- # include <linux/module.h> |
1557 |
- #else |
1558 |
-@@ -203,7 +204,11 @@ |
1559 |
- #endif |
1560 |
- |
1561 |
- static unsigned int |
1562 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) |
1563 |
- VNetFilterHookFn(unsigned int hooknum, // IN: |
1564 |
-+#else |
1565 |
-+VNetFilterHookFn(const struct nf_hook_ops *ops, // IN: |
1566 |
-+#endif |
1567 |
- #ifdef VMW_NFHOOK_USES_SKB |
1568 |
- struct sk_buff *skb, // IN: |
1569 |
- #else |
1570 |
-@@ -252,7 +257,12 @@ |
1571 |
- |
1572 |
- /* When the host transmits, hooknum is VMW_NF_INET_POST_ROUTING. */ |
1573 |
- /* When the host receives, hooknum is VMW_NF_INET_LOCAL_IN. */ |
1574 |
-- transmit = (hooknum == VMW_NF_INET_POST_ROUTING); |
1575 |
-+ |
1576 |
-+ #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) |
1577 |
-+ transmit = (hooknum == VMW_NF_INET_POST_ROUTING); |
1578 |
-+ #else |
1579 |
-+ transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING); |
1580 |
-+ #endif |
1581 |
- |
1582 |
- packetHeader = compat_skb_network_header(skb); |
1583 |
- ip = (struct iphdr*)packetHeader; |
1584 |
|
1585 |
diff --git a/app-emulation/vmware-modules/files/271-3.15-00-readlink.patch b/app-emulation/vmware-modules/files/271-3.15-00-readlink.patch |
1586 |
deleted file mode 100644 |
1587 |
index b8ee0782202..00000000000 |
1588 |
--- a/app-emulation/vmware-modules/files/271-3.15-00-readlink.patch |
1589 |
+++ /dev/null |
1590 |
@@ -1,15 +0,0 @@ |
1591 |
-replacing usage of vfs_readlink with new readlink_copy API |
1592 |
-see: http://permalink.gmane.org/gmane.linux.kernel.commits.head/445090 |
1593 |
- |
1594 |
-diff -rupN vmblock-only/linux/inode.c vmblock-only/linux/inode.c |
1595 |
---- vmblock-only/linux/inode.c 2014-10-05 23:20:14.545218357 -0400 |
1596 |
-+++ vmblock-only/linux/inode.c 2014-10-05 23:33:01.549259933 -0400 |
1597 |
-@@ -178,7 +178,7 @@ InodeOpReadlink(struct dentry *dentry, |
1598 |
- return -EINVAL; |
1599 |
- } |
1600 |
- |
1601 |
-- return vfs_readlink(dentry, buffer, buflen, iinfo->name); |
1602 |
-+ return readlink_copy(buffer, buflen, iinfo->name); |
1603 |
- } |
1604 |
- |
1605 |
- |
1606 |
|
1607 |
diff --git a/app-emulation/vmware-modules/files/271-3.15-01-vsock.patch b/app-emulation/vmware-modules/files/271-3.15-01-vsock.patch |
1608 |
deleted file mode 100644 |
1609 |
index 9e8d9d1a32f..00000000000 |
1610 |
--- a/app-emulation/vmware-modules/files/271-3.15-01-vsock.patch |
1611 |
+++ /dev/null |
1612 |
@@ -1,46 +0,0 @@ |
1613 |
-removing the no longer existing second parameter to sk_data_ready |
1614 |
-doesn't seem it ever served a purpose. |
1615 |
- |
1616 |
-diff -rupN vsock-only/linux/notify.c vsock-only.new/linux/notify.c |
1617 |
---- vsock-only/linux/notify.c 2013-11-05 23:33:27.000000000 -0500 |
1618 |
-+++ vsock-only.new/linux/notify.c 2014-10-05 23:46:47.943304728 -0400 |
1619 |
-@@ -515,8 +515,11 @@ VSockVmciHandleWrote(struct sock *sk, |
1620 |
- vsk = vsock_sk(sk); |
1621 |
- PKT_FIELD(vsk, sentWaitingRead) = FALSE; |
1622 |
- #endif |
1623 |
-- |
1624 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
1625 |
-+ sk->sk_data_ready(sk); |
1626 |
-+#else |
1627 |
- sk->sk_data_ready(sk, 0); |
1628 |
-+#endif |
1629 |
- } |
1630 |
- |
1631 |
- |
1632 |
-diff -rupN vsock-only/linux/notifyQState.c vsock-only.new/linux/notifyQState.c |
1633 |
---- vsock-only/linux/notifyQState.c 2013-11-05 23:33:27.000000000 -0500 |
1634 |
-+++ vsock-only.new/linux/notifyQState.c 2014-10-05 23:46:33.231303931 -0400 |
1635 |
-@@ -164,7 +164,11 @@ VSockVmciHandleWrote(struct sock *sk, |
1636 |
- struct sockaddr_vm *dst, // IN: unused |
1637 |
- struct sockaddr_vm *src) // IN: unused |
1638 |
- { |
1639 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
1640 |
-+ sk->sk_data_ready(sk); |
1641 |
-+#else |
1642 |
- sk->sk_data_ready(sk, 0); |
1643 |
-+#endif |
1644 |
- } |
1645 |
- |
1646 |
- |
1647 |
-@@ -566,7 +570,11 @@ VSockVmciNotifyPktRecvPostDequeue(struct |
1648 |
- } |
1649 |
- |
1650 |
- /* See the comment in VSockVmciNotifyPktSendPostEnqueue */ |
1651 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
1652 |
-+ sk->sk_data_ready(sk); |
1653 |
-+#else |
1654 |
- sk->sk_data_ready(sk, 0); |
1655 |
-+#endif |
1656 |
- } |
1657 |
- |
1658 |
- return err; |
1659 |
|
1660 |
diff --git a/app-emulation/vmware-modules/files/271-3.17-00-netdev.patch b/app-emulation/vmware-modules/files/271-3.17-00-netdev.patch |
1661 |
deleted file mode 100644 |
1662 |
index e3ee3aa0993..00000000000 |
1663 |
--- a/app-emulation/vmware-modules/files/271-3.17-00-netdev.patch |
1664 |
+++ /dev/null |
1665 |
@@ -1,16 +0,0 @@ |
1666 |
-new alloc_netdev requires a new parameter. All examples in the kernel i've seen just |
1667 |
-use the constant NET_NAME_UNKNOWN. |
1668 |
-origionally from: https://communities.vmware.com/message/2425189 |
1669 |
- |
1670 |
-diff -rupN vmnet-only/netif.c vmnet-only.new/netif.c |
1671 |
---- vmnet-only/netif.c 2013-11-06 00:40:52.000000000 -0500 |
1672 |
-+++ vmnet-only.new/netif.c 2014-10-09 17:29:12.361307961 -0400 |
1673 |
-@@ -149,7 +149,7 @@ VNetNetIf_Create(char *devName, // IN: |
1674 |
- memcpy(deviceName, devName, sizeof deviceName); |
1675 |
- NULL_TERMINATE_STRING(deviceName); |
1676 |
- |
1677 |
-- dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup); |
1678 |
-+ dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_USER, VNetNetIfSetup); |
1679 |
- if (!dev) { |
1680 |
- retval = -ENOMEM; |
1681 |
- goto out; |
1682 |
|
1683 |
diff --git a/app-emulation/vmware-modules/files/271-3.19-00-vmnet-warning.patch b/app-emulation/vmware-modules/files/271-3.19-00-vmnet-warning.patch |
1684 |
deleted file mode 100644 |
1685 |
index b4d30c97a59..00000000000 |
1686 |
--- a/app-emulation/vmware-modules/files/271-3.19-00-vmnet-warning.patch |
1687 |
+++ /dev/null |
1688 |
@@ -1,13 +0,0 @@ |
1689 |
-diff -rupN vmnet-only/vm_device_version.h vmnet-only.new/vm_device_version.h |
1690 |
---- vmnet-only/vm_device_version.h 2013-11-06 00:40:52.000000000 -0500 |
1691 |
-+++ vmnet-only.new/vm_device_version.h 2015-05-05 12:03:06.879202223 -0400 |
1692 |
-@@ -53,7 +53,9 @@ |
1693 |
- * VMware HD Audio codec |
1694 |
- * VMware HD Audio controller |
1695 |
- */ |
1696 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) |
1697 |
- #define PCI_VENDOR_ID_VMWARE 0x15AD |
1698 |
-+#endif |
1699 |
- #define PCI_DEVICE_ID_VMWARE_SVGA2 0x0405 |
1700 |
- #define PCI_DEVICE_ID_VMWARE_SVGA 0x0710 |
1701 |
- #define PCI_DEVICE_ID_VMWARE_NET 0x0720 |
1702 |
|
1703 |
diff --git a/app-emulation/vmware-modules/files/271-3.19-01-vmblock-path.patch b/app-emulation/vmware-modules/files/271-3.19-01-vmblock-path.patch |
1704 |
deleted file mode 100644 |
1705 |
index 178d1478ae5..00000000000 |
1706 |
--- a/app-emulation/vmware-modules/files/271-3.19-01-vmblock-path.patch |
1707 |
+++ /dev/null |
1708 |
@@ -1,67 +0,0 @@ |
1709 |
-Sources: |
1710 |
-https://531682.bugs.gentoo.org/attachment.cgi?id=396484 |
1711 |
-https://531682.bugs.gentoo.org/attachment.cgi?id=396482 |
1712 |
-diff -rupN vmblock-only.orig/linux/dentry.c vmblock-only/linux/dentry.c |
1713 |
---- vmblock-only.orig/linux/dentry.c 2015-02-14 18:05:46.000000000 -0500 |
1714 |
-+++ vmblock-only/linux/dentry.c 2015-02-14 18:09:59.000000000 -0500 |
1715 |
-@@ -63,7 +63,7 @@ DentryOpRevalidate(struct dentry *dentry |
1716 |
- unsigned int flags) // IN: lookup flags & intent |
1717 |
- { |
1718 |
- VMBlockInodeInfo *iinfo; |
1719 |
-- struct nameidata actualNd; |
1720 |
-+ struct path actualNd; |
1721 |
- struct dentry *actualDentry; |
1722 |
- int ret; |
1723 |
- |
1724 |
-diff -rupN vmblock-only.orig/linux/filesystem.c vmblock-only/linux/filesystem.c |
1725 |
---- vmblock-only.orig/linux/filesystem.c 2014-11-20 19:29:15.000000000 -0500 |
1726 |
-+++ vmblock-only/linux/filesystem.c 2015-02-14 18:10:49.000000000 -0500 |
1727 |
-@@ -322,7 +322,7 @@ Iget(struct super_block *sb, // IN: f |
1728 |
- { |
1729 |
- VMBlockInodeInfo *iinfo; |
1730 |
- struct inode *inode; |
1731 |
-- struct nameidata actualNd; |
1732 |
-+ struct path actualNd; |
1733 |
- |
1734 |
- ASSERT(sb); |
1735 |
- |
1736 |
-diff -rupN vmblock-only.orig/shared/compat_namei.h vmblock-only/shared/compat_namei.h |
1737 |
---- vmblock-only.orig/shared/compat_namei.h 2014-11-20 19:29:15.000000000 -0500 |
1738 |
-+++ vmblock-only/shared/compat_namei.h 2015-02-14 18:08:38.000000000 -0500 |
1739 |
-@@ -26,21 +26,21 @@ |
1740 |
- * struct. They were both replaced with a struct path. |
1741 |
- */ |
1742 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
1743 |
--#define compat_vmw_nd_to_dentry(nd) (nd).path.dentry |
1744 |
-+#define compat_vmw_nd_to_dentry(nd) (nd).dentry |
1745 |
- #else |
1746 |
- #define compat_vmw_nd_to_dentry(nd) (nd).dentry |
1747 |
- #endif |
1748 |
- |
1749 |
- /* In 2.6.25-rc2, path_release(&nd) was replaced with path_put(&nd.path). */ |
1750 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
1751 |
--#define compat_path_release(nd) path_put(&(nd)->path) |
1752 |
-+#define compat_path_release(nd) path_put(nd) |
1753 |
- #else |
1754 |
- #define compat_path_release(nd) path_release(nd) |
1755 |
- #endif |
1756 |
- |
1757 |
- /* path_lookup was removed in 2.6.39 merge window VFS merge */ |
1758 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) |
1759 |
--#define compat_path_lookup(name, flags, nd) kern_path(name, flags, &((nd)->path)) |
1760 |
-+#define compat_path_lookup(name, flags, nd) kern_path(name, flags, nd) |
1761 |
- #else |
1762 |
- #define compat_path_lookup(name, flags, nd) path_lookup(name, flags, nd) |
1763 |
- #endif |
1764 |
-diff -u vmblock-only.orig/linux/file.c vmblock-only/linux/file.c |
1765 |
---- vmblock-only.orig/linux/file.c 2015-02-11 12:18:29.000000000 -0500 |
1766 |
-+++ vmblock-only/linux/file.c 2015-02-11 12:41:41.000000000 -0500 |
1767 |
-@@ -92,7 +92,7 @@ |
1768 |
- * and that would try to acquire the inode's semaphore; if the two inodes |
1769 |
- * are the same we'll deadlock. |
1770 |
- */ |
1771 |
-- if (actualFile->f_dentry && inode == actualFile->f_dentry->d_inode) { |
1772 |
-+ if (actualFile->f_path.dentry && inode == actualFile->f_path.dentry->d_inode) { |
1773 |
- Warning("FileOpOpen: identical inode encountered, open cannot succeed.\n"); |
1774 |
- if (filp_close(actualFile, current->files) < 0) { |
1775 |
- Warning("FileOpOpen: unable to close opened file.\n"); |
1776 |
|
1777 |
diff --git a/app-emulation/vmware-modules/files/271-3.19-02-vmci.patch b/app-emulation/vmware-modules/files/271-3.19-02-vmci.patch |
1778 |
deleted file mode 100644 |
1779 |
index a8ec2b11daf..00000000000 |
1780 |
--- a/app-emulation/vmware-modules/files/271-3.19-02-vmci.patch |
1781 |
+++ /dev/null |
1782 |
@@ -1,29 +0,0 @@ |
1783 |
-diff -rupN vmci-only/linux/vmciKernelIf.c vmci-only.new/linux/vmciKernelIf.c |
1784 |
---- vmci-only/linux/vmciKernelIf.c 2015-05-05 11:22:55.276071501 -0400 |
1785 |
-+++ vmci-only.new/linux/vmciKernelIf.c 2015-05-05 11:23:58.912074950 -0400 |
1786 |
-@@ -40,6 +40,7 @@ |
1787 |
- #include <linux/socket.h> /* For memcpy_{to,from}iovec(). */ |
1788 |
- #include <linux/vmalloc.h> |
1789 |
- #include <linux/wait.h> |
1790 |
-+#include <linux/skbuff.h> |
1791 |
- |
1792 |
- #include "compat_highmem.h" |
1793 |
- #include "compat_interrupt.h" |
1794 |
-diff -rupN vmci-only/linux/vmciKernelIf.c vmci-only.new/linux/vmciKernelIf.c |
1795 |
---- vmci-only/linux/vmciKernelIf.c 2013-11-05 23:33:26.000000000 -0500 |
1796 |
-+++ vmci-only.new/linux/vmciKernelIf.c 2015-05-05 11:21:59.929068500 -0400 |
1797 |
-@@ -1246,11 +1246,11 @@ __VMCIMemcpyFromQueue(void *dest, |
1798 |
- } |
1799 |
- |
1800 |
- if (isIovec) { |
1801 |
-- struct iovec *iov = (struct iovec *)dest; |
1802 |
-+ struct msghdr *msg = dest; |
1803 |
- int err; |
1804 |
- |
1805 |
- /* The iovec will track bytesCopied internally. */ |
1806 |
-- err = memcpy_toiovec(iov, (uint8 *)va + pageOffset, toCopy); |
1807 |
-+ err = memcpy_to_msg(msg, (uint8 *)va + pageOffset, toCopy); |
1808 |
- if (err != 0) { |
1809 |
- kunmap(kernelIf->page[pageIndex]); |
1810 |
- return VMCI_ERROR_INVALID_ARGS; |
1811 |
- |
1812 |
|
1813 |
diff --git a/app-emulation/vmware-modules/files/271-3.19-03-vmnet.patch b/app-emulation/vmware-modules/files/271-3.19-03-vmnet.patch |
1814 |
deleted file mode 100644 |
1815 |
index 041bfb6a621..00000000000 |
1816 |
--- a/app-emulation/vmware-modules/files/271-3.19-03-vmnet.patch |
1817 |
+++ /dev/null |
1818 |
@@ -1,29 +0,0 @@ |
1819 |
-diff -ur vmnet-only.orig/driver.c vmnet-only/driver.c |
1820 |
---- vmnet-only.orig/driver.c 2014-06-13 02:38:25.000000000 +0200 |
1821 |
-+++ vmnet-only/driver.c 2015-02-21 17:31:22.630656305 +0100 |
1822 |
-@@ -1236,8 +1236,8 @@ |
1823 |
- struct inode *inode = NULL; |
1824 |
- long err; |
1825 |
- |
1826 |
-- if (filp && filp->f_dentry) { |
1827 |
-- inode = filp->f_dentry->d_inode; |
1828 |
-+ if (filp && filp->f_path.dentry) { |
1829 |
-+ inode = filp->f_path.dentry->d_inode; |
1830 |
- } |
1831 |
- err = VNetFileOpIoctl(inode, filp, iocmd, ioarg); |
1832 |
- return err; |
1833 |
-diff -ur vmnet-only.orig/userif.c vmnet-only/userif.c |
1834 |
---- vmnet-only.orig/userif.c 2014-06-13 02:38:25.000000000 +0200 |
1835 |
-+++ vmnet-only/userif.c 2015-02-21 17:37:46.154589854 +0100 |
1836 |
-@@ -523,7 +523,10 @@ |
1837 |
- .iov_base = buf, |
1838 |
- .iov_len = len, |
1839 |
- }; |
1840 |
-- return skb_copy_datagram_iovec(skb, 0, &iov, len); |
1841 |
-+ struct iov_iter to; |
1842 |
-+ |
1843 |
-+ iov_iter_init(&to, READ, &iov, 1, len); |
1844 |
-+ return skb_copy_datagram_iter(skb, 0, &to, len); |
1845 |
- } |
1846 |
- |
1847 |
- |
1848 |
|
1849 |
diff --git a/app-emulation/vmware-modules/files/271-3.19-04-vsock.patch b/app-emulation/vmware-modules/files/271-3.19-04-vsock.patch |
1850 |
deleted file mode 100644 |
1851 |
index 8c9d3cb6dfe..00000000000 |
1852 |
--- a/app-emulation/vmware-modules/files/271-3.19-04-vsock.patch |
1853 |
+++ /dev/null |
1854 |
@@ -1,12 +0,0 @@ |
1855 |
-diff -rupN vsock-only/linux/af_vsock.c vsock-only.new/linux/af_vsock.c |
1856 |
---- vsock-only/linux/af_vsock.c 2015-05-05 11:26:05.145081792 -0400 |
1857 |
-+++ vsock-only.new/linux/af_vsock.c 2015-05-05 11:30:54.304097466 -0400 |
1858 |
-@@ -4266,7 +4266,7 @@ VSockVmciDgramSendmsg(struct kiocb *kioc |
1859 |
- goto out; |
1860 |
- } |
1861 |
- |
1862 |
-- memcpy_fromiovec(VMCI_DG_PAYLOAD(dg), msg->msg_iov, len); |
1863 |
-+ memcpy_from_msg(VMCI_DG_PAYLOAD(dg), msg, len); |
1864 |
- |
1865 |
- dg->dst = VMCI_MAKE_HANDLE(remoteAddr->svm_cid, remoteAddr->svm_port); |
1866 |
- dg->src = VMCI_MAKE_HANDLE(vsk->localAddr.svm_cid, vsk->localAddr.svm_port); |
1867 |
|
1868 |
diff --git a/app-emulation/vmware-modules/files/271-3.19-05-vsock.patch b/app-emulation/vmware-modules/files/271-3.19-05-vsock.patch |
1869 |
deleted file mode 100644 |
1870 |
index 2e412301d09..00000000000 |
1871 |
--- a/app-emulation/vmware-modules/files/271-3.19-05-vsock.patch |
1872 |
+++ /dev/null |
1873 |
@@ -1,15 +0,0 @@ |
1874 |
-diff -rupN vsock-only/linux/af_vsock.c vsock-only.new/linux/af_vsock.c |
1875 |
---- vsock-only/linux/af_vsock.c 2015-05-05 11:31:35.710099711 -0400 |
1876 |
-+++ vsock-only.new/linux/af_vsock.c 2015-05-05 11:36:33.260115840 -0400 |
1877 |
-@@ -4727,7 +4727,11 @@ VSockVmciDgramRecvmsg(struct kiocb *kioc |
1878 |
- } |
1879 |
- |
1880 |
- /* Place the datagram payload in the user's iovec. */ |
1881 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) |
1882 |
- err = skb_copy_datagram_iovec(skb, sizeof *dg, msg->msg_iov, payloadLen); |
1883 |
-+#else |
1884 |
-+ err = skb_copy_datagram_iter(skb, sizeof *dg, &msg->msg_iter, payloadLen); |
1885 |
-+#endif |
1886 |
- if (err) { |
1887 |
- goto out; |
1888 |
- } |
1889 |
|
1890 |
diff --git a/app-emulation/vmware-modules/files/271-3.19-06-vmci_qpair.patch b/app-emulation/vmware-modules/files/271-3.19-06-vmci_qpair.patch |
1891 |
deleted file mode 100644 |
1892 |
index 1849a378456..00000000000 |
1893 |
--- a/app-emulation/vmware-modules/files/271-3.19-06-vmci_qpair.patch |
1894 |
+++ /dev/null |
1895 |
@@ -1,24 +0,0 @@ |
1896 |
-diff -rupN vsock-only.old/linux/af_vsock.c vsock-only/linux/af_vsock.c |
1897 |
---- vsock-only.old/linux/af_vsock.c 2015-05-06 20:41:47.684046762 -0400 |
1898 |
-+++ vsock-only/linux/af_vsock.c 2015-05-06 20:52:15.245080779 -0400 |
1899 |
-@@ -4629,7 +4629,7 @@ VSockVmciStreamSendmsg(struct kiocb *kio |
1900 |
- * able to send. |
1901 |
- */ |
1902 |
- |
1903 |
-- written = vmci_qpair_enquev(vsk->qpair, msg->msg_iov, |
1904 |
-+ written = vmci_qpair_enquev(vsk->qpair, &msg->msg_iter.iov, |
1905 |
- len - totalWritten, 0); |
1906 |
- if (written < 0) { |
1907 |
- err = -ENOMEM; |
1908 |
-@@ -4874,9 +4874,9 @@ VSockVmciStreamRecvmsg(struct kiocb *kio |
1909 |
- } |
1910 |
- |
1911 |
- if (flags & MSG_PEEK) { |
1912 |
-- read = vmci_qpair_peekv(vsk->qpair, msg->msg_iov, len - copied, 0); |
1913 |
-+ read = vmci_qpair_peekv(vsk->qpair, &msg->msg_iter.iov, len - copied, 0); |
1914 |
- } else { |
1915 |
-- read = vmci_qpair_dequev(vsk->qpair, msg->msg_iov, len - copied, 0); |
1916 |
-+ read = vmci_qpair_dequev(vsk->qpair, &msg->msg_iter.iov, len - copied, 0); |
1917 |
- } |
1918 |
- |
1919 |
- if (read < 0) { |
1920 |
|
1921 |
diff --git a/app-emulation/vmware-modules/files/271-apic.patch b/app-emulation/vmware-modules/files/271-apic.patch |
1922 |
deleted file mode 100644 |
1923 |
index 66cd4593324..00000000000 |
1924 |
--- a/app-emulation/vmware-modules/files/271-apic.patch |
1925 |
+++ /dev/null |
1926 |
@@ -1,12 +0,0 @@ |
1927 |
-diff --git a/vmmon-only/linux/hostif.c b/vmmon-only/linux/hostif.c |
1928 |
-index f1f4b10..c43242f 100644 |
1929 |
---- a/vmmon-only/linux/hostif.c |
1930 |
-+++ b/vmmon-only/linux/hostif.c |
1931 |
-@@ -55,6 +55,7 @@ |
1932 |
- #include <linux/kthread.h> |
1933 |
- #include <linux/wait.h> |
1934 |
- |
1935 |
-+#include <asm/apic.h> |
1936 |
- |
1937 |
- #include "vmware.h" |
1938 |
- #include "x86apic.h" |
1939 |
|
1940 |
diff --git a/app-emulation/vmware-modules/files/271-filldir.patch b/app-emulation/vmware-modules/files/271-filldir.patch |
1941 |
deleted file mode 100644 |
1942 |
index 6eb1f315cd9..00000000000 |
1943 |
--- a/app-emulation/vmware-modules/files/271-filldir.patch |
1944 |
+++ /dev/null |
1945 |
@@ -1,91 +0,0 @@ |
1946 |
-diff --git a/vmblock-only/linux/file.c b/vmblock-only/linux/file.c |
1947 |
-index d7ac1f6..5499169 100644 |
1948 |
---- a/vmblock-only/linux/file.c |
1949 |
-+++ b/vmblock-only/linux/file.c |
1950 |
-@@ -38,46 +38,6 @@ typedef u64 inode_num_t; |
1951 |
- typedef ino_t inode_num_t; |
1952 |
- #endif |
1953 |
- |
1954 |
--/* Specifically for our filldir_t callback */ |
1955 |
--typedef struct FilldirInfo { |
1956 |
-- filldir_t filldir; |
1957 |
-- void *dirent; |
1958 |
--} FilldirInfo; |
1959 |
-- |
1960 |
-- |
1961 |
--/* |
1962 |
-- *---------------------------------------------------------------------------- |
1963 |
-- * |
1964 |
-- * Filldir -- |
1965 |
-- * |
1966 |
-- * Callback function for readdir that we use in place of the one provided. |
1967 |
-- * This allows us to specify that each dentry is a symlink, but pass through |
1968 |
-- * everything else to the original filldir function. |
1969 |
-- * |
1970 |
-- * Results: |
1971 |
-- * Original filldir's return value. |
1972 |
-- * |
1973 |
-- * Side effects: |
1974 |
-- * Directory information gets copied to user's buffer. |
1975 |
-- * |
1976 |
-- *---------------------------------------------------------------------------- |
1977 |
-- */ |
1978 |
-- |
1979 |
--static int |
1980 |
--Filldir(void *buf, // IN: Dirent buffer passed from FileOpReaddir |
1981 |
-- const char *name, // IN: Dirent name |
1982 |
-- int namelen, // IN: len of dirent's name |
1983 |
-- loff_t offset, // IN: Offset |
1984 |
-- inode_num_t ino, // IN: Inode number of dirent |
1985 |
-- unsigned int d_type) // IN: Type of file |
1986 |
--{ |
1987 |
-- FilldirInfo *info = buf; |
1988 |
-- |
1989 |
-- /* Specify DT_LNK regardless */ |
1990 |
-- return info->filldir(info->dirent, name, namelen, offset, ino, DT_LNK); |
1991 |
--} |
1992 |
-- |
1993 |
-- |
1994 |
- /* File operations */ |
1995 |
- |
1996 |
- /* |
1997 |
-@@ -166,11 +126,10 @@ FileOpOpen(struct inode *inode, // IN |
1998 |
- |
1999 |
- static int |
2000 |
- FileOpReaddir(struct file *file, // IN |
2001 |
-- void *dirent, // IN |
2002 |
-- filldir_t filldir) // IN |
2003 |
-+ struct dir_context *ctx) // IN |
2004 |
- { |
2005 |
- int ret; |
2006 |
-- FilldirInfo info; |
2007 |
-+ |
2008 |
- struct file *actualFile; |
2009 |
- |
2010 |
- if (!file) { |
2011 |
-@@ -184,12 +143,10 @@ FileOpReaddir(struct file *file, // IN |
2012 |
- return -EINVAL; |
2013 |
- } |
2014 |
- |
2015 |
-- info.filldir = filldir; |
2016 |
-- info.dirent = dirent; |
2017 |
-- |
2018 |
-- actualFile->f_pos = file->f_pos; |
2019 |
-- ret = vfs_readdir(actualFile, Filldir, &info); |
2020 |
-- file->f_pos = actualFile->f_pos; |
2021 |
-+ /* Ricky Wong Yung Fei: |
2022 |
-+ * Manipulation of pos is now handled internally by iterate_dir(). |
2023 |
-+ */ |
2024 |
-+ ret = iterate_dir(actualFile, ctx); |
2025 |
- |
2026 |
- return ret; |
2027 |
- } |
2028 |
-@@ -237,7 +194,7 @@ FileOpRelease(struct inode *inode, // IN |
2029 |
- |
2030 |
- |
2031 |
- struct file_operations RootFileOps = { |
2032 |
-- .readdir = FileOpReaddir, |
2033 |
-+ .iterate = FileOpReaddir, |
2034 |
- .open = FileOpOpen, |
2035 |
- .release = FileOpRelease, |
2036 |
- }; |
2037 |
|
2038 |
diff --git a/app-emulation/vmware-modules/files/271-hardened.patch b/app-emulation/vmware-modules/files/271-hardened.patch |
2039 |
deleted file mode 100644 |
2040 |
index ea1b0f30075..00000000000 |
2041 |
--- a/app-emulation/vmware-modules/files/271-hardened.patch |
2042 |
+++ /dev/null |
2043 |
@@ -1,170 +0,0 @@ |
2044 |
-diff --git a/vmci-only/linux/driver.c b/vmci-only/linux/driver.c |
2045 |
-index 921f25c..41a39e3 100644 |
2046 |
---- a/vmci-only/linux/driver.c |
2047 |
-+++ b/vmci-only/linux/driver.c |
2048 |
-@@ -241,7 +241,24 @@ static unsigned int LinuxDriverPoll(struct file *file, poll_table *wait); |
2049 |
- #define LinuxDriverUnlockIoctlPerFD(mutex) do {} while (0) |
2050 |
- #endif |
2051 |
- |
2052 |
--static struct file_operations vmuser_fops; |
2053 |
-+/* |
2054 |
-+ * Moved file operations initialize here because of incompatibilites |
2055 |
-+ * with Gentoo hardened profile/hardend Linux 3. |
2056 |
-+ */ |
2057 |
-+static struct file_operations vmuser_fops = { |
2058 |
-+ .owner = THIS_MODULE, |
2059 |
-+ .poll = LinuxDriverPoll, |
2060 |
-+#ifdef HAVE_UNLOCKED_IOCTL |
2061 |
-+ .unlocked_ioctl = LinuxDriver_UnlockedIoctl, |
2062 |
-+#else |
2063 |
-+ .ioctl = LinuxDriver_Ioctl, |
2064 |
-+#endif |
2065 |
-+#ifdef HAVE_COMPAT_IOCTL |
2066 |
-+ .compat_ioctl = LinuxDriver_UnlockedIoctl, |
2067 |
-+#endif |
2068 |
-+ .open = LinuxDriver_Open, |
2069 |
-+ .release = LinuxDriver_Close |
2070 |
-+}; |
2071 |
- |
2072 |
- |
2073 |
- /* |
2074 |
-@@ -378,26 +395,6 @@ vmci_host_init(void) |
2075 |
- return -ENOMEM; |
2076 |
- } |
2077 |
- |
2078 |
-- /* |
2079 |
-- * Initialize the file_operations structure. Because this code is always |
2080 |
-- * compiled as a module, this is fine to do it here and not in a static |
2081 |
-- * initializer. |
2082 |
-- */ |
2083 |
-- |
2084 |
-- memset(&vmuser_fops, 0, sizeof vmuser_fops); |
2085 |
-- vmuser_fops.owner = THIS_MODULE; |
2086 |
-- vmuser_fops.poll = LinuxDriverPoll; |
2087 |
--#ifdef HAVE_UNLOCKED_IOCTL |
2088 |
-- vmuser_fops.unlocked_ioctl = LinuxDriver_UnlockedIoctl; |
2089 |
--#else |
2090 |
-- vmuser_fops.ioctl = LinuxDriver_Ioctl; |
2091 |
--#endif |
2092 |
--#ifdef HAVE_COMPAT_IOCTL |
2093 |
-- vmuser_fops.compat_ioctl = LinuxDriver_UnlockedIoctl; |
2094 |
--#endif |
2095 |
-- vmuser_fops.open = LinuxDriver_Open; |
2096 |
-- vmuser_fops.release = LinuxDriver_Close; |
2097 |
-- |
2098 |
- sprintf(linuxState.deviceName, "vmci"); |
2099 |
- linuxState.major = 10; |
2100 |
- linuxState.misc.minor = MISC_DYNAMIC_MINOR; |
2101 |
-diff --git a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c |
2102 |
-index b21dd44..960c2aa 100644 |
2103 |
---- a/vmmon-only/linux/driver.c |
2104 |
-+++ b/vmmon-only/linux/driver.c |
2105 |
-@@ -178,7 +178,22 @@ static struct vm_operations_struct vmuser_mops = { |
2106 |
- #endif |
2107 |
- }; |
2108 |
- |
2109 |
--static struct file_operations vmuser_fops; |
2110 |
-+static struct file_operations vmuser_fops = { |
2111 |
-+ .owner = THIS_MODULE, |
2112 |
-+ .poll = LinuxDriverPoll, |
2113 |
-+#ifdef HAVE_UNLOCKED_IOCTL |
2114 |
-+ .unlocked_ioctl = LinuxDriver_UnlockedIoctl, |
2115 |
-+#else |
2116 |
-+ .ioctl = LinuxDriver_Ioctl, |
2117 |
-+#endif |
2118 |
-+#ifdef HAVE_COMPAT_IOCTL |
2119 |
-+ .compat_ioctl = LinuxDriver_UnlockedIoctl, |
2120 |
-+#endif |
2121 |
-+ .open = LinuxDriver_Open, |
2122 |
-+ .release = LinuxDriver_Close, |
2123 |
-+ .mmap = LinuxDriverMmap |
2124 |
-+}; |
2125 |
-+ |
2126 |
- static struct timer_list tscTimer; |
2127 |
- |
2128 |
- /* |
2129 |
-@@ -357,27 +372,6 @@ init_module(void) |
2130 |
- spin_lock_init(&linuxState.pollListLock); |
2131 |
- #endif |
2132 |
- |
2133 |
-- /* |
2134 |
-- * Initialize the file_operations structure. Because this code is always |
2135 |
-- * compiled as a module, this is fine to do it here and not in a static |
2136 |
-- * initializer. |
2137 |
-- */ |
2138 |
-- |
2139 |
-- memset(&vmuser_fops, 0, sizeof vmuser_fops); |
2140 |
-- vmuser_fops.owner = THIS_MODULE; |
2141 |
-- vmuser_fops.poll = LinuxDriverPoll; |
2142 |
--#ifdef HAVE_UNLOCKED_IOCTL |
2143 |
-- vmuser_fops.unlocked_ioctl = LinuxDriver_UnlockedIoctl; |
2144 |
--#else |
2145 |
-- vmuser_fops.ioctl = LinuxDriver_Ioctl; |
2146 |
--#endif |
2147 |
--#ifdef HAVE_COMPAT_IOCTL |
2148 |
-- vmuser_fops.compat_ioctl = LinuxDriver_UnlockedIoctl; |
2149 |
--#endif |
2150 |
-- vmuser_fops.open = LinuxDriver_Open; |
2151 |
-- vmuser_fops.release = LinuxDriver_Close; |
2152 |
-- vmuser_fops.mmap = LinuxDriverMmap; |
2153 |
-- |
2154 |
- #ifdef VMX86_DEVEL |
2155 |
- devel_init_module(); |
2156 |
- linuxState.minor = 0; |
2157 |
-diff --git a/vmnet-only/driver.c b/vmnet-only/driver.c |
2158 |
-index b12b982..40bd4cf 100644 |
2159 |
---- a/vmnet-only/driver.c |
2160 |
-+++ b/vmnet-only/driver.c |
2161 |
-@@ -165,7 +165,22 @@ static long VNetFileOpUnlockedIoctl(struct file * filp, |
2162 |
- unsigned int iocmd, unsigned long ioarg); |
2163 |
- #endif |
2164 |
- |
2165 |
--static struct file_operations vnetFileOps; |
2166 |
-+static struct file_operations vnetFileOps = { |
2167 |
-+ .owner = THIS_MODULE, |
2168 |
-+ .read = VNetFileOpRead, |
2169 |
-+ .write = VNetFileOpWrite, |
2170 |
-+ .poll = VNetFileOpPoll, |
2171 |
-+#ifdef HAVE_UNLOCKED_IOCTL |
2172 |
-+ .unlocked_ioctl = VNetFileOpUnlockedIoctl, |
2173 |
-+#else |
2174 |
-+ .ioctl = VNetFileOpIoctl, |
2175 |
-+#endif |
2176 |
-+#ifdef HAVE_COMPAT_IOCTL |
2177 |
-+ .compat_ioctl = VNetFileOpUnlockedIoctl, |
2178 |
-+#endif |
2179 |
-+ .open = VNetFileOpOpen, |
2180 |
-+ .release = VNetFileOpClose |
2181 |
-+}; |
2182 |
- |
2183 |
- /* |
2184 |
- * Utility functions |
2185 |
-@@ -476,28 +491,6 @@ init_module(void) |
2186 |
- goto err_proto; |
2187 |
- } |
2188 |
- |
2189 |
-- /* |
2190 |
-- * Initialize the file_operations structure. Because this code is always |
2191 |
-- * compiled as a module, this is fine to do it here and not in a static |
2192 |
-- * initializer. |
2193 |
-- */ |
2194 |
-- |
2195 |
-- memset(&vnetFileOps, 0, sizeof vnetFileOps); |
2196 |
-- vnetFileOps.owner = THIS_MODULE; |
2197 |
-- vnetFileOps.read = VNetFileOpRead; |
2198 |
-- vnetFileOps.write = VNetFileOpWrite; |
2199 |
-- vnetFileOps.poll = VNetFileOpPoll; |
2200 |
--#ifdef HAVE_UNLOCKED_IOCTL |
2201 |
-- vnetFileOps.unlocked_ioctl = VNetFileOpUnlockedIoctl; |
2202 |
--#else |
2203 |
-- vnetFileOps.ioctl = VNetFileOpIoctl; |
2204 |
--#endif |
2205 |
--#ifdef HAVE_COMPAT_IOCTL |
2206 |
-- vnetFileOps.compat_ioctl = VNetFileOpUnlockedIoctl; |
2207 |
--#endif |
2208 |
-- vnetFileOps.open = VNetFileOpOpen; |
2209 |
-- vnetFileOps.release = VNetFileOpClose; |
2210 |
-- |
2211 |
- retval = register_chrdev(VNET_MAJOR_NUMBER, "vmnet", &vnetFileOps); |
2212 |
- if (retval) { |
2213 |
- LOG(0, (KERN_NOTICE "/dev/vmnet: could not register major device %d\n", |
2214 |
|
2215 |
diff --git a/app-emulation/vmware-modules/files/271-makefile-include.patch b/app-emulation/vmware-modules/files/271-makefile-include.patch |
2216 |
deleted file mode 100644 |
2217 |
index 39c30003080..00000000000 |
2218 |
--- a/app-emulation/vmware-modules/files/271-makefile-include.patch |
2219 |
+++ /dev/null |
2220 |
@@ -1,65 +0,0 @@ |
2221 |
-diff --git a/vmblock-only/Makefile.kernel b/vmblock-only/Makefile.kernel |
2222 |
-index ab7a727..e3ec9d2 100644 |
2223 |
---- a/vmblock-only/Makefile.kernel |
2224 |
-+++ b/vmblock-only/Makefile.kernel |
2225 |
-@@ -19,7 +19,7 @@ |
2226 |
- |
2227 |
- INCLUDE += -I$(SRCROOT)/include |
2228 |
- |
2229 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
2230 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
2231 |
- |
2232 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/cachecreate.c, -DVMW_KMEMCR_HAS_DTOR, ) |
2233 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/cachector.c, -DVMW_KMEMCR_CTOR_HAS_3_ARGS, ) |
2234 |
-diff --git a/vmci-only/Makefile.kernel b/vmci-only/Makefile.kernel |
2235 |
-index ba343ee..861ea83 100644 |
2236 |
---- a/vmci-only/Makefile.kernel |
2237 |
-+++ b/vmci-only/Makefile.kernel |
2238 |
-@@ -21,7 +21,7 @@ CC_OPTS += -DVMCI |
2239 |
- |
2240 |
- INCLUDE += -I$(SRCROOT)/shared -I$(SRCROOT)/common -I$(SRCROOT)/linux |
2241 |
- |
2242 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
2243 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
2244 |
- |
2245 |
- obj-m += $(DRIVER).o |
2246 |
- |
2247 |
-diff --git a/vmmon-only/Makefile.kernel b/vmmon-only/Makefile.kernel |
2248 |
-index 8770d1d..c4746c3 100644 |
2249 |
---- a/vmmon-only/Makefile.kernel |
2250 |
-+++ b/vmmon-only/Makefile.kernel |
2251 |
-@@ -22,7 +22,7 @@ CC_OPTS += -DVMMON -DVMCORE |
2252 |
- INCLUDE := -I$(SRCROOT)/include -I$(SRCROOT)/common -I$(SRCROOT)/linux \ |
2253 |
- -I$(SRCROOT)/vmcore |
2254 |
- |
2255 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
2256 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
2257 |
- |
2258 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/smpcall.c, -DVMW_HAVE_SMP_CALL_3ARG, ) |
2259 |
- |
2260 |
-diff --git a/vmnet-only/Makefile.kernel b/vmnet-only/Makefile.kernel |
2261 |
-index d1e3133..665d428 100644 |
2262 |
---- a/vmnet-only/Makefile.kernel |
2263 |
-+++ b/vmnet-only/Makefile.kernel |
2264 |
-@@ -19,7 +19,7 @@ |
2265 |
- |
2266 |
- INCLUDE := -I$(SRCROOT) |
2267 |
- |
2268 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
2269 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
2270 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/netdev_has_net.c,-DVMW_NETDEV_HAS_NET, ) |
2271 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/netdev_has_dev_net.c,-DVMW_NETDEV_HAS_DEV_NET, ) |
2272 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/nfhook_uses_skb.c,-DVMW_NFHOOK_USES_SKB, ) |
2273 |
-diff --git a/vsock-only/Makefile.kernel b/vsock-only/Makefile.kernel |
2274 |
-index b4629ee..264b8cb 100644 |
2275 |
---- a/vsock-only/Makefile.kernel |
2276 |
-+++ b/vsock-only/Makefile.kernel |
2277 |
-@@ -25,7 +25,7 @@ INCLUDE += -I$(SRCROOT)/include |
2278 |
- INCLUDE += -I$(SRCROOT)/linux |
2279 |
- INCLUDE += -I$(SRCROOT)/common |
2280 |
- |
2281 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
2282 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
2283 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/netcreate_num_params.c, -DVMW_NETCREATE_KERNARG, ) |
2284 |
- |
2285 |
- |
2286 |
|
2287 |
diff --git a/app-emulation/vmware-modules/files/271-makefile-kernel-dir.patch b/app-emulation/vmware-modules/files/271-makefile-kernel-dir.patch |
2288 |
deleted file mode 100644 |
2289 |
index 1a647a3302d..00000000000 |
2290 |
--- a/app-emulation/vmware-modules/files/271-makefile-kernel-dir.patch |
2291 |
+++ /dev/null |
2292 |
@@ -1,85 +0,0 @@ |
2293 |
-diff --git a/vmblock-only/Makefile b/vmblock-only/Makefile |
2294 |
-index 2b81323..746c8b8 100644 |
2295 |
---- a/vmblock-only/Makefile |
2296 |
-+++ b/vmblock-only/Makefile |
2297 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
2298 |
- ifdef LINUXINCLUDE |
2299 |
- HEADER_DIR = $(LINUXINCLUDE) |
2300 |
- else |
2301 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
2302 |
-+HEADER_DIR = $(KERNEL_DIR) |
2303 |
- endif |
2304 |
- |
2305 |
--BUILD_DIR = $(HEADER_DIR)/.. |
2306 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
2307 |
- |
2308 |
- DRIVER := vmblock |
2309 |
- PRODUCT := ws |
2310 |
-diff --git a/vmci-only/Makefile b/vmci-only/Makefile |
2311 |
-index 8e9c5be..6ec828b 100644 |
2312 |
---- a/vmci-only/Makefile |
2313 |
-+++ b/vmci-only/Makefile |
2314 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
2315 |
- ifdef LINUXINCLUDE |
2316 |
- HEADER_DIR = $(LINUXINCLUDE) |
2317 |
- else |
2318 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
2319 |
-+HEADER_DIR = $(KERNEL_DIR) |
2320 |
- endif |
2321 |
- |
2322 |
--BUILD_DIR = $(HEADER_DIR)/.. |
2323 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
2324 |
- |
2325 |
- DRIVER := vmci |
2326 |
- PRODUCT := ws |
2327 |
-diff --git a/vmmon-only/Makefile b/vmmon-only/Makefile |
2328 |
-index 5bd867b..91a83d4 100644 |
2329 |
---- a/vmmon-only/Makefile |
2330 |
-+++ b/vmmon-only/Makefile |
2331 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
2332 |
- ifdef LINUXINCLUDE |
2333 |
- HEADER_DIR = $(LINUXINCLUDE) |
2334 |
- else |
2335 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
2336 |
-+HEADER_DIR = $(KERNEL_DIR) |
2337 |
- endif |
2338 |
- |
2339 |
--BUILD_DIR = $(HEADER_DIR)/.. |
2340 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
2341 |
- |
2342 |
- DRIVER := vmmon |
2343 |
- PRODUCT := @@PRODUCT@@ |
2344 |
-diff --git a/vmnet-only/Makefile b/vmnet-only/Makefile |
2345 |
-index d4eb73c..c7c6d38 100644 |
2346 |
---- a/vmnet-only/Makefile |
2347 |
-+++ b/vmnet-only/Makefile |
2348 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
2349 |
- ifdef LINUXINCLUDE |
2350 |
- HEADER_DIR = $(LINUXINCLUDE) |
2351 |
- else |
2352 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
2353 |
-+HEADER_DIR = $(KERNEL_DIR) |
2354 |
- endif |
2355 |
- |
2356 |
--BUILD_DIR = $(HEADER_DIR)/.. |
2357 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
2358 |
- |
2359 |
- DRIVER := vmnet |
2360 |
- PRODUCT := @@PRODUCT@@ |
2361 |
-diff --git a/vsock-only/Makefile b/vsock-only/Makefile |
2362 |
-index 93dd61d..9765696 100644 |
2363 |
---- a/vsock-only/Makefile |
2364 |
-+++ b/vsock-only/Makefile |
2365 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
2366 |
- ifdef LINUXINCLUDE |
2367 |
- HEADER_DIR = $(LINUXINCLUDE) |
2368 |
- else |
2369 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
2370 |
-+HEADER_DIR = $(KERNEL_DIR) |
2371 |
- endif |
2372 |
- |
2373 |
--BUILD_DIR = $(HEADER_DIR)/.. |
2374 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
2375 |
- |
2376 |
- DRIVER := vsock |
2377 |
- PRODUCT := ws |
2378 |
|
2379 |
diff --git a/app-emulation/vmware-modules/files/271-netdevice.patch b/app-emulation/vmware-modules/files/271-netdevice.patch |
2380 |
deleted file mode 100644 |
2381 |
index 35231a3205e..00000000000 |
2382 |
--- a/app-emulation/vmware-modules/files/271-netdevice.patch |
2383 |
+++ /dev/null |
2384 |
@@ -1,24 +0,0 @@ |
2385 |
-diff --git a/vmnet-only/compat_netdevice.h b/vmnet-only/compat_netdevice.h |
2386 |
-index 7a56304..9ff4548 100644 |
2387 |
---- a/vmnet-only/compat_netdevice.h |
2388 |
-+++ b/vmnet-only/compat_netdevice.h |
2389 |
-@@ -47,6 +47,19 @@ |
2390 |
- # define net_device device |
2391 |
- #endif |
2392 |
- |
2393 |
-+/* it looks like these have been removed from the kernel 3.1 |
2394 |
-+ * probably because the "transition" is considered complete. |
2395 |
-+ * so to keep this source compatible we just redefine them like they were |
2396 |
-+ * previously |
2397 |
-+ */ |
2398 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) |
2399 |
-+#define HAVE_ALLOC_NETDEV /* feature macro: alloc_xxxdev |
2400 |
-+ functions are available. */ |
2401 |
-+#define HAVE_FREE_NETDEV /* free_netdev() */ |
2402 |
-+#define HAVE_NETDEV_PRIV /* netdev_priv() */ |
2403 |
-+#define HAVE_NETIF_QUEUE |
2404 |
-+#define HAVE_NET_DEVICE_OPS |
2405 |
-+#endif |
2406 |
- |
2407 |
- /* |
2408 |
- * SET_MODULE_OWNER appeared sometime during 2.3.x. It was setting |
2409 |
|
2410 |
diff --git a/app-emulation/vmware-modules/files/271-putname.patch b/app-emulation/vmware-modules/files/271-putname.patch |
2411 |
deleted file mode 100644 |
2412 |
index 6e76130fa16..00000000000 |
2413 |
--- a/app-emulation/vmware-modules/files/271-putname.patch |
2414 |
+++ /dev/null |
2415 |
@@ -1,13 +0,0 @@ |
2416 |
-diff --git a/vmblock-only/linux/control.c b/vmblock-only/linux/control.c |
2417 |
-index 79716bd..2dd83fe 100644 |
2418 |
---- a/vmblock-only/linux/control.c |
2419 |
-+++ b/vmblock-only/linux/control.c |
2420 |
-@@ -293,7 +293,7 @@ ExecuteBlockOp(const char __user *buf, // IN: buffer with name |
2421 |
- |
2422 |
- retval = i < 0 ? -EINVAL : blockOp(name, blocker); |
2423 |
- |
2424 |
-- putname(name); |
2425 |
-+ __putname(name); |
2426 |
- |
2427 |
- return retval; |
2428 |
- } |
2429 |
|
2430 |
diff --git a/app-emulation/vmware-modules/files/271-vfsfollowlink.patch b/app-emulation/vmware-modules/files/271-vfsfollowlink.patch |
2431 |
deleted file mode 100644 |
2432 |
index 13f600e39f3..00000000000 |
2433 |
--- a/app-emulation/vmware-modules/files/271-vfsfollowlink.patch |
2434 |
+++ /dev/null |
2435 |
@@ -1,30 +0,0 @@ |
2436 |
-diff -Naur a/linux/inode.c b/linux/inode.c |
2437 |
---- a/vmblock-only/linux/inode.c 2013-10-03 04:29:47.471339204 -0400 |
2438 |
-+++ b/vmblock-only/linux/inode.c 2013-10-03 04:31:56.607334636 -0400 |
2439 |
-@@ -36,7 +36,7 @@ |
2440 |
- |
2441 |
- /* Inode operations */ |
2442 |
- static struct dentry *InodeOpLookup(struct inode *dir, |
2443 |
-- struct dentry *dentry, struct nameidata *nd); |
2444 |
-+ struct dentry *dentry, unsigned int flags); |
2445 |
- static int InodeOpReadlink(struct dentry *dentry, char __user *buffer, int buflen); |
2446 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
2447 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
2448 |
-@@ -75,7 +75,7 @@ |
2449 |
- static struct dentry * |
2450 |
- InodeOpLookup(struct inode *dir, // IN: parent directory's inode |
2451 |
- struct dentry *dentry, // IN: dentry to lookup |
2452 |
-- struct nameidata *nd) // IN: lookup intent and information |
2453 |
-+ unsigned int flags) // IN: lookup intent and information |
2454 |
- { |
2455 |
- char *filename; |
2456 |
- struct inode *inode; |
2457 |
-@@ -221,7 +221,7 @@ |
2458 |
- goto out; |
2459 |
- } |
2460 |
- |
2461 |
-- ret = vfs_follow_link(nd, iinfo->name); |
2462 |
-+ nd_set_link(nd, iinfo->name); |
2463 |
- |
2464 |
- out: |
2465 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
2466 |
|
2467 |
diff --git a/app-emulation/vmware-modules/files/271-vmmon.patch b/app-emulation/vmware-modules/files/271-vmmon.patch |
2468 |
deleted file mode 100644 |
2469 |
index f1979641a4d..00000000000 |
2470 |
--- a/app-emulation/vmware-modules/files/271-vmmon.patch |
2471 |
+++ /dev/null |
2472 |
@@ -1,44 +0,0 @@ |
2473 |
-diff -ru source900/vmmon-only/linux/hostif.c source/vmmon-only/linux/hostif.c |
2474 |
---- source900/vmmon-only/linux/hostif.c 2012-07-23 18:18:55.000000000 +0900 |
2475 |
-+++ source/vmmon-only/linux/hostif.c 2012-08-03 16:20:23.200420885 +0900 |
2476 |
-@@ -48,6 +48,7 @@ |
2477 |
- #include <linux/smp_lock.h> |
2478 |
- #endif |
2479 |
- |
2480 |
-+#include <asm/asm.h> |
2481 |
- #include <asm/io.h> |
2482 |
- #include <asm/uaccess.h> |
2483 |
- #include <linux/mc146818rtc.h> |
2484 |
-@@ -3586,31 +3587,14 @@ |
2485 |
- { |
2486 |
- int ret; |
2487 |
- unsigned low, high; |
2488 |
--#if defined(VM_X86_64) |
2489 |
- asm volatile("2: rdmsr ; xor %0,%0\n" |
2490 |
- "1:\n\t" |
2491 |
- ".section .fixup,\"ax\"\n\t" |
2492 |
- "3: mov %4,%0 ; jmp 1b\n\t" |
2493 |
- ".previous\n\t" |
2494 |
-- ".section __ex_table,\"a\"\n\t" |
2495 |
-- ".balign 8\n" |
2496 |
-- ".quad 2b,3b\n" |
2497 |
-- ".previous\n" |
2498 |
-+ _ASM_EXTABLE(2b,3b) |
2499 |
- : "=r"(ret), "=a"(low), "=d"(high) |
2500 |
- : "c"(msr), "i"(-EFAULT), "1"(0), "2"(0)); // init eax/edx to 0 |
2501 |
--#else |
2502 |
-- asm volatile("2: rdmsr ; xor %0,%0\n" |
2503 |
-- "1:\n\t" |
2504 |
-- ".section .fixup,\"ax\"\n\t" |
2505 |
-- "3: mov %4,%0 ; jmp 1b\n\t" |
2506 |
-- ".previous\n\t" |
2507 |
-- ".section __ex_table,\"a\"\n" |
2508 |
-- ".balign 4\n" |
2509 |
-- ".long 2b,3b\n" |
2510 |
-- ".previous\n" |
2511 |
-- : "=r"(ret), "=a"(low), "=d"(high) |
2512 |
-- : "c"(msr), "i"(-EFAULT), "1"(0), "2"(0)); // init eax/edx to 0 |
2513 |
--#endif // VM_X86_64 |
2514 |
- *val = (low | ((u64)(high) << 32)); |
2515 |
- |
2516 |
- return ret; |
2517 |
|
2518 |
diff --git a/app-emulation/vmware-modules/files/279-3.10-00-userns.patch b/app-emulation/vmware-modules/files/279-3.10-00-userns.patch |
2519 |
deleted file mode 100644 |
2520 |
index b1b78b76300..00000000000 |
2521 |
--- a/app-emulation/vmware-modules/files/279-3.10-00-userns.patch |
2522 |
+++ /dev/null |
2523 |
@@ -1,41 +0,0 @@ |
2524 |
-correctly initializes UID/GID values |
2525 |
-gets UID correctly in light of user namespace API |
2526 |
-origionally from https://462666.bugs.gentoo.org/attachment.cgi?id=342888 |
2527 |
- |
2528 |
---- a/vmblock-only/linux/inode.c 2013-03-20 17:37:48.000000000 +0100 |
2529 |
-+++ b/vmblock-only/linux/inode.c 2013-03-20 17:41:22.000000000 +0100 |
2530 |
-@@ -135,7 +135,8 @@ |
2531 |
- inode->i_size = INODE_TO_IINFO(inode)->nameLen; |
2532 |
- inode->i_version = 1; |
2533 |
- inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
2534 |
-- inode->i_uid = inode->i_gid = 0; |
2535 |
-+ inode->i_uid = GLOBAL_ROOT_UID; |
2536 |
-+ inode->i_gid = GLOBAL_ROOT_GID; |
2537 |
- inode->i_op = &LinkInodeOps; |
2538 |
- |
2539 |
- d_add(dentry, inode); |
2540 |
- |
2541 |
---- a/vmci-only/linux/driver.c 2013-03-20 17:57:35.000000000 +0100 |
2542 |
-+++ b/vmci-only/linux/driver.c 2013-03-20 17:57:43.000000000 +0100 |
2543 |
-@@ -740,7 +740,7 @@ |
2544 |
- goto init_release; |
2545 |
- } |
2546 |
- |
2547 |
-- user = current_uid(); |
2548 |
-+ user = from_kuid(current_user_ns(), current_uid()); |
2549 |
- retval = VMCIContext_InitContext(initBlock.cid, initBlock.flags, |
2550 |
- 0 /* Unused */, vmciLinux->userVersion, |
2551 |
- &user, &vmciLinux->context); |
2552 |
- |
2553 |
---- a/vsock-only/linux/af_vsock.c 2013-03-20 18:01:48.000000000 +0100 |
2554 |
-+++ b/vsock-only/linux/af_vsock.c 2013-03-20 18:01:58.000000000 +0100 |
2555 |
-@@ -2866,7 +2866,7 @@ |
2556 |
- vsk->connectTimeout = psk->connectTimeout; |
2557 |
- } else { |
2558 |
- vsk->trusted = capable(CAP_NET_ADMIN); |
2559 |
-- vsk->owner = current_uid(); |
2560 |
-+ vsk->owner = from_kuid(current_user_ns(), current_uid()); |
2561 |
- vsk->queuePairSize = VSOCK_DEFAULT_QP_SIZE; |
2562 |
- vsk->queuePairMinSize = VSOCK_DEFAULT_QP_SIZE_MIN; |
2563 |
- vsk->queuePairMaxSize = VSOCK_DEFAULT_QP_SIZE_MAX; |
2564 |
- |
2565 |
|
2566 |
diff --git a/app-emulation/vmware-modules/files/279-3.10-01-getname.patch b/app-emulation/vmware-modules/files/279-3.10-01-getname.patch |
2567 |
deleted file mode 100644 |
2568 |
index 05ed8dbcc37..00000000000 |
2569 |
--- a/app-emulation/vmware-modules/files/279-3.10-01-getname.patch |
2570 |
+++ /dev/null |
2571 |
@@ -1,24 +0,0 @@ |
2572 |
-uses __getname/__putname instead of getname. getname was deprecated |
2573 |
-the new code calls __getname (which really is a specific type of |
2574 |
-memory allocator, then copies the string safely from user space |
2575 |
-into the allocated buffer |
2576 |
- |
2577 |
---- vmblock-only/linux/control.c 2014-03-15 15:28:40.871076076 +0100 |
2578 |
-+++ vmblock-only/linux/control.c.new 2014-03-15 15:29:15.079074439 +0100 |
2579 |
-@@ -279,11 +279,17 @@ |
2580 |
- int i; |
2581 |
- int retval; |
2582 |
- |
2583 |
-- name = getname(buf); |
2584 |
-+ name = __getname(); |
2585 |
- if (IS_ERR(name)) { |
2586 |
- return PTR_ERR(name); |
2587 |
- } |
2588 |
- |
2589 |
-+ i = strncpy_from_user(name, buf, PATH_MAX); |
2590 |
-+ if (i < 0 || i == PATH_MAX) { |
2591 |
-+ __putname(name); |
2592 |
-+ return -EINVAL; |
2593 |
-+ } |
2594 |
-+ |
2595 |
- for (i = strlen(name) - 1; i >= 0 && name[i] == '/'; i--) { |
2596 |
|
2597 |
diff --git a/app-emulation/vmware-modules/files/279-3.10-03-deprecated.patch b/app-emulation/vmware-modules/files/279-3.10-03-deprecated.patch |
2598 |
deleted file mode 100644 |
2599 |
index 98b28aabcde..00000000000 |
2600 |
--- a/app-emulation/vmware-modules/files/279-3.10-03-deprecated.patch |
2601 |
+++ /dev/null |
2602 |
@@ -1,89 +0,0 @@ |
2603 |
-undefines DEPRECATED which is unfortunately also defined (as a string) |
2604 |
-in <linux/printk.h>. Realistically, this macro isn't even used, so this |
2605 |
-doesn't matter much. But it hushes some very loud warnings. |
2606 |
- |
2607 |
-diff -rupN vmblock-only/shared/vm_assert.h vmblock-only.new/shared/vm_assert.h |
2608 |
---- vmblock-only/shared/vm_assert.h 2014-04-14 17:41:41.000000000 -0400 |
2609 |
-+++ vmblock-only.new/shared/vm_assert.h 2014-10-11 17:37:23.010352172 -0400 |
2610 |
-@@ -251,11 +251,13 @@ void WarningThrottled(uint32 *count, con |
2611 |
- #define LOG_ONCE(_s) DO_ONCE(Log _s) |
2612 |
- |
2613 |
- #ifdef VMX86_DEVEL |
2614 |
-+ #undef DEPRECATED |
2615 |
- #define DEPRECATED(_fix) DO_ONCE( \ |
2616 |
- Warning("%s:%d: %s is DEPRECATED. %s\n", \ |
2617 |
- __FILE__, __LINE__, __FUNCTION__, \ |
2618 |
- _fix)) |
2619 |
- #else |
2620 |
-+ #undef DEPRECATED |
2621 |
- #define DEPRECATED(_fix) do {} while (0) |
2622 |
- #endif |
2623 |
- |
2624 |
-diff -rupN vmci-only/shared/vm_assert.h vmci-only.new/shared/vm_assert.h |
2625 |
---- vmci-only/shared/vm_assert.h 2014-04-14 17:41:41.000000000 -0400 |
2626 |
-+++ vmci-only.new/shared/vm_assert.h 2014-10-11 17:37:08.936352130 -0400 |
2627 |
-@@ -251,11 +251,13 @@ void WarningThrottled(uint32 *count, con |
2628 |
- #define LOG_ONCE(_s) DO_ONCE(Log _s) |
2629 |
- |
2630 |
- #ifdef VMX86_DEVEL |
2631 |
-+ #undef DEPRECATED |
2632 |
- #define DEPRECATED(_fix) DO_ONCE( \ |
2633 |
- Warning("%s:%d: %s is DEPRECATED. %s\n", \ |
2634 |
- __FILE__, __LINE__, __FUNCTION__, \ |
2635 |
- _fix)) |
2636 |
- #else |
2637 |
-+ #undef DEPRECATED |
2638 |
- #define DEPRECATED(_fix) do {} while (0) |
2639 |
- #endif |
2640 |
- |
2641 |
-diff -rupN vmmon-only/include/vm_assert.h vmmon-only.new/include/vm_assert.h |
2642 |
---- vmmon-only/include/vm_assert.h 2014-04-14 20:06:20.000000000 -0400 |
2643 |
-+++ vmmon-only.new/include/vm_assert.h 2014-10-11 17:36:45.289352058 -0400 |
2644 |
-@@ -251,11 +251,13 @@ void WarningThrottled(uint32 *count, con |
2645 |
- #define LOG_ONCE(_s) DO_ONCE(Log _s) |
2646 |
- |
2647 |
- #ifdef VMX86_DEVEL |
2648 |
-+ #undef DEPRECATED |
2649 |
- #define DEPRECATED(_fix) DO_ONCE( \ |
2650 |
- Warning("%s:%d: %s is DEPRECATED. %s\n", \ |
2651 |
- __FILE__, __LINE__, __FUNCTION__, \ |
2652 |
- _fix)) |
2653 |
- #else |
2654 |
-+ #undef DEPRECATED |
2655 |
- #define DEPRECATED(_fix) do {} while (0) |
2656 |
- #endif |
2657 |
- |
2658 |
-diff -rupN vmnet-only/vm_assert.h vmnet-only.new/vm_assert.h |
2659 |
---- vmnet-only/vm_assert.h 2014-04-14 20:06:21.000000000 -0400 |
2660 |
-+++ vmnet-only.new/vm_assert.h 2014-10-11 17:37:14.364352146 -0400 |
2661 |
-@@ -251,11 +251,13 @@ void WarningThrottled(uint32 *count, con |
2662 |
- #define LOG_ONCE(_s) DO_ONCE(Log _s) |
2663 |
- |
2664 |
- #ifdef VMX86_DEVEL |
2665 |
-+ #undef DEPRECATED |
2666 |
- #define DEPRECATED(_fix) DO_ONCE( \ |
2667 |
- Warning("%s:%d: %s is DEPRECATED. %s\n", \ |
2668 |
- __FILE__, __LINE__, __FUNCTION__, \ |
2669 |
- _fix)) |
2670 |
- #else |
2671 |
-+ #undef DEPRECATED |
2672 |
- #define DEPRECATED(_fix) do {} while (0) |
2673 |
- #endif |
2674 |
- |
2675 |
-diff -rupN vsock-only/shared/vm_assert.h vsock-only.new/shared/vm_assert.h |
2676 |
---- vsock-only/shared/vm_assert.h 2014-04-14 17:41:41.000000000 -0400 |
2677 |
-+++ vsock-only.new/shared/vm_assert.h 2014-10-11 17:37:02.778352111 -0400 |
2678 |
-@@ -251,11 +251,13 @@ void WarningThrottled(uint32 *count, con |
2679 |
- #define LOG_ONCE(_s) DO_ONCE(Log _s) |
2680 |
- |
2681 |
- #ifdef VMX86_DEVEL |
2682 |
-+ #undef DEPRECATED |
2683 |
- #define DEPRECATED(_fix) DO_ONCE( \ |
2684 |
- Warning("%s:%d: %s is DEPRECATED. %s\n", \ |
2685 |
- __FILE__, __LINE__, __FUNCTION__, \ |
2686 |
- _fix)) |
2687 |
- #else |
2688 |
-+ #undef DEPRECATED |
2689 |
- #define DEPRECATED(_fix) do {} while (0) |
2690 |
- #endif |
2691 |
- |
2692 |
|
2693 |
diff --git a/app-emulation/vmware-modules/files/279-3.10-04-dentry.patch b/app-emulation/vmware-modules/files/279-3.10-04-dentry.patch |
2694 |
deleted file mode 100644 |
2695 |
index f4f59d97740..00000000000 |
2696 |
--- a/app-emulation/vmware-modules/files/279-3.10-04-dentry.patch |
2697 |
+++ /dev/null |
2698 |
@@ -1,34 +0,0 @@ |
2699 |
-starting with kernel 3.6, d_revalidate takes an unsigned int "flags" |
2700 |
-as the second argument, not a nameidata pointer! see fs/namei.c |
2701 |
-for implementation |
2702 |
- |
2703 |
-diff -Naur vmblock-only/linux/dentry.c vmblock-only/linux/dentry.c |
2704 |
---- vmblock-only/linux/dentry.c 2013-11-05 23:33:26.000000000 -0500 |
2705 |
-+++ vmblock-only/linux/dentry.c 2014-04-26 10:58:03.062635343 -0400 |
2706 |
-@@ -32,7 +32,7 @@ |
2707 |
- #include "block.h" |
2708 |
- |
2709 |
- |
2710 |
--static int DentryOpRevalidate(struct dentry *dentry, struct nameidata *nd); |
2711 |
-+static int DentryOpRevalidate(struct dentry *dentry, unsigned int flags); |
2712 |
- |
2713 |
- struct dentry_operations LinkDentryOps = { |
2714 |
- .d_revalidate = DentryOpRevalidate, |
2715 |
-@@ -60,7 +60,7 @@ |
2716 |
- |
2717 |
- static int |
2718 |
- DentryOpRevalidate(struct dentry *dentry, // IN: dentry revalidating |
2719 |
-- struct nameidata *nd) // IN: lookup flags & intent |
2720 |
-+ unsigned int flags) // IN: lookup flags & intent |
2721 |
- { |
2722 |
- VMBlockInodeInfo *iinfo; |
2723 |
- struct nameidata actualNd; |
2724 |
-@@ -101,7 +101,7 @@ |
2725 |
- if (actualDentry && |
2726 |
- actualDentry->d_op && |
2727 |
- actualDentry->d_op->d_revalidate) { |
2728 |
-- return actualDentry->d_op->d_revalidate(actualDentry, nd); |
2729 |
-+ return actualDentry->d_op->d_revalidate(actualDentry, flags); |
2730 |
- } |
2731 |
- |
2732 |
- if (compat_path_lookup(iinfo->name, 0, &actualNd)) { |
2733 |
|
2734 |
diff --git a/app-emulation/vmware-modules/files/279-3.10-05-inode.patch b/app-emulation/vmware-modules/files/279-3.10-05-inode.patch |
2735 |
deleted file mode 100644 |
2736 |
index 01c88930899..00000000000 |
2737 |
--- a/app-emulation/vmware-modules/files/279-3.10-05-inode.patch |
2738 |
+++ /dev/null |
2739 |
@@ -1,36 +0,0 @@ |
2740 |
-starting with kernel 3.6, d_revalidate takes an unsigned int "flags" |
2741 |
-as the second argument, not a nameidata pointer! see fs/namei.c |
2742 |
-for implementation. Also changing vfs_follow_link to nd_set_link. |
2743 |
-See: https://lkml.org/lkml/2013/9/9/236 |
2744 |
- |
2745 |
-diff -Naur vmblock-only/linux/inode.c vmblock-only/linux/inode.c |
2746 |
---- vmblock-only/linux/inode.c 2013-11-05 23:33:26.000000000 -0500 |
2747 |
-+++ vmblock-only/linux/inode.c 2014-04-26 10:58:03.063635343 -0400 |
2748 |
-@@ -36,7 +36,7 @@ |
2749 |
- |
2750 |
- /* Inode operations */ |
2751 |
- static struct dentry *InodeOpLookup(struct inode *dir, |
2752 |
-- struct dentry *dentry, struct nameidata *nd); |
2753 |
-+ struct dentry *dentry, unsigned int flags); |
2754 |
- static int InodeOpReadlink(struct dentry *dentry, char __user *buffer, int buflen); |
2755 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
2756 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
2757 |
-@@ -75,7 +75,7 @@ |
2758 |
- static struct dentry * |
2759 |
- InodeOpLookup(struct inode *dir, // IN: parent directory's inode |
2760 |
- struct dentry *dentry, // IN: dentry to lookup |
2761 |
-- struct nameidata *nd) // IN: lookup intent and information |
2762 |
-+ unsigned int flags) // IN: lookup intent and information |
2763 |
- { |
2764 |
- char *filename; |
2765 |
- struct inode *inode; |
2766 |
-@@ -221,7 +221,8 @@ |
2767 |
- goto out; |
2768 |
- } |
2769 |
- |
2770 |
-- ret = vfs_follow_link(nd, iinfo->name); |
2771 |
-+ nd_set_link(nd, iinfo->name); |
2772 |
-+ ret = 0; |
2773 |
- |
2774 |
- out: |
2775 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
2776 |
|
2777 |
diff --git a/app-emulation/vmware-modules/files/279-3.15-00-readlink.patch b/app-emulation/vmware-modules/files/279-3.15-00-readlink.patch |
2778 |
deleted file mode 100644 |
2779 |
index b8ee0782202..00000000000 |
2780 |
--- a/app-emulation/vmware-modules/files/279-3.15-00-readlink.patch |
2781 |
+++ /dev/null |
2782 |
@@ -1,15 +0,0 @@ |
2783 |
-replacing usage of vfs_readlink with new readlink_copy API |
2784 |
-see: http://permalink.gmane.org/gmane.linux.kernel.commits.head/445090 |
2785 |
- |
2786 |
-diff -rupN vmblock-only/linux/inode.c vmblock-only/linux/inode.c |
2787 |
---- vmblock-only/linux/inode.c 2014-10-05 23:20:14.545218357 -0400 |
2788 |
-+++ vmblock-only/linux/inode.c 2014-10-05 23:33:01.549259933 -0400 |
2789 |
-@@ -178,7 +178,7 @@ InodeOpReadlink(struct dentry *dentry, |
2790 |
- return -EINVAL; |
2791 |
- } |
2792 |
- |
2793 |
-- return vfs_readlink(dentry, buffer, buflen, iinfo->name); |
2794 |
-+ return readlink_copy(buffer, buflen, iinfo->name); |
2795 |
- } |
2796 |
- |
2797 |
- |
2798 |
|
2799 |
diff --git a/app-emulation/vmware-modules/files/279-3.15-01-vsock.patch b/app-emulation/vmware-modules/files/279-3.15-01-vsock.patch |
2800 |
deleted file mode 100644 |
2801 |
index 9e8d9d1a32f..00000000000 |
2802 |
--- a/app-emulation/vmware-modules/files/279-3.15-01-vsock.patch |
2803 |
+++ /dev/null |
2804 |
@@ -1,46 +0,0 @@ |
2805 |
-removing the no longer existing second parameter to sk_data_ready |
2806 |
-doesn't seem it ever served a purpose. |
2807 |
- |
2808 |
-diff -rupN vsock-only/linux/notify.c vsock-only.new/linux/notify.c |
2809 |
---- vsock-only/linux/notify.c 2013-11-05 23:33:27.000000000 -0500 |
2810 |
-+++ vsock-only.new/linux/notify.c 2014-10-05 23:46:47.943304728 -0400 |
2811 |
-@@ -515,8 +515,11 @@ VSockVmciHandleWrote(struct sock *sk, |
2812 |
- vsk = vsock_sk(sk); |
2813 |
- PKT_FIELD(vsk, sentWaitingRead) = FALSE; |
2814 |
- #endif |
2815 |
-- |
2816 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
2817 |
-+ sk->sk_data_ready(sk); |
2818 |
-+#else |
2819 |
- sk->sk_data_ready(sk, 0); |
2820 |
-+#endif |
2821 |
- } |
2822 |
- |
2823 |
- |
2824 |
-diff -rupN vsock-only/linux/notifyQState.c vsock-only.new/linux/notifyQState.c |
2825 |
---- vsock-only/linux/notifyQState.c 2013-11-05 23:33:27.000000000 -0500 |
2826 |
-+++ vsock-only.new/linux/notifyQState.c 2014-10-05 23:46:33.231303931 -0400 |
2827 |
-@@ -164,7 +164,11 @@ VSockVmciHandleWrote(struct sock *sk, |
2828 |
- struct sockaddr_vm *dst, // IN: unused |
2829 |
- struct sockaddr_vm *src) // IN: unused |
2830 |
- { |
2831 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
2832 |
-+ sk->sk_data_ready(sk); |
2833 |
-+#else |
2834 |
- sk->sk_data_ready(sk, 0); |
2835 |
-+#endif |
2836 |
- } |
2837 |
- |
2838 |
- |
2839 |
-@@ -566,7 +570,11 @@ VSockVmciNotifyPktRecvPostDequeue(struct |
2840 |
- } |
2841 |
- |
2842 |
- /* See the comment in VSockVmciNotifyPktSendPostEnqueue */ |
2843 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
2844 |
-+ sk->sk_data_ready(sk); |
2845 |
-+#else |
2846 |
- sk->sk_data_ready(sk, 0); |
2847 |
-+#endif |
2848 |
- } |
2849 |
- |
2850 |
- return err; |
2851 |
|
2852 |
diff --git a/app-emulation/vmware-modules/files/279-3.17-00-netdev.patch b/app-emulation/vmware-modules/files/279-3.17-00-netdev.patch |
2853 |
deleted file mode 100644 |
2854 |
index e3ee3aa0993..00000000000 |
2855 |
--- a/app-emulation/vmware-modules/files/279-3.17-00-netdev.patch |
2856 |
+++ /dev/null |
2857 |
@@ -1,16 +0,0 @@ |
2858 |
-new alloc_netdev requires a new parameter. All examples in the kernel i've seen just |
2859 |
-use the constant NET_NAME_UNKNOWN. |
2860 |
-origionally from: https://communities.vmware.com/message/2425189 |
2861 |
- |
2862 |
-diff -rupN vmnet-only/netif.c vmnet-only.new/netif.c |
2863 |
---- vmnet-only/netif.c 2013-11-06 00:40:52.000000000 -0500 |
2864 |
-+++ vmnet-only.new/netif.c 2014-10-09 17:29:12.361307961 -0400 |
2865 |
-@@ -149,7 +149,7 @@ VNetNetIf_Create(char *devName, // IN: |
2866 |
- memcpy(deviceName, devName, sizeof deviceName); |
2867 |
- NULL_TERMINATE_STRING(deviceName); |
2868 |
- |
2869 |
-- dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup); |
2870 |
-+ dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_USER, VNetNetIfSetup); |
2871 |
- if (!dev) { |
2872 |
- retval = -ENOMEM; |
2873 |
- goto out; |
2874 |
|
2875 |
diff --git a/app-emulation/vmware-modules/files/279-3.18-00-version-redefined.patch b/app-emulation/vmware-modules/files/279-3.18-00-version-redefined.patch |
2876 |
deleted file mode 100644 |
2877 |
index 2d388243058..00000000000 |
2878 |
--- a/app-emulation/vmware-modules/files/279-3.18-00-version-redefined.patch |
2879 |
+++ /dev/null |
2880 |
@@ -1,24 +0,0 @@ |
2881 |
---- a/vmci-only/shared/vm_device_version.h 2015-02-07 03:11:55.000000000 +0300 |
2882 |
-+++ c/vmci-only/shared/vm_device_version.h 2015-02-24 03:58:06.041605450 +0300 |
2883 |
-@@ -53,7 +53,9 @@ |
2884 |
- * VMware HD Audio codec |
2885 |
- * VMware HD Audio controller |
2886 |
- */ |
2887 |
-+#ifndef PCI_VENDOR_ID_VMWARE |
2888 |
- #define PCI_VENDOR_ID_VMWARE 0x15AD |
2889 |
-+#endif |
2890 |
- #define PCI_DEVICE_ID_VMWARE_SVGA2 0x0405 |
2891 |
- #define PCI_DEVICE_ID_VMWARE_SVGA 0x0710 |
2892 |
- #define PCI_DEVICE_ID_VMWARE_VGA 0x0711 |
2893 |
---- a/vmnet-only/vm_device_version.h 2015-02-07 03:54:16.000000000 +0300 |
2894 |
-+++ c/vmnet-only/vm_device_version.h 2015-02-24 03:58:06.044604981 +0300 |
2895 |
-@@ -53,7 +53,9 @@ |
2896 |
- * VMware HD Audio codec |
2897 |
- * VMware HD Audio controller |
2898 |
- */ |
2899 |
-+#ifndef PCI_VENDOR_ID_VMWARE |
2900 |
- #define PCI_VENDOR_ID_VMWARE 0x15AD |
2901 |
-+#endif |
2902 |
- #define PCI_DEVICE_ID_VMWARE_SVGA2 0x0405 |
2903 |
- #define PCI_DEVICE_ID_VMWARE_SVGA 0x0710 |
2904 |
- #define PCI_DEVICE_ID_VMWARE_VGA 0x0711 |
2905 |
|
2906 |
diff --git a/app-emulation/vmware-modules/files/279-3.19-00-compat-namei.patch b/app-emulation/vmware-modules/files/279-3.19-00-compat-namei.patch |
2907 |
deleted file mode 100644 |
2908 |
index ec73500e979..00000000000 |
2909 |
--- a/app-emulation/vmware-modules/files/279-3.19-00-compat-namei.patch |
2910 |
+++ /dev/null |
2911 |
@@ -1,23 +0,0 @@ |
2912 |
---- a/vmblock-only/shared/compat_namei.h 2015-02-07 03:11:55.000000000 +0300 |
2913 |
-+++ c/vmblock-only/shared/compat_namei.h 2015-02-24 03:51:25.235286047 +0300 |
2914 |
-@@ -21,6 +21,20 @@ |
2915 |
- |
2916 |
- #include <linux/namei.h> |
2917 |
- |
2918 |
-+/* Copy-n-paste from kernel's source/fs/namei.c */ |
2919 |
-+struct nameidata { |
2920 |
-+ struct path path; |
2921 |
-+ struct qstr last; |
2922 |
-+ struct path root; |
2923 |
-+ struct inode *inode; /* path.dentry.d_inode */ |
2924 |
-+ unsigned int flags; |
2925 |
-+ unsigned seq, m_seq; |
2926 |
-+ int last_type; |
2927 |
-+ unsigned depth; |
2928 |
-+ struct file *base; |
2929 |
-+ char *saved_names[MAX_NESTED_LINKS + 1]; |
2930 |
-+}; |
2931 |
-+ |
2932 |
- /* |
2933 |
- * In 2.6.25-rc2, dentry and mount objects were removed from the nameidata |
2934 |
- * struct. They were both replaced with a struct path. |
2935 |
|
2936 |
diff --git a/app-emulation/vmware-modules/files/279-3.19-01-dentry.patch b/app-emulation/vmware-modules/files/279-3.19-01-dentry.patch |
2937 |
deleted file mode 100644 |
2938 |
index 6f11a520a44..00000000000 |
2939 |
--- a/app-emulation/vmware-modules/files/279-3.19-01-dentry.patch |
2940 |
+++ /dev/null |
2941 |
@@ -1,13 +0,0 @@ |
2942 |
---- a/vmnet-only/driver.c 2015-02-07 03:54:17.000000000 +0300 |
2943 |
-+++ c/vmnet-only/driver.c 2015-02-24 03:58:06.043605137 +0300 |
2944 |
-@@ -1191,8 +1191,8 @@ |
2945 |
- struct inode *inode = NULL; |
2946 |
- long err; |
2947 |
- |
2948 |
-- if (filp && filp->f_dentry) { |
2949 |
-- inode = filp->f_dentry->d_inode; |
2950 |
-+ if (filp && filp->f_path.dentry) { |
2951 |
-+ inode = filp->f_path.dentry->d_inode; |
2952 |
- } |
2953 |
- err = VNetFileOpIoctl(inode, filp, iocmd, ioarg); |
2954 |
- return err; |
2955 |
|
2956 |
diff --git a/app-emulation/vmware-modules/files/279-3.19-02-vmblock-path.patch b/app-emulation/vmware-modules/files/279-3.19-02-vmblock-path.patch |
2957 |
deleted file mode 100644 |
2958 |
index 178d1478ae5..00000000000 |
2959 |
--- a/app-emulation/vmware-modules/files/279-3.19-02-vmblock-path.patch |
2960 |
+++ /dev/null |
2961 |
@@ -1,67 +0,0 @@ |
2962 |
-Sources: |
2963 |
-https://531682.bugs.gentoo.org/attachment.cgi?id=396484 |
2964 |
-https://531682.bugs.gentoo.org/attachment.cgi?id=396482 |
2965 |
-diff -rupN vmblock-only.orig/linux/dentry.c vmblock-only/linux/dentry.c |
2966 |
---- vmblock-only.orig/linux/dentry.c 2015-02-14 18:05:46.000000000 -0500 |
2967 |
-+++ vmblock-only/linux/dentry.c 2015-02-14 18:09:59.000000000 -0500 |
2968 |
-@@ -63,7 +63,7 @@ DentryOpRevalidate(struct dentry *dentry |
2969 |
- unsigned int flags) // IN: lookup flags & intent |
2970 |
- { |
2971 |
- VMBlockInodeInfo *iinfo; |
2972 |
-- struct nameidata actualNd; |
2973 |
-+ struct path actualNd; |
2974 |
- struct dentry *actualDentry; |
2975 |
- int ret; |
2976 |
- |
2977 |
-diff -rupN vmblock-only.orig/linux/filesystem.c vmblock-only/linux/filesystem.c |
2978 |
---- vmblock-only.orig/linux/filesystem.c 2014-11-20 19:29:15.000000000 -0500 |
2979 |
-+++ vmblock-only/linux/filesystem.c 2015-02-14 18:10:49.000000000 -0500 |
2980 |
-@@ -322,7 +322,7 @@ Iget(struct super_block *sb, // IN: f |
2981 |
- { |
2982 |
- VMBlockInodeInfo *iinfo; |
2983 |
- struct inode *inode; |
2984 |
-- struct nameidata actualNd; |
2985 |
-+ struct path actualNd; |
2986 |
- |
2987 |
- ASSERT(sb); |
2988 |
- |
2989 |
-diff -rupN vmblock-only.orig/shared/compat_namei.h vmblock-only/shared/compat_namei.h |
2990 |
---- vmblock-only.orig/shared/compat_namei.h 2014-11-20 19:29:15.000000000 -0500 |
2991 |
-+++ vmblock-only/shared/compat_namei.h 2015-02-14 18:08:38.000000000 -0500 |
2992 |
-@@ -26,21 +26,21 @@ |
2993 |
- * struct. They were both replaced with a struct path. |
2994 |
- */ |
2995 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
2996 |
--#define compat_vmw_nd_to_dentry(nd) (nd).path.dentry |
2997 |
-+#define compat_vmw_nd_to_dentry(nd) (nd).dentry |
2998 |
- #else |
2999 |
- #define compat_vmw_nd_to_dentry(nd) (nd).dentry |
3000 |
- #endif |
3001 |
- |
3002 |
- /* In 2.6.25-rc2, path_release(&nd) was replaced with path_put(&nd.path). */ |
3003 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
3004 |
--#define compat_path_release(nd) path_put(&(nd)->path) |
3005 |
-+#define compat_path_release(nd) path_put(nd) |
3006 |
- #else |
3007 |
- #define compat_path_release(nd) path_release(nd) |
3008 |
- #endif |
3009 |
- |
3010 |
- /* path_lookup was removed in 2.6.39 merge window VFS merge */ |
3011 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) |
3012 |
--#define compat_path_lookup(name, flags, nd) kern_path(name, flags, &((nd)->path)) |
3013 |
-+#define compat_path_lookup(name, flags, nd) kern_path(name, flags, nd) |
3014 |
- #else |
3015 |
- #define compat_path_lookup(name, flags, nd) path_lookup(name, flags, nd) |
3016 |
- #endif |
3017 |
-diff -u vmblock-only.orig/linux/file.c vmblock-only/linux/file.c |
3018 |
---- vmblock-only.orig/linux/file.c 2015-02-11 12:18:29.000000000 -0500 |
3019 |
-+++ vmblock-only/linux/file.c 2015-02-11 12:41:41.000000000 -0500 |
3020 |
-@@ -92,7 +92,7 @@ |
3021 |
- * and that would try to acquire the inode's semaphore; if the two inodes |
3022 |
- * are the same we'll deadlock. |
3023 |
- */ |
3024 |
-- if (actualFile->f_dentry && inode == actualFile->f_dentry->d_inode) { |
3025 |
-+ if (actualFile->f_path.dentry && inode == actualFile->f_path.dentry->d_inode) { |
3026 |
- Warning("FileOpOpen: identical inode encountered, open cannot succeed.\n"); |
3027 |
- if (filp_close(actualFile, current->files) < 0) { |
3028 |
- Warning("FileOpOpen: unable to close opened file.\n"); |
3029 |
|
3030 |
diff --git a/app-emulation/vmware-modules/files/279-3.19-03-iovec.patch b/app-emulation/vmware-modules/files/279-3.19-03-iovec.patch |
3031 |
deleted file mode 100644 |
3032 |
index b016fec1e65..00000000000 |
3033 |
--- a/app-emulation/vmware-modules/files/279-3.19-03-iovec.patch |
3034 |
+++ /dev/null |
3035 |
@@ -1,19 +0,0 @@ |
3036 |
---- a/vmnet-only/userif.c 2015-02-07 03:54:17.000000000 +0300 |
3037 |
-+++ c/vmnet-only/userif.c 2015-02-24 03:58:06.043605137 +0300 |
3038 |
-@@ -523,7 +523,15 @@ |
3039 |
- .iov_base = buf, |
3040 |
- .iov_len = len, |
3041 |
- }; |
3042 |
-- return skb_copy_datagram_iovec(skb, 0, &iov, len); |
3043 |
-+ |
3044 |
-+ |
3045 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) |
3046 |
-+ return skb_copy_datagram_iovec(skb, 0, &iov, len); |
3047 |
-+#else |
3048 |
-+ struct iov_iter to; |
3049 |
-+ iov_iter_init(&to, READ, &iov, 1, len); |
3050 |
-+ return skb_copy_datagram_iter(skb, 0, &to, len); |
3051 |
-+#endif |
3052 |
- } |
3053 |
- |
3054 |
- |
3055 |
|
3056 |
diff --git a/app-emulation/vmware-modules/files/279-3.19-04-iovec.patch b/app-emulation/vmware-modules/files/279-3.19-04-iovec.patch |
3057 |
deleted file mode 100644 |
3058 |
index 9103c555663..00000000000 |
3059 |
--- a/app-emulation/vmware-modules/files/279-3.19-04-iovec.patch |
3060 |
+++ /dev/null |
3061 |
@@ -1,39 +0,0 @@ |
3062 |
-diff -rupN vmci-only.old/linux/vmciKernelIf.c vmci-only/linux/vmciKernelIf.c |
3063 |
---- vmci-only.old/linux/vmciKernelIf.c 2015-04-28 18:05:56.000000000 +0000 |
3064 |
-+++ vmci-only/linux/vmciKernelIf.c 2015-07-06 08:02:08.314262258 +0000 |
3065 |
-@@ -40,6 +40,7 @@ |
3066 |
- #include <linux/socket.h> /* For memcpy_{to,from}iovec(). */ |
3067 |
- #include <linux/vmalloc.h> |
3068 |
- #include <linux/wait.h> |
3069 |
-+#include <linux/skbuff.h> |
3070 |
- |
3071 |
- #include "compat_highmem.h" |
3072 |
- #include "compat_interrupt.h" |
3073 |
-@@ -1227,11 +1228,11 @@ __VMCIMemcpyToQueue(VMCIQueue *queue, |
3074 |
- } |
3075 |
- |
3076 |
- if (isIovec) { |
3077 |
-- struct iovec *iov = (struct iovec *)src; |
3078 |
-+ struct msghdr *msg = (struct msghdr *)src; |
3079 |
- int err; |
3080 |
- |
3081 |
- /* The iovec will track bytesCopied internally. */ |
3082 |
-- err = memcpy_fromiovec((uint8 *)va + pageOffset, iov, toCopy); |
3083 |
-+ err = memcpy_from_msg((u8 *)va + pageOffset, msg, toCopy); |
3084 |
- if (err != 0) { |
3085 |
- if (!kernelIf->isDataMapped) { |
3086 |
- kunmap(kernelIf->page[pageIndex]); |
3087 |
-@@ -1302,11 +1303,11 @@ __VMCIMemcpyFromQueue(void *dest, |
3088 |
- } |
3089 |
- |
3090 |
- if (isIovec) { |
3091 |
-- struct iovec *iov = (struct iovec *)dest; |
3092 |
-+ struct msghdr *msg = (struct msghdr *)dest; |
3093 |
- int err; |
3094 |
- |
3095 |
- /* The iovec will track bytesCopied internally. */ |
3096 |
-- err = memcpy_toiovec(iov, (uint8 *)va + pageOffset, toCopy); |
3097 |
-+ err = memcpy_to_msg(msg, (uint8 *)va + pageOffset, toCopy); |
3098 |
- if (err != 0) { |
3099 |
- if (!kernelIf->isDataMapped) { |
3100 |
- kunmap(kernelIf->page[pageIndex]); |
3101 |
|
3102 |
diff --git a/app-emulation/vmware-modules/files/279-3.19-05-vmci_qpair.patch b/app-emulation/vmware-modules/files/279-3.19-05-vmci_qpair.patch |
3103 |
deleted file mode 100644 |
3104 |
index 1849a378456..00000000000 |
3105 |
--- a/app-emulation/vmware-modules/files/279-3.19-05-vmci_qpair.patch |
3106 |
+++ /dev/null |
3107 |
@@ -1,24 +0,0 @@ |
3108 |
-diff -rupN vsock-only.old/linux/af_vsock.c vsock-only/linux/af_vsock.c |
3109 |
---- vsock-only.old/linux/af_vsock.c 2015-05-06 20:41:47.684046762 -0400 |
3110 |
-+++ vsock-only/linux/af_vsock.c 2015-05-06 20:52:15.245080779 -0400 |
3111 |
-@@ -4629,7 +4629,7 @@ VSockVmciStreamSendmsg(struct kiocb *kio |
3112 |
- * able to send. |
3113 |
- */ |
3114 |
- |
3115 |
-- written = vmci_qpair_enquev(vsk->qpair, msg->msg_iov, |
3116 |
-+ written = vmci_qpair_enquev(vsk->qpair, &msg->msg_iter.iov, |
3117 |
- len - totalWritten, 0); |
3118 |
- if (written < 0) { |
3119 |
- err = -ENOMEM; |
3120 |
-@@ -4874,9 +4874,9 @@ VSockVmciStreamRecvmsg(struct kiocb *kio |
3121 |
- } |
3122 |
- |
3123 |
- if (flags & MSG_PEEK) { |
3124 |
-- read = vmci_qpair_peekv(vsk->qpair, msg->msg_iov, len - copied, 0); |
3125 |
-+ read = vmci_qpair_peekv(vsk->qpair, &msg->msg_iter.iov, len - copied, 0); |
3126 |
- } else { |
3127 |
-- read = vmci_qpair_dequev(vsk->qpair, msg->msg_iov, len - copied, 0); |
3128 |
-+ read = vmci_qpair_dequev(vsk->qpair, &msg->msg_iter.iov, len - copied, 0); |
3129 |
- } |
3130 |
- |
3131 |
- if (read < 0) { |
3132 |
|
3133 |
diff --git a/app-emulation/vmware-modules/files/279-3.19-06-vsock.patch b/app-emulation/vmware-modules/files/279-3.19-06-vsock.patch |
3134 |
deleted file mode 100644 |
3135 |
index 2e412301d09..00000000000 |
3136 |
--- a/app-emulation/vmware-modules/files/279-3.19-06-vsock.patch |
3137 |
+++ /dev/null |
3138 |
@@ -1,15 +0,0 @@ |
3139 |
-diff -rupN vsock-only/linux/af_vsock.c vsock-only.new/linux/af_vsock.c |
3140 |
---- vsock-only/linux/af_vsock.c 2015-05-05 11:31:35.710099711 -0400 |
3141 |
-+++ vsock-only.new/linux/af_vsock.c 2015-05-05 11:36:33.260115840 -0400 |
3142 |
-@@ -4727,7 +4727,11 @@ VSockVmciDgramRecvmsg(struct kiocb *kioc |
3143 |
- } |
3144 |
- |
3145 |
- /* Place the datagram payload in the user's iovec. */ |
3146 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) |
3147 |
- err = skb_copy_datagram_iovec(skb, sizeof *dg, msg->msg_iov, payloadLen); |
3148 |
-+#else |
3149 |
-+ err = skb_copy_datagram_iter(skb, sizeof *dg, &msg->msg_iter, payloadLen); |
3150 |
-+#endif |
3151 |
- if (err) { |
3152 |
- goto out; |
3153 |
- } |
3154 |
|
3155 |
diff --git a/app-emulation/vmware-modules/files/279-3.19-07-vsock.patch b/app-emulation/vmware-modules/files/279-3.19-07-vsock.patch |
3156 |
deleted file mode 100644 |
3157 |
index 8c9d3cb6dfe..00000000000 |
3158 |
--- a/app-emulation/vmware-modules/files/279-3.19-07-vsock.patch |
3159 |
+++ /dev/null |
3160 |
@@ -1,12 +0,0 @@ |
3161 |
-diff -rupN vsock-only/linux/af_vsock.c vsock-only.new/linux/af_vsock.c |
3162 |
---- vsock-only/linux/af_vsock.c 2015-05-05 11:26:05.145081792 -0400 |
3163 |
-+++ vsock-only.new/linux/af_vsock.c 2015-05-05 11:30:54.304097466 -0400 |
3164 |
-@@ -4266,7 +4266,7 @@ VSockVmciDgramSendmsg(struct kiocb *kioc |
3165 |
- goto out; |
3166 |
- } |
3167 |
- |
3168 |
-- memcpy_fromiovec(VMCI_DG_PAYLOAD(dg), msg->msg_iov, len); |
3169 |
-+ memcpy_from_msg(VMCI_DG_PAYLOAD(dg), msg, len); |
3170 |
- |
3171 |
- dg->dst = VMCI_MAKE_HANDLE(remoteAddr->svm_cid, remoteAddr->svm_port); |
3172 |
- dg->src = VMCI_MAKE_HANDLE(vsk->localAddr.svm_cid, vsk->localAddr.svm_port); |
3173 |
|
3174 |
diff --git a/app-emulation/vmware-modules/files/279-4.2-00-cookie.patch b/app-emulation/vmware-modules/files/279-4.2-00-cookie.patch |
3175 |
deleted file mode 100644 |
3176 |
index e2ab8a15f16..00000000000 |
3177 |
--- a/app-emulation/vmware-modules/files/279-4.2-00-cookie.patch |
3178 |
+++ /dev/null |
3179 |
@@ -1,79 +0,0 @@ |
3180 |
-See https://bugs.gentoo.org/show_bug.cgi?id=559602 |
3181 |
-Patch by Mike Auty <ikelos@g.o> |
3182 |
- |
3183 |
-diff --git a/vmblock-only/linux/inode.c b/vmblock-only/linux/inode.c |
3184 |
-index 4811abd..2cbc1f6 100644 |
3185 |
---- a/vmblock-only/linux/inode.c |
3186 |
-+++ b/vmblock-only/linux/inode.c |
3187 |
-@@ -38,7 +38,9 @@ |
3188 |
- static struct dentry *InodeOpLookup(struct inode *dir, |
3189 |
- struct dentry *dentry, unsigned int flags); |
3190 |
- static int InodeOpReadlink(struct dentry *dentry, char __user *buffer, int buflen); |
3191 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
3192 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
3193 |
-+static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie); |
3194 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
3195 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
3196 |
- #else |
3197 |
- static int InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
3198 |
-@@ -207,7 +209,12 @@ static void * |
3199 |
- static int |
3200 |
- #endif |
3201 |
- InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
3202 |
-- struct nameidata *nd) // OUT: stores result |
3203 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
3204 |
-+ void **cookie |
3205 |
-+#else |
3206 |
-+ struct nameidata *nd |
3207 |
-+#endif |
3208 |
-+ ) // OUT: stores result |
3209 |
- { |
3210 |
- int ret; |
3211 |
- VMBlockInodeInfo *iinfo; |
3212 |
-diff --git a/vmblock-only/linux/inode.c b/vmblock-only/linux/inode.c |
3213 |
-index acb2803..4811abd 100644 |
3214 |
---- a/vmblock-only/linux/inode.c |
3215 |
-+++ b/vmblock-only/linux/inode.c |
3216 |
-@@ -199,7 +199,9 @@ InodeOpReadlink(struct dentry *dentry, // IN : dentry of symlink |
3217 |
- *---------------------------------------------------------------------------- |
3218 |
- */ |
3219 |
- |
3220 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
3221 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
3222 |
-+static const char * |
3223 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
3224 |
- static void * |
3225 |
- #else |
3226 |
- static int |
3227 |
-@@ -222,8 +224,12 @@ InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
3228 |
- goto out; |
3229 |
- } |
3230 |
- |
3231 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
3232 |
-+ return *cookie = (char *)(iinfo->name); |
3233 |
-+#else |
3234 |
- nd_set_link(nd, iinfo->name); |
3235 |
- ret = 0; |
3236 |
-+#endif |
3237 |
- |
3238 |
- out: |
3239 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
3240 |
-diff --git a/vmnet-only/vmnetInt.h b/vmnet-only/vmnetInt.h |
3241 |
-index 23b5d19..d129f7b 100644 |
3242 |
---- a/vmnet-only/vmnetInt.h |
3243 |
-+++ b/vmnet-only/vmnetInt.h |
3244 |
-@@ -78,8 +78,13 @@ |
3245 |
- |
3246 |
- extern struct proto vmnet_proto; |
3247 |
- #ifdef VMW_NETDEV_HAS_NET |
3248 |
-+# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
3249 |
- # define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \ |
3250 |
-- PF_NETLINK, _pri, &vmnet_proto) |
3251 |
-+ PF_NETLINK, _pri, &vmnet_proto, 1) |
3252 |
-+# else |
3253 |
-+# define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \ |
3254 |
-+ PF_NETLINK, _pri, &vmnet_proto) |
3255 |
-+# endif |
3256 |
- #else |
3257 |
- # define compat_sk_alloc(_bri, _pri) sk_alloc(PF_NETLINK, _pri, &vmnet_proto, 1) |
3258 |
- #endif |
3259 |
|
3260 |
diff --git a/app-emulation/vmware-modules/files/279-5.10-00-userns.patch b/app-emulation/vmware-modules/files/279-5.10-00-userns.patch |
3261 |
deleted file mode 100644 |
3262 |
index 7a1bb987fec..00000000000 |
3263 |
--- a/app-emulation/vmware-modules/files/279-5.10-00-userns.patch |
3264 |
+++ /dev/null |
3265 |
@@ -1,16 +0,0 @@ |
3266 |
-correctly initializes UID/GID values |
3267 |
-gets UID correctly in light of user namespace API |
3268 |
-origionally from https://462666.bugs.gentoo.org/attachment.cgi?id=342888 |
3269 |
- |
3270 |
---- a/vmblock-only/linux/inode.c 2013-03-20 17:37:48.000000000 +0100 |
3271 |
-+++ b/vmblock-only/linux/inode.c 2013-03-20 17:41:22.000000000 +0100 |
3272 |
-@@ -135,7 +135,8 @@ |
3273 |
- inode->i_size = INODE_TO_IINFO(inode)->nameLen; |
3274 |
- inode->i_version = 1; |
3275 |
- inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
3276 |
-- inode->i_uid = inode->i_gid = 0; |
3277 |
-+ inode->i_uid = GLOBAL_ROOT_UID; |
3278 |
-+ inode->i_gid = GLOBAL_ROOT_GID; |
3279 |
- inode->i_op = &LinkInodeOps; |
3280 |
- |
3281 |
- d_add(dentry, inode); |
3282 |
|
3283 |
diff --git a/app-emulation/vmware-modules/files/279-apic.patch b/app-emulation/vmware-modules/files/279-apic.patch |
3284 |
deleted file mode 100644 |
3285 |
index 66cd4593324..00000000000 |
3286 |
--- a/app-emulation/vmware-modules/files/279-apic.patch |
3287 |
+++ /dev/null |
3288 |
@@ -1,12 +0,0 @@ |
3289 |
-diff --git a/vmmon-only/linux/hostif.c b/vmmon-only/linux/hostif.c |
3290 |
-index f1f4b10..c43242f 100644 |
3291 |
---- a/vmmon-only/linux/hostif.c |
3292 |
-+++ b/vmmon-only/linux/hostif.c |
3293 |
-@@ -55,6 +55,7 @@ |
3294 |
- #include <linux/kthread.h> |
3295 |
- #include <linux/wait.h> |
3296 |
- |
3297 |
-+#include <asm/apic.h> |
3298 |
- |
3299 |
- #include "vmware.h" |
3300 |
- #include "x86apic.h" |
3301 |
|
3302 |
diff --git a/app-emulation/vmware-modules/files/279-filldir.patch b/app-emulation/vmware-modules/files/279-filldir.patch |
3303 |
deleted file mode 100644 |
3304 |
index 6eb1f315cd9..00000000000 |
3305 |
--- a/app-emulation/vmware-modules/files/279-filldir.patch |
3306 |
+++ /dev/null |
3307 |
@@ -1,91 +0,0 @@ |
3308 |
-diff --git a/vmblock-only/linux/file.c b/vmblock-only/linux/file.c |
3309 |
-index d7ac1f6..5499169 100644 |
3310 |
---- a/vmblock-only/linux/file.c |
3311 |
-+++ b/vmblock-only/linux/file.c |
3312 |
-@@ -38,46 +38,6 @@ typedef u64 inode_num_t; |
3313 |
- typedef ino_t inode_num_t; |
3314 |
- #endif |
3315 |
- |
3316 |
--/* Specifically for our filldir_t callback */ |
3317 |
--typedef struct FilldirInfo { |
3318 |
-- filldir_t filldir; |
3319 |
-- void *dirent; |
3320 |
--} FilldirInfo; |
3321 |
-- |
3322 |
-- |
3323 |
--/* |
3324 |
-- *---------------------------------------------------------------------------- |
3325 |
-- * |
3326 |
-- * Filldir -- |
3327 |
-- * |
3328 |
-- * Callback function for readdir that we use in place of the one provided. |
3329 |
-- * This allows us to specify that each dentry is a symlink, but pass through |
3330 |
-- * everything else to the original filldir function. |
3331 |
-- * |
3332 |
-- * Results: |
3333 |
-- * Original filldir's return value. |
3334 |
-- * |
3335 |
-- * Side effects: |
3336 |
-- * Directory information gets copied to user's buffer. |
3337 |
-- * |
3338 |
-- *---------------------------------------------------------------------------- |
3339 |
-- */ |
3340 |
-- |
3341 |
--static int |
3342 |
--Filldir(void *buf, // IN: Dirent buffer passed from FileOpReaddir |
3343 |
-- const char *name, // IN: Dirent name |
3344 |
-- int namelen, // IN: len of dirent's name |
3345 |
-- loff_t offset, // IN: Offset |
3346 |
-- inode_num_t ino, // IN: Inode number of dirent |
3347 |
-- unsigned int d_type) // IN: Type of file |
3348 |
--{ |
3349 |
-- FilldirInfo *info = buf; |
3350 |
-- |
3351 |
-- /* Specify DT_LNK regardless */ |
3352 |
-- return info->filldir(info->dirent, name, namelen, offset, ino, DT_LNK); |
3353 |
--} |
3354 |
-- |
3355 |
-- |
3356 |
- /* File operations */ |
3357 |
- |
3358 |
- /* |
3359 |
-@@ -166,11 +126,10 @@ FileOpOpen(struct inode *inode, // IN |
3360 |
- |
3361 |
- static int |
3362 |
- FileOpReaddir(struct file *file, // IN |
3363 |
-- void *dirent, // IN |
3364 |
-- filldir_t filldir) // IN |
3365 |
-+ struct dir_context *ctx) // IN |
3366 |
- { |
3367 |
- int ret; |
3368 |
-- FilldirInfo info; |
3369 |
-+ |
3370 |
- struct file *actualFile; |
3371 |
- |
3372 |
- if (!file) { |
3373 |
-@@ -184,12 +143,10 @@ FileOpReaddir(struct file *file, // IN |
3374 |
- return -EINVAL; |
3375 |
- } |
3376 |
- |
3377 |
-- info.filldir = filldir; |
3378 |
-- info.dirent = dirent; |
3379 |
-- |
3380 |
-- actualFile->f_pos = file->f_pos; |
3381 |
-- ret = vfs_readdir(actualFile, Filldir, &info); |
3382 |
-- file->f_pos = actualFile->f_pos; |
3383 |
-+ /* Ricky Wong Yung Fei: |
3384 |
-+ * Manipulation of pos is now handled internally by iterate_dir(). |
3385 |
-+ */ |
3386 |
-+ ret = iterate_dir(actualFile, ctx); |
3387 |
- |
3388 |
- return ret; |
3389 |
- } |
3390 |
-@@ -237,7 +194,7 @@ FileOpRelease(struct inode *inode, // IN |
3391 |
- |
3392 |
- |
3393 |
- struct file_operations RootFileOps = { |
3394 |
-- .readdir = FileOpReaddir, |
3395 |
-+ .iterate = FileOpReaddir, |
3396 |
- .open = FileOpOpen, |
3397 |
- .release = FileOpRelease, |
3398 |
- }; |
3399 |
|
3400 |
diff --git a/app-emulation/vmware-modules/files/279-hardened.patch b/app-emulation/vmware-modules/files/279-hardened.patch |
3401 |
deleted file mode 100644 |
3402 |
index cc3e0415287..00000000000 |
3403 |
--- a/app-emulation/vmware-modules/files/279-hardened.patch |
3404 |
+++ /dev/null |
3405 |
@@ -1,113 +0,0 @@ |
3406 |
-diff --git a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c |
3407 |
-index b21dd44..960c2aa 100644 |
3408 |
---- a/vmmon-only/linux/driver.c |
3409 |
-+++ b/vmmon-only/linux/driver.c |
3410 |
-@@ -178,7 +178,22 @@ static struct vm_operations_struct vmuser_mops = { |
3411 |
- #endif |
3412 |
- }; |
3413 |
- |
3414 |
--static struct file_operations vmuser_fops; |
3415 |
-+static struct file_operations vmuser_fops = { |
3416 |
-+ .owner = THIS_MODULE, |
3417 |
-+ .poll = LinuxDriverPoll, |
3418 |
-+#ifdef HAVE_UNLOCKED_IOCTL |
3419 |
-+ .unlocked_ioctl = LinuxDriver_UnlockedIoctl, |
3420 |
-+#else |
3421 |
-+ .ioctl = LinuxDriver_Ioctl, |
3422 |
-+#endif |
3423 |
-+#ifdef HAVE_COMPAT_IOCTL |
3424 |
-+ .compat_ioctl = LinuxDriver_UnlockedIoctl, |
3425 |
-+#endif |
3426 |
-+ .open = LinuxDriver_Open, |
3427 |
-+ .release = LinuxDriver_Close, |
3428 |
-+ .mmap = LinuxDriverMmap |
3429 |
-+}; |
3430 |
-+ |
3431 |
- static struct timer_list tscTimer; |
3432 |
- |
3433 |
- /* |
3434 |
-@@ -357,27 +372,6 @@ init_module(void) |
3435 |
- spin_lock_init(&linuxState.pollListLock); |
3436 |
- #endif |
3437 |
- |
3438 |
-- /* |
3439 |
-- * Initialize the file_operations structure. Because this code is always |
3440 |
-- * compiled as a module, this is fine to do it here and not in a static |
3441 |
-- * initializer. |
3442 |
-- */ |
3443 |
-- |
3444 |
-- memset(&vmuser_fops, 0, sizeof vmuser_fops); |
3445 |
-- vmuser_fops.owner = THIS_MODULE; |
3446 |
-- vmuser_fops.poll = LinuxDriverPoll; |
3447 |
--#ifdef HAVE_UNLOCKED_IOCTL |
3448 |
-- vmuser_fops.unlocked_ioctl = LinuxDriver_UnlockedIoctl; |
3449 |
--#else |
3450 |
-- vmuser_fops.ioctl = LinuxDriver_Ioctl; |
3451 |
--#endif |
3452 |
--#ifdef HAVE_COMPAT_IOCTL |
3453 |
-- vmuser_fops.compat_ioctl = LinuxDriver_UnlockedIoctl; |
3454 |
--#endif |
3455 |
-- vmuser_fops.open = LinuxDriver_Open; |
3456 |
-- vmuser_fops.release = LinuxDriver_Close; |
3457 |
-- vmuser_fops.mmap = LinuxDriverMmap; |
3458 |
-- |
3459 |
- #ifdef VMX86_DEVEL |
3460 |
- devel_init_module(); |
3461 |
- linuxState.minor = 0; |
3462 |
-diff --git a/vmnet-only/driver.c b/vmnet-only/driver.c |
3463 |
-index b12b982..40bd4cf 100644 |
3464 |
---- a/vmnet-only/driver.c |
3465 |
-+++ b/vmnet-only/driver.c |
3466 |
-@@ -165,7 +165,22 @@ static long VNetFileOpUnlockedIoctl(struct file * filp, |
3467 |
- unsigned int iocmd, unsigned long ioarg); |
3468 |
- #endif |
3469 |
- |
3470 |
--static struct file_operations vnetFileOps; |
3471 |
-+static struct file_operations vnetFileOps = { |
3472 |
-+ .owner = THIS_MODULE, |
3473 |
-+ .read = VNetFileOpRead, |
3474 |
-+ .write = VNetFileOpWrite, |
3475 |
-+ .poll = VNetFileOpPoll, |
3476 |
-+#ifdef HAVE_UNLOCKED_IOCTL |
3477 |
-+ .unlocked_ioctl = VNetFileOpUnlockedIoctl, |
3478 |
-+#else |
3479 |
-+ .ioctl = VNetFileOpIoctl, |
3480 |
-+#endif |
3481 |
-+#ifdef HAVE_COMPAT_IOCTL |
3482 |
-+ .compat_ioctl = VNetFileOpUnlockedIoctl, |
3483 |
-+#endif |
3484 |
-+ .open = VNetFileOpOpen, |
3485 |
-+ .release = VNetFileOpClose |
3486 |
-+}; |
3487 |
- |
3488 |
- /* |
3489 |
- * Utility functions |
3490 |
-@@ -476,28 +491,6 @@ init_module(void) |
3491 |
- goto err_proto; |
3492 |
- } |
3493 |
- |
3494 |
-- /* |
3495 |
-- * Initialize the file_operations structure. Because this code is always |
3496 |
-- * compiled as a module, this is fine to do it here and not in a static |
3497 |
-- * initializer. |
3498 |
-- */ |
3499 |
-- |
3500 |
-- memset(&vnetFileOps, 0, sizeof vnetFileOps); |
3501 |
-- vnetFileOps.owner = THIS_MODULE; |
3502 |
-- vnetFileOps.read = VNetFileOpRead; |
3503 |
-- vnetFileOps.write = VNetFileOpWrite; |
3504 |
-- vnetFileOps.poll = VNetFileOpPoll; |
3505 |
--#ifdef HAVE_UNLOCKED_IOCTL |
3506 |
-- vnetFileOps.unlocked_ioctl = VNetFileOpUnlockedIoctl; |
3507 |
--#else |
3508 |
-- vnetFileOps.ioctl = VNetFileOpIoctl; |
3509 |
--#endif |
3510 |
--#ifdef HAVE_COMPAT_IOCTL |
3511 |
-- vnetFileOps.compat_ioctl = VNetFileOpUnlockedIoctl; |
3512 |
--#endif |
3513 |
-- vnetFileOps.open = VNetFileOpOpen; |
3514 |
-- vnetFileOps.release = VNetFileOpClose; |
3515 |
-- |
3516 |
- retval = register_chrdev(VNET_MAJOR_NUMBER, "vmnet", &vnetFileOps); |
3517 |
- if (retval) { |
3518 |
- LOG(0, (KERN_NOTICE "/dev/vmnet: could not register major device %d\n", |
3519 |
|
3520 |
diff --git a/app-emulation/vmware-modules/files/279-makefile-include.patch b/app-emulation/vmware-modules/files/279-makefile-include.patch |
3521 |
deleted file mode 100644 |
3522 |
index 39c30003080..00000000000 |
3523 |
--- a/app-emulation/vmware-modules/files/279-makefile-include.patch |
3524 |
+++ /dev/null |
3525 |
@@ -1,65 +0,0 @@ |
3526 |
-diff --git a/vmblock-only/Makefile.kernel b/vmblock-only/Makefile.kernel |
3527 |
-index ab7a727..e3ec9d2 100644 |
3528 |
---- a/vmblock-only/Makefile.kernel |
3529 |
-+++ b/vmblock-only/Makefile.kernel |
3530 |
-@@ -19,7 +19,7 @@ |
3531 |
- |
3532 |
- INCLUDE += -I$(SRCROOT)/include |
3533 |
- |
3534 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
3535 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
3536 |
- |
3537 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/cachecreate.c, -DVMW_KMEMCR_HAS_DTOR, ) |
3538 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/cachector.c, -DVMW_KMEMCR_CTOR_HAS_3_ARGS, ) |
3539 |
-diff --git a/vmci-only/Makefile.kernel b/vmci-only/Makefile.kernel |
3540 |
-index ba343ee..861ea83 100644 |
3541 |
---- a/vmci-only/Makefile.kernel |
3542 |
-+++ b/vmci-only/Makefile.kernel |
3543 |
-@@ -21,7 +21,7 @@ CC_OPTS += -DVMCI |
3544 |
- |
3545 |
- INCLUDE += -I$(SRCROOT)/shared -I$(SRCROOT)/common -I$(SRCROOT)/linux |
3546 |
- |
3547 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
3548 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
3549 |
- |
3550 |
- obj-m += $(DRIVER).o |
3551 |
- |
3552 |
-diff --git a/vmmon-only/Makefile.kernel b/vmmon-only/Makefile.kernel |
3553 |
-index 8770d1d..c4746c3 100644 |
3554 |
---- a/vmmon-only/Makefile.kernel |
3555 |
-+++ b/vmmon-only/Makefile.kernel |
3556 |
-@@ -22,7 +22,7 @@ CC_OPTS += -DVMMON -DVMCORE |
3557 |
- INCLUDE := -I$(SRCROOT)/include -I$(SRCROOT)/common -I$(SRCROOT)/linux \ |
3558 |
- -I$(SRCROOT)/vmcore |
3559 |
- |
3560 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
3561 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
3562 |
- |
3563 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/smpcall.c, -DVMW_HAVE_SMP_CALL_3ARG, ) |
3564 |
- |
3565 |
-diff --git a/vmnet-only/Makefile.kernel b/vmnet-only/Makefile.kernel |
3566 |
-index d1e3133..665d428 100644 |
3567 |
---- a/vmnet-only/Makefile.kernel |
3568 |
-+++ b/vmnet-only/Makefile.kernel |
3569 |
-@@ -19,7 +19,7 @@ |
3570 |
- |
3571 |
- INCLUDE := -I$(SRCROOT) |
3572 |
- |
3573 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
3574 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
3575 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/netdev_has_net.c,-DVMW_NETDEV_HAS_NET, ) |
3576 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/netdev_has_dev_net.c,-DVMW_NETDEV_HAS_DEV_NET, ) |
3577 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/nfhook_uses_skb.c,-DVMW_NFHOOK_USES_SKB, ) |
3578 |
-diff --git a/vsock-only/Makefile.kernel b/vsock-only/Makefile.kernel |
3579 |
-index b4629ee..264b8cb 100644 |
3580 |
---- a/vsock-only/Makefile.kernel |
3581 |
-+++ b/vsock-only/Makefile.kernel |
3582 |
-@@ -25,7 +25,7 @@ INCLUDE += -I$(SRCROOT)/include |
3583 |
- INCLUDE += -I$(SRCROOT)/linux |
3584 |
- INCLUDE += -I$(SRCROOT)/common |
3585 |
- |
3586 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
3587 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
3588 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/netcreate_num_params.c, -DVMW_NETCREATE_KERNARG, ) |
3589 |
- |
3590 |
- |
3591 |
|
3592 |
diff --git a/app-emulation/vmware-modules/files/279-makefile-kernel-dir.patch b/app-emulation/vmware-modules/files/279-makefile-kernel-dir.patch |
3593 |
deleted file mode 100644 |
3594 |
index 1a647a3302d..00000000000 |
3595 |
--- a/app-emulation/vmware-modules/files/279-makefile-kernel-dir.patch |
3596 |
+++ /dev/null |
3597 |
@@ -1,85 +0,0 @@ |
3598 |
-diff --git a/vmblock-only/Makefile b/vmblock-only/Makefile |
3599 |
-index 2b81323..746c8b8 100644 |
3600 |
---- a/vmblock-only/Makefile |
3601 |
-+++ b/vmblock-only/Makefile |
3602 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
3603 |
- ifdef LINUXINCLUDE |
3604 |
- HEADER_DIR = $(LINUXINCLUDE) |
3605 |
- else |
3606 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
3607 |
-+HEADER_DIR = $(KERNEL_DIR) |
3608 |
- endif |
3609 |
- |
3610 |
--BUILD_DIR = $(HEADER_DIR)/.. |
3611 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
3612 |
- |
3613 |
- DRIVER := vmblock |
3614 |
- PRODUCT := ws |
3615 |
-diff --git a/vmci-only/Makefile b/vmci-only/Makefile |
3616 |
-index 8e9c5be..6ec828b 100644 |
3617 |
---- a/vmci-only/Makefile |
3618 |
-+++ b/vmci-only/Makefile |
3619 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
3620 |
- ifdef LINUXINCLUDE |
3621 |
- HEADER_DIR = $(LINUXINCLUDE) |
3622 |
- else |
3623 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
3624 |
-+HEADER_DIR = $(KERNEL_DIR) |
3625 |
- endif |
3626 |
- |
3627 |
--BUILD_DIR = $(HEADER_DIR)/.. |
3628 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
3629 |
- |
3630 |
- DRIVER := vmci |
3631 |
- PRODUCT := ws |
3632 |
-diff --git a/vmmon-only/Makefile b/vmmon-only/Makefile |
3633 |
-index 5bd867b..91a83d4 100644 |
3634 |
---- a/vmmon-only/Makefile |
3635 |
-+++ b/vmmon-only/Makefile |
3636 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
3637 |
- ifdef LINUXINCLUDE |
3638 |
- HEADER_DIR = $(LINUXINCLUDE) |
3639 |
- else |
3640 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
3641 |
-+HEADER_DIR = $(KERNEL_DIR) |
3642 |
- endif |
3643 |
- |
3644 |
--BUILD_DIR = $(HEADER_DIR)/.. |
3645 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
3646 |
- |
3647 |
- DRIVER := vmmon |
3648 |
- PRODUCT := @@PRODUCT@@ |
3649 |
-diff --git a/vmnet-only/Makefile b/vmnet-only/Makefile |
3650 |
-index d4eb73c..c7c6d38 100644 |
3651 |
---- a/vmnet-only/Makefile |
3652 |
-+++ b/vmnet-only/Makefile |
3653 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
3654 |
- ifdef LINUXINCLUDE |
3655 |
- HEADER_DIR = $(LINUXINCLUDE) |
3656 |
- else |
3657 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
3658 |
-+HEADER_DIR = $(KERNEL_DIR) |
3659 |
- endif |
3660 |
- |
3661 |
--BUILD_DIR = $(HEADER_DIR)/.. |
3662 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
3663 |
- |
3664 |
- DRIVER := vmnet |
3665 |
- PRODUCT := @@PRODUCT@@ |
3666 |
-diff --git a/vsock-only/Makefile b/vsock-only/Makefile |
3667 |
-index 93dd61d..9765696 100644 |
3668 |
---- a/vsock-only/Makefile |
3669 |
-+++ b/vsock-only/Makefile |
3670 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
3671 |
- ifdef LINUXINCLUDE |
3672 |
- HEADER_DIR = $(LINUXINCLUDE) |
3673 |
- else |
3674 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
3675 |
-+HEADER_DIR = $(KERNEL_DIR) |
3676 |
- endif |
3677 |
- |
3678 |
--BUILD_DIR = $(HEADER_DIR)/.. |
3679 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
3680 |
- |
3681 |
- DRIVER := vsock |
3682 |
- PRODUCT := ws |
3683 |
|
3684 |
diff --git a/app-emulation/vmware-modules/files/279-netdevice.patch b/app-emulation/vmware-modules/files/279-netdevice.patch |
3685 |
deleted file mode 100644 |
3686 |
index 35231a3205e..00000000000 |
3687 |
--- a/app-emulation/vmware-modules/files/279-netdevice.patch |
3688 |
+++ /dev/null |
3689 |
@@ -1,24 +0,0 @@ |
3690 |
-diff --git a/vmnet-only/compat_netdevice.h b/vmnet-only/compat_netdevice.h |
3691 |
-index 7a56304..9ff4548 100644 |
3692 |
---- a/vmnet-only/compat_netdevice.h |
3693 |
-+++ b/vmnet-only/compat_netdevice.h |
3694 |
-@@ -47,6 +47,19 @@ |
3695 |
- # define net_device device |
3696 |
- #endif |
3697 |
- |
3698 |
-+/* it looks like these have been removed from the kernel 3.1 |
3699 |
-+ * probably because the "transition" is considered complete. |
3700 |
-+ * so to keep this source compatible we just redefine them like they were |
3701 |
-+ * previously |
3702 |
-+ */ |
3703 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) |
3704 |
-+#define HAVE_ALLOC_NETDEV /* feature macro: alloc_xxxdev |
3705 |
-+ functions are available. */ |
3706 |
-+#define HAVE_FREE_NETDEV /* free_netdev() */ |
3707 |
-+#define HAVE_NETDEV_PRIV /* netdev_priv() */ |
3708 |
-+#define HAVE_NETIF_QUEUE |
3709 |
-+#define HAVE_NET_DEVICE_OPS |
3710 |
-+#endif |
3711 |
- |
3712 |
- /* |
3713 |
- * SET_MODULE_OWNER appeared sometime during 2.3.x. It was setting |
3714 |
|
3715 |
diff --git a/app-emulation/vmware-modules/files/279-putname.patch b/app-emulation/vmware-modules/files/279-putname.patch |
3716 |
deleted file mode 100644 |
3717 |
index 6e76130fa16..00000000000 |
3718 |
--- a/app-emulation/vmware-modules/files/279-putname.patch |
3719 |
+++ /dev/null |
3720 |
@@ -1,13 +0,0 @@ |
3721 |
-diff --git a/vmblock-only/linux/control.c b/vmblock-only/linux/control.c |
3722 |
-index 79716bd..2dd83fe 100644 |
3723 |
---- a/vmblock-only/linux/control.c |
3724 |
-+++ b/vmblock-only/linux/control.c |
3725 |
-@@ -293,7 +293,7 @@ ExecuteBlockOp(const char __user *buf, // IN: buffer with name |
3726 |
- |
3727 |
- retval = i < 0 ? -EINVAL : blockOp(name, blocker); |
3728 |
- |
3729 |
-- putname(name); |
3730 |
-+ __putname(name); |
3731 |
- |
3732 |
- return retval; |
3733 |
- } |
3734 |
|
3735 |
diff --git a/app-emulation/vmware-modules/files/279-vfsfollowlink.patch b/app-emulation/vmware-modules/files/279-vfsfollowlink.patch |
3736 |
deleted file mode 100644 |
3737 |
index 13f600e39f3..00000000000 |
3738 |
--- a/app-emulation/vmware-modules/files/279-vfsfollowlink.patch |
3739 |
+++ /dev/null |
3740 |
@@ -1,30 +0,0 @@ |
3741 |
-diff -Naur a/linux/inode.c b/linux/inode.c |
3742 |
---- a/vmblock-only/linux/inode.c 2013-10-03 04:29:47.471339204 -0400 |
3743 |
-+++ b/vmblock-only/linux/inode.c 2013-10-03 04:31:56.607334636 -0400 |
3744 |
-@@ -36,7 +36,7 @@ |
3745 |
- |
3746 |
- /* Inode operations */ |
3747 |
- static struct dentry *InodeOpLookup(struct inode *dir, |
3748 |
-- struct dentry *dentry, struct nameidata *nd); |
3749 |
-+ struct dentry *dentry, unsigned int flags); |
3750 |
- static int InodeOpReadlink(struct dentry *dentry, char __user *buffer, int buflen); |
3751 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
3752 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
3753 |
-@@ -75,7 +75,7 @@ |
3754 |
- static struct dentry * |
3755 |
- InodeOpLookup(struct inode *dir, // IN: parent directory's inode |
3756 |
- struct dentry *dentry, // IN: dentry to lookup |
3757 |
-- struct nameidata *nd) // IN: lookup intent and information |
3758 |
-+ unsigned int flags) // IN: lookup intent and information |
3759 |
- { |
3760 |
- char *filename; |
3761 |
- struct inode *inode; |
3762 |
-@@ -221,7 +221,7 @@ |
3763 |
- goto out; |
3764 |
- } |
3765 |
- |
3766 |
-- ret = vfs_follow_link(nd, iinfo->name); |
3767 |
-+ nd_set_link(nd, iinfo->name); |
3768 |
- |
3769 |
- out: |
3770 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
3771 |
|
3772 |
diff --git a/app-emulation/vmware-modules/files/279-vmblock.patch b/app-emulation/vmware-modules/files/279-vmblock.patch |
3773 |
deleted file mode 100644 |
3774 |
index 0daf6035561..00000000000 |
3775 |
--- a/app-emulation/vmware-modules/files/279-vmblock.patch |
3776 |
+++ /dev/null |
3777 |
@@ -1,23 +0,0 @@ |
3778 |
-diff -ruN work.orig/vmblock-only/linux/control.c work/vmblock-only/linux/control.c |
3779 |
---- work.orig/vmblock-only/linux/control.c 2013-11-02 18:05:39.960226399 +0100 |
3780 |
-+++ work/vmblock-only/linux/control.c 2013-11-02 18:09:11.760231432 +0100 |
3781 |
-@@ -208,17 +208,14 @@ |
3782 |
- VMBlockSetProcEntryOwner(controlProcMountpoint); |
3783 |
- |
3784 |
- /* Create /proc/fs/vmblock/dev */ |
3785 |
-- controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME, |
3786 |
-- VMBLOCK_CONTROL_MODE, |
3787 |
-- controlProcDirEntry); |
3788 |
-- if (!controlProcEntry) { |
3789 |
-+ controlProcEntry = proc_create(VMBLOCK_CONTROL_DEVNAME, VMBLOCK_CONTROL_MODE, controlProcDirEntry, &ControlFileOps); |
3790 |
-+ if (controlProcEntry == NULL) { |
3791 |
- Warning("SetupProcDevice: could not create " VMBLOCK_DEVICE "\n"); |
3792 |
- remove_proc_entry(VMBLOCK_CONTROL_MOUNTPOINT, controlProcDirEntry); |
3793 |
- remove_proc_entry(VMBLOCK_CONTROL_PROC_DIRNAME, NULL); |
3794 |
- return -EINVAL; |
3795 |
- } |
3796 |
- |
3797 |
-- controlProcEntry->proc_fops = &ControlFileOps; |
3798 |
- return 0; |
3799 |
- } |
3800 |
- |
3801 |
|
3802 |
diff --git a/app-emulation/vmware-modules/files/304-3.10-00-dentry.patch b/app-emulation/vmware-modules/files/304-3.10-00-dentry.patch |
3803 |
deleted file mode 100644 |
3804 |
index 5cc445fcadf..00000000000 |
3805 |
--- a/app-emulation/vmware-modules/files/304-3.10-00-dentry.patch |
3806 |
+++ /dev/null |
3807 |
@@ -1,43 +0,0 @@ |
3808 |
-Minor change the API, now it just gets passed flags instead of a pointer to the nameidata |
3809 |
---- a/vmblock-only/linux/dentry.c 2015-02-07 03:11:55.000000000 +0300 |
3810 |
-+++ c/vmblock-only/linux/dentry.c 2015-02-24 03:58:06.038605919 +0300 |
3811 |
-@@ -32,7 +32,11 @@ |
3812 |
- #include "block.h" |
3813 |
- |
3814 |
- |
3815 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
3816 |
- static int DentryOpRevalidate(struct dentry *dentry, struct nameidata *nd); |
3817 |
-+#else |
3818 |
-+static int DentryOpRevalidate(struct dentry *dentry, unsigned int); |
3819 |
-+#endif |
3820 |
- |
3821 |
- struct dentry_operations LinkDentryOps = { |
3822 |
- .d_revalidate = DentryOpRevalidate, |
3823 |
-@@ -58,9 +62,12 @@ |
3824 |
- *---------------------------------------------------------------------------- |
3825 |
- */ |
3826 |
- |
3827 |
--static int |
3828 |
--DentryOpRevalidate(struct dentry *dentry, // IN: dentry revalidating |
3829 |
-- struct nameidata *nd) // IN: lookup flags & intent |
3830 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
3831 |
-+static int DentryOpRevalidate(struct dentry *dentry, struct nameidata *nd) |
3832 |
-+#else |
3833 |
-+static int DentryOpRevalidate(struct dentry *dentry, unsigned int flags) |
3834 |
-+#endif |
3835 |
-+ |
3836 |
- { |
3837 |
- VMBlockInodeInfo *iinfo; |
3838 |
- struct nameidata actualNd; |
3839 |
-@@ -101,7 +108,11 @@ |
3840 |
- if (actualDentry && |
3841 |
- actualDentry->d_op && |
3842 |
- actualDentry->d_op->d_revalidate) { |
3843 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0) |
3844 |
-+ return actualDentry->d_op->d_revalidate(actualDentry, flags); |
3845 |
-+#else |
3846 |
- return actualDentry->d_op->d_revalidate(actualDentry, nd); |
3847 |
-+#endif |
3848 |
- } |
3849 |
- |
3850 |
- if (compat_path_lookup(iinfo->name, 0, &actualNd)) { |
3851 |
|
3852 |
diff --git a/app-emulation/vmware-modules/files/304-3.10-01-inode.patch b/app-emulation/vmware-modules/files/304-3.10-01-inode.patch |
3853 |
deleted file mode 100644 |
3854 |
index e12d84d10e7..00000000000 |
3855 |
--- a/app-emulation/vmware-modules/files/304-3.10-01-inode.patch |
3856 |
+++ /dev/null |
3857 |
@@ -1,94 +0,0 @@ |
3858 |
-Minor change the API, now it just gets passed flags instead of a pointer to the nameidata |
3859 |
-Properly initializes UID/GID with repsect to namespaces |
3860 |
-Some changes the readlink/setlink APIs |
3861 |
---- a/vmblock-only/linux/inode.c 2015-02-07 03:11:55.000000000 +0300 |
3862 |
-+++ c/vmblock-only/linux/inode.c 2015-02-24 03:58:06.039605762 +0300 |
3863 |
-@@ -35,9 +35,15 @@ |
3864 |
- |
3865 |
- |
3866 |
- /* Inode operations */ |
3867 |
--static struct dentry *InodeOpLookup(struct inode *dir, |
3868 |
-- struct dentry *dentry, struct nameidata *nd); |
3869 |
-+ |
3870 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
3871 |
-+static struct dentry *InodeOpLookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd); |
3872 |
- static int InodeOpReadlink(struct dentry *dentry, char __user *buffer, int buflen); |
3873 |
-+#else |
3874 |
-+static struct dentry *InodeOpLookup(struct inode *, struct dentry *, unsigned int); |
3875 |
-+static int InodeOpReadlink(struct dentry *, char __user *, int); |
3876 |
-+#endif |
3877 |
-+ |
3878 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
3879 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
3880 |
- #else |
3881 |
-@@ -49,12 +55,15 @@ |
3882 |
- .lookup = InodeOpLookup, |
3883 |
- }; |
3884 |
- |
3885 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) |
3886 |
- static struct inode_operations LinkInodeOps = { |
3887 |
-+#else |
3888 |
-+struct inode_operations LinkInodeOps = { |
3889 |
-+#endif |
3890 |
- .readlink = InodeOpReadlink, |
3891 |
- .follow_link = InodeOpFollowlink, |
3892 |
- }; |
3893 |
- |
3894 |
-- |
3895 |
- /* |
3896 |
- *---------------------------------------------------------------------------- |
3897 |
- * |
3898 |
-@@ -75,7 +84,11 @@ |
3899 |
- static struct dentry * |
3900 |
- InodeOpLookup(struct inode *dir, // IN: parent directory's inode |
3901 |
- struct dentry *dentry, // IN: dentry to lookup |
3902 |
-- struct nameidata *nd) // IN: lookup intent and information |
3903 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
3904 |
-+ struct nameidata *nd) // IN: lookup intent and information |
3905 |
-+#else |
3906 |
-+ unsigned int flags) |
3907 |
-+#endif |
3908 |
- { |
3909 |
- char *filename; |
3910 |
- struct inode *inode; |
3911 |
-@@ -135,7 +148,12 @@ |
3912 |
- inode->i_size = INODE_TO_IINFO(inode)->nameLen; |
3913 |
- inode->i_version = 1; |
3914 |
- inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
3915 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
3916 |
- inode->i_uid = inode->i_gid = 0; |
3917 |
-+#else |
3918 |
-+ inode->i_gid = make_kgid(current_user_ns(), 0); |
3919 |
-+ inode->i_uid = make_kuid(current_user_ns(), 0); |
3920 |
-+#endif |
3921 |
- inode->i_op = &LinkInodeOps; |
3922 |
- |
3923 |
- d_add(dentry, inode); |
3924 |
-@@ -177,7 +195,12 @@ |
3925 |
- return -EINVAL; |
3926 |
- } |
3927 |
- |
3928 |
-- return vfs_readlink(dentry, buffer, buflen, iinfo->name); |
3929 |
-+#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 14, 99) |
3930 |
-+ return vfs_readlink(dentry, buffer, buflen, iinfo->name); |
3931 |
-+#else |
3932 |
-+ return readlink_copy(buffer, buflen, iinfo->name); |
3933 |
-+#endif |
3934 |
-+ |
3935 |
- } |
3936 |
- |
3937 |
- |
3938 |
-@@ -221,7 +244,7 @@ |
3939 |
- goto out; |
3940 |
- } |
3941 |
- |
3942 |
-- ret = vfs_follow_link(nd, iinfo->name); |
3943 |
-+ nd_set_link(nd, iinfo->name); |
3944 |
- |
3945 |
- out: |
3946 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
3947 |
-@@ -230,3 +253,4 @@ |
3948 |
- return ret; |
3949 |
- #endif |
3950 |
- } |
3951 |
-+ |
3952 |
|
3953 |
diff --git a/app-emulation/vmware-modules/files/304-3.10-02-control.patch b/app-emulation/vmware-modules/files/304-3.10-02-control.patch |
3954 |
deleted file mode 100644 |
3955 |
index 92883533751..00000000000 |
3956 |
--- a/app-emulation/vmware-modules/files/304-3.10-02-control.patch |
3957 |
+++ /dev/null |
3958 |
@@ -1,57 +0,0 @@ |
3959 |
-The API to create proc entries now takes the file ops structure directly, instead of being set after the fact |
3960 |
-Using new __getname/__putname API |
3961 |
---- a/vmblock-only/linux/control.c 2015-02-07 03:11:55.000000000 +0300 |
3962 |
-+++ c/vmblock-only/linux/control.c 2015-02-24 03:58:06.038605919 +0300 |
3963 |
-@@ -208,9 +208,11 @@ |
3964 |
- VMBlockSetProcEntryOwner(controlProcMountpoint); |
3965 |
- |
3966 |
- /* Create /proc/fs/vmblock/dev */ |
3967 |
-- controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME, |
3968 |
-- VMBLOCK_CONTROL_MODE, |
3969 |
-- controlProcDirEntry); |
3970 |
-+ controlProcEntry = proc_create(VMBLOCK_CONTROL_DEVNAME, |
3971 |
-+ VMBLOCK_CONTROL_MODE, |
3972 |
-+ controlProcDirEntry, |
3973 |
-+ &ControlFileOps); |
3974 |
-+ |
3975 |
- if (!controlProcEntry) { |
3976 |
- Warning("SetupProcDevice: could not create " VMBLOCK_DEVICE "\n"); |
3977 |
- remove_proc_entry(VMBLOCK_CONTROL_MOUNTPOINT, controlProcDirEntry); |
3978 |
-@@ -218,7 +220,10 @@ |
3979 |
- return -EINVAL; |
3980 |
- } |
3981 |
- |
3982 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
3983 |
- controlProcEntry->proc_fops = &ControlFileOps; |
3984 |
-+#endif |
3985 |
-+ |
3986 |
- return 0; |
3987 |
- } |
3988 |
- |
3989 |
-@@ -287,18 +287,24 @@ ExecuteBlockOp(const char __user *buf, |
3990 |
- int i; |
3991 |
- int retval; |
3992 |
- |
3993 |
-- name = getname(buf); |
3994 |
-+ name = __getname(); |
3995 |
- if (IS_ERR(name)) { |
3996 |
- return PTR_ERR(name); |
3997 |
- } |
3998 |
- |
3999 |
-+ i = strncpy_from_user(name, buf, PATH_MAX); |
4000 |
-+ if (i < 0 || i == PATH_MAX) { |
4001 |
-+ __putname(name); |
4002 |
-+ return -EINVAL; |
4003 |
-+ } |
4004 |
-+ |
4005 |
- for (i = strlen(name) - 1; i >= 0 && name[i] == '/'; i--) { |
4006 |
- name[i] = '\0'; |
4007 |
- } |
4008 |
- |
4009 |
- retval = i < 0 ? -EINVAL : blockOp(name, blocker); |
4010 |
- |
4011 |
-- putname(name); |
4012 |
-+ __putname(name); |
4013 |
- |
4014 |
- return retval; |
4015 |
- } |
4016 |
|
4017 |
diff --git a/app-emulation/vmware-modules/files/304-3.10-03-inline.patch b/app-emulation/vmware-modules/files/304-3.10-03-inline.patch |
4018 |
deleted file mode 100644 |
4019 |
index fa8f36a35c2..00000000000 |
4020 |
--- a/app-emulation/vmware-modules/files/304-3.10-03-inline.patch |
4021 |
+++ /dev/null |
4022 |
@@ -1,14 +0,0 @@ |
4023 |
-Hushes a warning |
4024 |
---- a/vmmon-only/linux/driver.c 2015-02-07 03:54:16.000000000 +0300 |
4025 |
-+++ c/vmmon-only/linux/driver.c 2015-02-24 03:58:06.042605293 +0300 |
4026 |
-@@ -1328,7 +1328,9 @@ |
4027 |
- *----------------------------------------------------------------------------- |
4028 |
- */ |
4029 |
- |
4030 |
--__attribute__((always_inline)) static Bool |
4031 |
-+#include <linux/compiler-gcc.h> |
4032 |
-+ |
4033 |
-+__always_inline static Bool |
4034 |
- LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min |
4035 |
- { |
4036 |
- TSCDelta tscDelta; |
4037 |
|
4038 |
diff --git a/app-emulation/vmware-modules/files/304-3.11-00-readdir.patch b/app-emulation/vmware-modules/files/304-3.11-00-readdir.patch |
4039 |
deleted file mode 100644 |
4040 |
index b2f76d3e2b3..00000000000 |
4041 |
--- a/app-emulation/vmware-modules/files/304-3.11-00-readdir.patch |
4042 |
+++ /dev/null |
4043 |
@@ -1,41 +0,0 @@ |
4044 |
-replaces usage of vfs_readdir with iterate_dir. origionally found here: |
4045 |
-https://bugs.gentoo.org/show_bug.cgi?id=508204 |
4046 |
- |
4047 |
-diff -Naur vmblock-only/linux/file.c vmblock-only/linux/file.c |
4048 |
---- vmblock-only/linux/file.c 2013-11-05 23:33:26.000000000 -0500 |
4049 |
-+++ vmblock-only/linux/file.c 2014-04-26 10:58:03.062635343 -0400 |
4050 |
-@@ -166,11 +166,9 @@ |
4051 |
- |
4052 |
- static int |
4053 |
- FileOpReaddir(struct file *file, // IN |
4054 |
-- void *dirent, // IN |
4055 |
-- filldir_t filldir) // IN |
4056 |
-+ struct dir_context *ctx) |
4057 |
- { |
4058 |
- int ret; |
4059 |
-- FilldirInfo info; |
4060 |
- struct file *actualFile; |
4061 |
- |
4062 |
- if (!file) { |
4063 |
-@@ -184,11 +182,8 @@ |
4064 |
- return -EINVAL; |
4065 |
- } |
4066 |
- |
4067 |
-- info.filldir = filldir; |
4068 |
-- info.dirent = dirent; |
4069 |
-- |
4070 |
- actualFile->f_pos = file->f_pos; |
4071 |
-- ret = vfs_readdir(actualFile, Filldir, &info); |
4072 |
-+ ret = iterate_dir(actualFile, ctx); |
4073 |
- file->f_pos = actualFile->f_pos; |
4074 |
- |
4075 |
- return ret; |
4076 |
-@@ -237,7 +232,7 @@ |
4077 |
- |
4078 |
- |
4079 |
- struct file_operations RootFileOps = { |
4080 |
-- .readdir = FileOpReaddir, |
4081 |
-+ .iterate = FileOpReaddir, |
4082 |
- .open = FileOpOpen, |
4083 |
- .release = FileOpRelease, |
4084 |
- }; |
4085 |
|
4086 |
diff --git a/app-emulation/vmware-modules/files/304-3.11-01-filldir.patch b/app-emulation/vmware-modules/files/304-3.11-01-filldir.patch |
4087 |
deleted file mode 100644 |
4088 |
index 2eec99b7c1f..00000000000 |
4089 |
--- a/app-emulation/vmware-modules/files/304-3.11-01-filldir.patch |
4090 |
+++ /dev/null |
4091 |
@@ -1,53 +0,0 @@ |
4092 |
-simply remove the code for Filldir since it is no longer used with the new |
4093 |
-iterate_dir API |
4094 |
- |
4095 |
-diff -rupN vmblock-only/linux/file.c vmblock-only.new/linux/file.c |
4096 |
---- vmblock-only/linux/file.c 2014-10-07 23:22:46.832469618 -0400 |
4097 |
-+++ vmblock-only.new/linux/file.c 2014-10-07 23:24:35.276472720 -0400 |
4098 |
-@@ -38,46 +38,6 @@ typedef u64 inode_num_t; |
4099 |
- typedef ino_t inode_num_t; |
4100 |
- #endif |
4101 |
- |
4102 |
--/* Specifically for our filldir_t callback */ |
4103 |
--typedef struct FilldirInfo { |
4104 |
-- filldir_t filldir; |
4105 |
-- void *dirent; |
4106 |
--} FilldirInfo; |
4107 |
-- |
4108 |
-- |
4109 |
--/* |
4110 |
-- *---------------------------------------------------------------------------- |
4111 |
-- * |
4112 |
-- * Filldir -- |
4113 |
-- * |
4114 |
-- * Callback function for readdir that we use in place of the one provided. |
4115 |
-- * This allows us to specify that each dentry is a symlink, but pass through |
4116 |
-- * everything else to the original filldir function. |
4117 |
-- * |
4118 |
-- * Results: |
4119 |
-- * Original filldir's return value. |
4120 |
-- * |
4121 |
-- * Side effects: |
4122 |
-- * Directory information gets copied to user's buffer. |
4123 |
-- * |
4124 |
-- *---------------------------------------------------------------------------- |
4125 |
-- */ |
4126 |
-- |
4127 |
--static int |
4128 |
--Filldir(void *buf, // IN: Dirent buffer passed from FileOpReaddir |
4129 |
-- const char *name, // IN: Dirent name |
4130 |
-- int namelen, // IN: len of dirent's name |
4131 |
-- loff_t offset, // IN: Offset |
4132 |
-- inode_num_t ino, // IN: Inode number of dirent |
4133 |
-- unsigned int d_type) // IN: Type of file |
4134 |
--{ |
4135 |
-- FilldirInfo *info = buf; |
4136 |
-- |
4137 |
-- /* Specify DT_LNK regardless */ |
4138 |
-- return info->filldir(info->dirent, name, namelen, offset, ino, DT_LNK); |
4139 |
--} |
4140 |
-- |
4141 |
-- |
4142 |
- /* File operations */ |
4143 |
- |
4144 |
- /* |
4145 |
|
4146 |
diff --git a/app-emulation/vmware-modules/files/304-3.15-00-vsock.patch b/app-emulation/vmware-modules/files/304-3.15-00-vsock.patch |
4147 |
deleted file mode 100644 |
4148 |
index 9e8d9d1a32f..00000000000 |
4149 |
--- a/app-emulation/vmware-modules/files/304-3.15-00-vsock.patch |
4150 |
+++ /dev/null |
4151 |
@@ -1,46 +0,0 @@ |
4152 |
-removing the no longer existing second parameter to sk_data_ready |
4153 |
-doesn't seem it ever served a purpose. |
4154 |
- |
4155 |
-diff -rupN vsock-only/linux/notify.c vsock-only.new/linux/notify.c |
4156 |
---- vsock-only/linux/notify.c 2013-11-05 23:33:27.000000000 -0500 |
4157 |
-+++ vsock-only.new/linux/notify.c 2014-10-05 23:46:47.943304728 -0400 |
4158 |
-@@ -515,8 +515,11 @@ VSockVmciHandleWrote(struct sock *sk, |
4159 |
- vsk = vsock_sk(sk); |
4160 |
- PKT_FIELD(vsk, sentWaitingRead) = FALSE; |
4161 |
- #endif |
4162 |
-- |
4163 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
4164 |
-+ sk->sk_data_ready(sk); |
4165 |
-+#else |
4166 |
- sk->sk_data_ready(sk, 0); |
4167 |
-+#endif |
4168 |
- } |
4169 |
- |
4170 |
- |
4171 |
-diff -rupN vsock-only/linux/notifyQState.c vsock-only.new/linux/notifyQState.c |
4172 |
---- vsock-only/linux/notifyQState.c 2013-11-05 23:33:27.000000000 -0500 |
4173 |
-+++ vsock-only.new/linux/notifyQState.c 2014-10-05 23:46:33.231303931 -0400 |
4174 |
-@@ -164,7 +164,11 @@ VSockVmciHandleWrote(struct sock *sk, |
4175 |
- struct sockaddr_vm *dst, // IN: unused |
4176 |
- struct sockaddr_vm *src) // IN: unused |
4177 |
- { |
4178 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
4179 |
-+ sk->sk_data_ready(sk); |
4180 |
-+#else |
4181 |
- sk->sk_data_ready(sk, 0); |
4182 |
-+#endif |
4183 |
- } |
4184 |
- |
4185 |
- |
4186 |
-@@ -566,7 +570,11 @@ VSockVmciNotifyPktRecvPostDequeue(struct |
4187 |
- } |
4188 |
- |
4189 |
- /* See the comment in VSockVmciNotifyPktSendPostEnqueue */ |
4190 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
4191 |
-+ sk->sk_data_ready(sk); |
4192 |
-+#else |
4193 |
- sk->sk_data_ready(sk, 0); |
4194 |
-+#endif |
4195 |
- } |
4196 |
- |
4197 |
- return err; |
4198 |
|
4199 |
diff --git a/app-emulation/vmware-modules/files/304-3.18-00-version-redefined.patch b/app-emulation/vmware-modules/files/304-3.18-00-version-redefined.patch |
4200 |
deleted file mode 100644 |
4201 |
index 22d6325c9a9..00000000000 |
4202 |
--- a/app-emulation/vmware-modules/files/304-3.18-00-version-redefined.patch |
4203 |
+++ /dev/null |
4204 |
@@ -1,25 +0,0 @@ |
4205 |
-Hushes some (but not all warnings) relating to redefinitions of this define |
4206 |
---- a/vmci-only/shared/vm_device_version.h 2015-02-07 03:11:55.000000000 +0300 |
4207 |
-+++ c/vmci-only/shared/vm_device_version.h 2015-02-24 03:58:06.041605450 +0300 |
4208 |
-@@ -53,7 +53,9 @@ |
4209 |
- * VMware HD Audio codec |
4210 |
- * VMware HD Audio controller |
4211 |
- */ |
4212 |
-+#ifndef PCI_VENDOR_ID_VMWARE |
4213 |
- #define PCI_VENDOR_ID_VMWARE 0x15AD |
4214 |
-+#endif |
4215 |
- #define PCI_DEVICE_ID_VMWARE_SVGA2 0x0405 |
4216 |
- #define PCI_DEVICE_ID_VMWARE_SVGA 0x0710 |
4217 |
- #define PCI_DEVICE_ID_VMWARE_VGA 0x0711 |
4218 |
---- a/vmnet-only/vm_device_version.h 2015-02-07 03:54:16.000000000 +0300 |
4219 |
-+++ c/vmnet-only/vm_device_version.h 2015-02-24 03:58:06.044604981 +0300 |
4220 |
-@@ -53,7 +53,9 @@ |
4221 |
- * VMware HD Audio codec |
4222 |
- * VMware HD Audio controller |
4223 |
- */ |
4224 |
-+#ifndef PCI_VENDOR_ID_VMWARE |
4225 |
- #define PCI_VENDOR_ID_VMWARE 0x15AD |
4226 |
-+#endif |
4227 |
- #define PCI_DEVICE_ID_VMWARE_SVGA2 0x0405 |
4228 |
- #define PCI_DEVICE_ID_VMWARE_SVGA 0x0710 |
4229 |
- #define PCI_DEVICE_ID_VMWARE_VGA 0x0711 |
4230 |
|
4231 |
diff --git a/app-emulation/vmware-modules/files/304-3.19-00-compat-namei.patch b/app-emulation/vmware-modules/files/304-3.19-00-compat-namei.patch |
4232 |
deleted file mode 100644 |
4233 |
index 0182077254a..00000000000 |
4234 |
--- a/app-emulation/vmware-modules/files/304-3.19-00-compat-namei.patch |
4235 |
+++ /dev/null |
4236 |
@@ -1,24 +0,0 @@ |
4237 |
-A copy of this since it is no longer exported by the kernel headers |
4238 |
---- a/vmblock-only/shared/compat_namei.h 2015-02-07 03:11:55.000000000 +0300 |
4239 |
-+++ c/vmblock-only/shared/compat_namei.h 2015-02-24 03:51:25.235286047 +0300 |
4240 |
-@@ -21,6 +21,20 @@ |
4241 |
- |
4242 |
- #include <linux/namei.h> |
4243 |
- |
4244 |
-+/* Copy-n-paste from kernel's source/fs/namei.c */ |
4245 |
-+struct nameidata { |
4246 |
-+ struct path path; |
4247 |
-+ struct qstr last; |
4248 |
-+ struct path root; |
4249 |
-+ struct inode *inode; /* path.dentry.d_inode */ |
4250 |
-+ unsigned int flags; |
4251 |
-+ unsigned seq, m_seq; |
4252 |
-+ int last_type; |
4253 |
-+ unsigned depth; |
4254 |
-+ struct file *base; |
4255 |
-+ char *saved_names[MAX_NESTED_LINKS + 1]; |
4256 |
-+}; |
4257 |
-+ |
4258 |
- /* |
4259 |
- * In 2.6.25-rc2, dentry and mount objects were removed from the nameidata |
4260 |
- * struct. They were both replaced with a struct path. |
4261 |
|
4262 |
diff --git a/app-emulation/vmware-modules/files/304-3.19-01-dentry.patch b/app-emulation/vmware-modules/files/304-3.19-01-dentry.patch |
4263 |
deleted file mode 100644 |
4264 |
index 3e3be6542dd..00000000000 |
4265 |
--- a/app-emulation/vmware-modules/files/304-3.19-01-dentry.patch |
4266 |
+++ /dev/null |
4267 |
@@ -1,14 +0,0 @@ |
4268 |
-There is an level of abstrxtion in the newre API as of 3.19 here |
4269 |
---- a/vmnet-only/driver.c 2015-02-07 03:54:17.000000000 +0300 |
4270 |
-+++ c/vmnet-only/driver.c 2015-02-24 03:58:06.043605137 +0300 |
4271 |
-@@ -1191,8 +1191,8 @@ |
4272 |
- struct inode *inode = NULL; |
4273 |
- long err; |
4274 |
- |
4275 |
-- if (filp && filp->f_dentry) { |
4276 |
-- inode = filp->f_dentry->d_inode; |
4277 |
-+ if (filp && filp->f_path.dentry) { |
4278 |
-+ inode = filp->f_path.dentry->d_inode; |
4279 |
- } |
4280 |
- err = VNetFileOpIoctl(inode, filp, iocmd, ioarg); |
4281 |
- return err; |
4282 |
|
4283 |
diff --git a/app-emulation/vmware-modules/files/304-3.19-02-vmblock-path.patch b/app-emulation/vmware-modules/files/304-3.19-02-vmblock-path.patch |
4284 |
deleted file mode 100644 |
4285 |
index 178d1478ae5..00000000000 |
4286 |
--- a/app-emulation/vmware-modules/files/304-3.19-02-vmblock-path.patch |
4287 |
+++ /dev/null |
4288 |
@@ -1,67 +0,0 @@ |
4289 |
-Sources: |
4290 |
-https://531682.bugs.gentoo.org/attachment.cgi?id=396484 |
4291 |
-https://531682.bugs.gentoo.org/attachment.cgi?id=396482 |
4292 |
-diff -rupN vmblock-only.orig/linux/dentry.c vmblock-only/linux/dentry.c |
4293 |
---- vmblock-only.orig/linux/dentry.c 2015-02-14 18:05:46.000000000 -0500 |
4294 |
-+++ vmblock-only/linux/dentry.c 2015-02-14 18:09:59.000000000 -0500 |
4295 |
-@@ -63,7 +63,7 @@ DentryOpRevalidate(struct dentry *dentry |
4296 |
- unsigned int flags) // IN: lookup flags & intent |
4297 |
- { |
4298 |
- VMBlockInodeInfo *iinfo; |
4299 |
-- struct nameidata actualNd; |
4300 |
-+ struct path actualNd; |
4301 |
- struct dentry *actualDentry; |
4302 |
- int ret; |
4303 |
- |
4304 |
-diff -rupN vmblock-only.orig/linux/filesystem.c vmblock-only/linux/filesystem.c |
4305 |
---- vmblock-only.orig/linux/filesystem.c 2014-11-20 19:29:15.000000000 -0500 |
4306 |
-+++ vmblock-only/linux/filesystem.c 2015-02-14 18:10:49.000000000 -0500 |
4307 |
-@@ -322,7 +322,7 @@ Iget(struct super_block *sb, // IN: f |
4308 |
- { |
4309 |
- VMBlockInodeInfo *iinfo; |
4310 |
- struct inode *inode; |
4311 |
-- struct nameidata actualNd; |
4312 |
-+ struct path actualNd; |
4313 |
- |
4314 |
- ASSERT(sb); |
4315 |
- |
4316 |
-diff -rupN vmblock-only.orig/shared/compat_namei.h vmblock-only/shared/compat_namei.h |
4317 |
---- vmblock-only.orig/shared/compat_namei.h 2014-11-20 19:29:15.000000000 -0500 |
4318 |
-+++ vmblock-only/shared/compat_namei.h 2015-02-14 18:08:38.000000000 -0500 |
4319 |
-@@ -26,21 +26,21 @@ |
4320 |
- * struct. They were both replaced with a struct path. |
4321 |
- */ |
4322 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
4323 |
--#define compat_vmw_nd_to_dentry(nd) (nd).path.dentry |
4324 |
-+#define compat_vmw_nd_to_dentry(nd) (nd).dentry |
4325 |
- #else |
4326 |
- #define compat_vmw_nd_to_dentry(nd) (nd).dentry |
4327 |
- #endif |
4328 |
- |
4329 |
- /* In 2.6.25-rc2, path_release(&nd) was replaced with path_put(&nd.path). */ |
4330 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
4331 |
--#define compat_path_release(nd) path_put(&(nd)->path) |
4332 |
-+#define compat_path_release(nd) path_put(nd) |
4333 |
- #else |
4334 |
- #define compat_path_release(nd) path_release(nd) |
4335 |
- #endif |
4336 |
- |
4337 |
- /* path_lookup was removed in 2.6.39 merge window VFS merge */ |
4338 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) |
4339 |
--#define compat_path_lookup(name, flags, nd) kern_path(name, flags, &((nd)->path)) |
4340 |
-+#define compat_path_lookup(name, flags, nd) kern_path(name, flags, nd) |
4341 |
- #else |
4342 |
- #define compat_path_lookup(name, flags, nd) path_lookup(name, flags, nd) |
4343 |
- #endif |
4344 |
-diff -u vmblock-only.orig/linux/file.c vmblock-only/linux/file.c |
4345 |
---- vmblock-only.orig/linux/file.c 2015-02-11 12:18:29.000000000 -0500 |
4346 |
-+++ vmblock-only/linux/file.c 2015-02-11 12:41:41.000000000 -0500 |
4347 |
-@@ -92,7 +92,7 @@ |
4348 |
- * and that would try to acquire the inode's semaphore; if the two inodes |
4349 |
- * are the same we'll deadlock. |
4350 |
- */ |
4351 |
-- if (actualFile->f_dentry && inode == actualFile->f_dentry->d_inode) { |
4352 |
-+ if (actualFile->f_path.dentry && inode == actualFile->f_path.dentry->d_inode) { |
4353 |
- Warning("FileOpOpen: identical inode encountered, open cannot succeed.\n"); |
4354 |
- if (filp_close(actualFile, current->files) < 0) { |
4355 |
- Warning("FileOpOpen: unable to close opened file.\n"); |
4356 |
|
4357 |
diff --git a/app-emulation/vmware-modules/files/304-3.19-03-iovec.patch b/app-emulation/vmware-modules/files/304-3.19-03-iovec.patch |
4358 |
deleted file mode 100644 |
4359 |
index 726d1173b3b..00000000000 |
4360 |
--- a/app-emulation/vmware-modules/files/304-3.19-03-iovec.patch |
4361 |
+++ /dev/null |
4362 |
@@ -1,20 +0,0 @@ |
4363 |
-using new iterator based API, this matches exactly the changes made upstream as of vmware-modules-304.2 |
4364 |
---- a/vmnet-only/userif.c 2015-02-07 03:54:17.000000000 +0300 |
4365 |
-+++ c/vmnet-only/userif.c 2015-02-24 03:58:06.043605137 +0300 |
4366 |
-@@ -523,7 +523,15 @@ |
4367 |
- .iov_base = buf, |
4368 |
- .iov_len = len, |
4369 |
- }; |
4370 |
-- return skb_copy_datagram_iovec(skb, 0, &iov, len); |
4371 |
-+ |
4372 |
-+ |
4373 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) |
4374 |
-+ return skb_copy_datagram_iovec(skb, 0, &iov, len); |
4375 |
-+#else |
4376 |
-+ struct iov_iter to; |
4377 |
-+ iov_iter_init(&to, READ, &iov, 1, len); |
4378 |
-+ return skb_copy_datagram_iter(skb, 0, &to, len); |
4379 |
-+#endif |
4380 |
- } |
4381 |
- |
4382 |
- |
4383 |
|
4384 |
diff --git a/app-emulation/vmware-modules/files/304-3.19-04-iovec.patch b/app-emulation/vmware-modules/files/304-3.19-04-iovec.patch |
4385 |
deleted file mode 100644 |
4386 |
index 83f0cc8fcbb..00000000000 |
4387 |
--- a/app-emulation/vmware-modules/files/304-3.19-04-iovec.patch |
4388 |
+++ /dev/null |
4389 |
@@ -1,59 +0,0 @@ |
4390 |
-Some parts of the iovec API were replaced by the similar message API. Refactoring the code to use that. |
4391 |
---- a/vmci-only/linux/vmciKernelIf.c 2015-02-07 03:11:55.000000000 +0300 |
4392 |
-+++ c/vmci-only/linux/vmciKernelIf.c 2015-02-24 03:58:06.041605450 +0300 |
4393 |
-@@ -40,6 +40,7 @@ |
4394 |
- #include <linux/socket.h> /* For memcpy_{to,from}iovec(). */ |
4395 |
- #include <linux/vmalloc.h> |
4396 |
- #include <linux/wait.h> |
4397 |
-+#include <linux/skbuff.h> |
4398 |
- |
4399 |
- #include "compat_highmem.h" |
4400 |
- #include "compat_interrupt.h" |
4401 |
-@@ -1196,21 +1197,21 @@ |
4402 |
- } else { |
4403 |
- toCopy = size - bytesCopied; |
4404 |
- } |
4405 |
-- |
4406 |
-+ /* Code cloned from kernels drivers/misc/vmw_vmci/vmci_queue_pair.c */ |
4407 |
- if (isIovec) { |
4408 |
-- struct iovec *iov = (struct iovec *)src; |
4409 |
-- int err; |
4410 |
-+ struct msghdr *msg = (struct msghdr *)src; |
4411 |
-+ int err; |
4412 |
- |
4413 |
-- /* The iovec will track bytesCopied internally. */ |
4414 |
-- err = memcpy_fromiovec((uint8 *)va + pageOffset, iov, toCopy); |
4415 |
-- if (err != 0) { |
4416 |
-- if (kernelIf->host) { |
4417 |
-- kunmap(kernelIf->u.h.page[pageIndex]); |
4418 |
-+ /* The iovec will track bytes_copied internally. */ |
4419 |
-+ err = memcpy_from_msg((u8 *)va + pageOffset, msg, toCopy); |
4420 |
-+ if (err != 0) { |
4421 |
-+ if (kernelIf->host) |
4422 |
-+ kunmap(kernelIf->u.h.page[pageIndex]); |
4423 |
-+ return VMCI_ERROR_INVALID_ARGS; |
4424 |
- } |
4425 |
-- return VMCI_ERROR_INVALID_ARGS; |
4426 |
-- } |
4427 |
-- } else { |
4428 |
-- memcpy((uint8 *)va + pageOffset, (uint8 *)src + bytesCopied, toCopy); |
4429 |
-+ } else { |
4430 |
-+ memcpy((u8 *)va + pageOffset, |
4431 |
-+ (u8 *)src + bytesCopied, toCopy); |
4432 |
- } |
4433 |
- |
4434 |
- bytesCopied += toCopy; |
4435 |
-@@ -1273,11 +1274,11 @@ |
4436 |
- } |
4437 |
- |
4438 |
- if (isIovec) { |
4439 |
-- struct iovec *iov = (struct iovec *)dest; |
4440 |
-+ struct msghdr *msg = (struct msghdr *)dest; |
4441 |
- int err; |
4442 |
- |
4443 |
- /* The iovec will track bytesCopied internally. */ |
4444 |
-- err = memcpy_toiovec(iov, (uint8 *)va + pageOffset, toCopy); |
4445 |
-+ err = memcpy_to_msg(msg, (uint8 *)va + pageOffset, toCopy); |
4446 |
- if (err != 0) { |
4447 |
- if (kernelIf->host) { |
4448 |
- kunmap(kernelIf->u.h.page[pageIndex]); |
4449 |
|
4450 |
diff --git a/app-emulation/vmware-modules/files/304-3.19-05-vmci_qpair.patch b/app-emulation/vmware-modules/files/304-3.19-05-vmci_qpair.patch |
4451 |
deleted file mode 100644 |
4452 |
index 4dec3c46820..00000000000 |
4453 |
--- a/app-emulation/vmware-modules/files/304-3.19-05-vmci_qpair.patch |
4454 |
+++ /dev/null |
4455 |
@@ -1,25 +0,0 @@ |
4456 |
-Some parts of the iovec API were replaced by the similar message API. Refactoring the code to use that. |
4457 |
-diff -rupN vsock-only.old/linux/af_vsock.c vsock-only/linux/af_vsock.c |
4458 |
---- vsock-only.old/linux/af_vsock.c 2015-05-06 20:41:47.684046762 -0400 |
4459 |
-+++ vsock-only/linux/af_vsock.c 2015-05-06 20:52:15.245080779 -0400 |
4460 |
-@@ -4629,7 +4629,7 @@ VSockVmciStreamSendmsg(struct kiocb *kio |
4461 |
- * able to send. |
4462 |
- */ |
4463 |
- |
4464 |
-- written = vmci_qpair_enquev(vsk->qpair, msg->msg_iov, |
4465 |
-+ written = vmci_qpair_enquev(vsk->qpair, &msg->msg_iter.iov, |
4466 |
- len - totalWritten, 0); |
4467 |
- if (written < 0) { |
4468 |
- err = -ENOMEM; |
4469 |
-@@ -4874,9 +4874,9 @@ VSockVmciStreamRecvmsg(struct kiocb *kio |
4470 |
- } |
4471 |
- |
4472 |
- if (flags & MSG_PEEK) { |
4473 |
-- read = vmci_qpair_peekv(vsk->qpair, msg->msg_iov, len - copied, 0); |
4474 |
-+ read = vmci_qpair_peekv(vsk->qpair, &msg->msg_iter.iov, len - copied, 0); |
4475 |
- } else { |
4476 |
-- read = vmci_qpair_dequev(vsk->qpair, msg->msg_iov, len - copied, 0); |
4477 |
-+ read = vmci_qpair_dequev(vsk->qpair, &msg->msg_iter.iov, len - copied, 0); |
4478 |
- } |
4479 |
- |
4480 |
- if (read < 0) { |
4481 |
|
4482 |
diff --git a/app-emulation/vmware-modules/files/304-3.19-06-vsock.patch b/app-emulation/vmware-modules/files/304-3.19-06-vsock.patch |
4483 |
deleted file mode 100644 |
4484 |
index 9a2096e679a..00000000000 |
4485 |
--- a/app-emulation/vmware-modules/files/304-3.19-06-vsock.patch |
4486 |
+++ /dev/null |
4487 |
@@ -1,16 +0,0 @@ |
4488 |
-Some parts of the iovec API were replaced by the similar message API. Refactoring the code to use that. |
4489 |
-diff -rupN vsock-only/linux/af_vsock.c vsock-only.new/linux/af_vsock.c |
4490 |
---- vsock-only/linux/af_vsock.c 2015-05-05 11:31:35.710099711 -0400 |
4491 |
-+++ vsock-only.new/linux/af_vsock.c 2015-05-05 11:36:33.260115840 -0400 |
4492 |
-@@ -4727,7 +4727,11 @@ VSockVmciDgramRecvmsg(struct kiocb *kioc |
4493 |
- } |
4494 |
- |
4495 |
- /* Place the datagram payload in the user's iovec. */ |
4496 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) |
4497 |
- err = skb_copy_datagram_iovec(skb, sizeof *dg, msg->msg_iov, payloadLen); |
4498 |
-+#else |
4499 |
-+ err = skb_copy_datagram_iter(skb, sizeof *dg, &msg->msg_iter, payloadLen); |
4500 |
-+#endif |
4501 |
- if (err) { |
4502 |
- goto out; |
4503 |
- } |
4504 |
|
4505 |
diff --git a/app-emulation/vmware-modules/files/304-3.19-07-vsock.patch b/app-emulation/vmware-modules/files/304-3.19-07-vsock.patch |
4506 |
deleted file mode 100644 |
4507 |
index 6aec2cd3d7b..00000000000 |
4508 |
--- a/app-emulation/vmware-modules/files/304-3.19-07-vsock.patch |
4509 |
+++ /dev/null |
4510 |
@@ -1,13 +0,0 @@ |
4511 |
-Some parts of the iovec API were replaced by the similar message API. Refactoring the code to use that. |
4512 |
-diff -rupN vsock-only/linux/af_vsock.c vsock-only.new/linux/af_vsock.c |
4513 |
---- vsock-only/linux/af_vsock.c 2015-05-05 11:26:05.145081792 -0400 |
4514 |
-+++ vsock-only.new/linux/af_vsock.c 2015-05-05 11:30:54.304097466 -0400 |
4515 |
-@@ -4266,7 +4266,7 @@ VSockVmciDgramSendmsg(struct kiocb *kioc |
4516 |
- goto out; |
4517 |
- } |
4518 |
- |
4519 |
-- memcpy_fromiovec(VMCI_DG_PAYLOAD(dg), msg->msg_iov, len); |
4520 |
-+ memcpy_from_msg(VMCI_DG_PAYLOAD(dg), msg, len); |
4521 |
- |
4522 |
- dg->dst = VMCI_MAKE_HANDLE(remoteAddr->svm_cid, remoteAddr->svm_port); |
4523 |
- dg->src = VMCI_MAKE_HANDLE(vsk->localAddr.svm_cid, vsk->localAddr.svm_port); |
4524 |
|
4525 |
diff --git a/app-emulation/vmware-modules/files/304-4.2-00-inode_op.patch b/app-emulation/vmware-modules/files/304-4.2-00-inode_op.patch |
4526 |
deleted file mode 100644 |
4527 |
index e6f2acbbb6a..00000000000 |
4528 |
--- a/app-emulation/vmware-modules/files/304-4.2-00-inode_op.patch |
4529 |
+++ /dev/null |
4530 |
@@ -1,45 +0,0 @@ |
4531 |
-diff -rupN vmblock-only/linux/inode.c vmblock-only.new/linux/inode.c |
4532 |
---- vmblock-only/linux/inode.c 2016-03-16 21:24:25.771034759 -0400 |
4533 |
-+++ vmblock-only.new/linux/inode.c 2016-03-16 21:26:22.697036311 -0400 |
4534 |
-@@ -44,7 +44,9 @@ static struct dentry *InodeOpLookup(stru |
4535 |
- static int InodeOpReadlink(struct dentry *, char __user *, int); |
4536 |
- #endif |
4537 |
- |
4538 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4539 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4540 |
-+static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie); |
4541 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4542 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
4543 |
- #else |
4544 |
- static int InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
4545 |
-@@ -220,7 +222,9 @@ InodeOpReadlink(struct dentry *dentry, |
4546 |
- * |
4547 |
- *---------------------------------------------------------------------------- |
4548 |
- */ |
4549 |
-- |
4550 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4551 |
-+static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie) |
4552 |
-+#else |
4553 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4554 |
- static void * |
4555 |
- #else |
4556 |
-@@ -228,6 +232,7 @@ static int |
4557 |
- #endif |
4558 |
- InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
4559 |
- struct nameidata *nd) // OUT: stores result |
4560 |
-+#endif |
4561 |
- { |
4562 |
- int ret; |
4563 |
- VMBlockInodeInfo *iinfo; |
4564 |
-@@ -244,7 +249,11 @@ InodeOpFollowlink(struct dentry *dentry, |
4565 |
- goto out; |
4566 |
- } |
4567 |
- |
4568 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4569 |
-+ return *cookie = (char *)(iinfo->name); |
4570 |
-+#else |
4571 |
- nd_set_link(nd, iinfo->name); |
4572 |
-+#endif |
4573 |
- |
4574 |
- out: |
4575 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4576 |
|
4577 |
diff --git a/app-emulation/vmware-modules/files/304-4.2-01-inode.patch b/app-emulation/vmware-modules/files/304-4.2-01-inode.patch |
4578 |
deleted file mode 100644 |
4579 |
index 35a275bf336..00000000000 |
4580 |
--- a/app-emulation/vmware-modules/files/304-4.2-01-inode.patch |
4581 |
+++ /dev/null |
4582 |
@@ -1,46 +0,0 @@ |
4583 |
---- vmblock-only/linux/inode.c.orig 2015-09-28 01:11:08.000000000 +0300 |
4584 |
-+++ vmblock-only/linux/inode.c 2015-09-28 01:14:32.318043465 +0300 |
4585 |
-@@ -44,7 +44,9 @@ |
4586 |
- static int InodeOpReadlink(struct dentry *, char __user *, int); |
4587 |
- #endif |
4588 |
- |
4589 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4590 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4591 |
-+static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie); |
4592 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4593 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
4594 |
- #else |
4595 |
- static int InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
4596 |
-@@ -221,13 +223,15 @@ |
4597 |
- *---------------------------------------------------------------------------- |
4598 |
- */ |
4599 |
- |
4600 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4601 |
--static void * |
4602 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4603 |
-+static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie) |
4604 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4605 |
-+static void * InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
4606 |
-+ struct nameidata *nd) // OUT: stores result |
4607 |
- #else |
4608 |
--static int |
4609 |
--#endif |
4610 |
--InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
4611 |
-+static int InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
4612 |
- struct nameidata *nd) // OUT: stores result |
4613 |
-+#endif |
4614 |
- { |
4615 |
- int ret; |
4616 |
- VMBlockInodeInfo *iinfo; |
4617 |
-@@ -244,7 +248,11 @@ |
4618 |
- goto out; |
4619 |
- } |
4620 |
- |
4621 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4622 |
-+ return *cookie = (char *)(iinfo->name); |
4623 |
-+#else |
4624 |
- nd_set_link(nd, iinfo->name); |
4625 |
-+#endif |
4626 |
- |
4627 |
- out: |
4628 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4629 |
|
4630 |
diff --git a/app-emulation/vmware-modules/files/304-4.2-01-vmci_vmalloc.patch b/app-emulation/vmware-modules/files/304-4.2-01-vmci_vmalloc.patch |
4631 |
deleted file mode 100644 |
4632 |
index 2296c060bff..00000000000 |
4633 |
--- a/app-emulation/vmware-modules/files/304-4.2-01-vmci_vmalloc.patch |
4634 |
+++ /dev/null |
4635 |
@@ -1,13 +0,0 @@ |
4636 |
-diff -rupN vmci-only/linux/driver.c vmci-only.new/linux/driver.c |
4637 |
---- vmci-only/linux/driver.c 2015-11-03 19:27:55.000000000 -0500 |
4638 |
-+++ vmci-only.new/linux/driver.c 2016-03-16 21:30:47.646039829 -0400 |
4639 |
-@@ -26,6 +26,9 @@ |
4640 |
- |
4641 |
- #include <linux/file.h> |
4642 |
- #include <linux/fs.h> |
4643 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4644 |
-+#include <linux/vmalloc.h> |
4645 |
-+#endif |
4646 |
- #include <linux/init.h> |
4647 |
- #if defined(__x86_64__) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) |
4648 |
- # include <linux/ioctl32.h> |
4649 |
|
4650 |
diff --git a/app-emulation/vmware-modules/files/304-4.2-02-vmnetInt.patch b/app-emulation/vmware-modules/files/304-4.2-02-vmnetInt.patch |
4651 |
deleted file mode 100644 |
4652 |
index 11c76d0423e..00000000000 |
4653 |
--- a/app-emulation/vmware-modules/files/304-4.2-02-vmnetInt.patch |
4654 |
+++ /dev/null |
4655 |
@@ -1,23 +0,0 @@ |
4656 |
---- vmnet-only/vmnetInt.h.orig 2015-05-31 16:40:39.000000000 +0300 |
4657 |
-+++ vmnet-only/vmnetInt.h 2015-09-28 01:22:01.553054142 +0300 |
4658 |
-@@ -78,12 +78,16 @@ |
4659 |
- |
4660 |
- extern struct proto vmnet_proto; |
4661 |
- #ifdef VMW_NETDEV_HAS_NET |
4662 |
--# define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \ |
4663 |
-- PF_NETLINK, _pri, &vmnet_proto) |
4664 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4665 |
-+# define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \ |
4666 |
-+ PF_NETLINK, _pri, &vmnet_proto, 1) |
4667 |
- #else |
4668 |
--# define compat_sk_alloc(_bri, _pri) sk_alloc(PF_NETLINK, _pri, &vmnet_proto, 1) |
4669 |
-+# define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \ |
4670 |
-+ PF_NETLINK, _pri, &vmnet_proto) |
4671 |
-+#endif |
4672 |
-+#else |
4673 |
-+# define compat_sk_alloc(_bri, _pri) sk_alloc(PF_NETLINK, _pri, &vmnet_proto, 1) |
4674 |
- #endif |
4675 |
-- |
4676 |
- |
4677 |
- #ifdef NF_IP_LOCAL_IN |
4678 |
- #define VMW_NF_INET_LOCAL_IN NF_IP_LOCAL_IN |
4679 |
|
4680 |
diff --git a/app-emulation/vmware-modules/files/304-4.2-02-vsock.patch b/app-emulation/vmware-modules/files/304-4.2-02-vsock.patch |
4681 |
deleted file mode 100644 |
4682 |
index bdac109e6c6..00000000000 |
4683 |
--- a/app-emulation/vmware-modules/files/304-4.2-02-vsock.patch |
4684 |
+++ /dev/null |
4685 |
@@ -1,77 +0,0 @@ |
4686 |
-diff -rupN vsock-only/linux/af_vsock.c vsock-only.new/linux/af_vsock.c |
4687 |
---- vsock-only/linux/af_vsock.c 2016-03-16 21:31:24.582040320 -0400 |
4688 |
-+++ vsock-only.new/linux/af_vsock.c 2016-03-16 21:37:22.140045067 -0400 |
4689 |
-@@ -231,7 +231,16 @@ static int VSockVmciStreamSetsockopt(str |
4690 |
- |
4691 |
- static int VSockVmciStreamGetsockopt(struct socket *sock, int level, int optname, |
4692 |
- char __user *optval, int __user * optlen); |
4693 |
-- |
4694 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4695 |
-+static int VSockVmciDgramSendmsg( |
4696 |
-+ struct socket *sock, struct msghdr *msg, size_t len); |
4697 |
-+static int VSockVmciDgramRecvmsg(struct socket *sock, |
4698 |
-+ struct msghdr *msg, size_t len, int flags); |
4699 |
-+static int VSockVmciStreamSendmsg( |
4700 |
-+ struct socket *sock, struct msghdr *msg, size_t len); |
4701 |
-+static int VSockVmciStreamRecvmsg(struct socket *sock, |
4702 |
-+ struct msghdr *msg, size_t len, int flags); |
4703 |
-+#else |
4704 |
- static int VSockVmciDgramSendmsg(struct kiocb *kiocb, |
4705 |
- struct socket *sock, struct msghdr *msg, size_t len); |
4706 |
- static int VSockVmciDgramRecvmsg(struct kiocb *kiocb, struct socket *sock, |
4707 |
-@@ -240,6 +249,7 @@ static int VSockVmciStreamSendmsg(struct |
4708 |
- struct socket *sock, struct msghdr *msg, size_t len); |
4709 |
- static int VSockVmciStreamRecvmsg(struct kiocb *kiocb, struct socket *sock, |
4710 |
- struct msghdr *msg, size_t len, int flags); |
4711 |
-+#endif |
4712 |
- |
4713 |
- static int VSockVmciCreate( |
4714 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24) |
4715 |
-@@ -4210,7 +4220,11 @@ VSockVmciShutdown(struct socket *sock, |
4716 |
- */ |
4717 |
- |
4718 |
- static int |
4719 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4720 |
-+VSockVmciDgramSendmsg( |
4721 |
-+#else |
4722 |
- VSockVmciDgramSendmsg(struct kiocb *kiocb, // UNUSED |
4723 |
-+#endif |
4724 |
- struct socket *sock, // IN: socket to send on |
4725 |
- struct msghdr *msg, // IN: message to send |
4726 |
- size_t len) // IN: length of message |
4727 |
-@@ -4540,7 +4554,11 @@ VSockVmciStreamGetsockopt(struct socket |
4728 |
- */ |
4729 |
- |
4730 |
- static int |
4731 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4732 |
-+VSockVmciStreamSendmsg( |
4733 |
-+#else |
4734 |
- VSockVmciStreamSendmsg(struct kiocb *kiocb, // UNUSED |
4735 |
-+#endif |
4736 |
- struct socket *sock, // IN: socket to send on |
4737 |
- struct msghdr *msg, // IN: message to send |
4738 |
- size_t len) // IN: length of message |
4739 |
-@@ -4709,7 +4727,11 @@ out: |
4740 |
- */ |
4741 |
- |
4742 |
- static int |
4743 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4744 |
-+VSockVmciDgramRecvmsg( |
4745 |
-+#else |
4746 |
- VSockVmciDgramRecvmsg(struct kiocb *kiocb, // UNUSED |
4747 |
-+#endif |
4748 |
- struct socket *sock, // IN: socket to receive from |
4749 |
- struct msghdr *msg, // IN/OUT: message to receive into |
4750 |
- size_t len, // IN: length of receive buffer |
4751 |
-@@ -4804,7 +4826,11 @@ out: |
4752 |
- */ |
4753 |
- |
4754 |
- static int |
4755 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4756 |
-+VSockVmciStreamRecvmsg( |
4757 |
-+#else |
4758 |
- VSockVmciStreamRecvmsg(struct kiocb *kiocb, // UNUSED |
4759 |
-+#endif |
4760 |
- struct socket *sock, // IN: socket to receive from |
4761 |
- struct msghdr *msg, // IN/OUT: message to receive into |
4762 |
- size_t len, // IN: length of receive buffer |
4763 |
|
4764 |
diff --git a/app-emulation/vmware-modules/files/304-4.2-03-af_vsock.patch b/app-emulation/vmware-modules/files/304-4.2-03-af_vsock.patch |
4765 |
deleted file mode 100644 |
4766 |
index 6155df42597..00000000000 |
4767 |
--- a/app-emulation/vmware-modules/files/304-4.2-03-af_vsock.patch |
4768 |
+++ /dev/null |
4769 |
@@ -1,13 +0,0 @@ |
4770 |
---- vsock-only/linux/af_vsock.c.orig 2015-09-28 01:26:51.354061029 +0300 |
4771 |
-+++ vsock-only/linux/af_vsock.c 2015-09-28 01:25:11.196058649 +0300 |
4772 |
-@@ -2826,7 +2826,9 @@ |
4773 |
- * network namespace, and the option to zero the sock was dropped. |
4774 |
- * |
4775 |
- */ |
4776 |
--#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) |
4777 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4778 |
-+ sk = sk_alloc(net, vsockVmciFamilyOps.family, priority, &vsockVmciProto, 1); |
4779 |
-+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) |
4780 |
- sk = sk_alloc(vsockVmciFamilyOps.family, priority, |
4781 |
- vsockVmciProto.slab_obj_size, vsockVmciProto.slab); |
4782 |
- #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) |
4783 |
|
4784 |
diff --git a/app-emulation/vmware-modules/files/304-4.2-03-vsock.patch b/app-emulation/vmware-modules/files/304-4.2-03-vsock.patch |
4785 |
deleted file mode 100644 |
4786 |
index a2504a6a15e..00000000000 |
4787 |
--- a/app-emulation/vmware-modules/files/304-4.2-03-vsock.patch |
4788 |
+++ /dev/null |
4789 |
@@ -1,14 +0,0 @@ |
4790 |
-diff -rupN vsock-only/linux/af_vsock.c vsock-only.new/linux/af_vsock.c |
4791 |
---- vsock-only/linux/af_vsock.c 2016-03-16 21:38:01.401045589 -0400 |
4792 |
-+++ vsock-only.new/linux/af_vsock.c 2016-03-16 21:39:32.529046799 -0400 |
4793 |
-@@ -2836,7 +2836,9 @@ __VSockVmciCreate(struct net *net, |
4794 |
- * network namespace, and the option to zero the sock was dropped. |
4795 |
- * |
4796 |
- */ |
4797 |
--#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) |
4798 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4799 |
-+ sk = sk_alloc(net, vsockVmciFamilyOps.family, priority, &vsockVmciProto, 1); |
4800 |
-+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) |
4801 |
- sk = sk_alloc(vsockVmciFamilyOps.family, priority, |
4802 |
- vsockVmciProto.slab_obj_size, vsockVmciProto.slab); |
4803 |
- #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) |
4804 |
|
4805 |
diff --git a/app-emulation/vmware-modules/files/304-4.2-04-driver.patch b/app-emulation/vmware-modules/files/304-4.2-04-driver.patch |
4806 |
deleted file mode 100644 |
4807 |
index 237aa2297a3..00000000000 |
4808 |
--- a/app-emulation/vmware-modules/files/304-4.2-04-driver.patch |
4809 |
+++ /dev/null |
4810 |
@@ -1,50 +0,0 @@ |
4811 |
---- vmci-only/linux/driver.c.orig 2015-09-28 01:33:04.416069896 +0300 |
4812 |
-+++ vmci-only/linux/driver.c 2015-09-28 01:34:32.814071997 +0300 |
4813 |
-@@ -26,6 +26,7 @@ |
4814 |
- |
4815 |
- #include <linux/file.h> |
4816 |
- #include <linux/fs.h> |
4817 |
-+#include <linux/vmalloc.h> |
4818 |
- #include <linux/init.h> |
4819 |
- #if defined(__x86_64__) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) |
4820 |
- # include <linux/ioctl32.h> |
4821 |
-@@ -713,7 +714,7 @@ |
4822 |
- |
4823 |
- case IOCTL_VMCI_INIT_CONTEXT: { |
4824 |
- VMCIInitBlock initBlock; |
4825 |
-- VMCIHostUser user; |
4826 |
-+ uid_t user; |
4827 |
- |
4828 |
- retval = copy_from_user(&initBlock, (void *)ioarg, sizeof initBlock); |
4829 |
- if (retval != 0) { |
4830 |
-@@ -736,7 +736,11 @@ |
4831 |
- goto init_release; |
4832 |
- } |
4833 |
- |
4834 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) |
4835 |
- user = current_uid(); |
4836 |
-+#else |
4837 |
-+ user = from_kuid(&init_user_ns, current_uid()); |
4838 |
-+#endif |
4839 |
- retval = VMCIContext_InitContext(initBlock.cid, initBlock.flags, |
4840 |
- 0 /* Unused */, vmciLinux->userVersion, |
4841 |
- &user, &vmciLinux->context); |
4842 |
- |
4843 |
-@@ -1683,7 +1684,7 @@ |
4844 |
- /* This should be last to make sure we are done initializing. */ |
4845 |
- retval = pci_register_driver(&vmci_driver); |
4846 |
- if (retval < 0) { |
4847 |
-- vfree(data_buffer); |
4848 |
-+ kvfree(data_buffer); |
4849 |
- data_buffer = NULL; |
4850 |
- return retval; |
4851 |
- } |
4852 |
-@@ -2470,7 +2471,7 @@ |
4853 |
- |
4854 |
- if (guestDeviceInit) { |
4855 |
- pci_unregister_driver(&vmci_driver); |
4856 |
-- vfree(data_buffer); |
4857 |
-+ kvfree(data_buffer); |
4858 |
- guestDeviceInit = FALSE; |
4859 |
- } |
4860 |
- |
4861 |
|
4862 |
diff --git a/app-emulation/vmware-modules/files/304-4.3-00-misc_deregister.patch b/app-emulation/vmware-modules/files/304-4.3-00-misc_deregister.patch |
4863 |
deleted file mode 100644 |
4864 |
index 32d960dfbca..00000000000 |
4865 |
--- a/app-emulation/vmware-modules/files/304-4.3-00-misc_deregister.patch |
4866 |
+++ /dev/null |
4867 |
@@ -1,34 +0,0 @@ |
4868 |
-diff -rupN vmci-only/linux/driver.c vmci-only.new/linux/driver.c |
4869 |
---- vmci-only/linux/driver.c 2016-03-16 21:59:30.229062702 -0400 |
4870 |
-+++ vmci-only.new/linux/driver.c 2016-03-16 21:58:35.452061974 -0400 |
4871 |
-@@ -2469,7 +2469,9 @@ vmci_init(void) |
4872 |
- static void __exit |
4873 |
- vmci_exit(void) |
4874 |
- { |
4875 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) |
4876 |
- int retval; |
4877 |
-+#endif |
4878 |
- |
4879 |
- if (guestDeviceInit) { |
4880 |
- pci_unregister_driver(&vmci_driver); |
4881 |
- |
4882 |
-diff -rupN vmci-only/linux/driver.c vmci-only.new/linux/driver.c |
4883 |
---- vmci-only/linux/driver.c 2016-03-16 21:53:24.184057841 -0400 |
4884 |
-+++ vmci-only.new/linux/driver.c 2016-03-16 21:54:37.558058816 -0400 |
4885 |
-@@ -2482,12 +2482,16 @@ vmci_exit(void) |
4886 |
- |
4887 |
- VMCI_HostCleanup(); |
4888 |
- |
4889 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4890 |
-+ misc_deregister(&linuxState.misc); |
4891 |
-+#else |
4892 |
- retval = misc_deregister(&linuxState.misc); |
4893 |
- if (retval) { |
4894 |
- Warning(LGPFX "Module %s: error unregistering\n", VMCI_MODULE_NAME); |
4895 |
- } else { |
4896 |
- Log(LGPFX"Module %s: unloaded\n", VMCI_MODULE_NAME); |
4897 |
- } |
4898 |
-+#endif |
4899 |
- |
4900 |
- hostDeviceInit = FALSE; |
4901 |
- } |
4902 |
|
4903 |
diff --git a/app-emulation/vmware-modules/files/304-4.5-00-get_link.patch b/app-emulation/vmware-modules/files/304-4.5-00-get_link.patch |
4904 |
deleted file mode 100644 |
4905 |
index 169fc71d9e2..00000000000 |
4906 |
--- a/app-emulation/vmware-modules/files/304-4.5-00-get_link.patch |
4907 |
+++ /dev/null |
4908 |
@@ -1,67 +0,0 @@ |
4909 |
-diff -rupN vmblock-only/linux/inode.c vmblock-only.new/linux/inode.c |
4910 |
---- vmblock-only/linux/inode.c 2016-03-16 22:22:00.470080630 -0400 |
4911 |
-+++ vmblock-only.new/linux/inode.c 2016-03-16 22:23:33.016081859 -0400 |
4912 |
-@@ -44,7 +44,9 @@ static struct dentry *InodeOpLookup(stru |
4913 |
- static int InodeOpReadlink(struct dentry *, char __user *, int); |
4914 |
- #endif |
4915 |
- |
4916 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4917 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) |
4918 |
-+const char *InodeOpGetLink(struct dentry *dentry, struct inode *inode, struct delayed_call *done); |
4919 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4920 |
- static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie); |
4921 |
- #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4922 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
4923 |
-@@ -63,7 +65,11 @@ static struct inode_operations LinkInode |
4924 |
- struct inode_operations LinkInodeOps = { |
4925 |
- #endif |
4926 |
- .readlink = InodeOpReadlink, |
4927 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) |
4928 |
-+ .get_link = InodeOpGetLink, |
4929 |
-+#else |
4930 |
- .follow_link = InodeOpFollowlink, |
4931 |
-+#endif |
4932 |
- }; |
4933 |
- |
4934 |
- /* |
4935 |
-@@ -222,7 +228,9 @@ InodeOpReadlink(struct dentry *dentry, |
4936 |
- * |
4937 |
- *---------------------------------------------------------------------------- |
4938 |
- */ |
4939 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4940 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) |
4941 |
-+const char *InodeOpGetLink(struct dentry *dentry, struct inode *inode, struct delayed_call *done) |
4942 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4943 |
- static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie) |
4944 |
- #else |
4945 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
4946 |
-@@ -238,18 +246,28 @@ InodeOpFollowlink(struct dentry *dentry, |
4947 |
- VMBlockInodeInfo *iinfo; |
4948 |
- |
4949 |
- if (!dentry) { |
4950 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) |
4951 |
-+ ret = -ECHILD; |
4952 |
-+#else |
4953 |
- Warning("InodeOpReadlink: invalid args from kernel\n"); |
4954 |
- ret = -EINVAL; |
4955 |
-+#endif |
4956 |
- goto out; |
4957 |
- } |
4958 |
- |
4959 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) |
4960 |
-+ iinfo = INODE_TO_IINFO(inode); |
4961 |
-+#else |
4962 |
- iinfo = INODE_TO_IINFO(dentry->d_inode); |
4963 |
-+#endif |
4964 |
- if (!iinfo) { |
4965 |
- ret = -EINVAL; |
4966 |
- goto out; |
4967 |
- } |
4968 |
- |
4969 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4970 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) |
4971 |
-+ return (char *)(iinfo->name); |
4972 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
4973 |
- return *cookie = (char *)(iinfo->name); |
4974 |
- #else |
4975 |
- nd_set_link(nd, iinfo->name); |
4976 |
|
4977 |
diff --git a/app-emulation/vmware-modules/files/304-apic.patch b/app-emulation/vmware-modules/files/304-apic.patch |
4978 |
deleted file mode 100644 |
4979 |
index 66cd4593324..00000000000 |
4980 |
--- a/app-emulation/vmware-modules/files/304-apic.patch |
4981 |
+++ /dev/null |
4982 |
@@ -1,12 +0,0 @@ |
4983 |
-diff --git a/vmmon-only/linux/hostif.c b/vmmon-only/linux/hostif.c |
4984 |
-index f1f4b10..c43242f 100644 |
4985 |
---- a/vmmon-only/linux/hostif.c |
4986 |
-+++ b/vmmon-only/linux/hostif.c |
4987 |
-@@ -55,6 +55,7 @@ |
4988 |
- #include <linux/kthread.h> |
4989 |
- #include <linux/wait.h> |
4990 |
- |
4991 |
-+#include <asm/apic.h> |
4992 |
- |
4993 |
- #include "vmware.h" |
4994 |
- #include "x86apic.h" |
4995 |
|
4996 |
diff --git a/app-emulation/vmware-modules/files/304-hardened.patch b/app-emulation/vmware-modules/files/304-hardened.patch |
4997 |
deleted file mode 100644 |
4998 |
index cc3e0415287..00000000000 |
4999 |
--- a/app-emulation/vmware-modules/files/304-hardened.patch |
5000 |
+++ /dev/null |
5001 |
@@ -1,113 +0,0 @@ |
5002 |
-diff --git a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c |
5003 |
-index b21dd44..960c2aa 100644 |
5004 |
---- a/vmmon-only/linux/driver.c |
5005 |
-+++ b/vmmon-only/linux/driver.c |
5006 |
-@@ -178,7 +178,22 @@ static struct vm_operations_struct vmuser_mops = { |
5007 |
- #endif |
5008 |
- }; |
5009 |
- |
5010 |
--static struct file_operations vmuser_fops; |
5011 |
-+static struct file_operations vmuser_fops = { |
5012 |
-+ .owner = THIS_MODULE, |
5013 |
-+ .poll = LinuxDriverPoll, |
5014 |
-+#ifdef HAVE_UNLOCKED_IOCTL |
5015 |
-+ .unlocked_ioctl = LinuxDriver_UnlockedIoctl, |
5016 |
-+#else |
5017 |
-+ .ioctl = LinuxDriver_Ioctl, |
5018 |
-+#endif |
5019 |
-+#ifdef HAVE_COMPAT_IOCTL |
5020 |
-+ .compat_ioctl = LinuxDriver_UnlockedIoctl, |
5021 |
-+#endif |
5022 |
-+ .open = LinuxDriver_Open, |
5023 |
-+ .release = LinuxDriver_Close, |
5024 |
-+ .mmap = LinuxDriverMmap |
5025 |
-+}; |
5026 |
-+ |
5027 |
- static struct timer_list tscTimer; |
5028 |
- |
5029 |
- /* |
5030 |
-@@ -357,27 +372,6 @@ init_module(void) |
5031 |
- spin_lock_init(&linuxState.pollListLock); |
5032 |
- #endif |
5033 |
- |
5034 |
-- /* |
5035 |
-- * Initialize the file_operations structure. Because this code is always |
5036 |
-- * compiled as a module, this is fine to do it here and not in a static |
5037 |
-- * initializer. |
5038 |
-- */ |
5039 |
-- |
5040 |
-- memset(&vmuser_fops, 0, sizeof vmuser_fops); |
5041 |
-- vmuser_fops.owner = THIS_MODULE; |
5042 |
-- vmuser_fops.poll = LinuxDriverPoll; |
5043 |
--#ifdef HAVE_UNLOCKED_IOCTL |
5044 |
-- vmuser_fops.unlocked_ioctl = LinuxDriver_UnlockedIoctl; |
5045 |
--#else |
5046 |
-- vmuser_fops.ioctl = LinuxDriver_Ioctl; |
5047 |
--#endif |
5048 |
--#ifdef HAVE_COMPAT_IOCTL |
5049 |
-- vmuser_fops.compat_ioctl = LinuxDriver_UnlockedIoctl; |
5050 |
--#endif |
5051 |
-- vmuser_fops.open = LinuxDriver_Open; |
5052 |
-- vmuser_fops.release = LinuxDriver_Close; |
5053 |
-- vmuser_fops.mmap = LinuxDriverMmap; |
5054 |
-- |
5055 |
- #ifdef VMX86_DEVEL |
5056 |
- devel_init_module(); |
5057 |
- linuxState.minor = 0; |
5058 |
-diff --git a/vmnet-only/driver.c b/vmnet-only/driver.c |
5059 |
-index b12b982..40bd4cf 100644 |
5060 |
---- a/vmnet-only/driver.c |
5061 |
-+++ b/vmnet-only/driver.c |
5062 |
-@@ -165,7 +165,22 @@ static long VNetFileOpUnlockedIoctl(struct file * filp, |
5063 |
- unsigned int iocmd, unsigned long ioarg); |
5064 |
- #endif |
5065 |
- |
5066 |
--static struct file_operations vnetFileOps; |
5067 |
-+static struct file_operations vnetFileOps = { |
5068 |
-+ .owner = THIS_MODULE, |
5069 |
-+ .read = VNetFileOpRead, |
5070 |
-+ .write = VNetFileOpWrite, |
5071 |
-+ .poll = VNetFileOpPoll, |
5072 |
-+#ifdef HAVE_UNLOCKED_IOCTL |
5073 |
-+ .unlocked_ioctl = VNetFileOpUnlockedIoctl, |
5074 |
-+#else |
5075 |
-+ .ioctl = VNetFileOpIoctl, |
5076 |
-+#endif |
5077 |
-+#ifdef HAVE_COMPAT_IOCTL |
5078 |
-+ .compat_ioctl = VNetFileOpUnlockedIoctl, |
5079 |
-+#endif |
5080 |
-+ .open = VNetFileOpOpen, |
5081 |
-+ .release = VNetFileOpClose |
5082 |
-+}; |
5083 |
- |
5084 |
- /* |
5085 |
- * Utility functions |
5086 |
-@@ -476,28 +491,6 @@ init_module(void) |
5087 |
- goto err_proto; |
5088 |
- } |
5089 |
- |
5090 |
-- /* |
5091 |
-- * Initialize the file_operations structure. Because this code is always |
5092 |
-- * compiled as a module, this is fine to do it here and not in a static |
5093 |
-- * initializer. |
5094 |
-- */ |
5095 |
-- |
5096 |
-- memset(&vnetFileOps, 0, sizeof vnetFileOps); |
5097 |
-- vnetFileOps.owner = THIS_MODULE; |
5098 |
-- vnetFileOps.read = VNetFileOpRead; |
5099 |
-- vnetFileOps.write = VNetFileOpWrite; |
5100 |
-- vnetFileOps.poll = VNetFileOpPoll; |
5101 |
--#ifdef HAVE_UNLOCKED_IOCTL |
5102 |
-- vnetFileOps.unlocked_ioctl = VNetFileOpUnlockedIoctl; |
5103 |
--#else |
5104 |
-- vnetFileOps.ioctl = VNetFileOpIoctl; |
5105 |
--#endif |
5106 |
--#ifdef HAVE_COMPAT_IOCTL |
5107 |
-- vnetFileOps.compat_ioctl = VNetFileOpUnlockedIoctl; |
5108 |
--#endif |
5109 |
-- vnetFileOps.open = VNetFileOpOpen; |
5110 |
-- vnetFileOps.release = VNetFileOpClose; |
5111 |
-- |
5112 |
- retval = register_chrdev(VNET_MAJOR_NUMBER, "vmnet", &vnetFileOps); |
5113 |
- if (retval) { |
5114 |
- LOG(0, (KERN_NOTICE "/dev/vmnet: could not register major device %d\n", |
5115 |
|
5116 |
diff --git a/app-emulation/vmware-modules/files/304-makefile-include.patch b/app-emulation/vmware-modules/files/304-makefile-include.patch |
5117 |
deleted file mode 100644 |
5118 |
index 39c30003080..00000000000 |
5119 |
--- a/app-emulation/vmware-modules/files/304-makefile-include.patch |
5120 |
+++ /dev/null |
5121 |
@@ -1,65 +0,0 @@ |
5122 |
-diff --git a/vmblock-only/Makefile.kernel b/vmblock-only/Makefile.kernel |
5123 |
-index ab7a727..e3ec9d2 100644 |
5124 |
---- a/vmblock-only/Makefile.kernel |
5125 |
-+++ b/vmblock-only/Makefile.kernel |
5126 |
-@@ -19,7 +19,7 @@ |
5127 |
- |
5128 |
- INCLUDE += -I$(SRCROOT)/include |
5129 |
- |
5130 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
5131 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
5132 |
- |
5133 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/cachecreate.c, -DVMW_KMEMCR_HAS_DTOR, ) |
5134 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/cachector.c, -DVMW_KMEMCR_CTOR_HAS_3_ARGS, ) |
5135 |
-diff --git a/vmci-only/Makefile.kernel b/vmci-only/Makefile.kernel |
5136 |
-index ba343ee..861ea83 100644 |
5137 |
---- a/vmci-only/Makefile.kernel |
5138 |
-+++ b/vmci-only/Makefile.kernel |
5139 |
-@@ -21,7 +21,7 @@ CC_OPTS += -DVMCI |
5140 |
- |
5141 |
- INCLUDE += -I$(SRCROOT)/shared -I$(SRCROOT)/common -I$(SRCROOT)/linux |
5142 |
- |
5143 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
5144 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
5145 |
- |
5146 |
- obj-m += $(DRIVER).o |
5147 |
- |
5148 |
-diff --git a/vmmon-only/Makefile.kernel b/vmmon-only/Makefile.kernel |
5149 |
-index 8770d1d..c4746c3 100644 |
5150 |
---- a/vmmon-only/Makefile.kernel |
5151 |
-+++ b/vmmon-only/Makefile.kernel |
5152 |
-@@ -22,7 +22,7 @@ CC_OPTS += -DVMMON -DVMCORE |
5153 |
- INCLUDE := -I$(SRCROOT)/include -I$(SRCROOT)/common -I$(SRCROOT)/linux \ |
5154 |
- -I$(SRCROOT)/vmcore |
5155 |
- |
5156 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
5157 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
5158 |
- |
5159 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/smpcall.c, -DVMW_HAVE_SMP_CALL_3ARG, ) |
5160 |
- |
5161 |
-diff --git a/vmnet-only/Makefile.kernel b/vmnet-only/Makefile.kernel |
5162 |
-index d1e3133..665d428 100644 |
5163 |
---- a/vmnet-only/Makefile.kernel |
5164 |
-+++ b/vmnet-only/Makefile.kernel |
5165 |
-@@ -19,7 +19,7 @@ |
5166 |
- |
5167 |
- INCLUDE := -I$(SRCROOT) |
5168 |
- |
5169 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
5170 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
5171 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/netdev_has_net.c,-DVMW_NETDEV_HAS_NET, ) |
5172 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/netdev_has_dev_net.c,-DVMW_NETDEV_HAS_DEV_NET, ) |
5173 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/nfhook_uses_skb.c,-DVMW_NFHOOK_USES_SKB, ) |
5174 |
-diff --git a/vsock-only/Makefile.kernel b/vsock-only/Makefile.kernel |
5175 |
-index b4629ee..264b8cb 100644 |
5176 |
---- a/vsock-only/Makefile.kernel |
5177 |
-+++ b/vsock-only/Makefile.kernel |
5178 |
-@@ -25,7 +25,7 @@ INCLUDE += -I$(SRCROOT)/include |
5179 |
- INCLUDE += -I$(SRCROOT)/linux |
5180 |
- INCLUDE += -I$(SRCROOT)/common |
5181 |
- |
5182 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
5183 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
5184 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/netcreate_num_params.c, -DVMW_NETCREATE_KERNARG, ) |
5185 |
- |
5186 |
- |
5187 |
|
5188 |
diff --git a/app-emulation/vmware-modules/files/304-makefile-kernel-dir.patch b/app-emulation/vmware-modules/files/304-makefile-kernel-dir.patch |
5189 |
deleted file mode 100644 |
5190 |
index 1a647a3302d..00000000000 |
5191 |
--- a/app-emulation/vmware-modules/files/304-makefile-kernel-dir.patch |
5192 |
+++ /dev/null |
5193 |
@@ -1,85 +0,0 @@ |
5194 |
-diff --git a/vmblock-only/Makefile b/vmblock-only/Makefile |
5195 |
-index 2b81323..746c8b8 100644 |
5196 |
---- a/vmblock-only/Makefile |
5197 |
-+++ b/vmblock-only/Makefile |
5198 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
5199 |
- ifdef LINUXINCLUDE |
5200 |
- HEADER_DIR = $(LINUXINCLUDE) |
5201 |
- else |
5202 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
5203 |
-+HEADER_DIR = $(KERNEL_DIR) |
5204 |
- endif |
5205 |
- |
5206 |
--BUILD_DIR = $(HEADER_DIR)/.. |
5207 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
5208 |
- |
5209 |
- DRIVER := vmblock |
5210 |
- PRODUCT := ws |
5211 |
-diff --git a/vmci-only/Makefile b/vmci-only/Makefile |
5212 |
-index 8e9c5be..6ec828b 100644 |
5213 |
---- a/vmci-only/Makefile |
5214 |
-+++ b/vmci-only/Makefile |
5215 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
5216 |
- ifdef LINUXINCLUDE |
5217 |
- HEADER_DIR = $(LINUXINCLUDE) |
5218 |
- else |
5219 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
5220 |
-+HEADER_DIR = $(KERNEL_DIR) |
5221 |
- endif |
5222 |
- |
5223 |
--BUILD_DIR = $(HEADER_DIR)/.. |
5224 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
5225 |
- |
5226 |
- DRIVER := vmci |
5227 |
- PRODUCT := ws |
5228 |
-diff --git a/vmmon-only/Makefile b/vmmon-only/Makefile |
5229 |
-index 5bd867b..91a83d4 100644 |
5230 |
---- a/vmmon-only/Makefile |
5231 |
-+++ b/vmmon-only/Makefile |
5232 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
5233 |
- ifdef LINUXINCLUDE |
5234 |
- HEADER_DIR = $(LINUXINCLUDE) |
5235 |
- else |
5236 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
5237 |
-+HEADER_DIR = $(KERNEL_DIR) |
5238 |
- endif |
5239 |
- |
5240 |
--BUILD_DIR = $(HEADER_DIR)/.. |
5241 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
5242 |
- |
5243 |
- DRIVER := vmmon |
5244 |
- PRODUCT := @@PRODUCT@@ |
5245 |
-diff --git a/vmnet-only/Makefile b/vmnet-only/Makefile |
5246 |
-index d4eb73c..c7c6d38 100644 |
5247 |
---- a/vmnet-only/Makefile |
5248 |
-+++ b/vmnet-only/Makefile |
5249 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
5250 |
- ifdef LINUXINCLUDE |
5251 |
- HEADER_DIR = $(LINUXINCLUDE) |
5252 |
- else |
5253 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
5254 |
-+HEADER_DIR = $(KERNEL_DIR) |
5255 |
- endif |
5256 |
- |
5257 |
--BUILD_DIR = $(HEADER_DIR)/.. |
5258 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
5259 |
- |
5260 |
- DRIVER := vmnet |
5261 |
- PRODUCT := @@PRODUCT@@ |
5262 |
-diff --git a/vsock-only/Makefile b/vsock-only/Makefile |
5263 |
-index 93dd61d..9765696 100644 |
5264 |
---- a/vsock-only/Makefile |
5265 |
-+++ b/vsock-only/Makefile |
5266 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
5267 |
- ifdef LINUXINCLUDE |
5268 |
- HEADER_DIR = $(LINUXINCLUDE) |
5269 |
- else |
5270 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
5271 |
-+HEADER_DIR = $(KERNEL_DIR) |
5272 |
- endif |
5273 |
- |
5274 |
--BUILD_DIR = $(HEADER_DIR)/.. |
5275 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
5276 |
- |
5277 |
- DRIVER := vsock |
5278 |
- PRODUCT := ws |
5279 |
|
5280 |
diff --git a/app-emulation/vmware-modules/files/304-netdevice.patch b/app-emulation/vmware-modules/files/304-netdevice.patch |
5281 |
deleted file mode 100644 |
5282 |
index 35231a3205e..00000000000 |
5283 |
--- a/app-emulation/vmware-modules/files/304-netdevice.patch |
5284 |
+++ /dev/null |
5285 |
@@ -1,24 +0,0 @@ |
5286 |
-diff --git a/vmnet-only/compat_netdevice.h b/vmnet-only/compat_netdevice.h |
5287 |
-index 7a56304..9ff4548 100644 |
5288 |
---- a/vmnet-only/compat_netdevice.h |
5289 |
-+++ b/vmnet-only/compat_netdevice.h |
5290 |
-@@ -47,6 +47,19 @@ |
5291 |
- # define net_device device |
5292 |
- #endif |
5293 |
- |
5294 |
-+/* it looks like these have been removed from the kernel 3.1 |
5295 |
-+ * probably because the "transition" is considered complete. |
5296 |
-+ * so to keep this source compatible we just redefine them like they were |
5297 |
-+ * previously |
5298 |
-+ */ |
5299 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) |
5300 |
-+#define HAVE_ALLOC_NETDEV /* feature macro: alloc_xxxdev |
5301 |
-+ functions are available. */ |
5302 |
-+#define HAVE_FREE_NETDEV /* free_netdev() */ |
5303 |
-+#define HAVE_NETDEV_PRIV /* netdev_priv() */ |
5304 |
-+#define HAVE_NETIF_QUEUE |
5305 |
-+#define HAVE_NET_DEVICE_OPS |
5306 |
-+#endif |
5307 |
- |
5308 |
- /* |
5309 |
- * SET_MODULE_OWNER appeared sometime during 2.3.x. It was setting |
5310 |
|
5311 |
diff --git a/app-emulation/vmware-modules/files/308-3.10-00-dentry.patch b/app-emulation/vmware-modules/files/308-3.10-00-dentry.patch |
5312 |
deleted file mode 100644 |
5313 |
index 5cc445fcadf..00000000000 |
5314 |
--- a/app-emulation/vmware-modules/files/308-3.10-00-dentry.patch |
5315 |
+++ /dev/null |
5316 |
@@ -1,43 +0,0 @@ |
5317 |
-Minor change the API, now it just gets passed flags instead of a pointer to the nameidata |
5318 |
---- a/vmblock-only/linux/dentry.c 2015-02-07 03:11:55.000000000 +0300 |
5319 |
-+++ c/vmblock-only/linux/dentry.c 2015-02-24 03:58:06.038605919 +0300 |
5320 |
-@@ -32,7 +32,11 @@ |
5321 |
- #include "block.h" |
5322 |
- |
5323 |
- |
5324 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
5325 |
- static int DentryOpRevalidate(struct dentry *dentry, struct nameidata *nd); |
5326 |
-+#else |
5327 |
-+static int DentryOpRevalidate(struct dentry *dentry, unsigned int); |
5328 |
-+#endif |
5329 |
- |
5330 |
- struct dentry_operations LinkDentryOps = { |
5331 |
- .d_revalidate = DentryOpRevalidate, |
5332 |
-@@ -58,9 +62,12 @@ |
5333 |
- *---------------------------------------------------------------------------- |
5334 |
- */ |
5335 |
- |
5336 |
--static int |
5337 |
--DentryOpRevalidate(struct dentry *dentry, // IN: dentry revalidating |
5338 |
-- struct nameidata *nd) // IN: lookup flags & intent |
5339 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
5340 |
-+static int DentryOpRevalidate(struct dentry *dentry, struct nameidata *nd) |
5341 |
-+#else |
5342 |
-+static int DentryOpRevalidate(struct dentry *dentry, unsigned int flags) |
5343 |
-+#endif |
5344 |
-+ |
5345 |
- { |
5346 |
- VMBlockInodeInfo *iinfo; |
5347 |
- struct nameidata actualNd; |
5348 |
-@@ -101,7 +108,11 @@ |
5349 |
- if (actualDentry && |
5350 |
- actualDentry->d_op && |
5351 |
- actualDentry->d_op->d_revalidate) { |
5352 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0) |
5353 |
-+ return actualDentry->d_op->d_revalidate(actualDentry, flags); |
5354 |
-+#else |
5355 |
- return actualDentry->d_op->d_revalidate(actualDentry, nd); |
5356 |
-+#endif |
5357 |
- } |
5358 |
- |
5359 |
- if (compat_path_lookup(iinfo->name, 0, &actualNd)) { |
5360 |
|
5361 |
diff --git a/app-emulation/vmware-modules/files/308-3.10-01-inode.patch b/app-emulation/vmware-modules/files/308-3.10-01-inode.patch |
5362 |
deleted file mode 100644 |
5363 |
index e12d84d10e7..00000000000 |
5364 |
--- a/app-emulation/vmware-modules/files/308-3.10-01-inode.patch |
5365 |
+++ /dev/null |
5366 |
@@ -1,94 +0,0 @@ |
5367 |
-Minor change the API, now it just gets passed flags instead of a pointer to the nameidata |
5368 |
-Properly initializes UID/GID with repsect to namespaces |
5369 |
-Some changes the readlink/setlink APIs |
5370 |
---- a/vmblock-only/linux/inode.c 2015-02-07 03:11:55.000000000 +0300 |
5371 |
-+++ c/vmblock-only/linux/inode.c 2015-02-24 03:58:06.039605762 +0300 |
5372 |
-@@ -35,9 +35,15 @@ |
5373 |
- |
5374 |
- |
5375 |
- /* Inode operations */ |
5376 |
--static struct dentry *InodeOpLookup(struct inode *dir, |
5377 |
-- struct dentry *dentry, struct nameidata *nd); |
5378 |
-+ |
5379 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
5380 |
-+static struct dentry *InodeOpLookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd); |
5381 |
- static int InodeOpReadlink(struct dentry *dentry, char __user *buffer, int buflen); |
5382 |
-+#else |
5383 |
-+static struct dentry *InodeOpLookup(struct inode *, struct dentry *, unsigned int); |
5384 |
-+static int InodeOpReadlink(struct dentry *, char __user *, int); |
5385 |
-+#endif |
5386 |
-+ |
5387 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
5388 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
5389 |
- #else |
5390 |
-@@ -49,12 +55,15 @@ |
5391 |
- .lookup = InodeOpLookup, |
5392 |
- }; |
5393 |
- |
5394 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) |
5395 |
- static struct inode_operations LinkInodeOps = { |
5396 |
-+#else |
5397 |
-+struct inode_operations LinkInodeOps = { |
5398 |
-+#endif |
5399 |
- .readlink = InodeOpReadlink, |
5400 |
- .follow_link = InodeOpFollowlink, |
5401 |
- }; |
5402 |
- |
5403 |
-- |
5404 |
- /* |
5405 |
- *---------------------------------------------------------------------------- |
5406 |
- * |
5407 |
-@@ -75,7 +84,11 @@ |
5408 |
- static struct dentry * |
5409 |
- InodeOpLookup(struct inode *dir, // IN: parent directory's inode |
5410 |
- struct dentry *dentry, // IN: dentry to lookup |
5411 |
-- struct nameidata *nd) // IN: lookup intent and information |
5412 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
5413 |
-+ struct nameidata *nd) // IN: lookup intent and information |
5414 |
-+#else |
5415 |
-+ unsigned int flags) |
5416 |
-+#endif |
5417 |
- { |
5418 |
- char *filename; |
5419 |
- struct inode *inode; |
5420 |
-@@ -135,7 +148,12 @@ |
5421 |
- inode->i_size = INODE_TO_IINFO(inode)->nameLen; |
5422 |
- inode->i_version = 1; |
5423 |
- inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
5424 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
5425 |
- inode->i_uid = inode->i_gid = 0; |
5426 |
-+#else |
5427 |
-+ inode->i_gid = make_kgid(current_user_ns(), 0); |
5428 |
-+ inode->i_uid = make_kuid(current_user_ns(), 0); |
5429 |
-+#endif |
5430 |
- inode->i_op = &LinkInodeOps; |
5431 |
- |
5432 |
- d_add(dentry, inode); |
5433 |
-@@ -177,7 +195,12 @@ |
5434 |
- return -EINVAL; |
5435 |
- } |
5436 |
- |
5437 |
-- return vfs_readlink(dentry, buffer, buflen, iinfo->name); |
5438 |
-+#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 14, 99) |
5439 |
-+ return vfs_readlink(dentry, buffer, buflen, iinfo->name); |
5440 |
-+#else |
5441 |
-+ return readlink_copy(buffer, buflen, iinfo->name); |
5442 |
-+#endif |
5443 |
-+ |
5444 |
- } |
5445 |
- |
5446 |
- |
5447 |
-@@ -221,7 +244,7 @@ |
5448 |
- goto out; |
5449 |
- } |
5450 |
- |
5451 |
-- ret = vfs_follow_link(nd, iinfo->name); |
5452 |
-+ nd_set_link(nd, iinfo->name); |
5453 |
- |
5454 |
- out: |
5455 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
5456 |
-@@ -230,3 +253,4 @@ |
5457 |
- return ret; |
5458 |
- #endif |
5459 |
- } |
5460 |
-+ |
5461 |
|
5462 |
diff --git a/app-emulation/vmware-modules/files/308-3.10-02-control.patch b/app-emulation/vmware-modules/files/308-3.10-02-control.patch |
5463 |
deleted file mode 100644 |
5464 |
index 92883533751..00000000000 |
5465 |
--- a/app-emulation/vmware-modules/files/308-3.10-02-control.patch |
5466 |
+++ /dev/null |
5467 |
@@ -1,57 +0,0 @@ |
5468 |
-The API to create proc entries now takes the file ops structure directly, instead of being set after the fact |
5469 |
-Using new __getname/__putname API |
5470 |
---- a/vmblock-only/linux/control.c 2015-02-07 03:11:55.000000000 +0300 |
5471 |
-+++ c/vmblock-only/linux/control.c 2015-02-24 03:58:06.038605919 +0300 |
5472 |
-@@ -208,9 +208,11 @@ |
5473 |
- VMBlockSetProcEntryOwner(controlProcMountpoint); |
5474 |
- |
5475 |
- /* Create /proc/fs/vmblock/dev */ |
5476 |
-- controlProcEntry = create_proc_entry(VMBLOCK_CONTROL_DEVNAME, |
5477 |
-- VMBLOCK_CONTROL_MODE, |
5478 |
-- controlProcDirEntry); |
5479 |
-+ controlProcEntry = proc_create(VMBLOCK_CONTROL_DEVNAME, |
5480 |
-+ VMBLOCK_CONTROL_MODE, |
5481 |
-+ controlProcDirEntry, |
5482 |
-+ &ControlFileOps); |
5483 |
-+ |
5484 |
- if (!controlProcEntry) { |
5485 |
- Warning("SetupProcDevice: could not create " VMBLOCK_DEVICE "\n"); |
5486 |
- remove_proc_entry(VMBLOCK_CONTROL_MOUNTPOINT, controlProcDirEntry); |
5487 |
-@@ -218,7 +220,10 @@ |
5488 |
- return -EINVAL; |
5489 |
- } |
5490 |
- |
5491 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) |
5492 |
- controlProcEntry->proc_fops = &ControlFileOps; |
5493 |
-+#endif |
5494 |
-+ |
5495 |
- return 0; |
5496 |
- } |
5497 |
- |
5498 |
-@@ -287,18 +287,24 @@ ExecuteBlockOp(const char __user *buf, |
5499 |
- int i; |
5500 |
- int retval; |
5501 |
- |
5502 |
-- name = getname(buf); |
5503 |
-+ name = __getname(); |
5504 |
- if (IS_ERR(name)) { |
5505 |
- return PTR_ERR(name); |
5506 |
- } |
5507 |
- |
5508 |
-+ i = strncpy_from_user(name, buf, PATH_MAX); |
5509 |
-+ if (i < 0 || i == PATH_MAX) { |
5510 |
-+ __putname(name); |
5511 |
-+ return -EINVAL; |
5512 |
-+ } |
5513 |
-+ |
5514 |
- for (i = strlen(name) - 1; i >= 0 && name[i] == '/'; i--) { |
5515 |
- name[i] = '\0'; |
5516 |
- } |
5517 |
- |
5518 |
- retval = i < 0 ? -EINVAL : blockOp(name, blocker); |
5519 |
- |
5520 |
-- putname(name); |
5521 |
-+ __putname(name); |
5522 |
- |
5523 |
- return retval; |
5524 |
- } |
5525 |
|
5526 |
diff --git a/app-emulation/vmware-modules/files/308-3.10-03-inline.patch b/app-emulation/vmware-modules/files/308-3.10-03-inline.patch |
5527 |
deleted file mode 100644 |
5528 |
index fa8f36a35c2..00000000000 |
5529 |
--- a/app-emulation/vmware-modules/files/308-3.10-03-inline.patch |
5530 |
+++ /dev/null |
5531 |
@@ -1,14 +0,0 @@ |
5532 |
-Hushes a warning |
5533 |
---- a/vmmon-only/linux/driver.c 2015-02-07 03:54:16.000000000 +0300 |
5534 |
-+++ c/vmmon-only/linux/driver.c 2015-02-24 03:58:06.042605293 +0300 |
5535 |
-@@ -1328,7 +1328,9 @@ |
5536 |
- *----------------------------------------------------------------------------- |
5537 |
- */ |
5538 |
- |
5539 |
--__attribute__((always_inline)) static Bool |
5540 |
-+#include <linux/compiler-gcc.h> |
5541 |
-+ |
5542 |
-+__always_inline static Bool |
5543 |
- LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min |
5544 |
- { |
5545 |
- TSCDelta tscDelta; |
5546 |
|
5547 |
diff --git a/app-emulation/vmware-modules/files/308-3.11-00-readdir.patch b/app-emulation/vmware-modules/files/308-3.11-00-readdir.patch |
5548 |
deleted file mode 100644 |
5549 |
index b2f76d3e2b3..00000000000 |
5550 |
--- a/app-emulation/vmware-modules/files/308-3.11-00-readdir.patch |
5551 |
+++ /dev/null |
5552 |
@@ -1,41 +0,0 @@ |
5553 |
-replaces usage of vfs_readdir with iterate_dir. origionally found here: |
5554 |
-https://bugs.gentoo.org/show_bug.cgi?id=508204 |
5555 |
- |
5556 |
-diff -Naur vmblock-only/linux/file.c vmblock-only/linux/file.c |
5557 |
---- vmblock-only/linux/file.c 2013-11-05 23:33:26.000000000 -0500 |
5558 |
-+++ vmblock-only/linux/file.c 2014-04-26 10:58:03.062635343 -0400 |
5559 |
-@@ -166,11 +166,9 @@ |
5560 |
- |
5561 |
- static int |
5562 |
- FileOpReaddir(struct file *file, // IN |
5563 |
-- void *dirent, // IN |
5564 |
-- filldir_t filldir) // IN |
5565 |
-+ struct dir_context *ctx) |
5566 |
- { |
5567 |
- int ret; |
5568 |
-- FilldirInfo info; |
5569 |
- struct file *actualFile; |
5570 |
- |
5571 |
- if (!file) { |
5572 |
-@@ -184,11 +182,8 @@ |
5573 |
- return -EINVAL; |
5574 |
- } |
5575 |
- |
5576 |
-- info.filldir = filldir; |
5577 |
-- info.dirent = dirent; |
5578 |
-- |
5579 |
- actualFile->f_pos = file->f_pos; |
5580 |
-- ret = vfs_readdir(actualFile, Filldir, &info); |
5581 |
-+ ret = iterate_dir(actualFile, ctx); |
5582 |
- file->f_pos = actualFile->f_pos; |
5583 |
- |
5584 |
- return ret; |
5585 |
-@@ -237,7 +232,7 @@ |
5586 |
- |
5587 |
- |
5588 |
- struct file_operations RootFileOps = { |
5589 |
-- .readdir = FileOpReaddir, |
5590 |
-+ .iterate = FileOpReaddir, |
5591 |
- .open = FileOpOpen, |
5592 |
- .release = FileOpRelease, |
5593 |
- }; |
5594 |
|
5595 |
diff --git a/app-emulation/vmware-modules/files/308-3.11-01-filldir.patch b/app-emulation/vmware-modules/files/308-3.11-01-filldir.patch |
5596 |
deleted file mode 100644 |
5597 |
index 2eec99b7c1f..00000000000 |
5598 |
--- a/app-emulation/vmware-modules/files/308-3.11-01-filldir.patch |
5599 |
+++ /dev/null |
5600 |
@@ -1,53 +0,0 @@ |
5601 |
-simply remove the code for Filldir since it is no longer used with the new |
5602 |
-iterate_dir API |
5603 |
- |
5604 |
-diff -rupN vmblock-only/linux/file.c vmblock-only.new/linux/file.c |
5605 |
---- vmblock-only/linux/file.c 2014-10-07 23:22:46.832469618 -0400 |
5606 |
-+++ vmblock-only.new/linux/file.c 2014-10-07 23:24:35.276472720 -0400 |
5607 |
-@@ -38,46 +38,6 @@ typedef u64 inode_num_t; |
5608 |
- typedef ino_t inode_num_t; |
5609 |
- #endif |
5610 |
- |
5611 |
--/* Specifically for our filldir_t callback */ |
5612 |
--typedef struct FilldirInfo { |
5613 |
-- filldir_t filldir; |
5614 |
-- void *dirent; |
5615 |
--} FilldirInfo; |
5616 |
-- |
5617 |
-- |
5618 |
--/* |
5619 |
-- *---------------------------------------------------------------------------- |
5620 |
-- * |
5621 |
-- * Filldir -- |
5622 |
-- * |
5623 |
-- * Callback function for readdir that we use in place of the one provided. |
5624 |
-- * This allows us to specify that each dentry is a symlink, but pass through |
5625 |
-- * everything else to the original filldir function. |
5626 |
-- * |
5627 |
-- * Results: |
5628 |
-- * Original filldir's return value. |
5629 |
-- * |
5630 |
-- * Side effects: |
5631 |
-- * Directory information gets copied to user's buffer. |
5632 |
-- * |
5633 |
-- *---------------------------------------------------------------------------- |
5634 |
-- */ |
5635 |
-- |
5636 |
--static int |
5637 |
--Filldir(void *buf, // IN: Dirent buffer passed from FileOpReaddir |
5638 |
-- const char *name, // IN: Dirent name |
5639 |
-- int namelen, // IN: len of dirent's name |
5640 |
-- loff_t offset, // IN: Offset |
5641 |
-- inode_num_t ino, // IN: Inode number of dirent |
5642 |
-- unsigned int d_type) // IN: Type of file |
5643 |
--{ |
5644 |
-- FilldirInfo *info = buf; |
5645 |
-- |
5646 |
-- /* Specify DT_LNK regardless */ |
5647 |
-- return info->filldir(info->dirent, name, namelen, offset, ino, DT_LNK); |
5648 |
--} |
5649 |
-- |
5650 |
-- |
5651 |
- /* File operations */ |
5652 |
- |
5653 |
- /* |
5654 |
|
5655 |
diff --git a/app-emulation/vmware-modules/files/308-3.15-00-vsock.patch b/app-emulation/vmware-modules/files/308-3.15-00-vsock.patch |
5656 |
deleted file mode 100644 |
5657 |
index 9e8d9d1a32f..00000000000 |
5658 |
--- a/app-emulation/vmware-modules/files/308-3.15-00-vsock.patch |
5659 |
+++ /dev/null |
5660 |
@@ -1,46 +0,0 @@ |
5661 |
-removing the no longer existing second parameter to sk_data_ready |
5662 |
-doesn't seem it ever served a purpose. |
5663 |
- |
5664 |
-diff -rupN vsock-only/linux/notify.c vsock-only.new/linux/notify.c |
5665 |
---- vsock-only/linux/notify.c 2013-11-05 23:33:27.000000000 -0500 |
5666 |
-+++ vsock-only.new/linux/notify.c 2014-10-05 23:46:47.943304728 -0400 |
5667 |
-@@ -515,8 +515,11 @@ VSockVmciHandleWrote(struct sock *sk, |
5668 |
- vsk = vsock_sk(sk); |
5669 |
- PKT_FIELD(vsk, sentWaitingRead) = FALSE; |
5670 |
- #endif |
5671 |
-- |
5672 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
5673 |
-+ sk->sk_data_ready(sk); |
5674 |
-+#else |
5675 |
- sk->sk_data_ready(sk, 0); |
5676 |
-+#endif |
5677 |
- } |
5678 |
- |
5679 |
- |
5680 |
-diff -rupN vsock-only/linux/notifyQState.c vsock-only.new/linux/notifyQState.c |
5681 |
---- vsock-only/linux/notifyQState.c 2013-11-05 23:33:27.000000000 -0500 |
5682 |
-+++ vsock-only.new/linux/notifyQState.c 2014-10-05 23:46:33.231303931 -0400 |
5683 |
-@@ -164,7 +164,11 @@ VSockVmciHandleWrote(struct sock *sk, |
5684 |
- struct sockaddr_vm *dst, // IN: unused |
5685 |
- struct sockaddr_vm *src) // IN: unused |
5686 |
- { |
5687 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
5688 |
-+ sk->sk_data_ready(sk); |
5689 |
-+#else |
5690 |
- sk->sk_data_ready(sk, 0); |
5691 |
-+#endif |
5692 |
- } |
5693 |
- |
5694 |
- |
5695 |
-@@ -566,7 +570,11 @@ VSockVmciNotifyPktRecvPostDequeue(struct |
5696 |
- } |
5697 |
- |
5698 |
- /* See the comment in VSockVmciNotifyPktSendPostEnqueue */ |
5699 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0) |
5700 |
-+ sk->sk_data_ready(sk); |
5701 |
-+#else |
5702 |
- sk->sk_data_ready(sk, 0); |
5703 |
-+#endif |
5704 |
- } |
5705 |
- |
5706 |
- return err; |
5707 |
|
5708 |
diff --git a/app-emulation/vmware-modules/files/308-3.18-00-version-redefined.patch b/app-emulation/vmware-modules/files/308-3.18-00-version-redefined.patch |
5709 |
deleted file mode 100644 |
5710 |
index 22d6325c9a9..00000000000 |
5711 |
--- a/app-emulation/vmware-modules/files/308-3.18-00-version-redefined.patch |
5712 |
+++ /dev/null |
5713 |
@@ -1,25 +0,0 @@ |
5714 |
-Hushes some (but not all warnings) relating to redefinitions of this define |
5715 |
---- a/vmci-only/shared/vm_device_version.h 2015-02-07 03:11:55.000000000 +0300 |
5716 |
-+++ c/vmci-only/shared/vm_device_version.h 2015-02-24 03:58:06.041605450 +0300 |
5717 |
-@@ -53,7 +53,9 @@ |
5718 |
- * VMware HD Audio codec |
5719 |
- * VMware HD Audio controller |
5720 |
- */ |
5721 |
-+#ifndef PCI_VENDOR_ID_VMWARE |
5722 |
- #define PCI_VENDOR_ID_VMWARE 0x15AD |
5723 |
-+#endif |
5724 |
- #define PCI_DEVICE_ID_VMWARE_SVGA2 0x0405 |
5725 |
- #define PCI_DEVICE_ID_VMWARE_SVGA 0x0710 |
5726 |
- #define PCI_DEVICE_ID_VMWARE_VGA 0x0711 |
5727 |
---- a/vmnet-only/vm_device_version.h 2015-02-07 03:54:16.000000000 +0300 |
5728 |
-+++ c/vmnet-only/vm_device_version.h 2015-02-24 03:58:06.044604981 +0300 |
5729 |
-@@ -53,7 +53,9 @@ |
5730 |
- * VMware HD Audio codec |
5731 |
- * VMware HD Audio controller |
5732 |
- */ |
5733 |
-+#ifndef PCI_VENDOR_ID_VMWARE |
5734 |
- #define PCI_VENDOR_ID_VMWARE 0x15AD |
5735 |
-+#endif |
5736 |
- #define PCI_DEVICE_ID_VMWARE_SVGA2 0x0405 |
5737 |
- #define PCI_DEVICE_ID_VMWARE_SVGA 0x0710 |
5738 |
- #define PCI_DEVICE_ID_VMWARE_VGA 0x0711 |
5739 |
|
5740 |
diff --git a/app-emulation/vmware-modules/files/308-3.19-00-compat-namei.patch b/app-emulation/vmware-modules/files/308-3.19-00-compat-namei.patch |
5741 |
deleted file mode 100644 |
5742 |
index 0182077254a..00000000000 |
5743 |
--- a/app-emulation/vmware-modules/files/308-3.19-00-compat-namei.patch |
5744 |
+++ /dev/null |
5745 |
@@ -1,24 +0,0 @@ |
5746 |
-A copy of this since it is no longer exported by the kernel headers |
5747 |
---- a/vmblock-only/shared/compat_namei.h 2015-02-07 03:11:55.000000000 +0300 |
5748 |
-+++ c/vmblock-only/shared/compat_namei.h 2015-02-24 03:51:25.235286047 +0300 |
5749 |
-@@ -21,6 +21,20 @@ |
5750 |
- |
5751 |
- #include <linux/namei.h> |
5752 |
- |
5753 |
-+/* Copy-n-paste from kernel's source/fs/namei.c */ |
5754 |
-+struct nameidata { |
5755 |
-+ struct path path; |
5756 |
-+ struct qstr last; |
5757 |
-+ struct path root; |
5758 |
-+ struct inode *inode; /* path.dentry.d_inode */ |
5759 |
-+ unsigned int flags; |
5760 |
-+ unsigned seq, m_seq; |
5761 |
-+ int last_type; |
5762 |
-+ unsigned depth; |
5763 |
-+ struct file *base; |
5764 |
-+ char *saved_names[MAX_NESTED_LINKS + 1]; |
5765 |
-+}; |
5766 |
-+ |
5767 |
- /* |
5768 |
- * In 2.6.25-rc2, dentry and mount objects were removed from the nameidata |
5769 |
- * struct. They were both replaced with a struct path. |
5770 |
|
5771 |
diff --git a/app-emulation/vmware-modules/files/308-3.19-02-vmblock-path.patch b/app-emulation/vmware-modules/files/308-3.19-02-vmblock-path.patch |
5772 |
deleted file mode 100644 |
5773 |
index 178d1478ae5..00000000000 |
5774 |
--- a/app-emulation/vmware-modules/files/308-3.19-02-vmblock-path.patch |
5775 |
+++ /dev/null |
5776 |
@@ -1,67 +0,0 @@ |
5777 |
-Sources: |
5778 |
-https://531682.bugs.gentoo.org/attachment.cgi?id=396484 |
5779 |
-https://531682.bugs.gentoo.org/attachment.cgi?id=396482 |
5780 |
-diff -rupN vmblock-only.orig/linux/dentry.c vmblock-only/linux/dentry.c |
5781 |
---- vmblock-only.orig/linux/dentry.c 2015-02-14 18:05:46.000000000 -0500 |
5782 |
-+++ vmblock-only/linux/dentry.c 2015-02-14 18:09:59.000000000 -0500 |
5783 |
-@@ -63,7 +63,7 @@ DentryOpRevalidate(struct dentry *dentry |
5784 |
- unsigned int flags) // IN: lookup flags & intent |
5785 |
- { |
5786 |
- VMBlockInodeInfo *iinfo; |
5787 |
-- struct nameidata actualNd; |
5788 |
-+ struct path actualNd; |
5789 |
- struct dentry *actualDentry; |
5790 |
- int ret; |
5791 |
- |
5792 |
-diff -rupN vmblock-only.orig/linux/filesystem.c vmblock-only/linux/filesystem.c |
5793 |
---- vmblock-only.orig/linux/filesystem.c 2014-11-20 19:29:15.000000000 -0500 |
5794 |
-+++ vmblock-only/linux/filesystem.c 2015-02-14 18:10:49.000000000 -0500 |
5795 |
-@@ -322,7 +322,7 @@ Iget(struct super_block *sb, // IN: f |
5796 |
- { |
5797 |
- VMBlockInodeInfo *iinfo; |
5798 |
- struct inode *inode; |
5799 |
-- struct nameidata actualNd; |
5800 |
-+ struct path actualNd; |
5801 |
- |
5802 |
- ASSERT(sb); |
5803 |
- |
5804 |
-diff -rupN vmblock-only.orig/shared/compat_namei.h vmblock-only/shared/compat_namei.h |
5805 |
---- vmblock-only.orig/shared/compat_namei.h 2014-11-20 19:29:15.000000000 -0500 |
5806 |
-+++ vmblock-only/shared/compat_namei.h 2015-02-14 18:08:38.000000000 -0500 |
5807 |
-@@ -26,21 +26,21 @@ |
5808 |
- * struct. They were both replaced with a struct path. |
5809 |
- */ |
5810 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
5811 |
--#define compat_vmw_nd_to_dentry(nd) (nd).path.dentry |
5812 |
-+#define compat_vmw_nd_to_dentry(nd) (nd).dentry |
5813 |
- #else |
5814 |
- #define compat_vmw_nd_to_dentry(nd) (nd).dentry |
5815 |
- #endif |
5816 |
- |
5817 |
- /* In 2.6.25-rc2, path_release(&nd) was replaced with path_put(&nd.path). */ |
5818 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
5819 |
--#define compat_path_release(nd) path_put(&(nd)->path) |
5820 |
-+#define compat_path_release(nd) path_put(nd) |
5821 |
- #else |
5822 |
- #define compat_path_release(nd) path_release(nd) |
5823 |
- #endif |
5824 |
- |
5825 |
- /* path_lookup was removed in 2.6.39 merge window VFS merge */ |
5826 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) |
5827 |
--#define compat_path_lookup(name, flags, nd) kern_path(name, flags, &((nd)->path)) |
5828 |
-+#define compat_path_lookup(name, flags, nd) kern_path(name, flags, nd) |
5829 |
- #else |
5830 |
- #define compat_path_lookup(name, flags, nd) path_lookup(name, flags, nd) |
5831 |
- #endif |
5832 |
-diff -u vmblock-only.orig/linux/file.c vmblock-only/linux/file.c |
5833 |
---- vmblock-only.orig/linux/file.c 2015-02-11 12:18:29.000000000 -0500 |
5834 |
-+++ vmblock-only/linux/file.c 2015-02-11 12:41:41.000000000 -0500 |
5835 |
-@@ -92,7 +92,7 @@ |
5836 |
- * and that would try to acquire the inode's semaphore; if the two inodes |
5837 |
- * are the same we'll deadlock. |
5838 |
- */ |
5839 |
-- if (actualFile->f_dentry && inode == actualFile->f_dentry->d_inode) { |
5840 |
-+ if (actualFile->f_path.dentry && inode == actualFile->f_path.dentry->d_inode) { |
5841 |
- Warning("FileOpOpen: identical inode encountered, open cannot succeed.\n"); |
5842 |
- if (filp_close(actualFile, current->files) < 0) { |
5843 |
- Warning("FileOpOpen: unable to close opened file.\n"); |
5844 |
|
5845 |
diff --git a/app-emulation/vmware-modules/files/308-3.19-04-iovec.patch b/app-emulation/vmware-modules/files/308-3.19-04-iovec.patch |
5846 |
deleted file mode 100644 |
5847 |
index 83f0cc8fcbb..00000000000 |
5848 |
--- a/app-emulation/vmware-modules/files/308-3.19-04-iovec.patch |
5849 |
+++ /dev/null |
5850 |
@@ -1,59 +0,0 @@ |
5851 |
-Some parts of the iovec API were replaced by the similar message API. Refactoring the code to use that. |
5852 |
---- a/vmci-only/linux/vmciKernelIf.c 2015-02-07 03:11:55.000000000 +0300 |
5853 |
-+++ c/vmci-only/linux/vmciKernelIf.c 2015-02-24 03:58:06.041605450 +0300 |
5854 |
-@@ -40,6 +40,7 @@ |
5855 |
- #include <linux/socket.h> /* For memcpy_{to,from}iovec(). */ |
5856 |
- #include <linux/vmalloc.h> |
5857 |
- #include <linux/wait.h> |
5858 |
-+#include <linux/skbuff.h> |
5859 |
- |
5860 |
- #include "compat_highmem.h" |
5861 |
- #include "compat_interrupt.h" |
5862 |
-@@ -1196,21 +1197,21 @@ |
5863 |
- } else { |
5864 |
- toCopy = size - bytesCopied; |
5865 |
- } |
5866 |
-- |
5867 |
-+ /* Code cloned from kernels drivers/misc/vmw_vmci/vmci_queue_pair.c */ |
5868 |
- if (isIovec) { |
5869 |
-- struct iovec *iov = (struct iovec *)src; |
5870 |
-- int err; |
5871 |
-+ struct msghdr *msg = (struct msghdr *)src; |
5872 |
-+ int err; |
5873 |
- |
5874 |
-- /* The iovec will track bytesCopied internally. */ |
5875 |
-- err = memcpy_fromiovec((uint8 *)va + pageOffset, iov, toCopy); |
5876 |
-- if (err != 0) { |
5877 |
-- if (kernelIf->host) { |
5878 |
-- kunmap(kernelIf->u.h.page[pageIndex]); |
5879 |
-+ /* The iovec will track bytes_copied internally. */ |
5880 |
-+ err = memcpy_from_msg((u8 *)va + pageOffset, msg, toCopy); |
5881 |
-+ if (err != 0) { |
5882 |
-+ if (kernelIf->host) |
5883 |
-+ kunmap(kernelIf->u.h.page[pageIndex]); |
5884 |
-+ return VMCI_ERROR_INVALID_ARGS; |
5885 |
- } |
5886 |
-- return VMCI_ERROR_INVALID_ARGS; |
5887 |
-- } |
5888 |
-- } else { |
5889 |
-- memcpy((uint8 *)va + pageOffset, (uint8 *)src + bytesCopied, toCopy); |
5890 |
-+ } else { |
5891 |
-+ memcpy((u8 *)va + pageOffset, |
5892 |
-+ (u8 *)src + bytesCopied, toCopy); |
5893 |
- } |
5894 |
- |
5895 |
- bytesCopied += toCopy; |
5896 |
-@@ -1273,11 +1274,11 @@ |
5897 |
- } |
5898 |
- |
5899 |
- if (isIovec) { |
5900 |
-- struct iovec *iov = (struct iovec *)dest; |
5901 |
-+ struct msghdr *msg = (struct msghdr *)dest; |
5902 |
- int err; |
5903 |
- |
5904 |
- /* The iovec will track bytesCopied internally. */ |
5905 |
-- err = memcpy_toiovec(iov, (uint8 *)va + pageOffset, toCopy); |
5906 |
-+ err = memcpy_to_msg(msg, (uint8 *)va + pageOffset, toCopy); |
5907 |
- if (err != 0) { |
5908 |
- if (kernelIf->host) { |
5909 |
- kunmap(kernelIf->u.h.page[pageIndex]); |
5910 |
|
5911 |
diff --git a/app-emulation/vmware-modules/files/308-3.19-05-vmci_qpair.patch b/app-emulation/vmware-modules/files/308-3.19-05-vmci_qpair.patch |
5912 |
deleted file mode 100644 |
5913 |
index 4dec3c46820..00000000000 |
5914 |
--- a/app-emulation/vmware-modules/files/308-3.19-05-vmci_qpair.patch |
5915 |
+++ /dev/null |
5916 |
@@ -1,25 +0,0 @@ |
5917 |
-Some parts of the iovec API were replaced by the similar message API. Refactoring the code to use that. |
5918 |
-diff -rupN vsock-only.old/linux/af_vsock.c vsock-only/linux/af_vsock.c |
5919 |
---- vsock-only.old/linux/af_vsock.c 2015-05-06 20:41:47.684046762 -0400 |
5920 |
-+++ vsock-only/linux/af_vsock.c 2015-05-06 20:52:15.245080779 -0400 |
5921 |
-@@ -4629,7 +4629,7 @@ VSockVmciStreamSendmsg(struct kiocb *kio |
5922 |
- * able to send. |
5923 |
- */ |
5924 |
- |
5925 |
-- written = vmci_qpair_enquev(vsk->qpair, msg->msg_iov, |
5926 |
-+ written = vmci_qpair_enquev(vsk->qpair, &msg->msg_iter.iov, |
5927 |
- len - totalWritten, 0); |
5928 |
- if (written < 0) { |
5929 |
- err = -ENOMEM; |
5930 |
-@@ -4874,9 +4874,9 @@ VSockVmciStreamRecvmsg(struct kiocb *kio |
5931 |
- } |
5932 |
- |
5933 |
- if (flags & MSG_PEEK) { |
5934 |
-- read = vmci_qpair_peekv(vsk->qpair, msg->msg_iov, len - copied, 0); |
5935 |
-+ read = vmci_qpair_peekv(vsk->qpair, &msg->msg_iter.iov, len - copied, 0); |
5936 |
- } else { |
5937 |
-- read = vmci_qpair_dequev(vsk->qpair, msg->msg_iov, len - copied, 0); |
5938 |
-+ read = vmci_qpair_dequev(vsk->qpair, &msg->msg_iter.iov, len - copied, 0); |
5939 |
- } |
5940 |
- |
5941 |
- if (read < 0) { |
5942 |
|
5943 |
diff --git a/app-emulation/vmware-modules/files/308-3.19-06-vsock.patch b/app-emulation/vmware-modules/files/308-3.19-06-vsock.patch |
5944 |
deleted file mode 100644 |
5945 |
index 9a2096e679a..00000000000 |
5946 |
--- a/app-emulation/vmware-modules/files/308-3.19-06-vsock.patch |
5947 |
+++ /dev/null |
5948 |
@@ -1,16 +0,0 @@ |
5949 |
-Some parts of the iovec API were replaced by the similar message API. Refactoring the code to use that. |
5950 |
-diff -rupN vsock-only/linux/af_vsock.c vsock-only.new/linux/af_vsock.c |
5951 |
---- vsock-only/linux/af_vsock.c 2015-05-05 11:31:35.710099711 -0400 |
5952 |
-+++ vsock-only.new/linux/af_vsock.c 2015-05-05 11:36:33.260115840 -0400 |
5953 |
-@@ -4727,7 +4727,11 @@ VSockVmciDgramRecvmsg(struct kiocb *kioc |
5954 |
- } |
5955 |
- |
5956 |
- /* Place the datagram payload in the user's iovec. */ |
5957 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) |
5958 |
- err = skb_copy_datagram_iovec(skb, sizeof *dg, msg->msg_iov, payloadLen); |
5959 |
-+#else |
5960 |
-+ err = skb_copy_datagram_iter(skb, sizeof *dg, &msg->msg_iter, payloadLen); |
5961 |
-+#endif |
5962 |
- if (err) { |
5963 |
- goto out; |
5964 |
- } |
5965 |
|
5966 |
diff --git a/app-emulation/vmware-modules/files/308-3.19-07-vsock.patch b/app-emulation/vmware-modules/files/308-3.19-07-vsock.patch |
5967 |
deleted file mode 100644 |
5968 |
index 6aec2cd3d7b..00000000000 |
5969 |
--- a/app-emulation/vmware-modules/files/308-3.19-07-vsock.patch |
5970 |
+++ /dev/null |
5971 |
@@ -1,13 +0,0 @@ |
5972 |
-Some parts of the iovec API were replaced by the similar message API. Refactoring the code to use that. |
5973 |
-diff -rupN vsock-only/linux/af_vsock.c vsock-only.new/linux/af_vsock.c |
5974 |
---- vsock-only/linux/af_vsock.c 2015-05-05 11:26:05.145081792 -0400 |
5975 |
-+++ vsock-only.new/linux/af_vsock.c 2015-05-05 11:30:54.304097466 -0400 |
5976 |
-@@ -4266,7 +4266,7 @@ VSockVmciDgramSendmsg(struct kiocb *kioc |
5977 |
- goto out; |
5978 |
- } |
5979 |
- |
5980 |
-- memcpy_fromiovec(VMCI_DG_PAYLOAD(dg), msg->msg_iov, len); |
5981 |
-+ memcpy_from_msg(VMCI_DG_PAYLOAD(dg), msg, len); |
5982 |
- |
5983 |
- dg->dst = VMCI_MAKE_HANDLE(remoteAddr->svm_cid, remoteAddr->svm_port); |
5984 |
- dg->src = VMCI_MAKE_HANDLE(vsk->localAddr.svm_cid, vsk->localAddr.svm_port); |
5985 |
|
5986 |
diff --git a/app-emulation/vmware-modules/files/308-4.01-00-vsock.patch b/app-emulation/vmware-modules/files/308-4.01-00-vsock.patch |
5987 |
deleted file mode 100644 |
5988 |
index 5735cd50650..00000000000 |
5989 |
--- a/app-emulation/vmware-modules/files/308-4.01-00-vsock.patch |
5990 |
+++ /dev/null |
5991 |
@@ -1,61 +0,0 @@ |
5992 |
---- vsock-only/linux/af_vsock.c 2015-05-03 00:55:58.955156116 +0200 |
5993 |
-+++ vsock-only/linux/af_vsock.c.new 2015-05-03 01:01:14.305173750 +0200 |
5994 |
-@@ -233,14 +233,10 @@ |
5995 |
- static int VSockVmciStreamGetsockopt(struct socket *sock, int level, int optname, |
5996 |
- char __user *optval, int __user * optlen); |
5997 |
- |
5998 |
--static int VSockVmciDgramSendmsg(struct kiocb *kiocb, |
5999 |
-- struct socket *sock, struct msghdr *msg, size_t len); |
6000 |
--static int VSockVmciDgramRecvmsg(struct kiocb *kiocb, struct socket *sock, |
6001 |
-- struct msghdr *msg, size_t len, int flags); |
6002 |
--static int VSockVmciStreamSendmsg(struct kiocb *kiocb, |
6003 |
-- struct socket *sock, struct msghdr *msg, size_t len); |
6004 |
--static int VSockVmciStreamRecvmsg(struct kiocb *kiocb, struct socket *sock, |
6005 |
-- struct msghdr *msg, size_t len, int flags); |
6006 |
-+static int VSockVmciDgramSendmsg(struct socket *sock, struct msghdr *msg, size_t len); |
6007 |
-+static int VSockVmciDgramRecvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags); |
6008 |
-+static int VSockVmciStreamSendmsg(struct socket *sock, struct msghdr *msg, size_t len); |
6009 |
-+static int VSockVmciStreamRecvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags); |
6010 |
- |
6011 |
- static int VSockVmciCreate( |
6012 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24) |
6013 |
-@@ -4211,8 +4207,7 @@ |
6014 |
- */ |
6015 |
- |
6016 |
- static int |
6017 |
--VSockVmciDgramSendmsg(struct kiocb *kiocb, // UNUSED |
6018 |
-- struct socket *sock, // IN: socket to send on |
6019 |
-+VSockVmciDgramSendmsg(struct socket *sock, // IN: socket to send on |
6020 |
- struct msghdr *msg, // IN: message to send |
6021 |
- size_t len) // IN: length of message |
6022 |
- { |
6023 |
-@@ -4541,8 +4536,7 @@ |
6024 |
- */ |
6025 |
- |
6026 |
- static int |
6027 |
--VSockVmciStreamSendmsg(struct kiocb *kiocb, // UNUSED |
6028 |
-- struct socket *sock, // IN: socket to send on |
6029 |
-+VSockVmciStreamSendmsg(struct socket *sock, // IN: socket to send on |
6030 |
- struct msghdr *msg, // IN: message to send |
6031 |
- size_t len) // IN: length of message |
6032 |
- { |
6033 |
-@@ -4710,8 +4704,7 @@ |
6034 |
- */ |
6035 |
- |
6036 |
- static int |
6037 |
--VSockVmciDgramRecvmsg(struct kiocb *kiocb, // UNUSED |
6038 |
-- struct socket *sock, // IN: socket to receive from |
6039 |
-+VSockVmciDgramRecvmsg(struct socket *sock, // IN: socket to receive from |
6040 |
- struct msghdr *msg, // IN/OUT: message to receive into |
6041 |
- size_t len, // IN: length of receive buffer |
6042 |
- int flags) // IN: receive flags |
6043 |
-@@ -4803,8 +4796,7 @@ |
6044 |
- */ |
6045 |
- |
6046 |
- static int |
6047 |
--VSockVmciStreamRecvmsg(struct kiocb *kiocb, // UNUSED |
6048 |
-- struct socket *sock, // IN: socket to receive from |
6049 |
-+VSockVmciStreamRecvmsg(struct socket *sock, // IN: socket to receive from |
6050 |
- struct msghdr *msg, // IN/OUT: message to receive into |
6051 |
- size_t len, // IN: length of receive buffer |
6052 |
- int flags) // IN: receive flags |
6053 |
|
6054 |
diff --git a/app-emulation/vmware-modules/files/308-4.02-00-nd_set_link.patch b/app-emulation/vmware-modules/files/308-4.02-00-nd_set_link.patch |
6055 |
deleted file mode 100644 |
6056 |
index 66609bff630..00000000000 |
6057 |
--- a/app-emulation/vmware-modules/files/308-4.02-00-nd_set_link.patch |
6058 |
+++ /dev/null |
6059 |
@@ -1,56 +0,0 @@ |
6060 |
---- vmci-only/linux/driver.c 2015-02-07 01:11:55.000000000 +0100 |
6061 |
-+++ vmci-only/linux/driver.c.new 2015-07-23 00:28:25.713804866 +0200 |
6062 |
-@@ -37,6 +37,7 @@ |
6063 |
- #include <linux/moduleparam.h> |
6064 |
- #include <linux/poll.h> |
6065 |
- #include <linux/smp.h> |
6066 |
-+#include <linux/vmalloc.h> |
6067 |
- |
6068 |
- #include "compat_highmem.h" |
6069 |
- #include "compat_interrupt.h" |
6070 |
---- vmblock-only/linux/inode.c 2015-08-23 00:34:11.959377109 +0200 |
6071 |
-+++ vmblock-only/linux/inode.c.new 2015-08-23 00:37:49.839389292 +0200 |
6072 |
-@@ -38,7 +38,9 @@ |
6073 |
- static int InodeOpReadlink(struct dentry *, char __user *, int); |
6074 |
- #endif |
6075 |
- |
6076 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
6077 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 99) |
6078 |
-+static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie); |
6079 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
6080 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
6081 |
- #else |
6082 |
- static int InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
6083 |
-@@ -203,13 +205,19 @@ |
6084 |
- *---------------------------------------------------------------------------- |
6085 |
- */ |
6086 |
- |
6087 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
6088 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 99) |
6089 |
-+static const char * |
6090 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
6091 |
- static void * |
6092 |
- #else |
6093 |
- static int |
6094 |
- #endif |
6095 |
- InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
6096 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 99) |
6097 |
-+ void **cookie) // OUT: stores opaque pointer |
6098 |
-+#else |
6099 |
- struct nameidata *nd) // OUT: stores result |
6100 |
-+#endif |
6101 |
- { |
6102 |
- int ret; |
6103 |
- VMBlockInodeInfo *iinfo; |
6104 |
-@@ -226,7 +234,11 @@ |
6105 |
- goto out; |
6106 |
- } |
6107 |
- |
6108 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 99) |
6109 |
-+ return *cookie = iinfo->name; |
6110 |
-+#else |
6111 |
- nd_set_link(nd, iinfo->name); |
6112 |
-+#endif |
6113 |
- |
6114 |
- out: |
6115 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
6116 |
|
6117 |
diff --git a/app-emulation/vmware-modules/files/308-4.02-01-sk_alloc.patch b/app-emulation/vmware-modules/files/308-4.02-01-sk_alloc.patch |
6118 |
deleted file mode 100644 |
6119 |
index 6437d6022a3..00000000000 |
6120 |
--- a/app-emulation/vmware-modules/files/308-4.02-01-sk_alloc.patch |
6121 |
+++ /dev/null |
6122 |
@@ -1,22 +0,0 @@ |
6123 |
---- vmnet-only/vmnetInt.h 2015-05-28 01:46:53.023206897 +0200 |
6124 |
-+++ vmnet-only/vmnetInt.h.new 2015-05-28 01:47:07.911207730 +0200 |
6125 |
-@@ -79,7 +79,7 @@ |
6126 |
- extern struct proto vmnet_proto; |
6127 |
- #ifdef VMW_NETDEV_HAS_NET |
6128 |
- # define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \ |
6129 |
-- PF_NETLINK, _pri, &vmnet_proto) |
6130 |
-+ PF_NETLINK, _pri, &vmnet_proto, 0) |
6131 |
- #else |
6132 |
- # define compat_sk_alloc(_bri, _pri) sk_alloc(PF_NETLINK, _pri, &vmnet_proto, 1) |
6133 |
- #endif |
6134 |
---- vsock-only/linux/af_vsock.c 2015-05-28 01:50:03.553217551 +0200 |
6135 |
-+++ vsock-only/linux/af_vsock.c.new 2015-05-28 01:54:55.248233862 +0200 |
6136 |
-@@ -2829,7 +2829,7 @@ |
6137 |
- #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) |
6138 |
- sk = sk_alloc(vsockVmciFamilyOps.family, priority, &vsockVmciProto, 1); |
6139 |
- #else |
6140 |
-- sk = sk_alloc(net, vsockVmciFamilyOps.family, priority, &vsockVmciProto); |
6141 |
-+ sk = sk_alloc(net, vsockVmciFamilyOps.family, priority, &vsockVmciProto, 0); |
6142 |
- #endif |
6143 |
- if (!sk) { |
6144 |
- return NULL; |
6145 |
|
6146 |
diff --git a/app-emulation/vmware-modules/files/308-4.03-00-vmci-misc_deregister.patch b/app-emulation/vmware-modules/files/308-4.03-00-vmci-misc_deregister.patch |
6147 |
deleted file mode 100644 |
6148 |
index b2d93a66db8..00000000000 |
6149 |
--- a/app-emulation/vmware-modules/files/308-4.03-00-vmci-misc_deregister.patch |
6150 |
+++ /dev/null |
6151 |
@@ -1,27 +0,0 @@ |
6152 |
-diff -ru work.old/vmci-only/linux/driver.c work/vmci-only/linux/driver.c |
6153 |
---- work.old/vmci-only/linux/driver.c 2015-09-14 21:07:49.751696932 +0200 |
6154 |
-+++ work/vmci-only/linux/driver.c 2015-09-14 22:10:48.015908198 +0200 |
6155 |
-@@ -2467,8 +2467,6 @@ |
6156 |
- static void __exit |
6157 |
- vmci_exit(void) |
6158 |
- { |
6159 |
-- int retval; |
6160 |
-- |
6161 |
- if (guestDeviceInit) { |
6162 |
- pci_unregister_driver(&vmci_driver); |
6163 |
- vfree(data_buffer); |
6164 |
-@@ -2480,12 +2478,8 @@ |
6165 |
- |
6166 |
- VMCI_HostCleanup(); |
6167 |
- |
6168 |
-- retval = misc_deregister(&linuxState.misc); |
6169 |
-- if (retval) { |
6170 |
-- Warning(LGPFX "Module %s: error unregistering\n", VMCI_MODULE_NAME); |
6171 |
-- } else { |
6172 |
-- Log(LGPFX"Module %s: unloaded\n", VMCI_MODULE_NAME); |
6173 |
-- } |
6174 |
-+ misc_deregister(&linuxState.misc); |
6175 |
-+ Log(LGPFX"Module %s: unloaded\n", VMCI_MODULE_NAME); |
6176 |
- |
6177 |
- hostDeviceInit = FALSE; |
6178 |
- } |
6179 |
|
6180 |
diff --git a/app-emulation/vmware-modules/files/308-4.03-00-vmmon-misc_deregister.patch b/app-emulation/vmware-modules/files/308-4.03-00-vmmon-misc_deregister.patch |
6181 |
deleted file mode 100644 |
6182 |
index 9f0df66faa2..00000000000 |
6183 |
--- a/app-emulation/vmware-modules/files/308-4.03-00-vmmon-misc_deregister.patch |
6184 |
+++ /dev/null |
6185 |
@@ -1,14 +0,0 @@ |
6186 |
-diff -ru work.old/vmmon-only/linux/driver.c work/vmmon-only/linux/driver.c |
6187 |
---- work.old/vmmon-only/linux/driver.c 2015-08-14 22:39:49.000000000 +0200 |
6188 |
-+++ work/vmmon-only/linux/driver.c 2015-09-14 22:11:06.807909249 +0200 |
6189 |
-@@ -387,9 +387,7 @@ |
6190 |
- #ifdef VMX86_DEVEL |
6191 |
- unregister_chrdev(linuxState.major, linuxState.deviceName); |
6192 |
- #else |
6193 |
-- if (misc_deregister(&linuxState.misc)) { |
6194 |
-- Warning("Module %s: error unregistering\n", linuxState.deviceName); |
6195 |
-- } |
6196 |
-+ misc_deregister(&linuxState.misc); |
6197 |
- #endif |
6198 |
- |
6199 |
- Log("Module %s: unloaded\n", linuxState.deviceName); |
6200 |
|
6201 |
diff --git a/app-emulation/vmware-modules/files/308-4.05-00-vmblock-follow_link.patch b/app-emulation/vmware-modules/files/308-4.05-00-vmblock-follow_link.patch |
6202 |
deleted file mode 100644 |
6203 |
index c1392924327..00000000000 |
6204 |
--- a/app-emulation/vmware-modules/files/308-4.05-00-vmblock-follow_link.patch |
6205 |
+++ /dev/null |
6206 |
@@ -1,56 +0,0 @@ |
6207 |
---- vmblock-only/linux/inode.c 2016-01-30 19:13:04.019947435 +0100 |
6208 |
-+++ vmblock-only/linux/inode.c.new 2016-01-30 19:13:56.226950354 +0100 |
6209 |
-@@ -44,7 +44,9 @@ |
6210 |
- static int InodeOpReadlink(struct dentry *, char __user *, int); |
6211 |
- #endif |
6212 |
- |
6213 |
--#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 99) |
6214 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 99) |
6215 |
-+static const char *InodeOpFollowlink(struct dentry *dentry, struct inode *inode, void **cookie); |
6216 |
-+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 99) |
6217 |
- static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie); |
6218 |
- #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
6219 |
- static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
6220 |
-@@ -63,7 +65,11 @@ |
6221 |
- struct inode_operations LinkInodeOps = { |
6222 |
- #endif |
6223 |
- .readlink = InodeOpReadlink, |
6224 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 99) |
6225 |
-+ .get_link = InodeOpFollowlink, |
6226 |
-+#else |
6227 |
- .follow_link = InodeOpFollowlink, |
6228 |
-+#endif |
6229 |
- }; |
6230 |
- |
6231 |
- /* |
6232 |
-@@ -231,6 +237,9 @@ |
6233 |
- static int |
6234 |
- #endif |
6235 |
- InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
6236 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 99) |
6237 |
-+ struct inode *inode, |
6238 |
-+#endif |
6239 |
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 99) |
6240 |
- void **cookie) // OUT: stores opaque pointer |
6241 |
- #else |
6242 |
-@@ -241,12 +250,20 @@ |
6243 |
- VMBlockInodeInfo *iinfo; |
6244 |
- |
6245 |
- if (!dentry) { |
6246 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 99) |
6247 |
-+ ret = -ECHILD; |
6248 |
-+#else |
6249 |
- Warning("InodeOpReadlink: invalid args from kernel\n"); |
6250 |
- ret = -EINVAL; |
6251 |
-+#endif |
6252 |
- goto out; |
6253 |
- } |
6254 |
- |
6255 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 99) |
6256 |
-+ iinfo = INODE_TO_IINFO(inode); |
6257 |
-+#else |
6258 |
- iinfo = INODE_TO_IINFO(dentry->d_inode); |
6259 |
-+#endif |
6260 |
- if (!iinfo) { |
6261 |
- ret = -EINVAL; |
6262 |
- goto out; |
6263 |
|
6264 |
diff --git a/app-emulation/vmware-modules/files/308-apic.patch b/app-emulation/vmware-modules/files/308-apic.patch |
6265 |
deleted file mode 100644 |
6266 |
index 66cd4593324..00000000000 |
6267 |
--- a/app-emulation/vmware-modules/files/308-apic.patch |
6268 |
+++ /dev/null |
6269 |
@@ -1,12 +0,0 @@ |
6270 |
-diff --git a/vmmon-only/linux/hostif.c b/vmmon-only/linux/hostif.c |
6271 |
-index f1f4b10..c43242f 100644 |
6272 |
---- a/vmmon-only/linux/hostif.c |
6273 |
-+++ b/vmmon-only/linux/hostif.c |
6274 |
-@@ -55,6 +55,7 @@ |
6275 |
- #include <linux/kthread.h> |
6276 |
- #include <linux/wait.h> |
6277 |
- |
6278 |
-+#include <asm/apic.h> |
6279 |
- |
6280 |
- #include "vmware.h" |
6281 |
- #include "x86apic.h" |
6282 |
|
6283 |
diff --git a/app-emulation/vmware-modules/files/308-hardened.patch b/app-emulation/vmware-modules/files/308-hardened.patch |
6284 |
deleted file mode 100644 |
6285 |
index 31d5917c37c..00000000000 |
6286 |
--- a/app-emulation/vmware-modules/files/308-hardened.patch |
6287 |
+++ /dev/null |
6288 |
@@ -1,89 +0,0 @@ |
6289 |
-diff --git a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c |
6290 |
-index b21dd44..960c2aa 100644 |
6291 |
---- a/vmmon-only/linux/driver.c |
6292 |
-+++ b/vmmon-only/linux/driver.c |
6293 |
-@@ -178,7 +178,16 @@ static struct vm_operations_struct vmuser_mops = { |
6294 |
- #endif |
6295 |
- }; |
6296 |
- |
6297 |
--static struct file_operations vmuser_fops; |
6298 |
-+static struct file_operations vmuser_fops = { |
6299 |
-+ .owner = THIS_MODULE, |
6300 |
-+ .poll = LinuxDriverPoll, |
6301 |
-+ .unlocked_ioctl = LinuxDriver_Ioctl, |
6302 |
-+ .compat_ioctl = LinuxDriver_Ioctl, |
6303 |
-+ .open = LinuxDriver_Open, |
6304 |
-+ .release = LinuxDriver_Close, |
6305 |
-+ .mmap = LinuxDriverMmap |
6306 |
-+}; |
6307 |
-+ |
6308 |
- static struct timer_list tscTimer; |
6309 |
- static Atomic_uint32 tsckHz; |
6310 |
- static VmTimeStart tsckHzStartTime; |
6311 |
-@@ -357,21 +372,6 @@ init_module(void) |
6312 |
- linuxState.fastClockPriority = -20; |
6313 |
- linuxState.swapSize = VMMON_UNKNOWN_SWAP_SIZE; |
6314 |
- |
6315 |
-- /* |
6316 |
-- * Initialize the file_operations structure. Because this code is always |
6317 |
-- * compiled as a module, this is fine to do it here and not in a static |
6318 |
-- * initializer. |
6319 |
-- */ |
6320 |
-- |
6321 |
-- memset(&vmuser_fops, 0, sizeof vmuser_fops); |
6322 |
-- vmuser_fops.owner = THIS_MODULE; |
6323 |
-- vmuser_fops.poll = LinuxDriverPoll; |
6324 |
-- vmuser_fops.unlocked_ioctl = LinuxDriver_Ioctl; |
6325 |
-- vmuser_fops.compat_ioctl = LinuxDriver_Ioctl; |
6326 |
-- vmuser_fops.open = LinuxDriver_Open; |
6327 |
-- vmuser_fops.release = LinuxDriver_Close; |
6328 |
-- vmuser_fops.mmap = LinuxDriverMmap; |
6329 |
-- |
6330 |
- #ifdef VMX86_DEVEL |
6331 |
- devel_init_module(); |
6332 |
- linuxState.minor = 0; |
6333 |
-diff --git a/vmnet-only/driver.c b/vmnet-only/driver.c |
6334 |
-index b12b982..40bd4cf 100644 |
6335 |
---- a/vmnet-only/driver.c |
6336 |
-+++ b/vmnet-only/driver.c |
6337 |
-@@ -165,7 +165,16 @@ static long VNetFileOpUnlockedIoctl(struct file * filp, |
6338 |
- unsigned int iocmd, unsigned long ioarg); |
6339 |
- #endif |
6340 |
- |
6341 |
--static struct file_operations vnetFileOps; |
6342 |
-+static struct file_operations vnetFileOps = { |
6343 |
-+ .owner = THIS_MODULE, |
6344 |
-+ .read = VNetFileOpRead, |
6345 |
-+ .write = VNetFileOpWrite, |
6346 |
-+ .poll = VNetFileOpPoll, |
6347 |
-+ .unlocked_ioctl = VNetFileOpUnlockedIoctl, |
6348 |
-+ .compat_ioctl = VNetFileOpUnlockedIoctl, |
6349 |
-+ .open = VNetFileOpOpen, |
6350 |
-+ .release = VNetFileOpClose |
6351 |
-+}; |
6352 |
- |
6353 |
- /* |
6354 |
- * Utility functions |
6355 |
-@@ -476,22 +491,6 @@ init_module(void) |
6356 |
- goto err_proto; |
6357 |
- } |
6358 |
- |
6359 |
-- /* |
6360 |
-- * Initialize the file_operations structure. Because this code is always |
6361 |
-- * compiled as a module, this is fine to do it here and not in a static |
6362 |
-- * initializer. |
6363 |
-- */ |
6364 |
-- |
6365 |
-- memset(&vnetFileOps, 0, sizeof vnetFileOps); |
6366 |
-- vnetFileOps.owner = THIS_MODULE; |
6367 |
-- vnetFileOps.read = VNetFileOpRead; |
6368 |
-- vnetFileOps.write = VNetFileOpWrite; |
6369 |
-- vnetFileOps.poll = VNetFileOpPoll; |
6370 |
-- vnetFileOps.unlocked_ioctl = VNetFileOpUnlockedIoctl; |
6371 |
-- vnetFileOps.compat_ioctl = VNetFileOpUnlockedIoctl; |
6372 |
-- vnetFileOps.open = VNetFileOpOpen; |
6373 |
-- vnetFileOps.release = VNetFileOpClose; |
6374 |
-- |
6375 |
- retval = register_chrdev(VNET_MAJOR_NUMBER, "vmnet", &vnetFileOps); |
6376 |
- if (retval) { |
6377 |
- LOG(0, (KERN_NOTICE "/dev/vmnet: could not register major device %d\n", |
6378 |
|
6379 |
diff --git a/app-emulation/vmware-modules/files/308-makefile-include.patch b/app-emulation/vmware-modules/files/308-makefile-include.patch |
6380 |
deleted file mode 100644 |
6381 |
index 39c30003080..00000000000 |
6382 |
--- a/app-emulation/vmware-modules/files/308-makefile-include.patch |
6383 |
+++ /dev/null |
6384 |
@@ -1,65 +0,0 @@ |
6385 |
-diff --git a/vmblock-only/Makefile.kernel b/vmblock-only/Makefile.kernel |
6386 |
-index ab7a727..e3ec9d2 100644 |
6387 |
---- a/vmblock-only/Makefile.kernel |
6388 |
-+++ b/vmblock-only/Makefile.kernel |
6389 |
-@@ -19,7 +19,7 @@ |
6390 |
- |
6391 |
- INCLUDE += -I$(SRCROOT)/include |
6392 |
- |
6393 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
6394 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
6395 |
- |
6396 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/cachecreate.c, -DVMW_KMEMCR_HAS_DTOR, ) |
6397 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/cachector.c, -DVMW_KMEMCR_CTOR_HAS_3_ARGS, ) |
6398 |
-diff --git a/vmci-only/Makefile.kernel b/vmci-only/Makefile.kernel |
6399 |
-index ba343ee..861ea83 100644 |
6400 |
---- a/vmci-only/Makefile.kernel |
6401 |
-+++ b/vmci-only/Makefile.kernel |
6402 |
-@@ -21,7 +21,7 @@ CC_OPTS += -DVMCI |
6403 |
- |
6404 |
- INCLUDE += -I$(SRCROOT)/shared -I$(SRCROOT)/common -I$(SRCROOT)/linux |
6405 |
- |
6406 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
6407 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
6408 |
- |
6409 |
- obj-m += $(DRIVER).o |
6410 |
- |
6411 |
-diff --git a/vmmon-only/Makefile.kernel b/vmmon-only/Makefile.kernel |
6412 |
-index 8770d1d..c4746c3 100644 |
6413 |
---- a/vmmon-only/Makefile.kernel |
6414 |
-+++ b/vmmon-only/Makefile.kernel |
6415 |
-@@ -22,7 +22,7 @@ CC_OPTS += -DVMMON -DVMCORE |
6416 |
- INCLUDE := -I$(SRCROOT)/include -I$(SRCROOT)/common -I$(SRCROOT)/linux \ |
6417 |
- -I$(SRCROOT)/vmcore |
6418 |
- |
6419 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
6420 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
6421 |
- |
6422 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/autoconf/smpcall.c, -DVMW_HAVE_SMP_CALL_3ARG, ) |
6423 |
- |
6424 |
-diff --git a/vmnet-only/Makefile.kernel b/vmnet-only/Makefile.kernel |
6425 |
-index d1e3133..665d428 100644 |
6426 |
---- a/vmnet-only/Makefile.kernel |
6427 |
-+++ b/vmnet-only/Makefile.kernel |
6428 |
-@@ -19,7 +19,7 @@ |
6429 |
- |
6430 |
- INCLUDE := -I$(SRCROOT) |
6431 |
- |
6432 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
6433 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
6434 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/netdev_has_net.c,-DVMW_NETDEV_HAS_NET, ) |
6435 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/netdev_has_dev_net.c,-DVMW_NETDEV_HAS_DEV_NET, ) |
6436 |
- EXTRA_CFLAGS += $(call vm_check_build, $(SRCROOT)/nfhook_uses_skb.c,-DVMW_NFHOOK_USES_SKB, ) |
6437 |
-diff --git a/vsock-only/Makefile.kernel b/vsock-only/Makefile.kernel |
6438 |
-index b4629ee..264b8cb 100644 |
6439 |
---- a/vsock-only/Makefile.kernel |
6440 |
-+++ b/vsock-only/Makefile.kernel |
6441 |
-@@ -25,7 +25,7 @@ INCLUDE += -I$(SRCROOT)/include |
6442 |
- INCLUDE += -I$(SRCROOT)/linux |
6443 |
- INCLUDE += -I$(SRCROOT)/common |
6444 |
- |
6445 |
--EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) |
6446 |
-+EXTRA_CFLAGS := $(CC_OPTS) $(INCLUDE) $(LINUXINCLUDE) |
6447 |
- EXTRA_CFLAGS += $(call vm_check_build, $(AUTOCONF_DIR)/netcreate_num_params.c, -DVMW_NETCREATE_KERNARG, ) |
6448 |
- |
6449 |
- |
6450 |
|
6451 |
diff --git a/app-emulation/vmware-modules/files/308-makefile-kernel-dir.patch b/app-emulation/vmware-modules/files/308-makefile-kernel-dir.patch |
6452 |
deleted file mode 100644 |
6453 |
index 1a647a3302d..00000000000 |
6454 |
--- a/app-emulation/vmware-modules/files/308-makefile-kernel-dir.patch |
6455 |
+++ /dev/null |
6456 |
@@ -1,85 +0,0 @@ |
6457 |
-diff --git a/vmblock-only/Makefile b/vmblock-only/Makefile |
6458 |
-index 2b81323..746c8b8 100644 |
6459 |
---- a/vmblock-only/Makefile |
6460 |
-+++ b/vmblock-only/Makefile |
6461 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
6462 |
- ifdef LINUXINCLUDE |
6463 |
- HEADER_DIR = $(LINUXINCLUDE) |
6464 |
- else |
6465 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
6466 |
-+HEADER_DIR = $(KERNEL_DIR) |
6467 |
- endif |
6468 |
- |
6469 |
--BUILD_DIR = $(HEADER_DIR)/.. |
6470 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
6471 |
- |
6472 |
- DRIVER := vmblock |
6473 |
- PRODUCT := ws |
6474 |
-diff --git a/vmci-only/Makefile b/vmci-only/Makefile |
6475 |
-index 8e9c5be..6ec828b 100644 |
6476 |
---- a/vmci-only/Makefile |
6477 |
-+++ b/vmci-only/Makefile |
6478 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
6479 |
- ifdef LINUXINCLUDE |
6480 |
- HEADER_DIR = $(LINUXINCLUDE) |
6481 |
- else |
6482 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
6483 |
-+HEADER_DIR = $(KERNEL_DIR) |
6484 |
- endif |
6485 |
- |
6486 |
--BUILD_DIR = $(HEADER_DIR)/.. |
6487 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
6488 |
- |
6489 |
- DRIVER := vmci |
6490 |
- PRODUCT := ws |
6491 |
-diff --git a/vmmon-only/Makefile b/vmmon-only/Makefile |
6492 |
-index 5bd867b..91a83d4 100644 |
6493 |
---- a/vmmon-only/Makefile |
6494 |
-+++ b/vmmon-only/Makefile |
6495 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
6496 |
- ifdef LINUXINCLUDE |
6497 |
- HEADER_DIR = $(LINUXINCLUDE) |
6498 |
- else |
6499 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
6500 |
-+HEADER_DIR = $(KERNEL_DIR) |
6501 |
- endif |
6502 |
- |
6503 |
--BUILD_DIR = $(HEADER_DIR)/.. |
6504 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
6505 |
- |
6506 |
- DRIVER := vmmon |
6507 |
- PRODUCT := @@PRODUCT@@ |
6508 |
-diff --git a/vmnet-only/Makefile b/vmnet-only/Makefile |
6509 |
-index d4eb73c..c7c6d38 100644 |
6510 |
---- a/vmnet-only/Makefile |
6511 |
-+++ b/vmnet-only/Makefile |
6512 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
6513 |
- ifdef LINUXINCLUDE |
6514 |
- HEADER_DIR = $(LINUXINCLUDE) |
6515 |
- else |
6516 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
6517 |
-+HEADER_DIR = $(KERNEL_DIR) |
6518 |
- endif |
6519 |
- |
6520 |
--BUILD_DIR = $(HEADER_DIR)/.. |
6521 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
6522 |
- |
6523 |
- DRIVER := vmnet |
6524 |
- PRODUCT := @@PRODUCT@@ |
6525 |
-diff --git a/vsock-only/Makefile b/vsock-only/Makefile |
6526 |
-index 93dd61d..9765696 100644 |
6527 |
---- a/vsock-only/Makefile |
6528 |
-+++ b/vsock-only/Makefile |
6529 |
-@@ -49,10 +49,10 @@ VM_UNAME = $(shell uname -r) |
6530 |
- ifdef LINUXINCLUDE |
6531 |
- HEADER_DIR = $(LINUXINCLUDE) |
6532 |
- else |
6533 |
--HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include |
6534 |
-+HEADER_DIR = $(KERNEL_DIR) |
6535 |
- endif |
6536 |
- |
6537 |
--BUILD_DIR = $(HEADER_DIR)/.. |
6538 |
-+BUILD_DIR = $(KBUILD_OUTPUT) |
6539 |
- |
6540 |
- DRIVER := vsock |
6541 |
- PRODUCT := ws |
6542 |
|
6543 |
diff --git a/app-emulation/vmware-modules/files/308-netdevice.patch b/app-emulation/vmware-modules/files/308-netdevice.patch |
6544 |
deleted file mode 100644 |
6545 |
index 35231a3205e..00000000000 |
6546 |
--- a/app-emulation/vmware-modules/files/308-netdevice.patch |
6547 |
+++ /dev/null |
6548 |
@@ -1,24 +0,0 @@ |
6549 |
-diff --git a/vmnet-only/compat_netdevice.h b/vmnet-only/compat_netdevice.h |
6550 |
-index 7a56304..9ff4548 100644 |
6551 |
---- a/vmnet-only/compat_netdevice.h |
6552 |
-+++ b/vmnet-only/compat_netdevice.h |
6553 |
-@@ -47,6 +47,19 @@ |
6554 |
- # define net_device device |
6555 |
- #endif |
6556 |
- |
6557 |
-+/* it looks like these have been removed from the kernel 3.1 |
6558 |
-+ * probably because the "transition" is considered complete. |
6559 |
-+ * so to keep this source compatible we just redefine them like they were |
6560 |
-+ * previously |
6561 |
-+ */ |
6562 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) |
6563 |
-+#define HAVE_ALLOC_NETDEV /* feature macro: alloc_xxxdev |
6564 |
-+ functions are available. */ |
6565 |
-+#define HAVE_FREE_NETDEV /* free_netdev() */ |
6566 |
-+#define HAVE_NETDEV_PRIV /* netdev_priv() */ |
6567 |
-+#define HAVE_NETIF_QUEUE |
6568 |
-+#define HAVE_NET_DEVICE_OPS |
6569 |
-+#endif |
6570 |
- |
6571 |
- /* |
6572 |
- * SET_MODULE_OWNER appeared sometime during 2.3.x. It was setting |
6573 |
|
6574 |
diff --git a/app-emulation/vmware-modules/files/hardened.patch b/app-emulation/vmware-modules/files/hardened.patch |
6575 |
deleted file mode 100644 |
6576 |
index ea1b0f30075..00000000000 |
6577 |
--- a/app-emulation/vmware-modules/files/hardened.patch |
6578 |
+++ /dev/null |
6579 |
@@ -1,170 +0,0 @@ |
6580 |
-diff --git a/vmci-only/linux/driver.c b/vmci-only/linux/driver.c |
6581 |
-index 921f25c..41a39e3 100644 |
6582 |
---- a/vmci-only/linux/driver.c |
6583 |
-+++ b/vmci-only/linux/driver.c |
6584 |
-@@ -241,7 +241,24 @@ static unsigned int LinuxDriverPoll(struct file *file, poll_table *wait); |
6585 |
- #define LinuxDriverUnlockIoctlPerFD(mutex) do {} while (0) |
6586 |
- #endif |
6587 |
- |
6588 |
--static struct file_operations vmuser_fops; |
6589 |
-+/* |
6590 |
-+ * Moved file operations initialize here because of incompatibilites |
6591 |
-+ * with Gentoo hardened profile/hardend Linux 3. |
6592 |
-+ */ |
6593 |
-+static struct file_operations vmuser_fops = { |
6594 |
-+ .owner = THIS_MODULE, |
6595 |
-+ .poll = LinuxDriverPoll, |
6596 |
-+#ifdef HAVE_UNLOCKED_IOCTL |
6597 |
-+ .unlocked_ioctl = LinuxDriver_UnlockedIoctl, |
6598 |
-+#else |
6599 |
-+ .ioctl = LinuxDriver_Ioctl, |
6600 |
-+#endif |
6601 |
-+#ifdef HAVE_COMPAT_IOCTL |
6602 |
-+ .compat_ioctl = LinuxDriver_UnlockedIoctl, |
6603 |
-+#endif |
6604 |
-+ .open = LinuxDriver_Open, |
6605 |
-+ .release = LinuxDriver_Close |
6606 |
-+}; |
6607 |
- |
6608 |
- |
6609 |
- /* |
6610 |
-@@ -378,26 +395,6 @@ vmci_host_init(void) |
6611 |
- return -ENOMEM; |
6612 |
- } |
6613 |
- |
6614 |
-- /* |
6615 |
-- * Initialize the file_operations structure. Because this code is always |
6616 |
-- * compiled as a module, this is fine to do it here and not in a static |
6617 |
-- * initializer. |
6618 |
-- */ |
6619 |
-- |
6620 |
-- memset(&vmuser_fops, 0, sizeof vmuser_fops); |
6621 |
-- vmuser_fops.owner = THIS_MODULE; |
6622 |
-- vmuser_fops.poll = LinuxDriverPoll; |
6623 |
--#ifdef HAVE_UNLOCKED_IOCTL |
6624 |
-- vmuser_fops.unlocked_ioctl = LinuxDriver_UnlockedIoctl; |
6625 |
--#else |
6626 |
-- vmuser_fops.ioctl = LinuxDriver_Ioctl; |
6627 |
--#endif |
6628 |
--#ifdef HAVE_COMPAT_IOCTL |
6629 |
-- vmuser_fops.compat_ioctl = LinuxDriver_UnlockedIoctl; |
6630 |
--#endif |
6631 |
-- vmuser_fops.open = LinuxDriver_Open; |
6632 |
-- vmuser_fops.release = LinuxDriver_Close; |
6633 |
-- |
6634 |
- sprintf(linuxState.deviceName, "vmci"); |
6635 |
- linuxState.major = 10; |
6636 |
- linuxState.misc.minor = MISC_DYNAMIC_MINOR; |
6637 |
-diff --git a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c |
6638 |
-index b21dd44..960c2aa 100644 |
6639 |
---- a/vmmon-only/linux/driver.c |
6640 |
-+++ b/vmmon-only/linux/driver.c |
6641 |
-@@ -178,7 +178,22 @@ static struct vm_operations_struct vmuser_mops = { |
6642 |
- #endif |
6643 |
- }; |
6644 |
- |
6645 |
--static struct file_operations vmuser_fops; |
6646 |
-+static struct file_operations vmuser_fops = { |
6647 |
-+ .owner = THIS_MODULE, |
6648 |
-+ .poll = LinuxDriverPoll, |
6649 |
-+#ifdef HAVE_UNLOCKED_IOCTL |
6650 |
-+ .unlocked_ioctl = LinuxDriver_UnlockedIoctl, |
6651 |
-+#else |
6652 |
-+ .ioctl = LinuxDriver_Ioctl, |
6653 |
-+#endif |
6654 |
-+#ifdef HAVE_COMPAT_IOCTL |
6655 |
-+ .compat_ioctl = LinuxDriver_UnlockedIoctl, |
6656 |
-+#endif |
6657 |
-+ .open = LinuxDriver_Open, |
6658 |
-+ .release = LinuxDriver_Close, |
6659 |
-+ .mmap = LinuxDriverMmap |
6660 |
-+}; |
6661 |
-+ |
6662 |
- static struct timer_list tscTimer; |
6663 |
- |
6664 |
- /* |
6665 |
-@@ -357,27 +372,6 @@ init_module(void) |
6666 |
- spin_lock_init(&linuxState.pollListLock); |
6667 |
- #endif |
6668 |
- |
6669 |
-- /* |
6670 |
-- * Initialize the file_operations structure. Because this code is always |
6671 |
-- * compiled as a module, this is fine to do it here and not in a static |
6672 |
-- * initializer. |
6673 |
-- */ |
6674 |
-- |
6675 |
-- memset(&vmuser_fops, 0, sizeof vmuser_fops); |
6676 |
-- vmuser_fops.owner = THIS_MODULE; |
6677 |
-- vmuser_fops.poll = LinuxDriverPoll; |
6678 |
--#ifdef HAVE_UNLOCKED_IOCTL |
6679 |
-- vmuser_fops.unlocked_ioctl = LinuxDriver_UnlockedIoctl; |
6680 |
--#else |
6681 |
-- vmuser_fops.ioctl = LinuxDriver_Ioctl; |
6682 |
--#endif |
6683 |
--#ifdef HAVE_COMPAT_IOCTL |
6684 |
-- vmuser_fops.compat_ioctl = LinuxDriver_UnlockedIoctl; |
6685 |
--#endif |
6686 |
-- vmuser_fops.open = LinuxDriver_Open; |
6687 |
-- vmuser_fops.release = LinuxDriver_Close; |
6688 |
-- vmuser_fops.mmap = LinuxDriverMmap; |
6689 |
-- |
6690 |
- #ifdef VMX86_DEVEL |
6691 |
- devel_init_module(); |
6692 |
- linuxState.minor = 0; |
6693 |
-diff --git a/vmnet-only/driver.c b/vmnet-only/driver.c |
6694 |
-index b12b982..40bd4cf 100644 |
6695 |
---- a/vmnet-only/driver.c |
6696 |
-+++ b/vmnet-only/driver.c |
6697 |
-@@ -165,7 +165,22 @@ static long VNetFileOpUnlockedIoctl(struct file * filp, |
6698 |
- unsigned int iocmd, unsigned long ioarg); |
6699 |
- #endif |
6700 |
- |
6701 |
--static struct file_operations vnetFileOps; |
6702 |
-+static struct file_operations vnetFileOps = { |
6703 |
-+ .owner = THIS_MODULE, |
6704 |
-+ .read = VNetFileOpRead, |
6705 |
-+ .write = VNetFileOpWrite, |
6706 |
-+ .poll = VNetFileOpPoll, |
6707 |
-+#ifdef HAVE_UNLOCKED_IOCTL |
6708 |
-+ .unlocked_ioctl = VNetFileOpUnlockedIoctl, |
6709 |
-+#else |
6710 |
-+ .ioctl = VNetFileOpIoctl, |
6711 |
-+#endif |
6712 |
-+#ifdef HAVE_COMPAT_IOCTL |
6713 |
-+ .compat_ioctl = VNetFileOpUnlockedIoctl, |
6714 |
-+#endif |
6715 |
-+ .open = VNetFileOpOpen, |
6716 |
-+ .release = VNetFileOpClose |
6717 |
-+}; |
6718 |
- |
6719 |
- /* |
6720 |
- * Utility functions |
6721 |
-@@ -476,28 +491,6 @@ init_module(void) |
6722 |
- goto err_proto; |
6723 |
- } |
6724 |
- |
6725 |
-- /* |
6726 |
-- * Initialize the file_operations structure. Because this code is always |
6727 |
-- * compiled as a module, this is fine to do it here and not in a static |
6728 |
-- * initializer. |
6729 |
-- */ |
6730 |
-- |
6731 |
-- memset(&vnetFileOps, 0, sizeof vnetFileOps); |
6732 |
-- vnetFileOps.owner = THIS_MODULE; |
6733 |
-- vnetFileOps.read = VNetFileOpRead; |
6734 |
-- vnetFileOps.write = VNetFileOpWrite; |
6735 |
-- vnetFileOps.poll = VNetFileOpPoll; |
6736 |
--#ifdef HAVE_UNLOCKED_IOCTL |
6737 |
-- vnetFileOps.unlocked_ioctl = VNetFileOpUnlockedIoctl; |
6738 |
--#else |
6739 |
-- vnetFileOps.ioctl = VNetFileOpIoctl; |
6740 |
--#endif |
6741 |
--#ifdef HAVE_COMPAT_IOCTL |
6742 |
-- vnetFileOps.compat_ioctl = VNetFileOpUnlockedIoctl; |
6743 |
--#endif |
6744 |
-- vnetFileOps.open = VNetFileOpOpen; |
6745 |
-- vnetFileOps.release = VNetFileOpClose; |
6746 |
-- |
6747 |
- retval = register_chrdev(VNET_MAJOR_NUMBER, "vmnet", &vnetFileOps); |
6748 |
- if (retval) { |
6749 |
- LOG(0, (KERN_NOTICE "/dev/vmnet: could not register major device %d\n", |
6750 |
|
6751 |
diff --git a/app-emulation/vmware-modules/metadata.xml b/app-emulation/vmware-modules/metadata.xml |
6752 |
deleted file mode 100644 |
6753 |
index dec09dcab00..00000000000 |
6754 |
--- a/app-emulation/vmware-modules/metadata.xml |
6755 |
+++ /dev/null |
6756 |
@@ -1,16 +0,0 @@ |
6757 |
-<?xml version="1.0" encoding="UTF-8"?> |
6758 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
6759 |
-<pkgmetadata> |
6760 |
- <maintainer type="project"> |
6761 |
- <email>vmware@g.o</email> |
6762 |
- <name>Gentoo VMware Project</name> |
6763 |
- </maintainer> |
6764 |
- <longdescription> |
6765 |
- VMware kernel modules. |
6766 |
- </longdescription> |
6767 |
- <use> |
6768 |
- <flag name="pax_kernel">Apply patch needed for pax enabled kernels</flag> |
6769 |
- <flag name="vmci">Build the Virtual Machine Communication Interface module; disable this if you want to use the module from the mainline kernel</flag> |
6770 |
- <flag name="vsock">Build the VMware VMCI transport for Virtual Sockets; disable this if you want to use the module from the mainline kernel</flag> |
6771 |
- </use> |
6772 |
-</pkgmetadata> |
6773 |
|
6774 |
diff --git a/app-emulation/vmware-modules/vmware-modules-271.3-r1.ebuild b/app-emulation/vmware-modules/vmware-modules-271.3-r1.ebuild |
6775 |
deleted file mode 100644 |
6776 |
index 68aa1dae952..00000000000 |
6777 |
--- a/app-emulation/vmware-modules/vmware-modules-271.3-r1.ebuild |
6778 |
+++ /dev/null |
6779 |
@@ -1,107 +0,0 @@ |
6780 |
-# Copyright 1999-2015 Gentoo Foundation |
6781 |
-# Distributed under the terms of the GNU General Public License v2 |
6782 |
- |
6783 |
-EAPI="4" |
6784 |
- |
6785 |
-inherit eutils flag-o-matic linux-info linux-mod user versionator udev |
6786 |
- |
6787 |
-PV_MAJOR=$(get_major_version) |
6788 |
-PV_MINOR=$(get_version_component_range 2) |
6789 |
- |
6790 |
-DESCRIPTION="VMware kernel modules" |
6791 |
-HOMEPAGE="http://www.vmware.com/" |
6792 |
- |
6793 |
-SRC_URI="" |
6794 |
- |
6795 |
-LICENSE="GPL-2" |
6796 |
-SLOT="0" |
6797 |
-KEYWORDS="~amd64 ~x86" |
6798 |
-IUSE="pax_kernel" |
6799 |
- |
6800 |
-RDEPEND="" |
6801 |
-DEPEND="${RDEPEND} |
6802 |
- || ( =app-emulation/vmware-player-5.0.${PV_MINOR}* |
6803 |
- =app-emulation/vmware-workstation-9.0.${PV_MINOR}* )" |
6804 |
- |
6805 |
-S=${WORKDIR} |
6806 |
- |
6807 |
-pkg_setup() { |
6808 |
- CONFIG_CHECK="~HIGH_RES_TIMERS" |
6809 |
- if kernel_is ge 2 6 37 && kernel_is lt 2 6 39; then |
6810 |
- CONFIG_CHECK="${CONFIG_CHECK} BKL" |
6811 |
- fi |
6812 |
- |
6813 |
- linux-info_pkg_setup |
6814 |
- |
6815 |
- linux-mod_pkg_setup |
6816 |
- |
6817 |
- VMWARE_GROUP=${VMWARE_GROUP:-vmware} |
6818 |
- |
6819 |
- VMWARE_MODULE_LIST="vmblock vmci vmmon vmnet vsock" |
6820 |
- VMWARE_MOD_DIR="${PN}-${PVR}" |
6821 |
- |
6822 |
- BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}" |
6823 |
- |
6824 |
- enewgroup "${VMWARE_GROUP}" |
6825 |
- filter-flags -mfpmath=sse -mavx -mpclmul -maes |
6826 |
- |
6827 |
- for mod in ${VMWARE_MODULE_LIST}; do |
6828 |
- MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)" |
6829 |
- done |
6830 |
-} |
6831 |
- |
6832 |
-src_unpack() { |
6833 |
- cd "${S}" |
6834 |
- for mod in ${VMWARE_MODULE_LIST}; do |
6835 |
- tar -xf /opt/vmware/lib/vmware/modules/source/${mod}.tar |
6836 |
- done |
6837 |
-} |
6838 |
- |
6839 |
-src_prepare() { |
6840 |
- epatch "${FILESDIR}/${PV_MAJOR}-makefile-kernel-dir.patch" |
6841 |
- epatch "${FILESDIR}/${PV_MAJOR}-makefile-include.patch" |
6842 |
- epatch "${FILESDIR}/${PV_MAJOR}-netdevice.patch" |
6843 |
- use pax_kernel && epatch "${FILESDIR}/${PV_MAJOR}-hardened.patch" |
6844 |
- epatch "${FILESDIR}/${PV_MAJOR}-apic.patch" |
6845 |
- kernel_is ge 3 7 0 && epatch "${FILESDIR}/${PV_MAJOR}-putname.patch" |
6846 |
- |
6847 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-00-userns.patch" |
6848 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-01-create_proc_entry.patch" |
6849 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-02-getname.patch" |
6850 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-03-deprecated.patch" |
6851 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-04-unused-typedef.patch" |
6852 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-05-dentry.patch" |
6853 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-06-inode.patch" |
6854 |
- |
6855 |
- # fixes a memcpy/memcmp bug in the hub code |
6856 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-07-hub.patch" |
6857 |
- |
6858 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.11-00-readdir.patch" |
6859 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.11-01-filldir.patch" |
6860 |
- kernel_is ge 3 13 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.13-00-vmnet.patch" |
6861 |
- kernel_is ge 3 15 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.15-00-readlink.patch" |
6862 |
- kernel_is ge 3 15 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.15-01-vsock.patch" |
6863 |
- kernel_is ge 3 17 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.17-00-netdev.patch" |
6864 |
- |
6865 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-00-vmnet-warning.patch" |
6866 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-01-vmblock-path.patch" |
6867 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-02-vmci.patch" |
6868 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-03-vmnet.patch" |
6869 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-04-vsock.patch" |
6870 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-05-vsock.patch" |
6871 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-06-vmci_qpair.patch" |
6872 |
- |
6873 |
- # Allow user patches so they can support RC kernels and whatever else |
6874 |
- epatch_user |
6875 |
-} |
6876 |
- |
6877 |
-src_install() { |
6878 |
- linux-mod_src_install |
6879 |
- local udevrules="${T}/60-vmware.rules" |
6880 |
- cat > "${udevrules}" <<-EOF |
6881 |
- KERNEL=="vmci", GROUP="vmware", MODE="660" |
6882 |
- KERNEL=="vmmon", GROUP="vmware", MODE="660" |
6883 |
- KERNEL=="vsock", GROUP="vmware", MODE="660" |
6884 |
- EOF |
6885 |
- udev_dorules "${udevrules}" |
6886 |
-} |
6887 |
|
6888 |
diff --git a/app-emulation/vmware-modules/vmware-modules-279.6.ebuild b/app-emulation/vmware-modules/vmware-modules-279.6.ebuild |
6889 |
deleted file mode 100644 |
6890 |
index 9543d955b8b..00000000000 |
6891 |
--- a/app-emulation/vmware-modules/vmware-modules-279.6.ebuild |
6892 |
+++ /dev/null |
6893 |
@@ -1,116 +0,0 @@ |
6894 |
-# Copyright 1999-2015 Gentoo Foundation |
6895 |
-# Distributed under the terms of the GNU General Public License v2 |
6896 |
- |
6897 |
-EAPI=5 |
6898 |
- |
6899 |
-inherit eutils flag-o-matic linux-info linux-mod user versionator udev |
6900 |
- |
6901 |
-PV_MAJOR=$(get_major_version) |
6902 |
-PV_MINOR=$(get_version_component_range 2) |
6903 |
- |
6904 |
-DESCRIPTION="VMware kernel modules" |
6905 |
-HOMEPAGE="http://www.vmware.com/" |
6906 |
- |
6907 |
-SRC_URI="" |
6908 |
- |
6909 |
-LICENSE="GPL-2" |
6910 |
-SLOT="0" |
6911 |
-KEYWORDS="~amd64 ~x86" |
6912 |
-IUSE="pax_kernel +vmci +vsock" |
6913 |
- |
6914 |
-RDEPEND="" |
6915 |
-DEPEND="${RDEPEND} |
6916 |
- || ( =app-emulation/vmware-player-6.0.${PV_MINOR}* |
6917 |
- =app-emulation/vmware-workstation-10.0.${PV_MINOR}* )" |
6918 |
- |
6919 |
-S=${WORKDIR} |
6920 |
- |
6921 |
-pkg_setup() { |
6922 |
- CONFIG_CHECK="~HIGH_RES_TIMERS" |
6923 |
- if kernel_is ge 2 6 37 && kernel_is lt 2 6 39; then |
6924 |
- CONFIG_CHECK="${CONFIG_CHECK} BKL" |
6925 |
- fi |
6926 |
- if use vmci ; then |
6927 |
- CONFIG_CHECK="${CONFIG_CHECK} !VMWARE_VMCI" |
6928 |
- else |
6929 |
- CONFIG_CHECK="${CONFIG_CHECK} VMWARE_VMCI" |
6930 |
- fi |
6931 |
- if use vsock ; then |
6932 |
- CONFIG_CHECK="${CONFIG_CHECK} !VMWARE_VMCI_VSOCKETS" |
6933 |
- else |
6934 |
- CONFIG_CHECK="${CONFIG_CHECK} VMWARE_VMCI_VSOCKETS" |
6935 |
- fi |
6936 |
- |
6937 |
- linux-info_pkg_setup |
6938 |
- |
6939 |
- linux-mod_pkg_setup |
6940 |
- |
6941 |
- VMWARE_GROUP=${VMWARE_GROUP:-vmware} |
6942 |
- |
6943 |
- VMWARE_MODULE_LIST_ALL="vmblock vmmon vmnet vmci vsock" |
6944 |
- VMWARE_MODULE_LIST="vmblock vmmon vmnet" |
6945 |
- use vmci && VMWARE_MODULE_LIST="${VMWARE_MODULE_LIST} vmci" |
6946 |
- use vsock && VMWARE_MODULE_LIST="${VMWARE_MODULE_LIST} vsock" |
6947 |
- |
6948 |
- VMWARE_MOD_DIR="${PN}-${PVR}" |
6949 |
- |
6950 |
- BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}" |
6951 |
- |
6952 |
- enewgroup "${VMWARE_GROUP}" |
6953 |
- filter-flags -mfpmath=sse -mavx -mpclmul -maes |
6954 |
- |
6955 |
- for mod in ${VMWARE_MODULE_LIST}; do |
6956 |
- MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)" |
6957 |
- done |
6958 |
-} |
6959 |
- |
6960 |
-src_unpack() { |
6961 |
- cd "${S}" |
6962 |
- for mod in ${VMWARE_MODULE_LIST_ALL}; do |
6963 |
- tar -xf /opt/vmware/lib/vmware/modules/source/${mod}.tar |
6964 |
- done |
6965 |
-} |
6966 |
- |
6967 |
-src_prepare() { |
6968 |
- epatch "${FILESDIR}/${PV_MAJOR}-makefile-kernel-dir.patch" |
6969 |
- epatch "${FILESDIR}/${PV_MAJOR}-makefile-include.patch" |
6970 |
- epatch "${FILESDIR}/${PV_MAJOR}-netdevice.patch" |
6971 |
- use pax_kernel && epatch "${FILESDIR}/279-hardened.patch" |
6972 |
- epatch "${FILESDIR}/${PV_MAJOR}-apic.patch" |
6973 |
- kernel_is ge 3 7 0 && epatch "${FILESDIR}/${PV_MAJOR}-putname.patch" |
6974 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-vmblock.patch" |
6975 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-5.10-00-userns.patch" |
6976 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-01-getname.patch" |
6977 |
- #kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-03-deprecated.patch" |
6978 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-04-dentry.patch" |
6979 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-05-inode.patch" |
6980 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-filldir.patch" |
6981 |
- kernel_is ge 3 15 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.15-00-readlink.patch" |
6982 |
- kernel_is ge 3 15 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.15-01-vsock.patch" |
6983 |
- kernel_is ge 3 17 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.17-00-netdev.patch" |
6984 |
- kernel_is ge 3 18 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.18-00-version-redefined.patch" |
6985 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-00-compat-namei.patch" |
6986 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-01-dentry.patch" |
6987 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-02-vmblock-path.patch" |
6988 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-03-iovec.patch" |
6989 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-04-iovec.patch" |
6990 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-05-vmci_qpair.patch" |
6991 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-06-vsock.patch" |
6992 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-07-vsock.patch" |
6993 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.2-00-cookie.patch" |
6994 |
- |
6995 |
- # Allow user patches so they can support RC kernels and whatever else |
6996 |
- epatch_user |
6997 |
-} |
6998 |
- |
6999 |
-src_install() { |
7000 |
- linux-mod_src_install |
7001 |
- local udevrules="${T}/60-vmware.rules" |
7002 |
- cat > "${udevrules}" <<-EOF |
7003 |
- KERNEL=="vmci", GROUP="vmware", MODE="660" |
7004 |
- KERNEL=="vmw_vmci", GROUP="vmware", MODE="660" |
7005 |
- KERNEL=="vmmon", GROUP="vmware", MODE="660" |
7006 |
- KERNEL=="vsock", GROUP="vmware", MODE="660" |
7007 |
- EOF |
7008 |
- udev_dorules "${udevrules}" |
7009 |
-} |
7010 |
|
7011 |
diff --git a/app-emulation/vmware-modules/vmware-modules-304.2.ebuild b/app-emulation/vmware-modules/vmware-modules-304.2.ebuild |
7012 |
deleted file mode 100644 |
7013 |
index 64f23138649..00000000000 |
7014 |
--- a/app-emulation/vmware-modules/vmware-modules-304.2.ebuild |
7015 |
+++ /dev/null |
7016 |
@@ -1,116 +0,0 @@ |
7017 |
-# Copyright 1999-2015 Gentoo Foundation |
7018 |
-# Distributed under the terms of the GNU General Public License v2 |
7019 |
- |
7020 |
-EAPI=5 |
7021 |
- |
7022 |
-inherit eutils flag-o-matic linux-info linux-mod user versionator udev |
7023 |
- |
7024 |
-PV_MAJOR=$(get_major_version) |
7025 |
-PV_MINOR=$(get_version_component_range 2) |
7026 |
- |
7027 |
-DESCRIPTION="VMware kernel modules" |
7028 |
-HOMEPAGE="http://www.vmware.com/" |
7029 |
- |
7030 |
-SRC_URI="" |
7031 |
- |
7032 |
-LICENSE="GPL-2" |
7033 |
-SLOT="0" |
7034 |
-KEYWORDS="~amd64" |
7035 |
-IUSE="pax_kernel +vmci +vsock" |
7036 |
- |
7037 |
-RDEPEND="" |
7038 |
-DEPEND="${RDEPEND} |
7039 |
- || ( =app-emulation/vmware-player-7.1.${PV_MINOR}* |
7040 |
- =app-emulation/vmware-workstation-11.1.${PV_MINOR}* )" |
7041 |
- |
7042 |
-S=${WORKDIR} |
7043 |
- |
7044 |
-pkg_setup() { |
7045 |
- CONFIG_CHECK="~HIGH_RES_TIMERS" |
7046 |
- if kernel_is ge 2 6 37 && kernel_is lt 2 6 39; then |
7047 |
- CONFIG_CHECK="${CONFIG_CHECK} BKL" |
7048 |
- fi |
7049 |
- if use vmci ; then |
7050 |
- CONFIG_CHECK="${CONFIG_CHECK} !VMWARE_VMCI" |
7051 |
- else |
7052 |
- CONFIG_CHECK="${CONFIG_CHECK} VMWARE_VMCI" |
7053 |
- fi |
7054 |
- if use vsock ; then |
7055 |
- CONFIG_CHECK="${CONFIG_CHECK} !VMWARE_VMCI_VSOCKETS" |
7056 |
- else |
7057 |
- CONFIG_CHECK="${CONFIG_CHECK} VMWARE_VMCI_VSOCKETS" |
7058 |
- fi |
7059 |
- |
7060 |
- linux-info_pkg_setup |
7061 |
- |
7062 |
- linux-mod_pkg_setup |
7063 |
- |
7064 |
- VMWARE_GROUP=${VMWARE_GROUP:-vmware} |
7065 |
- |
7066 |
- VMWARE_MODULE_LIST_ALL="vmblock vmmon vmnet vmci vsock" |
7067 |
- VMWARE_MODULE_LIST="vmblock vmmon vmnet" |
7068 |
- use vmci && VMWARE_MODULE_LIST="${VMWARE_MODULE_LIST} vmci" |
7069 |
- use vsock && VMWARE_MODULE_LIST="${VMWARE_MODULE_LIST} vsock" |
7070 |
- |
7071 |
- VMWARE_MOD_DIR="${PN}-${PVR}" |
7072 |
- |
7073 |
- BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}" |
7074 |
- |
7075 |
- enewgroup "${VMWARE_GROUP}" |
7076 |
- filter-flags -mfpmath=sse -mavx -mpclmul -maes |
7077 |
- |
7078 |
- for mod in ${VMWARE_MODULE_LIST}; do |
7079 |
- MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)" |
7080 |
- done |
7081 |
-} |
7082 |
- |
7083 |
-src_unpack() { |
7084 |
- cd "${S}" |
7085 |
- for mod in ${VMWARE_MODULE_LIST_ALL}; do |
7086 |
- tar -xf /opt/vmware/lib/vmware/modules/source/${mod}.tar |
7087 |
- done |
7088 |
-} |
7089 |
- |
7090 |
-src_prepare() { |
7091 |
- epatch "${FILESDIR}/${PV_MAJOR}-makefile-kernel-dir.patch" |
7092 |
- epatch "${FILESDIR}/${PV_MAJOR}-makefile-include.patch" |
7093 |
- epatch "${FILESDIR}/${PV_MAJOR}-netdevice.patch" |
7094 |
- use pax_kernel && epatch "${FILESDIR}/${PV_MAJOR}-hardened.patch" |
7095 |
- epatch "${FILESDIR}/${PV_MAJOR}-apic.patch" |
7096 |
- |
7097 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-00-dentry.patch" |
7098 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-01-inode.patch" |
7099 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-02-control.patch" |
7100 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-03-inline.patch" |
7101 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.11-00-readdir.patch" |
7102 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.11-01-filldir.patch" |
7103 |
- kernel_is ge 3 15 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.15-00-vsock.patch" |
7104 |
- kernel_is ge 3 18 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.18-00-version-redefined.patch" |
7105 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-00-compat-namei.patch" |
7106 |
- #kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-01-dentry.patch" |
7107 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-02-vmblock-path.patch" |
7108 |
- #kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-03-iovec.patch" |
7109 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-04-iovec.patch" |
7110 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-05-vmci_qpair.patch" |
7111 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-06-vsock.patch" |
7112 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-07-vsock.patch" |
7113 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.2-01-inode.patch" |
7114 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.2-02-vmnetInt.patch" |
7115 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.2-03-af_vsock.patch" |
7116 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.2-04-driver.patch" |
7117 |
- |
7118 |
- # Allow user patches so they can support RC kernels and whatever else |
7119 |
- epatch_user |
7120 |
-} |
7121 |
- |
7122 |
-src_install() { |
7123 |
- linux-mod_src_install |
7124 |
- local udevrules="${T}/60-vmware.rules" |
7125 |
- cat > "${udevrules}" <<-EOF |
7126 |
- KERNEL=="vmci", GROUP="vmware", MODE="660" |
7127 |
- KERNEL=="vmw_vmci", GROUP="vmware", MODE="660" |
7128 |
- KERNEL=="vmmon", GROUP="vmware", MODE="660" |
7129 |
- KERNEL=="vsock", GROUP="vmware", MODE="660" |
7130 |
- EOF |
7131 |
- udev_dorules "${udevrules}" |
7132 |
-} |
7133 |
|
7134 |
diff --git a/app-emulation/vmware-modules/vmware-modules-304.3-r1.ebuild b/app-emulation/vmware-modules/vmware-modules-304.3-r1.ebuild |
7135 |
deleted file mode 100644 |
7136 |
index 461d897ea8c..00000000000 |
7137 |
--- a/app-emulation/vmware-modules/vmware-modules-304.3-r1.ebuild |
7138 |
+++ /dev/null |
7139 |
@@ -1,118 +0,0 @@ |
7140 |
-# Copyright 1999-2016 Gentoo Foundation |
7141 |
-# Distributed under the terms of the GNU General Public License v2 |
7142 |
- |
7143 |
-EAPI=5 |
7144 |
- |
7145 |
-inherit eutils flag-o-matic linux-info linux-mod user versionator udev |
7146 |
- |
7147 |
-PV_MAJOR=$(get_major_version) |
7148 |
-PV_MINOR=$(get_version_component_range 2) |
7149 |
- |
7150 |
-DESCRIPTION="VMware kernel modules" |
7151 |
-HOMEPAGE="http://www.vmware.com/" |
7152 |
- |
7153 |
-SRC_URI="" |
7154 |
- |
7155 |
-LICENSE="GPL-2" |
7156 |
-SLOT="0" |
7157 |
-KEYWORDS="-* ~amd64" |
7158 |
-IUSE="pax_kernel +vmci +vsock" |
7159 |
- |
7160 |
-RDEPEND="" |
7161 |
-DEPEND="${RDEPEND} |
7162 |
- || ( =app-emulation/vmware-player-7.1.${PV_MINOR}* |
7163 |
- =app-emulation/vmware-workstation-11.1.${PV_MINOR}* )" |
7164 |
- |
7165 |
-S=${WORKDIR} |
7166 |
- |
7167 |
-pkg_setup() { |
7168 |
- CONFIG_CHECK="~HIGH_RES_TIMERS" |
7169 |
- if kernel_is ge 2 6 37 && kernel_is lt 2 6 39; then |
7170 |
- CONFIG_CHECK="${CONFIG_CHECK} BKL" |
7171 |
- fi |
7172 |
- if use vmci ; then |
7173 |
- CONFIG_CHECK="${CONFIG_CHECK} !VMWARE_VMCI" |
7174 |
- else |
7175 |
- CONFIG_CHECK="${CONFIG_CHECK} VMWARE_VMCI" |
7176 |
- fi |
7177 |
- if use vsock ; then |
7178 |
- CONFIG_CHECK="${CONFIG_CHECK} !VMWARE_VMCI_VSOCKETS" |
7179 |
- else |
7180 |
- CONFIG_CHECK="${CONFIG_CHECK} VMWARE_VMCI_VSOCKETS" |
7181 |
- fi |
7182 |
- |
7183 |
- linux-info_pkg_setup |
7184 |
- |
7185 |
- linux-mod_pkg_setup |
7186 |
- |
7187 |
- VMWARE_GROUP=${VMWARE_GROUP:-vmware} |
7188 |
- |
7189 |
- VMWARE_MODULE_LIST_ALL="vmblock vmmon vmnet vmci vsock" |
7190 |
- VMWARE_MODULE_LIST="vmblock vmmon vmnet" |
7191 |
- use vmci && VMWARE_MODULE_LIST="${VMWARE_MODULE_LIST} vmci" |
7192 |
- use vsock && VMWARE_MODULE_LIST="${VMWARE_MODULE_LIST} vsock" |
7193 |
- |
7194 |
- VMWARE_MOD_DIR="${PN}-${PVR}" |
7195 |
- |
7196 |
- BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}" |
7197 |
- |
7198 |
- enewgroup "${VMWARE_GROUP}" |
7199 |
- filter-flags -mfpmath=sse |
7200 |
- |
7201 |
- for mod in ${VMWARE_MODULE_LIST}; do |
7202 |
- MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)" |
7203 |
- done |
7204 |
-} |
7205 |
- |
7206 |
-src_unpack() { |
7207 |
- cd "${S}" |
7208 |
- for mod in ${VMWARE_MODULE_LIST_ALL}; do |
7209 |
- tar -xf /opt/vmware/lib/vmware/modules/source/${mod}.tar |
7210 |
- done |
7211 |
-} |
7212 |
- |
7213 |
-src_prepare() { |
7214 |
- epatch "${FILESDIR}/${PV_MAJOR}-makefile-kernel-dir.patch" |
7215 |
- epatch "${FILESDIR}/${PV_MAJOR}-makefile-include.patch" |
7216 |
- epatch "${FILESDIR}/${PV_MAJOR}-netdevice.patch" |
7217 |
- use pax_kernel && epatch "${FILESDIR}/${PV_MAJOR}-hardened.patch" |
7218 |
- epatch "${FILESDIR}/${PV_MAJOR}-apic.patch" |
7219 |
- |
7220 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-00-dentry.patch" |
7221 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-01-inode.patch" |
7222 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-02-control.patch" |
7223 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-03-inline.patch" |
7224 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.11-00-readdir.patch" |
7225 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.11-01-filldir.patch" |
7226 |
- kernel_is ge 3 15 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.15-00-vsock.patch" |
7227 |
- kernel_is ge 3 18 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.18-00-version-redefined.patch" |
7228 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-00-compat-namei.patch" |
7229 |
- #kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-01-dentry.patch" |
7230 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-02-vmblock-path.patch" |
7231 |
- #kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-03-iovec.patch" |
7232 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-04-iovec.patch" |
7233 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-05-vmci_qpair.patch" |
7234 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-06-vsock.patch" |
7235 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-07-vsock.patch" |
7236 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.2-00-inode_op.patch" |
7237 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.2-01-vmci_vmalloc.patch" |
7238 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.2-02-vsock.patch" |
7239 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.2-03-vsock.patch" |
7240 |
- kernel_is ge 4 3 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.3-00-misc_deregister.patch" |
7241 |
- kernel_is ge 4 5 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.5-00-get_link.patch" |
7242 |
- |
7243 |
- # Allow user patches so they can support RC kernels and whatever else |
7244 |
- epatch_user |
7245 |
-} |
7246 |
- |
7247 |
-src_install() { |
7248 |
- linux-mod_src_install |
7249 |
- local udevrules="${T}/60-vmware.rules" |
7250 |
- cat > "${udevrules}" <<-EOF |
7251 |
- KERNEL=="vmci", GROUP="vmware", MODE="660" |
7252 |
- KERNEL=="vmw_vmci", GROUP="vmware", MODE="660" |
7253 |
- KERNEL=="vmmon", GROUP="vmware", MODE="660" |
7254 |
- KERNEL=="vsock", GROUP="vmware", MODE="660" |
7255 |
- EOF |
7256 |
- udev_dorules "${udevrules}" |
7257 |
-} |
7258 |
|
7259 |
diff --git a/app-emulation/vmware-modules/vmware-modules-308.1.0.ebuild b/app-emulation/vmware-modules/vmware-modules-308.1.0.ebuild |
7260 |
deleted file mode 100644 |
7261 |
index 8c5f3412c69..00000000000 |
7262 |
--- a/app-emulation/vmware-modules/vmware-modules-308.1.0.ebuild |
7263 |
+++ /dev/null |
7264 |
@@ -1,149 +0,0 @@ |
7265 |
-# Copyright 1999-2016 Gentoo Foundation |
7266 |
-# Distributed under the terms of the GNU General Public License v2 |
7267 |
- |
7268 |
-EAPI=5 |
7269 |
- |
7270 |
-inherit eutils flag-o-matic linux-info linux-mod user versionator udev |
7271 |
- |
7272 |
-PV_MAJOR=$(get_major_version) |
7273 |
-PV_MINOR=$(get_version_component_range 2-3) |
7274 |
- |
7275 |
-DESCRIPTION="VMware kernel modules" |
7276 |
-HOMEPAGE="http://www.vmware.com/" |
7277 |
- |
7278 |
-SRC_URI="" |
7279 |
- |
7280 |
-LICENSE="GPL-2" |
7281 |
-SLOT="0" |
7282 |
-KEYWORDS="~amd64" |
7283 |
-IUSE="pax_kernel +vmci +vsock" |
7284 |
-REQUIRED_USE="!vsock? ( !vmci )" |
7285 |
- |
7286 |
-RDEPEND="" |
7287 |
-DEPEND="${RDEPEND} |
7288 |
- || ( =app-emulation/vmware-player-12.${PV_MINOR}* |
7289 |
- =app-emulation/vmware-workstation-12.${PV_MINOR}* )" |
7290 |
- |
7291 |
-S=${WORKDIR} |
7292 |
- |
7293 |
-pkg_setup() { |
7294 |
- CONFIG_CHECK="~HIGH_RES_TIMERS" |
7295 |
- if kernel_is ge 2 6 37 && kernel_is lt 2 6 39; then |
7296 |
- CONFIG_CHECK="${CONFIG_CHECK} BKL" |
7297 |
- fi |
7298 |
- if use vmci ; then |
7299 |
- CONFIG_CHECK="${CONFIG_CHECK} !VMWARE_VMCI" |
7300 |
- else |
7301 |
- CONFIG_CHECK="${CONFIG_CHECK} VMWARE_VMCI" |
7302 |
- fi |
7303 |
- if use vsock ; then |
7304 |
- CONFIG_CHECK="${CONFIG_CHECK} !VMWARE_VMCI_VSOCKETS" |
7305 |
- else |
7306 |
- CONFIG_CHECK="${CONFIG_CHECK} VMWARE_VMCI_VSOCKETS" |
7307 |
- fi |
7308 |
- |
7309 |
- linux-info_pkg_setup |
7310 |
- |
7311 |
- linux-mod_pkg_setup |
7312 |
- |
7313 |
- VMWARE_GROUP=${VMWARE_GROUP:-vmware} |
7314 |
- |
7315 |
- VMWARE_MODULE_LIST_ALL="vmblock vmmon vmnet vmci vsock" |
7316 |
- VMWARE_MODULE_LIST="vmblock vmmon vmnet" |
7317 |
- use vmci && VMWARE_MODULE_LIST="${VMWARE_MODULE_LIST} vmci" |
7318 |
- use vsock && VMWARE_MODULE_LIST="${VMWARE_MODULE_LIST} vsock" |
7319 |
- |
7320 |
- VMWARE_MOD_DIR="${PN}-${PVR}" |
7321 |
- |
7322 |
- BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}" |
7323 |
- |
7324 |
- enewgroup "${VMWARE_GROUP}" |
7325 |
- |
7326 |
- filter-flags -mfpmath=sse -mavx -mpclmul -maes |
7327 |
- append-cflags -mno-sse # Found a problem similar to bug #492964 |
7328 |
- |
7329 |
- for mod in ${VMWARE_MODULE_LIST}; do |
7330 |
- MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)" |
7331 |
- done |
7332 |
-} |
7333 |
- |
7334 |
-src_unpack() { |
7335 |
- cd "${S}" |
7336 |
- for mod in ${VMWARE_MODULE_LIST_ALL}; do |
7337 |
- tar -xf /opt/vmware/lib/vmware/modules/source/${mod}.tar |
7338 |
- done |
7339 |
-} |
7340 |
- |
7341 |
-src_prepare() { |
7342 |
- epatch "${FILESDIR}/${PV_MAJOR}-makefile-kernel-dir.patch" |
7343 |
- epatch "${FILESDIR}/${PV_MAJOR}-makefile-include.patch" |
7344 |
- epatch "${FILESDIR}/${PV_MAJOR}-netdevice.patch" |
7345 |
- use pax_kernel && epatch "${FILESDIR}/${PV_MAJOR}-hardened.patch" |
7346 |
- epatch "${FILESDIR}/${PV_MAJOR}-apic.patch" |
7347 |
- |
7348 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-00-dentry.patch" |
7349 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-01-inode.patch" |
7350 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-02-control.patch" |
7351 |
- kernel_is ge 3 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.10-03-inline.patch" |
7352 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.11-00-readdir.patch" |
7353 |
- kernel_is ge 3 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.11-01-filldir.patch" |
7354 |
- kernel_is ge 3 15 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.15-00-vsock.patch" |
7355 |
- kernel_is ge 3 18 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.18-00-version-redefined.patch" |
7356 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-00-compat-namei.patch" |
7357 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-02-vmblock-path.patch" |
7358 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-04-iovec.patch" |
7359 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-05-vmci_qpair.patch" |
7360 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-06-vsock.patch" |
7361 |
- kernel_is ge 3 19 0 && epatch "${FILESDIR}/${PV_MAJOR}-3.19-07-vsock.patch" |
7362 |
- kernel_is ge 4 1 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.01-00-vsock.patch" |
7363 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.02-00-nd_set_link.patch" |
7364 |
- kernel_is ge 4 2 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.02-01-sk_alloc.patch" |
7365 |
- kernel_is ge 4 3 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.03-00-vmci-misc_deregister.patch" |
7366 |
- kernel_is ge 4 5 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.05-00-vmblock-follow_link.patch" |
7367 |
- |
7368 |
- # Allow user patches so they can support RC kernels and whatever else |
7369 |
- epatch_user |
7370 |
-} |
7371 |
- |
7372 |
-src_install() { |
7373 |
- linux-mod_src_install |
7374 |
- local udevrules="${T}/60-vmware.rules" |
7375 |
- cat > "${udevrules}" <<-EOF |
7376 |
- KERNEL=="vmci", GROUP="vmware", MODE="660" |
7377 |
- KERNEL=="vmw_vmci", GROUP="vmware", MODE="660" |
7378 |
- KERNEL=="vmmon", GROUP="vmware", MODE="660" |
7379 |
- KERNEL=="vsock", GROUP="vmware", MODE="660" |
7380 |
- EOF |
7381 |
- udev_dorules "${udevrules}" |
7382 |
- |
7383 |
- if ! use vmci ; then |
7384 |
- dodir /etc/modprobe.d/ |
7385 |
- |
7386 |
- cat > "${D}"/etc/modprobe.d/vmware.conf <<-EOF |
7387 |
- # Support for vmware vmci in kernel module |
7388 |
- alias vmci vmw_vmci |
7389 |
- EOF |
7390 |
- |
7391 |
- export installed_modprobe_conf=1 |
7392 |
- fi |
7393 |
- if ! use vsock ; then |
7394 |
- dodir /etc/modprobe.d/ |
7395 |
- cat >> "${D}"/etc/modprobe.d/vmware.conf <<-EOF |
7396 |
- # Support for vmware vsock in kernel module |
7397 |
- alias vsock vmw_vsock_vmci_transport |
7398 |
- EOF |
7399 |
- |
7400 |
- export installed_modprobe_conf=1 |
7401 |
- fi |
7402 |
-} |
7403 |
- |
7404 |
-pkg_postinst() { |
7405 |
- linux-mod_pkg_postinst |
7406 |
- if [ "${installed_modprobe_conf}"x == "x" ] ; then |
7407 |
- if [ -f "${ROOT}/etc/modprobe.d/vmware.conf" ] ; then |
7408 |
- ewarn "Please check the /etc/modprobe.d/vmware.conf file and" |
7409 |
- ewarn "possible conflicts when using vmci and/or vsock modules built" |
7410 |
- ewarn "out of kernel" |
7411 |
- fi |
7412 |
- fi |
7413 |
-} |
7414 |
|
7415 |
diff --git a/app-emulation/vmware-player/Manifest b/app-emulation/vmware-player/Manifest |
7416 |
deleted file mode 100644 |
7417 |
index 998ca15fcc3..00000000000 |
7418 |
--- a/app-emulation/vmware-player/Manifest |
7419 |
+++ /dev/null |
7420 |
@@ -1,3 +0,0 @@ |
7421 |
-DIST VMware-Player-12.1.0-3272444.x86_64.bundle.tar 138854400 SHA256 ae124888e3cef2cb8d687d0029b32ddf56dca8314d125cad66539c16501a1787 SHA512 0766ff543c4d61ff842ee8aa7b7ef7ed13c1a8adaadef2872cdd47b8029fb0b794588d9d49e4ad8cd5919793663e465439d2b7d8782f72f28461f8a008141151 WHIRLPOOL d972d76ba01295ece11cfee89a138ecea00b512de93f1a279a4ef8444333e672e094216ccaa59a4a8b78432d8b49998addb0b0a0b1abc566f8ccaa7724f7f580 |
7422 |
-DIST VMware-Player-7.1.2-2780323.x86_64.bundle.tar 211128320 SHA256 baa60996b3bed5ba89db1a0fd9a2cc263ea07ac1cf2d6f3aab68c728cc960efc SHA512 c4465a4cbf97b9fe3aa2d6a1c690047251a37929867e0b3cbddf6643b59ef8e618809973543150e6cd9a3bdba0c9c04fb55171616c2179a0ff80ee7302e07fc2 WHIRLPOOL f0bc539647a5f3838a486d62506881f752e426e2e7299b20f2828c285cb041c777f93f3d29627ff4187edfd92e43e37e70647828ce537adb67db0fe3e99fccb0 |
7423 |
-DIST vmware-systemd-gentoo-02.tgz 14064 SHA256 7ab23cb41bb8fbeca43bfd3baee35928731177620ae374ebb3b19b827d1a3210 SHA512 3a382bfd5f1eb2b218d8012588ea55c1f22786dba35a1fc0fdfdb4e40b05e0e735ed09c6961684f6442e863c3ed72024ce01f19113bbd9ca47c32e3f43c55f42 WHIRLPOOL dd7ac934584894f4a0ae86a9122080c49a4d09924011bc12dc1530ac6b5ee11fac6d55d6e5b306bb24d749a509236d3e39870b4d6b2ff5de37f6e54707ff8bb6 |
7424 |
|
7425 |
diff --git a/app-emulation/vmware-player/files/vmware-11.0.rc b/app-emulation/vmware-player/files/vmware-11.0.rc |
7426 |
deleted file mode 100644 |
7427 |
index 2ba649336fd..00000000000 |
7428 |
--- a/app-emulation/vmware-player/files/vmware-11.0.rc |
7429 |
+++ /dev/null |
7430 |
@@ -1,43 +0,0 @@ |
7431 |
-#!/sbin/openrc-run |
7432 |
-# Copyright 1999-2014 Gentoo Foundation |
7433 |
-# Distributed under the terms of the GNU General Public License v2 |
7434 |
- |
7435 |
-depend() { |
7436 |
- need localmount |
7437 |
- use net |
7438 |
-} |
7439 |
- |
7440 |
-start() { |
7441 |
- ebegin Starting VMware USB Arbitrator |
7442 |
- #start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator |
7443 |
- @@BINDIR@@/vmware-usbarbitrator |
7444 |
- eend $? |
7445 |
- ebegin Starting VMware services |
7446 |
- |
7447 |
- # quiet for vmci because it may not be there |
7448 |
- modprobe -vq vmci || modprobe -v vmw_vmci |
7449 |
- eend $? |
7450 |
- |
7451 |
- # vmci or vmw_vmci was loaded by the previous modprobe |
7452 |
- # no need to do it here |
7453 |
- modprobe -av vmmon vsock vmblock vmnet |
7454 |
- eend $? |
7455 |
- @@BINDIR@@/vmware-networks --start |
7456 |
- eend $? |
7457 |
-} |
7458 |
- |
7459 |
-stop() { |
7460 |
- ebegin Stopping VMware USB Arbitrator |
7461 |
- #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator |
7462 |
- killall --wait @@BINDIR@@/vmware-usbarbitrator |
7463 |
- eend $? |
7464 |
- @@BINDIR@@/vmware-networks --stop |
7465 |
- eend $? |
7466 |
- ebegin Stopping VMware services |
7467 |
- modprobe -rv vsock vmmon vmblock vmnet |
7468 |
- eend $? |
7469 |
- |
7470 |
- # quiet for vmci because it may not be there |
7471 |
- modprobe -rvq vmci || modprobe -rv vmw_vmci |
7472 |
- eend $? |
7473 |
-} |
7474 |
|
7475 |
diff --git a/app-emulation/vmware-player/files/vmware-11.2.rc b/app-emulation/vmware-player/files/vmware-11.2.rc |
7476 |
deleted file mode 100644 |
7477 |
index 2ba649336fd..00000000000 |
7478 |
--- a/app-emulation/vmware-player/files/vmware-11.2.rc |
7479 |
+++ /dev/null |
7480 |
@@ -1,43 +0,0 @@ |
7481 |
-#!/sbin/openrc-run |
7482 |
-# Copyright 1999-2014 Gentoo Foundation |
7483 |
-# Distributed under the terms of the GNU General Public License v2 |
7484 |
- |
7485 |
-depend() { |
7486 |
- need localmount |
7487 |
- use net |
7488 |
-} |
7489 |
- |
7490 |
-start() { |
7491 |
- ebegin Starting VMware USB Arbitrator |
7492 |
- #start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator |
7493 |
- @@BINDIR@@/vmware-usbarbitrator |
7494 |
- eend $? |
7495 |
- ebegin Starting VMware services |
7496 |
- |
7497 |
- # quiet for vmci because it may not be there |
7498 |
- modprobe -vq vmci || modprobe -v vmw_vmci |
7499 |
- eend $? |
7500 |
- |
7501 |
- # vmci or vmw_vmci was loaded by the previous modprobe |
7502 |
- # no need to do it here |
7503 |
- modprobe -av vmmon vsock vmblock vmnet |
7504 |
- eend $? |
7505 |
- @@BINDIR@@/vmware-networks --start |
7506 |
- eend $? |
7507 |
-} |
7508 |
- |
7509 |
-stop() { |
7510 |
- ebegin Stopping VMware USB Arbitrator |
7511 |
- #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator |
7512 |
- killall --wait @@BINDIR@@/vmware-usbarbitrator |
7513 |
- eend $? |
7514 |
- @@BINDIR@@/vmware-networks --stop |
7515 |
- eend $? |
7516 |
- ebegin Stopping VMware services |
7517 |
- modprobe -rv vsock vmmon vmblock vmnet |
7518 |
- eend $? |
7519 |
- |
7520 |
- # quiet for vmci because it may not be there |
7521 |
- modprobe -rvq vmci || modprobe -rv vmw_vmci |
7522 |
- eend $? |
7523 |
-} |
7524 |
|
7525 |
diff --git a/app-emulation/vmware-player/files/vmware-12.1.rc b/app-emulation/vmware-player/files/vmware-12.1.rc |
7526 |
deleted file mode 100644 |
7527 |
index 2ba649336fd..00000000000 |
7528 |
--- a/app-emulation/vmware-player/files/vmware-12.1.rc |
7529 |
+++ /dev/null |
7530 |
@@ -1,43 +0,0 @@ |
7531 |
-#!/sbin/openrc-run |
7532 |
-# Copyright 1999-2014 Gentoo Foundation |
7533 |
-# Distributed under the terms of the GNU General Public License v2 |
7534 |
- |
7535 |
-depend() { |
7536 |
- need localmount |
7537 |
- use net |
7538 |
-} |
7539 |
- |
7540 |
-start() { |
7541 |
- ebegin Starting VMware USB Arbitrator |
7542 |
- #start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator |
7543 |
- @@BINDIR@@/vmware-usbarbitrator |
7544 |
- eend $? |
7545 |
- ebegin Starting VMware services |
7546 |
- |
7547 |
- # quiet for vmci because it may not be there |
7548 |
- modprobe -vq vmci || modprobe -v vmw_vmci |
7549 |
- eend $? |
7550 |
- |
7551 |
- # vmci or vmw_vmci was loaded by the previous modprobe |
7552 |
- # no need to do it here |
7553 |
- modprobe -av vmmon vsock vmblock vmnet |
7554 |
- eend $? |
7555 |
- @@BINDIR@@/vmware-networks --start |
7556 |
- eend $? |
7557 |
-} |
7558 |
- |
7559 |
-stop() { |
7560 |
- ebegin Stopping VMware USB Arbitrator |
7561 |
- #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator |
7562 |
- killall --wait @@BINDIR@@/vmware-usbarbitrator |
7563 |
- eend $? |
7564 |
- @@BINDIR@@/vmware-networks --stop |
7565 |
- eend $? |
7566 |
- ebegin Stopping VMware services |
7567 |
- modprobe -rv vsock vmmon vmblock vmnet |
7568 |
- eend $? |
7569 |
- |
7570 |
- # quiet for vmci because it may not be there |
7571 |
- modprobe -rvq vmci || modprobe -rv vmw_vmci |
7572 |
- eend $? |
7573 |
-} |
7574 |
|
7575 |
diff --git a/app-emulation/vmware-player/files/vmware-network.service b/app-emulation/vmware-player/files/vmware-network.service |
7576 |
deleted file mode 100644 |
7577 |
index abc6648f315..00000000000 |
7578 |
--- a/app-emulation/vmware-player/files/vmware-network.service |
7579 |
+++ /dev/null |
7580 |
@@ -1,17 +0,0 @@ |
7581 |
-[Unit] |
7582 |
-Description=VMware Network |
7583 |
-Requires=local-fs.target |
7584 |
-Wants=network.target vmware-usbarbitrator.service |
7585 |
-After=local-fs.target network.target vmware-usbarbitrator.service |
7586 |
- |
7587 |
-[Service] |
7588 |
-Type=simple |
7589 |
-ExecStartPre=/sbin/modprobe -av vmci vmmon vsock vmblock vmnet |
7590 |
-ExecStart=/opt/vmware/bin/vmware-networks --start |
7591 |
-ExecStop=/opt/vmware/bin/vmware-networks --stop |
7592 |
-ExecStopPost=/sbin/modprobe -rv vmmon vsock vmblock vmnet vmci |
7593 |
-TimeoutSec=0 |
7594 |
-RemainAfterExit=yes |
7595 |
- |
7596 |
-[Install] |
7597 |
-WantedBy=multi-user.target |
7598 |
|
7599 |
diff --git a/app-emulation/vmware-player/files/vmware-usbarbitrator.service b/app-emulation/vmware-player/files/vmware-usbarbitrator.service |
7600 |
deleted file mode 100644 |
7601 |
index 16a0fb81bfc..00000000000 |
7602 |
--- a/app-emulation/vmware-player/files/vmware-usbarbitrator.service |
7603 |
+++ /dev/null |
7604 |
@@ -1,11 +0,0 @@ |
7605 |
-[Unit] |
7606 |
-Description=VMware USB Arbitrator |
7607 |
-Requires=local-fs.target |
7608 |
-Before=vmware-network.service |
7609 |
- |
7610 |
-[Service] |
7611 |
-Type=forking |
7612 |
-ExecStart=/opt/vmware/bin/vmware-usbarbitrator |
7613 |
- |
7614 |
-[Install] |
7615 |
-WantedBy=multi-user.target |
7616 |
|
7617 |
diff --git a/app-emulation/vmware-player/metadata.xml b/app-emulation/vmware-player/metadata.xml |
7618 |
deleted file mode 100644 |
7619 |
index 0bc0f1d5c46..00000000000 |
7620 |
--- a/app-emulation/vmware-player/metadata.xml |
7621 |
+++ /dev/null |
7622 |
@@ -1,16 +0,0 @@ |
7623 |
-<?xml version='1.0' encoding='UTF-8'?> |
7624 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
7625 |
-<pkgmetadata> |
7626 |
- <maintainer type="project"> |
7627 |
- <email>vmware@g.o</email> |
7628 |
- <name>Gentoo VMware Project</name> |
7629 |
- </maintainer> |
7630 |
- <use> |
7631 |
- <flag name="bundled-libs">Use precompiled bundled libraries instead of the system installation</flag> |
7632 |
- <flag name="ovftool">Install OVF tool for importing and exporting appliance files</flag> |
7633 |
- <flag name="vmware-tools">Install VMware Tools images</flag> |
7634 |
- </use> |
7635 |
- <upstream> |
7636 |
- <remote-id type="github">akhuettel/systemd-vmware</remote-id> |
7637 |
- </upstream> |
7638 |
-</pkgmetadata> |
7639 |
|
7640 |
diff --git a/app-emulation/vmware-player/vmware-player-12.1.0.3272444-r2.ebuild b/app-emulation/vmware-player/vmware-player-12.1.0.3272444-r2.ebuild |
7641 |
deleted file mode 100644 |
7642 |
index 85ad0cf2794..00000000000 |
7643 |
--- a/app-emulation/vmware-player/vmware-player-12.1.0.3272444-r2.ebuild |
7644 |
+++ /dev/null |
7645 |
@@ -1,417 +0,0 @@ |
7646 |
-# Copyright 1999-2016 Gentoo Foundation |
7647 |
-# Distributed under the terms of the GNU General Public License v2 |
7648 |
- |
7649 |
-EAPI=5 |
7650 |
- |
7651 |
-inherit eutils versionator readme.gentoo-r1 fdo-mime gnome2-utils pax-utils systemd vmware-bundle |
7652 |
- |
7653 |
-MY_PN="VMware-Player" |
7654 |
-MY_PV=$(get_version_component_range 1-3) |
7655 |
-PV_MODULES="308.$(get_version_component_range 2-3)" |
7656 |
-PV_BUILD=$(get_version_component_range 4) |
7657 |
-MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}" |
7658 |
- |
7659 |
-SYSTEMD_UNITS_TAG="gentoo-02" |
7660 |
- |
7661 |
-DESCRIPTION="Emulate a complete PC without the performance overhead of most emulators" |
7662 |
-HOMEPAGE="http://www.vmware.com/products/player/" |
7663 |
-BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/player/${MY_PV}/${PV_BUILD}/linux/core/" |
7664 |
-SRC_URI=" |
7665 |
- ${BASE_URI}${MY_P}.x86_64.bundle.tar |
7666 |
- https://github.com/akhuettel/systemd-vmware/archive/${SYSTEMD_UNITS_TAG}.tar.gz -> vmware-systemd-${SYSTEMD_UNITS_TAG}.tgz |
7667 |
-" |
7668 |
- |
7669 |
-LICENSE="vmware GPL-2 GPL-3" |
7670 |
-SLOT="0" |
7671 |
-KEYWORDS="-* ~amd64" |
7672 |
-IUSE="bundled-libs cups doc ovftool +vmware-tools" |
7673 |
-RESTRICT="mirror strip preserve-libs" |
7674 |
- |
7675 |
-BUNDLED_LIBS_DIR=/opt/vmware/lib/vmware/lib |
7676 |
- |
7677 |
-BUNDLED_LIBS=" |
7678 |
- libXau.so.6 |
7679 |
- libXcomposite.so.1 |
7680 |
- libXcursor.so.1 |
7681 |
- libXdamage.so.1 |
7682 |
- libXdmcp.so.6 |
7683 |
- libXfixes.so.3 |
7684 |
- libXft.so.2 |
7685 |
- libXinerama.so.1 |
7686 |
- libXrandr.so.2 |
7687 |
- libXrender.so.1 |
7688 |
- libaio.so.1 |
7689 |
- libatk-1.0.so.0 |
7690 |
- libatkmm-1.6.so.1 |
7691 |
- libatspi.so.0 |
7692 |
- libcairo.so.2 |
7693 |
- libcairomm-1.0.so.1 |
7694 |
- libcrypto.so.1.0.1 |
7695 |
- libcurl.so.4 |
7696 |
- libdbus-1.so.3 |
7697 |
- libfontconfig.so.1 |
7698 |
- libfreetype.so.6 |
7699 |
- libfuse.so.2 |
7700 |
- libgailutil.so.18 |
7701 |
- libgcc_s.so.1 |
7702 |
- libgcrypt.so.11 |
7703 |
- libgdk-x11-2.0.so.0 |
7704 |
- libgdk_pixbuf-2.0.so.0 |
7705 |
- libgdkmm-2.4.so.1 |
7706 |
- libgio-2.0.so.0 |
7707 |
- libgiomm-2.4.so.1 |
7708 |
- libglib-2.0.so.0 |
7709 |
- libglibmm-2.4.so.1 |
7710 |
- libglibmm_generate_extra_defs-2.4.so.1 |
7711 |
- libgmodule-2.0.so.0 |
7712 |
- libgobject-2.0.so.0 |
7713 |
- libgpg-error.so.0 |
7714 |
- libgthread-2.0.so.0 |
7715 |
- libgtk-x11-2.0.so.0 |
7716 |
- libgtkmm-2.4.so.1 |
7717 |
- libpango-1.0.so.0 |
7718 |
- libpangocairo-1.0.so.0 |
7719 |
- libpangoft2-1.0.so.0 |
7720 |
- libpangomm-1.4.so.1 |
7721 |
- libpangox-1.0.so.0 |
7722 |
- libpangoxft-1.0.so.0 |
7723 |
- libpcsclite.so.1 |
7724 |
- libpixman-1.so.0 |
7725 |
- libpng12.so.0 |
7726 |
- librsvg-2.so.2 |
7727 |
- libsigc-2.0.so.0 |
7728 |
- libssl.so.1.0.1 |
7729 |
- libstdc++.so.6 |
7730 |
- libxml2.so.2 |
7731 |
- libz.so.1 |
7732 |
-" |
7733 |
- |
7734 |
-BUNDLED_LIB_DEPENDS=" |
7735 |
- app-accessibility/at-spi2-core |
7736 |
- dev-cpp/atkmm |
7737 |
- dev-cpp/cairomm |
7738 |
- dev-cpp/glibmm:2 |
7739 |
- dev-cpp/gtkmm:2.4 |
7740 |
- dev-cpp/pangomm |
7741 |
- dev-libs/atk |
7742 |
- dev-libs/glib:2 |
7743 |
- dev-libs/libaio |
7744 |
- dev-libs/libgcrypt:11/11 |
7745 |
- dev-libs/libgpg-error |
7746 |
- dev-libs/libsigc++:2 |
7747 |
- dev-libs/libxml2 |
7748 |
- dev-libs/openssl:0 |
7749 |
- gnome-base/librsvg:2 |
7750 |
- media-libs/fontconfig |
7751 |
- media-libs/freetype |
7752 |
- media-libs/libpng:1.2 |
7753 |
- net-misc/curl |
7754 |
- sys-apps/dbus |
7755 |
- sys-apps/pcsc-lite |
7756 |
- sys-fs/fuse |
7757 |
- sys-libs/zlib |
7758 |
- x11-libs/cairo |
7759 |
- x11-libs/gdk-pixbuf:2 |
7760 |
- x11-libs/gtk+:2 |
7761 |
- x11-libs/libXau |
7762 |
- x11-libs/libXcomposite |
7763 |
- x11-libs/libXcursor |
7764 |
- x11-libs/libXdamage |
7765 |
- x11-libs/libXdmcp |
7766 |
- x11-libs/libXfixes |
7767 |
- x11-libs/libXft |
7768 |
- x11-libs/libXinerama |
7769 |
- x11-libs/libXrandr |
7770 |
- x11-libs/libXrender |
7771 |
- x11-libs/pango |
7772 |
- x11-libs/pangox-compat |
7773 |
- x11-libs/pixman |
7774 |
-" |
7775 |
- |
7776 |
-# vmware should not use virtual/libc as this is a |
7777 |
-# precompiled binary package thats linked to glibc. |
7778 |
-RDEPEND=" |
7779 |
- app-arch/bzip2 |
7780 |
- dev-libs/dbus-glib |
7781 |
- dev-libs/expat |
7782 |
- dev-libs/gmp:0 |
7783 |
- dev-libs/icu |
7784 |
- dev-libs/json-c |
7785 |
- dev-libs/libcroco |
7786 |
- dev-libs/libffi |
7787 |
- dev-libs/libgcrypt:0/20 |
7788 |
- dev-libs/libtasn1:0/6 |
7789 |
- dev-libs/nettle:0/6 |
7790 |
- gnome-base/gconf |
7791 |
- gnome-base/libgnome-keyring |
7792 |
- media-gfx/graphite2 |
7793 |
- media-libs/alsa-lib |
7794 |
- media-libs/harfbuzz:0/0.9.18 |
7795 |
- media-libs/libart_lgpl |
7796 |
- media-libs/libpng:0 |
7797 |
- media-libs/libvorbis |
7798 |
- media-libs/mesa |
7799 |
- net-dns/libidn |
7800 |
- net-libs/gnutls |
7801 |
- net-print/cups |
7802 |
- sys-apps/tcp-wrappers |
7803 |
- sys-apps/util-linux |
7804 |
- x11-libs/libICE |
7805 |
- x11-libs/libSM |
7806 |
- x11-libs/libX11 |
7807 |
- x11-libs/libXext |
7808 |
- x11-libs/libXi |
7809 |
- x11-libs/libXtst |
7810 |
- x11-libs/libXxf86vm |
7811 |
- x11-libs/libdrm |
7812 |
- x11-libs/libxcb |
7813 |
- x11-libs/libxshmfence |
7814 |
- x11-libs/startup-notification |
7815 |
- x11-libs/xcb-util |
7816 |
- x11-themes/hicolor-icon-theme |
7817 |
- bundled-libs? ( |
7818 |
- media-libs/jbigkit:0/2.1 |
7819 |
- media-libs/tiff:3 |
7820 |
- virtual/jpeg:62 |
7821 |
- ) |
7822 |
- !bundled-libs? ( ${BUNDLED_LIB_DEPENDS} ) |
7823 |
- !app-emulation/vmware-workstation |
7824 |
-" |
7825 |
-PDEPEND="~app-emulation/vmware-modules-${PV_MODULES} |
7826 |
- vmware-tools? ( app-emulation/vmware-tools )" |
7827 |
-DEPEND=">=dev-util/patchelf-0.9" |
7828 |
- |
7829 |
-S=${WORKDIR} |
7830 |
-VM_INSTALL_DIR="/opt/vmware" |
7831 |
- |
7832 |
-QA_PREBUILT="/opt/*" |
7833 |
- |
7834 |
-QA_WX_LOAD="opt/vmware/lib/vmware/tools-upgraders/vmware-tools-upgrader-32 opt/vmware/lib/vmware/bin/vmware-vmx-stats opt/vmware/lib/vmware/bin/vmware-vmx-debug opt/vmware/lib/vmware/bin/vmware-vmx" |
7835 |
- |
7836 |
-src_unpack() { |
7837 |
- default |
7838 |
- local bundle=${MY_P}.x86_64.bundle |
7839 |
- |
7840 |
- local component; for component in \ |
7841 |
- vmware-player \ |
7842 |
- vmware-player-app \ |
7843 |
- vmware-player-setup \ |
7844 |
- vmware-vmx \ |
7845 |
- vmware-network-editor \ |
7846 |
- vmware-usbarbitrator |
7847 |
- do |
7848 |
- vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}" |
7849 |
- done |
7850 |
- |
7851 |
- if use ovftool; then |
7852 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool |
7853 |
- fi |
7854 |
-} |
7855 |
- |
7856 |
-clean_bundled_libs() { |
7857 |
- einfo "Removing bundled libraries" |
7858 |
- for libname in ${BUNDLED_LIBS} ; do |
7859 |
- rm -rv "${S}"/lib/lib/${libname} || die "Failed removing bundled ${libname}" |
7860 |
- done |
7861 |
- |
7862 |
- rm -rv "${S}"/lib/libconf || die "Failed removing bundled gtk conf libs" |
7863 |
- |
7864 |
- # Among the bundled libs there are libcrypto.so.1.0.1 and libssl.so.1.0.1 |
7865 |
- # (needed by libcds.so) which seem to be compiled from openssl-1.0.1h. |
7866 |
- # Upstream real sonames are *so.1.0.0 so it's necessary to fix DT_NEEDED link |
7867 |
- # in libcds.so to be able to use system libs. |
7868 |
- pushd >/dev/null . |
7869 |
- cd "${S}"/lib/lib/libcds.so |
7870 |
- einfo "Patching libcds.so" |
7871 |
- patchelf --replace-needed libssl.so.1.0.{1,0} \ |
7872 |
- --replace-needed libcrypto.so.1.0.{1,0} \ |
7873 |
- libcds.so |
7874 |
- popd >/dev/null |
7875 |
- |
7876 |
- # vmware-player seems to use a custom version of libgksu2.so, for this reason |
7877 |
- # we leave the bundled version. The libvmware-gksu.so library declares simply DT_NEEDED |
7878 |
- # libgksu2.so.0 but it uses at runtime the bundled version, patch the lib to avoid portage |
7879 |
- # preserve-libs mechanism to be triggered when a system lib is available (but not required) |
7880 |
- pushd >/dev/null . |
7881 |
- cd "${S}"/lib/lib/libvmware-gksu.so |
7882 |
- einfo "Patching libvmware-gksu.so" |
7883 |
- patchelf --set-rpath "\$ORIGIN/../libgksu2.so.0" \ |
7884 |
- libvmware-gksu.so |
7885 |
- popd >/dev/null |
7886 |
-} |
7887 |
- |
7888 |
-src_prepare() { |
7889 |
- rm -f bin/vmware-modconfig |
7890 |
- rm -rf lib/modules/binary |
7891 |
- # Bug 459566 |
7892 |
- mv lib/libvmware-netcfg.so lib/lib/ |
7893 |
- |
7894 |
- if ! use bundled-libs ; then |
7895 |
- clean_bundled_libs |
7896 |
- fi |
7897 |
- |
7898 |
- DOC_CONTENTS=" |
7899 |
-/etc/env.d is updated during ${PN} installation. Please run:\n |
7900 |
-env-update && source /etc/profile\n |
7901 |
-Before you can use ${PN}, you must configure a default network setup. |
7902 |
-You can do this by running 'emerge --config ${PN}'.\n |
7903 |
-To be able to run ${PN} your user must be in the vmware group.\n |
7904 |
-You MUST set USE=bundled-libs if you are running gcc-5, otherwise vmware will not start. |
7905 |
-" |
7906 |
-} |
7907 |
- |
7908 |
-src_install() { |
7909 |
- local major_minor=$(get_version_component_range 1-2 "${PV}") |
7910 |
- |
7911 |
- # revdep-rebuild entry |
7912 |
- insinto /etc/revdep-rebuild |
7913 |
- echo "SEARCH_DIRS_MASK=\"${VM_INSTALL_DIR}\"" >> ${T}/10${PN} |
7914 |
- doins "${T}"/10${PN} |
7915 |
- |
7916 |
- # install the binaries |
7917 |
- into "${VM_INSTALL_DIR}" |
7918 |
- dobin bin/* |
7919 |
- |
7920 |
- # install the libraries |
7921 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
7922 |
- doins -r lib/* |
7923 |
- |
7924 |
- # workaround for hardcoded search paths needed during shared objects loading |
7925 |
- if ! use bundled-libs ; then |
7926 |
- dosym /usr/$(get_libdir)/libglib-2.0.so.0 \ |
7927 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libglib-2.0.so.0/libglib-2.0.so.0 |
7928 |
- # Bug 432918 |
7929 |
- dosym /usr/$(get_libdir)/libcrypto.so.1.0.0 \ |
7930 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.1.0.1/libcrypto.so.1.0.1 |
7931 |
- dosym /usr/$(get_libdir)/libssl.so.1.0.0 \ |
7932 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.1.0.1/libssl.so.1.0.1 |
7933 |
- fi |
7934 |
- |
7935 |
- # install the ancillaries |
7936 |
- insinto /usr |
7937 |
- doins -r share |
7938 |
- |
7939 |
- if use cups; then |
7940 |
- exeinto $(cups-config --serverbin)/filter |
7941 |
- doexe extras/thnucups |
7942 |
- |
7943 |
- insinto /etc/cups |
7944 |
- doins -r etc/cups/* |
7945 |
- fi |
7946 |
- |
7947 |
- if use doc; then |
7948 |
- dodoc doc/* |
7949 |
- fi |
7950 |
- |
7951 |
- exeinto "${VM_INSTALL_DIR}"/lib/vmware/setup |
7952 |
- doexe vmware-config |
7953 |
- |
7954 |
- # install ovftool |
7955 |
- if use ovftool; then |
7956 |
- cd "${S}" |
7957 |
- |
7958 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool |
7959 |
- doins -r vmware-ovftool/* |
7960 |
- |
7961 |
- chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin} |
7962 |
- dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool |
7963 |
- fi |
7964 |
- |
7965 |
- # create symlinks for the various tools |
7966 |
- local tool ; for tool in thnuclnt vmplayer{,-daemon} \ |
7967 |
- vmware-{acetool,modconfig{,-console},gksu,fuseUI} ; do |
7968 |
- dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" |
7969 |
- done |
7970 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer |
7971 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu |
7972 |
- |
7973 |
- # fix permissions |
7974 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks} |
7975 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/wrapper-gtk24.sh |
7976 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/libgksu2.so.0/gksu-run-helper |
7977 |
- fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats} |
7978 |
- |
7979 |
- pax-mark -m "${D}${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx |
7980 |
- |
7981 |
- # create the environment |
7982 |
- local envd="${T}/90vmware" |
7983 |
- cat > "${envd}" <<-EOF |
7984 |
- PATH='${VM_INSTALL_DIR}/bin' |
7985 |
- ROOTPATH='${VM_INSTALL_DIR}/bin' |
7986 |
- EOF |
7987 |
- |
7988 |
- use bundled-libs && echo 'VMWARE_USE_SHIPPED_LIBS=1' >> "${envd}" |
7989 |
- |
7990 |
- doenvd "${envd}" |
7991 |
- |
7992 |
- # create the configuration |
7993 |
- dodir /etc/vmware |
7994 |
- |
7995 |
- cat > "${D}"/etc/vmware/bootstrap <<-EOF |
7996 |
- BINDIR='${VM_INSTALL_DIR}/bin' |
7997 |
- LIBDIR='${VM_INSTALL_DIR}/lib' |
7998 |
- EOF |
7999 |
- |
8000 |
- cat > "${D}"/etc/vmware/config <<-EOF |
8001 |
- bindir = "${VM_INSTALL_DIR}/bin" |
8002 |
- libdir = "${VM_INSTALL_DIR}/lib/vmware" |
8003 |
- initscriptdir = "/etc/init.d" |
8004 |
- authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd" |
8005 |
- gksu.rootMethod = "su" |
8006 |
- VMCI_CONFED = "yes" |
8007 |
- VMBLOCK_CONFED = "yes" |
8008 |
- VSOCK_CONFED = "yes" |
8009 |
- NETWORKING = "yes" |
8010 |
- player.product.version = "${MY_PV}" |
8011 |
- product.buildNumber = "${PV_BUILD}" |
8012 |
- EOF |
8013 |
- |
8014 |
- # install the init.d script |
8015 |
- local initscript="${T}/vmware.rc" |
8016 |
- sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
8017 |
- "${FILESDIR}/vmware-${major_minor}.rc" > "${initscript}" || die |
8018 |
- newinitd "${initscript}" vmware |
8019 |
- |
8020 |
- # fill in variable placeholders |
8021 |
- if use bundled-libs ; then |
8022 |
- sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ |
8023 |
- -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} || die |
8024 |
- fi |
8025 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ |
8026 |
- -e "/^Encoding/d" \ |
8027 |
- -i "${D}/usr/share/applications/vmware-player.desktop" || die |
8028 |
- |
8029 |
- # install systemd unit files |
8030 |
- systemd_dounit "${WORKDIR}/systemd-vmware-${SYSTEMD_UNITS_TAG}/"*.{service,target} |
8031 |
- |
8032 |
- readme.gentoo_create_doc |
8033 |
-} |
8034 |
- |
8035 |
-pkg_config() { |
8036 |
- "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new |
8037 |
-} |
8038 |
- |
8039 |
-pkg_preinst() { |
8040 |
- gnome2_icon_savelist |
8041 |
-} |
8042 |
- |
8043 |
-pkg_postinst() { |
8044 |
- fdo-mime_desktop_database_update |
8045 |
- gnome2_icon_cache_update |
8046 |
- readme.gentoo_print_elog |
8047 |
- |
8048 |
- ewarn "${P} is using an old version of libgcrypt library which" |
8049 |
- ewarn "is going to be soon removed from portage due to security reasons" |
8050 |
- ewarn "(see https://bugs.gentoo.org/show_bug.cgi?id=541564)." |
8051 |
- ewarn "Until vmware is fixed upstream you're exposed to security issues!" |
8052 |
-} |
8053 |
- |
8054 |
-pkg_prerm() { |
8055 |
- einfo "Stopping ${PN} for safe unmerge" |
8056 |
- /etc/init.d/vmware stop |
8057 |
-} |
8058 |
- |
8059 |
-pkg_postrm() { |
8060 |
- fdo-mime_desktop_database_update |
8061 |
- gnome2_icon_cache_update |
8062 |
-} |
8063 |
|
8064 |
diff --git a/app-emulation/vmware-player/vmware-player-7.1.2.2780323-r1.ebuild b/app-emulation/vmware-player/vmware-player-7.1.2.2780323-r1.ebuild |
8065 |
deleted file mode 100644 |
8066 |
index 225ca12f528..00000000000 |
8067 |
--- a/app-emulation/vmware-player/vmware-player-7.1.2.2780323-r1.ebuild |
8068 |
+++ /dev/null |
8069 |
@@ -1,258 +0,0 @@ |
8070 |
-# Copyright 1999-2017 Gentoo Foundation |
8071 |
-# Distributed under the terms of the GNU General Public License v2 |
8072 |
- |
8073 |
-EAPI=5 |
8074 |
- |
8075 |
-inherit eutils versionator readme.gentoo fdo-mime gnome2-utils pax-utils systemd vmware-bundle |
8076 |
- |
8077 |
-MY_PN="VMware-Player" |
8078 |
-MY_PV=$(get_version_component_range 1-3) |
8079 |
-PV_MINOR=$(get_version_component_range 3) |
8080 |
-PV_BUILD=$(get_version_component_range 4) |
8081 |
-MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}" |
8082 |
- |
8083 |
-DESCRIPTION="Emulate a complete PC without the performance overhead of most emulators" |
8084 |
-HOMEPAGE="http://www.vmware.com/products/player/" |
8085 |
-BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/player/${MY_PV}/${PV_BUILD}/linux/core/" |
8086 |
-SRC_URI=" |
8087 |
- amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar ) |
8088 |
- " |
8089 |
- |
8090 |
-LICENSE="vmware GPL-2" |
8091 |
-SLOT="0" |
8092 |
-KEYWORDS="-* ~amd64" |
8093 |
-IUSE="cups doc ovftool +vmware-tools" |
8094 |
-RESTRICT="strip" |
8095 |
- |
8096 |
-# vmware-workstation should not use virtual/libc as this is a |
8097 |
-# precompiled binary package thats linked to glibc. |
8098 |
-RDEPEND="dev-cpp/cairomm |
8099 |
- dev-cpp/glibmm:2 |
8100 |
- dev-cpp/gtkmm:2.4 |
8101 |
- dev-cpp/libgnomecanvasmm:2.6 |
8102 |
- dev-cpp/pangomm:1.4 |
8103 |
- dev-libs/atk |
8104 |
- dev-libs/glib:2 |
8105 |
- dev-libs/libaio |
8106 |
- dev-libs/libsigc++:2 |
8107 |
- dev-libs/libxml2 |
8108 |
- =dev-libs/openssl-0.9.8* |
8109 |
- dev-libs/xmlrpc-c |
8110 |
- gnome-base/libgnomecanvas |
8111 |
- gnome-base/libgtop:2 |
8112 |
- gnome-base/librsvg:2 |
8113 |
- gnome-base/orbit |
8114 |
- media-libs/fontconfig |
8115 |
- media-libs/freetype |
8116 |
- media-libs/libart_lgpl |
8117 |
- =media-libs/libpng-1.2* |
8118 |
- net-misc/curl |
8119 |
- cups? ( net-print/cups ) |
8120 |
- sys-devel/gcc |
8121 |
- sys-fs/fuse |
8122 |
- sys-libs/glibc |
8123 |
- sys-libs/zlib |
8124 |
- x11-libs/cairo |
8125 |
- x11-libs/gtk+:2 |
8126 |
- x11-libs/libgksu |
8127 |
- x11-libs/libICE |
8128 |
- x11-libs/libSM |
8129 |
- x11-libs/libX11 |
8130 |
- x11-libs/libXau |
8131 |
- x11-libs/libxcb |
8132 |
- x11-libs/libXcomposite |
8133 |
- x11-libs/libXcursor |
8134 |
- x11-libs/libXdamage |
8135 |
- x11-libs/libXdmcp |
8136 |
- x11-libs/libXext |
8137 |
- x11-libs/libXfixes |
8138 |
- x11-libs/libXft |
8139 |
- x11-libs/libXi |
8140 |
- x11-libs/libXinerama |
8141 |
- x11-libs/libXrandr |
8142 |
- x11-libs/libXrender |
8143 |
- x11-libs/libXtst |
8144 |
- x11-libs/pango |
8145 |
- x11-libs/startup-notification |
8146 |
- !app-emulation/vmware-workstation" |
8147 |
-PDEPEND="~app-emulation/vmware-modules-304.${PV_MINOR} |
8148 |
- vmware-tools? ( app-emulation/vmware-tools )" |
8149 |
- |
8150 |
-S=${WORKDIR} |
8151 |
-VM_INSTALL_DIR="/opt/vmware" |
8152 |
- |
8153 |
-QA_PREBUILT="/opt/*" |
8154 |
- |
8155 |
-QA_WX_LOAD="opt/vmware/lib/vmware/bin/vmware-vmx-stats opt/vmware/lib/vmware/bin/vmware-vmx-debug opt/vmware/lib/vmware/bin/vmware-vmx" |
8156 |
- |
8157 |
-src_unpack() { |
8158 |
- default |
8159 |
- local bundle=${A%.tar} |
8160 |
- |
8161 |
- local component ; for component in \ |
8162 |
- vmware-player \ |
8163 |
- vmware-player-app \ |
8164 |
- vmware-vmx \ |
8165 |
- vmware-usbarbitrator \ |
8166 |
- vmware-network-editor \ |
8167 |
- vmware-player-setup |
8168 |
- do |
8169 |
- vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}" |
8170 |
- done |
8171 |
- |
8172 |
- use ovftool && \ |
8173 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool |
8174 |
-} |
8175 |
- |
8176 |
-src_prepare() { |
8177 |
- rm -f bin/vmware-modconfig |
8178 |
- rm -rf lib/modules/binary |
8179 |
- # Bug 459566 |
8180 |
- mv lib/libvmware-netcfg.so lib/lib/ |
8181 |
- |
8182 |
- DOC_CONTENTS=" |
8183 |
-/etc/env.d is updated during ${PN} installation. Please run:\n |
8184 |
-env-update && source /etc/profile\n |
8185 |
-Before you can use ${PN}, you must configure a default network setup. |
8186 |
-You can do this by running 'emerge --config ${PN}'.\n |
8187 |
-To be able to run ${PN} your user must be in the vmware group. |
8188 |
-" |
8189 |
-} |
8190 |
- |
8191 |
-src_install() { |
8192 |
- # install the binaries |
8193 |
- into "${VM_INSTALL_DIR}" |
8194 |
- dobin bin/* || die "failed to install bin" |
8195 |
- |
8196 |
- # install the libraries |
8197 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
8198 |
- doins -r lib/* |
8199 |
- |
8200 |
- # Bug 432918 |
8201 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8 \ |
8202 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libcrypto.so.0.9.8 |
8203 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8 \ |
8204 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libssl.so.0.9.8 |
8205 |
- |
8206 |
- # https://github.com/gentoo/vmware/issues/7 |
8207 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/ /usr/$(get_libdir)/vmware |
8208 |
- |
8209 |
- # install the ancillaries |
8210 |
- insinto /usr |
8211 |
- doins -r share |
8212 |
- |
8213 |
- if use cups; then |
8214 |
- exeinto $(cups-config --serverbin)/filter |
8215 |
- doexe extras/thnucups |
8216 |
- |
8217 |
- insinto /etc/cups |
8218 |
- doins -r etc/cups/* |
8219 |
- fi |
8220 |
- |
8221 |
- # install documentation |
8222 |
- if use doc; then |
8223 |
- dodoc doc/* |
8224 |
- fi |
8225 |
- |
8226 |
- exeinto "${VM_INSTALL_DIR}"/lib/vmware/setup |
8227 |
- doexe vmware-config |
8228 |
- |
8229 |
- # install ovftool |
8230 |
- if use ovftool; then |
8231 |
- cd "${S}" |
8232 |
- |
8233 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool |
8234 |
- doins -r vmware-ovftool/* |
8235 |
- |
8236 |
- chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin} |
8237 |
- dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool |
8238 |
- fi |
8239 |
- |
8240 |
- # create symlinks for the various tools |
8241 |
- local tool ; for tool in thnuclnt vmplayer{,-daemon} \ |
8242 |
- vmware-{acetool,unity-helper,modconfig{,-console},gksu,fuseUI} ; do |
8243 |
- dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" |
8244 |
- done |
8245 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer |
8246 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu |
8247 |
- |
8248 |
- # fix permissions |
8249 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks} |
8250 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper} |
8251 |
- fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats} |
8252 |
- |
8253 |
- pax-mark -m "${D}${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx |
8254 |
- |
8255 |
- # create the environment |
8256 |
- local envd="${T}/90vmware" |
8257 |
- cat > "${envd}" <<-EOF |
8258 |
- PATH='${VM_INSTALL_DIR}/bin' |
8259 |
- ROOTPATH='${VM_INSTALL_DIR}/bin' |
8260 |
- EOF |
8261 |
- doenvd "${envd}" || die |
8262 |
- |
8263 |
- # create the configuration |
8264 |
- dodir /etc/vmware || die |
8265 |
- |
8266 |
- cat > "${D}"/etc/vmware/bootstrap <<-EOF |
8267 |
- BINDIR='${VM_INSTALL_DIR}/bin' |
8268 |
- LIBDIR='${VM_INSTALL_DIR}/lib' |
8269 |
- EOF |
8270 |
- |
8271 |
- cat > "${D}"/etc/vmware/config <<-EOF |
8272 |
- bindir = "${VM_INSTALL_DIR}/bin" |
8273 |
- libdir = "${VM_INSTALL_DIR}/lib/vmware" |
8274 |
- initscriptdir = "/etc/init.d" |
8275 |
- authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd" |
8276 |
- gksu.rootMethod = "su" |
8277 |
- VMCI_CONFED = "yes" |
8278 |
- VMBLOCK_CONFED = "yes" |
8279 |
- VSOCK_CONFED = "yes" |
8280 |
- NETWORKING = "yes" |
8281 |
- player.product.version = "${MY_PV}" |
8282 |
- product.buildNumber = "${PV_BUILD}" |
8283 |
- EOF |
8284 |
- |
8285 |
- # install the init.d script |
8286 |
- local initscript="${T}/vmware.rc" |
8287 |
- |
8288 |
- sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
8289 |
- "${FILESDIR}/vmware-11.${PV_MINOR}.rc" > "${initscript}" || die |
8290 |
- newinitd "${initscript}" vmware || die |
8291 |
- |
8292 |
- systemd_dounit "${FILESDIR}/vmware-usbarbitrator.service" |
8293 |
- systemd_dounit "${FILESDIR}/vmware-network.service" |
8294 |
- |
8295 |
- # fill in variable placeholders |
8296 |
- sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ |
8297 |
- -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} || die |
8298 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ |
8299 |
- -e "/^Encoding/d" \ |
8300 |
- -i "${D}/usr/share/applications/${PN}.desktop" || die |
8301 |
- |
8302 |
- readme.gentoo_create_doc |
8303 |
-} |
8304 |
- |
8305 |
-pkg_config() { |
8306 |
- "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new |
8307 |
-} |
8308 |
- |
8309 |
-pkg_preinst() { |
8310 |
- gnome2_icon_savelist |
8311 |
-} |
8312 |
- |
8313 |
-pkg_postinst() { |
8314 |
- fdo-mime_desktop_database_update |
8315 |
- gnome2_icon_cache_update |
8316 |
- readme.gentoo_pkg_postinst |
8317 |
-} |
8318 |
- |
8319 |
-pkg_prerm() { |
8320 |
- einfo "Stopping ${PN} for safe unmerge" |
8321 |
- /etc/init.d/vmware stop |
8322 |
-} |
8323 |
- |
8324 |
-pkg_postrm() { |
8325 |
- fdo-mime_desktop_database_update |
8326 |
- gnome2_icon_cache_update |
8327 |
-} |
8328 |
|
8329 |
diff --git a/app-emulation/vmware-tools/Manifest b/app-emulation/vmware-tools/Manifest |
8330 |
deleted file mode 100644 |
8331 |
index 289d9c339ce..00000000000 |
8332 |
--- a/app-emulation/vmware-tools/Manifest |
8333 |
+++ /dev/null |
8334 |
@@ -1,36 +0,0 @@ |
8335 |
-DIST vmware-tools-freebsd-9.2.3-1031769.i386.component.tar 15216640 SHA256 a54e3fa823495b18dca3635dde7f37c5c15a6374ec6a863bfccaf02bcb75fd9b SHA512 9d0eb0699ba3d36ed7a1810e553632fdc1ae0339848de2e4c2123222e3063da1164c73d2aca38bfd82b3825f1a8940fe76a461f9bdb9280f0f3473587824d890 WHIRLPOOL aa2309ef38995e301059ce9dbbe0c680aa74aa95b2cb07cf930e71a6c9f620be777b83ef3ad8e93f53760a7b266ffa08b77c34f137fe01d3b51d5ba68ffb4686 |
8336 |
-DIST vmware-tools-freebsd-9.2.3-1031769.x86_64.component.tar 15216640 SHA256 4d4047a0ffaa13aa546f065a50e345d23128746fefa4e6f7ad7b54dc947b1276 SHA512 741b55b32a04957efe42684288447faf346c6a13cbb67819984c8efcf18995f75979f7db2ce7e37f4bfcc9b2a3c867c851e2d5e4db9ddf81209ea296813a8e44 WHIRLPOOL b44274d75a76214e1b4581143825f246a0345da4199d4692a3a0d6bceb360c8402bb0d6fc6594d2e20c0532cc40a27a03f1e1e98071be7ec67c4640b504936b8 |
8337 |
-DIST vmware-tools-freebsd-9.6.5-2700073.i386.component.tar 15216640 SHA256 d900d0ee4f9f185f1914f80cb9b0a7df8fcf027e1009def7c2b81a7ac15e5d0b SHA512 5e070544e85137b7f032e2c1e4567233adadac274abc727b4dcfdfdddd455bc5f080499b306c6bdf7e5bbe17f6610fdece1c2ef541d5b89081ec5d342145071e WHIRLPOOL 1cc29331cefb25628425553707b8c8572eddc1b208856eac409d0123901918677d95fe82cc6028f0debcd7b28a8d524e1f29357b399629c30653eced80d12a7b |
8338 |
-DIST vmware-tools-freebsd-9.6.5-2700073.x86_64.component.tar 15216640 SHA256 7a2435330281b039727ab8a10736a95393bc143e6b3bfea6e9b7d18a7bf4ba15 SHA512 e78b1d85bcff951d4661374eb687c388d0b299d3d1cd6e4344d3a0439219f82a1e59f335cd5284fb371304223038ef358b59006504b061d702981bec7afa3408 WHIRLPOOL 42ea166a2b5ec8986d4d7b04dc2d13c76fb2509d6f9993d1dcceb7479332de0032589acfc749996a255b5487173f8ec03dc859b897a5f894fd2dde964db45220 |
8339 |
-DIST vmware-tools-freebsd-9.9.3-2780323.x86_64.component.tar 15267840 SHA256 9f0c62ff9ec11b6920b7eed08a60f445b2e39f98408d74e290789ff405f7a8cf SHA512 ab0a97ae7ab5b6762fdba067606725f00eaa0917e209a5f84852c6ea154e24639cc488f9c9bd6e215d2b0048fdff8ee1adbd1292015eb3712811f54459d7c316 WHIRLPOOL db81fb392d8800c8e2a0fe5f883fd88810ea88b927f9e66a17758d0c864059dcac1f1a0bcaa1a135e0d9b300798185710ab3fffa4cd82e264a73d6e0bba21d1e |
8340 |
-DIST vmware-tools-freebsd-9.9.4-3206955.x86_64.component.tar 15267840 SHA256 83206e70e79749f7fa50a26930046c58061b538e3b912d2270a93ee400c5a365 SHA512 3112c0cb5ff2cd6a2309f6bdf51bfccee5e1a8dc01910239a30adbdd516c7f9838133d245a3fd0c95eb909e9fe9b8df0b89135adeb90d5bd4843ddc2db7782ff WHIRLPOOL 29f36ad06ecd4cb7f9faa91924cb7a756cea9c18faf8fff67c0bbc1be10a8a1145724375f09467fefa1a41bd7f6f9196698806833ee105c6a86dd49910260b40 |
8341 |
-DIST vmware-tools-linux-9.2.3-1031769.i386.component.tar 66211840 SHA256 0383d632139dbb463bba02c3f6770c877b2fc254710b05167b1d0d4213fbc11c SHA512 076d952a70bec0be1dcdc22534a57631faa1e74136cd1baac479d6f98d924a8d870958aa02aaaa9eef98e23609470ab85bde5ab7afacbc15516a5d7ad7b023c2 WHIRLPOOL 4429145db5528b8160115a7c55bc895e8b52745c9c3b08024a096e3bdefbb0e11ef6fdad976178e96fa32320711f30c2889c8830535dc6f6dfb8f6cbb214be03 |
8342 |
-DIST vmware-tools-linux-9.2.3-1031769.x86_64.component.tar 66211840 SHA256 be5fa35af317058bffe98979b3b1f77eed416f17c7f6ee265a4717bbe3c9e718 SHA512 1f26d724e8e50df9d34333e44831d002ecd1a8af43cfed575c092316c4328ef3f34ac52b32c81ad6eb01dd362947ed462b09af080ee5e19cfd8aa89fbf83cd1d WHIRLPOOL 7292d3d69a46ad97b6decd5dff6c9c5dc19f76545965c6b95a904a14755072bc061742c458eecf974e8ca910af5d6464ccc6708c00c647095c3e98856ab628b0 |
8343 |
-DIST vmware-tools-linux-9.6.5-2700073.i386.component.tar 61337600 SHA256 aad21f54da7bb37169dc85fd84062f3976618ce63034c6785235bd6d5aa580f4 SHA512 133c4958d904755ef9a4fdc13ea686aa69b325301c435a8cf7ea77a246a072099864c3b3654d5ad35bfda2b849d3c0e31afdc8654959f0ca2df07c9d822bf9f7 WHIRLPOOL 66ceb444996985f264892d7bbee5ab8a7122796691fedf321e108e1bc81c54646ca3fe325688f4824ef781e7f9ae7058d4f440e2f0219bd58c985195eb9332b2 |
8344 |
-DIST vmware-tools-linux-9.6.5-2700073.x86_64.component.tar 61337600 SHA256 dd1fea6f4e99f676cef89d6ad1f9880e28d324f5051a95a6216cb48045c39ea8 SHA512 a607713f410a405ff8364adc7a300223ffa26d5cfd8f0612ec39c371057d6a65744de5e4a2eb552e488cdcb9dbc9ae6ddff7e89b533a9cbe531969453eefe291 WHIRLPOOL 5d851d3a3b9e7ab3b5ff48fa43f40330e88c6cdf083b9a975032b9d2868e9ad3e6e73d9c64db5fba0838eebcf182d9406434abf20d4fe76f74b136a00948684c |
8345 |
-DIST vmware-tools-linux-9.9.3-2780323.x86_64.component.tar 62095360 SHA256 6ed266ef888c8fd9a9f0d49083767f525b03bb2725d241c048308e8660b67254 SHA512 af12a60a70727db6ff98bfcc1693eda8c78fc09f3c5769eb42cd2ddfc36b6ae411309414d922d6fbcbfddab7875822a57d1bbe4afe2e00afd6afc09c8d959d89 WHIRLPOOL b46ef6bd824758bd2c4fdf8b3934a99baa23a4c2c6b9728a9ff464363c8c31050ffbe1392470191514f50d2f1ac208092f5d789e8cde1681d317636cce87d1b3 |
8346 |
-DIST vmware-tools-linux-9.9.4-3206955.x86_64.component.tar 62085120 SHA256 d1482b6c78f5a7bf5820b174fe5fdd6f0fcaa3ed66c12eefa32e6b59358c376c SHA512 4c2b64b399a802fc1f7ef13878d0c8772507c971d5f515c6323e29a65b6d6fcb27ed48996ad5c6db0ff4d9a19db597b6d8b2eb1c3292cacd47cba9db5c65ef5f WHIRLPOOL 2ee2ad16b108aedf106f5dc017a08859505229734e4b87f81714c436f2fe43469acf6e41bd88473325d67c8396ea4330e7eb4141581da988bd2636ee153eadb8 |
8347 |
-DIST vmware-tools-netware-9.2.3-1031769.i386.component.tar 81920 SHA256 906680d060a59414fa1726ef71b29f90f3923b823d4a123d72f345f6c35bab97 SHA512 892b0e9e18a80ab33dc6113447d281e31eb1925fea67ad9d90bfe6af808f855c8efaef6800540037062c4062bacc575fd638b7a49b34998006f5a49696558623 WHIRLPOOL b97bb7314868b1600a349d3b6af0b516aa3bd17124f3cf6bc309f1cdc21617b4c0abbbf74bb080aaaa64f31dc6ebb57905851678600cb6fce48e235428a5099c |
8348 |
-DIST vmware-tools-netware-9.2.3-1031769.x86_64.component.tar 81920 SHA256 e1279aeb2d402fa87c643fb5bcdda695fa39c93495b9a2b75b4e80a713176817 SHA512 542c350d1052a9bad0930138042424a0c91f55f861511e10ce4b81327a40dc1c8a339606b9118ae1e37a3d4171b0617d0205f74e03c2e28b398b2663575206cc WHIRLPOOL 5b146c80e1537f30c8051266994e44d366cd5964539ab1f2d51e82e0e9c10802f78de38bfdcfd83a0f0f91299381aada5f77dc3a19a759bf69b932a9718a0900 |
8349 |
-DIST vmware-tools-netware-9.6.5-2700073.i386.component.tar 81920 SHA256 5ec311062c98a8bd86fa86d2b762b89ad2642c0ba7d95f8d42734c43f3dc7139 SHA512 d5ad09faee4fc5e4d3e9f5ab0423dc4a28cd316b70193277dfc4e26b8daef372af4ba3e9994ed488a6a051ab4f0e2980f6e8a1ab0b911f7f93d29556d3826617 WHIRLPOOL a911c63efece39e149f4086cfdd8e5c29adce1f2553481328988bc946ab6c6653033f967b7f8970c3b859bb245c57e4d70a432bda3a618da9c5b740f8303e24b |
8350 |
-DIST vmware-tools-netware-9.6.5-2700073.x86_64.component.tar 81920 SHA256 78d3a8e66efeeb831658e50fe012e1d1d6bc4cfdf426008c6a21456757e5238c SHA512 bb6a37252beb66c6843ee851dbb71d169f1eace25f2874ec6c577d32ba1df5791e046fb5039e09ee11f536cb0078685665070d2399756130c3bdd6bad2a43e20 WHIRLPOOL 05c41c61715f9cddc89cadf1d2891be9bc13933a1649761087022b592e28b08db5a12b69ea3055750bb7f19688be1f18df4422ebb0650133e2711a30a7bafec6 |
8351 |
-DIST vmware-tools-netware-9.9.3-2780323.x86_64.component.tar 81920 SHA256 51ae6356bf0e28ef074f3e64363e1a360018f9be44f33ab6928e532f8f90af9a SHA512 9eadd29b6329eceaa4d90084d80bb635a46f0830420e947398391735935b626bef8d20dd8ec473c18d423c06cf4cf7a51ac77e2a2c95f9f417c7c73b08e100c6 WHIRLPOOL ce3d82023b378acf48efe3073e79ee272a8e3e36ff5cdee742870b7230ecfbcb8b3b2db7d8a7081e547176aae16f1e2df914593bdc2be4bb29e5ac1301158eae |
8352 |
-DIST vmware-tools-netware-9.9.4-3206955.x86_64.component.tar 81920 SHA256 b95be3085178f75eb8b3f69a4c5ca8e4418615e72f42f3b254b3571f8b8e72d5 SHA512 758496e9cae854d02badec3474edeb7e53b4604edd5f1c84216d3488d8f65763a97840a4db023bb7513c91bb3c44d03a8fa67d4435cf6ccb16679ab995ee4159 WHIRLPOOL 4974e17b438633afd5a8046369dd1d935b6587a40d1e1e4bd378606a13914310f8f4e60d084a3ab735b510d8b13403afb41e078235227ce269786d54d0fabc64 |
8353 |
-DIST vmware-tools-solaris-9.2.3-1031769.i386.component.tar 13096960 SHA256 bb38d98351c0bb7f1c268a5ec1140bf2023276fd82dc31895fc6039f983ce964 SHA512 5abbb8e7e31753301a02dc411ca41a4857fb41b0c97a1264e954a53a5f15869dec7e01f8b65190aaf20e86c04e929beb88d6f14261761801480f453ce6b3107b WHIRLPOOL 3ebfa56078c49d53bc17215124a901931fcc3fdcd660ad55f72ea0c8cb81a31463bc83ecc480d7e7cccba602c3a37157e560a99231edae3b8e2c1e26242ce252 |
8354 |
-DIST vmware-tools-solaris-9.2.3-1031769.x86_64.component.tar 13096960 SHA256 94ed550543096d9e03326a5adea93928f24f69349e5bc6a995e1fefead7112d9 SHA512 04724855a497aefcbd1ccf6ddd1e793eb6fd4bc65960f59f0e0dc95096434d8fa1a5a12b49a20f7e293427a794e4c16df06e4a844042fd21537b2513992bae41 WHIRLPOOL 223977e8ff88601f58752b7a2fda99a15212858d8045504aefe181b18ca29ca4b09dd2b07ddc4091533fd07da5062777000dcbd1e557a789688dbec70fae9069 |
8355 |
-DIST vmware-tools-solaris-9.6.5-2700073.i386.component.tar 12830720 SHA256 dfff56bd05aea2f732d893be9bd7b52d5b0a3f4f993bb8a275a429fabedd03d5 SHA512 e5c51665119fce5655cc24cc6ff5815250cd291ab7216eaa5eba6056b70e31734c111ae33189c4cb78c9f95336141f012c35c61cbf1ac2887dd264af8e5d7823 WHIRLPOOL 6429b2ed61a1ecba0ab290a9e37c642350782f257364b984abdda3b448e0b11996c0c1c909811620074b1b18a1206cc5f7a6872765766b3d0dcb2d1a978cc784 |
8356 |
-DIST vmware-tools-solaris-9.6.5-2700073.x86_64.component.tar 12830720 SHA256 4995ee79f2aa8093fd8caa9bf5e9d2085f3b9a5b6de6b105069c68a97a01ef11 SHA512 f36aa070959bfe94dca921f7c776f878a56a116b5ab7a0da6a55acd34943b7b9631a4184d3aaa773387aed303922aa8d7e9f5b3f24c5d8d9eafbf3d02fb9bf88 WHIRLPOOL 558aa2a21da94b4741d3dc6195ee705e918947511408560ca836937ca094fe66efd2582e967e7fac941dabbaee86b4727f7010782eded8abdcfc05d66fe779a7 |
8357 |
-DIST vmware-tools-solaris-9.9.3-2780323.x86_64.component.tar 13015040 SHA256 5ab7c353c8d73be85f756d34deaf5da7aa30a15a4d60f8c22565826d97d3f401 SHA512 8d9b1fe9f02a28da0cefc79d96accb0617a08928bed4189d00abe9f9424e83a28e06ca772c50ea7e4d14ac7f4d6a51b9e3e017b8d9cb5400811d8e2a05d470ea WHIRLPOOL addf9abb4cb07e2e015cdb5c2209dbc9b2371b712772dd337c577e3a7c83c2bc2fcbe468395b551c8b44d2366d0c12be74d76a513f4f690643dd0cbc6a74e57c |
8358 |
-DIST vmware-tools-solaris-9.9.4-3206955.x86_64.component.tar 13015040 SHA256 3dfb5754640c100ae7047573be1b20f83e395e99592313e0f168f62a9a947163 SHA512 d56f859037aa5c9081ae036c719dd97e4ae2c20b65bd9d0670b189b030778058999f90656bc6ebe752ef2f22d43458752764cace8441bbfbb1086187dcaa2be3 WHIRLPOOL bd4464dc630ea0c2f310200a80d54171f60fc872fc83007672c4cd5d912db090a535ef46cb0c86931da9dfd44929850a0f8aee14f909d5b5512278cf90e8f27e |
8359 |
-DIST vmware-tools-winPre2k-9.2.3-1031769.i386.component.tar 11253760 SHA256 a83173fbed35fd6484740fa1c3899ef18c84f0e2728e8db2cca442c809bafe1f SHA512 466625a1e342afae65203b1f04568c4d6c57eee2022890ca463a750d67c6fbbd1f9e5c557515298db0566d9297ffcb32183ff476a5e9368fa05b63b073ade467 WHIRLPOOL a5192928c6fc5c198e818bcf5f623660ae4741017a25cf4e691005ff8284666afb3d5e1dbc037a4caa5889e1bf102e91e4a9f06b630c041674cb0d53d8c0d0f4 |
8360 |
-DIST vmware-tools-winPre2k-9.2.3-1031769.x86_64.component.tar 11253760 SHA256 9b51d31ca911ccf95db641834ae79220db44df53c2fd5a91d6b6e382cffdd39e SHA512 60f99dcb92794d3b798334c91966658f8bbb5cd11a435672094e0a0ccd0b070c0be277d38a9dfac9df77db6d7b91da806fa50a13e67b30d19c33fe153ff63a2e WHIRLPOOL 8426b651f35902f1ac87d556b330100f68ca1c615011301e6ab0dffb160fb4dab4f205f293ffd83ad74c67e9776d54c354f9fe98d70c596cec165929c5a1ba5c |
8361 |
-DIST vmware-tools-winPre2k-9.6.5-2700073.i386.component.tar 11458560 SHA256 8b381b1c787466a96bf0f9536df05f58aa62c5c10d6fdeaedd136c6a49e09b8c SHA512 17bcbc4aa84e5e212732860cf34d4c4d8b4c806bd137b497e6dab9f023cf26af5a43a83f6f4d30f9d6e7df87f85b7a33e8ab0626c56450ea024b17e45ab1e1db WHIRLPOOL c3b45bbf5cc49f8b9dd64517dbd9e258ae60de59ea6beeed0b88745f7ba8beef1da9cba577d7829fa25dccf2c51ca919f36db5e7c141e7a4e1d62abe5b9fd187 |
8362 |
-DIST vmware-tools-winPre2k-9.6.5-2700073.x86_64.component.tar 11458560 SHA256 55e856f7a701174c3f1f0257d2a8054b836b5e14b328cadcd21e792db03afd3f SHA512 bbc80f18ec0e08d26850220124d0e9187fe9d80472dbd55269c63d05b51ecc7374d7e6066aa5e9fc9bcd027b218925084fb30ddd48dc3828df9c09a9c3579699 WHIRLPOOL f01ad51f8944a167e19abc876f31a6e08f85920d1e17272edff44e4c4871090694e87749cdbd83ffab6deba8569cfec4b600b9de5f930e57405e831dc73a0cd9 |
8363 |
-DIST vmware-tools-winPre2k-9.9.3-2780323.x86_64.component.tar 11530240 SHA256 5615f563e42b090a87e30423d5e930fc39712bd9bcf597a83b8df85341e0f563 SHA512 904c9323903f25fc1ffec2e0e7c21c7af9928b408a26e0d4e800597b134643e838a312f44b6600244cb3a855f025912384e10b4bc8f362ae7732216ea8ce642f WHIRLPOOL effa090a63d488738f0a17bf164b0594a33a7a5905d317d08589e1e3467783ac674b07b294a8678c3dbbb0ec6e8c784da74b3e3dd61b9b55e4a1bc4794cbdd8a |
8364 |
-DIST vmware-tools-winPre2k-9.9.4-3206955.x86_64.component.tar 11530240 SHA256 58956405bda8c1eeda43dc22b5bbd9e077cc653f6b4bc2ff1bf0dc071152b2a6 SHA512 6394d73f0258bb831d52e4202ddded8173d3c0dbba3a5686f0eae362196a59b5fd7e9d40403483f7bffa90ab3d6daee340a86d69e9a9b5beb278e17b1c98f8e0 WHIRLPOOL a0620f05d8f6b9acdfdaf462a2718888e31e738c332aa189c367f277403c9a6e038eea0386f1ec4b8a9e9e5671a3e51bb67c7dc80d42f2f05b5244ed5ae79e04 |
8365 |
-DIST vmware-tools-windows-9.2.3-1031769.i386.component.tar 61777920 SHA256 0fa4f7aac30b589292b6064c23702e6a257ac27ce1342c96755352f6f39e3b04 SHA512 776c834b49ad8f4bbe84ba800aa866e740e1dd236496065ebd46ddafa35621d4356f99a6f0bb45dfb1fe337bc75452236b5d5c87ec8c5ab6b5a1b6c18bc8d542 WHIRLPOOL 787725514f0ee1a48b64cc2f3b25f706290e386f9762857290ca2a84baea4a21205900b37df197976205baf27606023ea7626337b580299d4f6d63288c8ba39b |
8366 |
-DIST vmware-tools-windows-9.2.3-1031769.x86_64.component.tar 61777920 SHA256 dbb7f6dbbcf9e44263193e40ad89944a45ef860f4f3b4b51d00ae1602f863f8c SHA512 818e2895c57be6792e82362c9616e2e6e8638997bde65ecea1416f71ccfa9681fc5cd44cd3356780ab35345e6b19ac8054a05eb8424dff1bcd779c9b686455a9 WHIRLPOOL ab847bddd07b029ba7a75fb6ae96133211d5a412fbe2059f851ae249854357dd0e25ab28df98fc2a3ee33f5aae08587a8b4bbfd6a60a2313f77fe6f98a1a3a3d |
8367 |
-DIST vmware-tools-windows-9.6.5-2700073.i386.component.tar 69294080 SHA256 6aba23b1bd9f7877c7fd54102f634dbf6d0d61fe2640d2e56f280395ad595f45 SHA512 fb63d93dd2ca26aeae42f27ce4b0dcda4991f10e0077a8384b8c7bbc3dbf73fa1f62f986a6c5661b70aed59e3841dc9a63b0de76c637ef62d919f9b667149dae WHIRLPOOL 8969ab16cc660b39626f40af69563bd85f40547d4656e156c4ef79221b6d71f8c9cd1b9ec6e0657f1c61f7104748cf84c356a5ff50339462f998d677a762eee5 |
8368 |
-DIST vmware-tools-windows-9.6.5-2700073.x86_64.component.tar 69294080 SHA256 effeb7d57c0c916de4b18f80df4cd8d9fcf00d0dda886b2ba0ce23179b3ad0fa SHA512 bcf036d3fa54b1b0ae98370a54f0e5d95ba68a6476fc79f60615d5754f370b8724d0ccaa6c826f843ebb3e1eb1afceb03701214774ff0b1e40742be5e9adad3f WHIRLPOOL 595918763b0b31ab07725b19c9642730bfb4ed14cec44ed4920bed0aed38b3d71ffab9a931b2923aef63514ff180f4f2221e1b6694418578ca1d2960531e4438 |
8369 |
-DIST vmware-tools-windows-9.9.3-2780323.x86_64.component.tar 71495680 SHA256 fa53a1cb525876a5e809dd5429b4572091642ddc2d731ef3b9a242378c972696 SHA512 9e9db19c116f02e0885e07dd6803b6353439125331deb5722a949a10f023dcc694431599e2dd9a4f7a51dfd48510317854ce513684112444443f63e77e0d2c5d WHIRLPOOL dc32f12d603db31e0ec0853ab936c478f1eb0c04cf669e3b7e48ad058bc035e35ad8ba0783616f6370acb1d3c3ef777673d39c663f889998a62593e814aa93eb |
8370 |
-DIST vmware-tools-windows-9.9.4-3206955.x86_64.component.tar 71516160 SHA256 1cce945c3d0678a3dda897685f658c585d6e7b085182b475bfc25f682e7e1530 SHA512 1aeac6144a33ad63d6020397af64966bc35e7cdfdaa434177058386c8466c24a95c2a9386da84f9973d65caa32126f89e422ae5cf8c63813310f1896781fc364 WHIRLPOOL 7cb6c351ab79edda774c101e66df7819c0d1e9a62585ffde4597189d5151669cafe23215c46230e2ed33c3f61e8c081e25141f549631a75eb2a20393a344416d |
8371 |
|
8372 |
diff --git a/app-emulation/vmware-tools/metadata.xml b/app-emulation/vmware-tools/metadata.xml |
8373 |
deleted file mode 100644 |
8374 |
index 4e48633499f..00000000000 |
8375 |
--- a/app-emulation/vmware-tools/metadata.xml |
8376 |
+++ /dev/null |
8377 |
@@ -1,8 +0,0 @@ |
8378 |
-<?xml version="1.0" encoding="UTF-8"?> |
8379 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
8380 |
-<pkgmetadata> |
8381 |
- <maintainer type="project"> |
8382 |
- <email>vmware@g.o</email> |
8383 |
- <name>Gentoo VMware Project</name> |
8384 |
- </maintainer> |
8385 |
-</pkgmetadata> |
8386 |
|
8387 |
diff --git a/app-emulation/vmware-tools/vmware-tools-9.2.3.1031769.ebuild b/app-emulation/vmware-tools/vmware-tools-9.2.3.1031769.ebuild |
8388 |
deleted file mode 100644 |
8389 |
index 51b46d81ef4..00000000000 |
8390 |
--- a/app-emulation/vmware-tools/vmware-tools-9.2.3.1031769.ebuild |
8391 |
+++ /dev/null |
8392 |
@@ -1,55 +0,0 @@ |
8393 |
-# Copyright 1999-2013 Gentoo Foundation |
8394 |
-# Distributed under the terms of the GNU General Public License v2 |
8395 |
- |
8396 |
-inherit versionator vmware-bundle |
8397 |
- |
8398 |
-MY_PV="$(replace_version_separator 3 - $PV)" |
8399 |
-#BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/5.0.$(get_version_component_range 3)/$(get_version_component_range 4)/linux/packages/" |
8400 |
-BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/5.0.2/$(get_version_component_range 4)/linux/packages/" |
8401 |
- |
8402 |
-DESCRIPTION="VMware Tools for guest operating systems" |
8403 |
-HOMEPAGE="http://www.vmware.com/products/player/" |
8404 |
- |
8405 |
-LICENSE="vmware" |
8406 |
-SLOT="0" |
8407 |
-KEYWORDS="-* ~amd64 ~x86" |
8408 |
-RESTRICT="mirror" |
8409 |
-IUSE="" |
8410 |
- |
8411 |
-DEPEND="" |
8412 |
-RDEPEND="" |
8413 |
- |
8414 |
-IUSE_VMWARE_GUEST="freebsd linux netware solaris windows winPre2k" |
8415 |
- |
8416 |
-VM_INSTALL_DIR="/opt/vmware" |
8417 |
- |
8418 |
-for guest in ${IUSE_VMWARE_GUEST} ; do |
8419 |
- SRC_URI+=" vmware_guest_${guest}? ( |
8420 |
- amd64? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.x86_64.component.tar ) |
8421 |
- x86? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.i386.component.tar ) |
8422 |
- )" |
8423 |
- IUSE+=" vmware_guest_${guest}" |
8424 |
-done ; unset guest |
8425 |
- |
8426 |
-src_unpack() { |
8427 |
- local arch |
8428 |
- if use x86 ; then arch='i386' |
8429 |
- elif use amd64 ; then arch='x86_64' |
8430 |
- fi |
8431 |
- local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do |
8432 |
- if use "vmware_guest_${guest}" ; then |
8433 |
- local component="vmware-tools-${guest}-${MY_PV}.${arch}.component" |
8434 |
- unpack "${component}.tar" |
8435 |
- vmware-bundle_extract-component "${component}" |
8436 |
- fi |
8437 |
- done |
8438 |
-} |
8439 |
- |
8440 |
-src_install() { |
8441 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/isoimages |
8442 |
- local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do |
8443 |
- if use "vmware_guest_${guest}" ; then |
8444 |
- doins "${guest}".iso{,.sig} |
8445 |
- fi |
8446 |
- done |
8447 |
-} |
8448 |
|
8449 |
diff --git a/app-emulation/vmware-tools/vmware-tools-9.6.5.2700073.ebuild b/app-emulation/vmware-tools/vmware-tools-9.6.5.2700073.ebuild |
8450 |
deleted file mode 100644 |
8451 |
index 317af3d175d..00000000000 |
8452 |
--- a/app-emulation/vmware-tools/vmware-tools-9.6.5.2700073.ebuild |
8453 |
+++ /dev/null |
8454 |
@@ -1,54 +0,0 @@ |
8455 |
-# Copyright 1999-2015 Gentoo Foundation |
8456 |
-# Distributed under the terms of the GNU General Public License v2 |
8457 |
- |
8458 |
-inherit versionator vmware-bundle |
8459 |
- |
8460 |
-MY_PV="$(replace_version_separator 3 - $PV)" |
8461 |
-BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/6.0.6/$(get_version_component_range 4)/linux/packages/" |
8462 |
- |
8463 |
-DESCRIPTION="VMware Tools for guest operating systems" |
8464 |
-HOMEPAGE="http://www.vmware.com/products/player/" |
8465 |
- |
8466 |
-LICENSE="vmware" |
8467 |
-SLOT="0" |
8468 |
-KEYWORDS="-* ~amd64 ~x86" |
8469 |
-RESTRICT="mirror" |
8470 |
-IUSE="" |
8471 |
- |
8472 |
-DEPEND="" |
8473 |
-RDEPEND="" |
8474 |
- |
8475 |
-IUSE_VMWARE_GUEST="freebsd linux netware solaris windows winPre2k" |
8476 |
- |
8477 |
-VM_INSTALL_DIR="/opt/vmware" |
8478 |
- |
8479 |
-for guest in ${IUSE_VMWARE_GUEST} ; do |
8480 |
- SRC_URI+=" vmware_guest_${guest}? ( |
8481 |
- amd64? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.x86_64.component.tar ) |
8482 |
- x86? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.i386.component.tar ) |
8483 |
- )" |
8484 |
- IUSE+=" vmware_guest_${guest}" |
8485 |
-done ; unset guest |
8486 |
- |
8487 |
-src_unpack() { |
8488 |
- local arch |
8489 |
- if use x86 ; then arch='i386' |
8490 |
- elif use amd64 ; then arch='x86_64' |
8491 |
- fi |
8492 |
- local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do |
8493 |
- if use "vmware_guest_${guest}" ; then |
8494 |
- local component="vmware-tools-${guest}-${MY_PV}.${arch}.component" |
8495 |
- unpack "${component}.tar" |
8496 |
- vmware-bundle_extract-component "${component}" |
8497 |
- fi |
8498 |
- done |
8499 |
-} |
8500 |
- |
8501 |
-src_install() { |
8502 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/isoimages |
8503 |
- local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do |
8504 |
- if use "vmware_guest_${guest}" ; then |
8505 |
- doins "${guest}".iso{,.sig} |
8506 |
- fi |
8507 |
- done |
8508 |
-} |
8509 |
|
8510 |
diff --git a/app-emulation/vmware-tools/vmware-tools-9.9.3.2780323.ebuild b/app-emulation/vmware-tools/vmware-tools-9.9.3.2780323.ebuild |
8511 |
deleted file mode 100644 |
8512 |
index 40bad920c8e..00000000000 |
8513 |
--- a/app-emulation/vmware-tools/vmware-tools-9.9.3.2780323.ebuild |
8514 |
+++ /dev/null |
8515 |
@@ -1,57 +0,0 @@ |
8516 |
-# Copyright 1999-2015 Gentoo Foundation |
8517 |
-# Distributed under the terms of the GNU General Public License v2 |
8518 |
- |
8519 |
-inherit versionator vmware-bundle |
8520 |
- |
8521 |
-MY_PV="$(replace_version_separator 3 - $PV)" |
8522 |
-BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/7.1.2/$(get_version_component_range 4)/linux/packages/" |
8523 |
- |
8524 |
-DESCRIPTION="VMware Tools for guest operating systems" |
8525 |
-HOMEPAGE="http://www.vmware.com/products/player/" |
8526 |
- |
8527 |
-LICENSE="vmware" |
8528 |
-SLOT="0" |
8529 |
-KEYWORDS="-* ~amd64" |
8530 |
-RESTRICT="mirror" |
8531 |
-IUSE="" |
8532 |
- |
8533 |
-DEPEND="" |
8534 |
-RDEPEND="" |
8535 |
- |
8536 |
-IUSE_VMWARE_GUEST="freebsd linux netware solaris windows winPre2k" |
8537 |
- |
8538 |
-VM_INSTALL_DIR="/opt/vmware" |
8539 |
- |
8540 |
-for guest in ${IUSE_VMWARE_GUEST} ; do |
8541 |
- SRC_URI+=" vmware_guest_${guest}? ( |
8542 |
- amd64? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.x86_64.component.tar ) |
8543 |
- )" |
8544 |
- IUSE+=" vmware_guest_${guest}" |
8545 |
-done ; unset guest |
8546 |
- |
8547 |
-src_unpack() { |
8548 |
- local arch |
8549 |
- if use x86 ; then arch='i386' |
8550 |
- elif use amd64 ; then arch='x86_64' |
8551 |
- fi |
8552 |
- local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do |
8553 |
- if use "vmware_guest_${guest}" ; then |
8554 |
- local component="vmware-tools-${guest}-${MY_PV}.${arch}.component" |
8555 |
- unpack "${component}.tar" |
8556 |
- vmware-bundle_extract-component "${component}" |
8557 |
- fi |
8558 |
- done |
8559 |
-} |
8560 |
- |
8561 |
-src_install() { |
8562 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/isoimages |
8563 |
- local somethingdone; |
8564 |
- local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do |
8565 |
- if use "vmware_guest_${guest}" ; then |
8566 |
- doins "${guest}".iso{,.sig} |
8567 |
- somethingdone=yes |
8568 |
- fi |
8569 |
- done |
8570 |
- |
8571 |
- [ -n "${somethingdone}" ] || ewarn "You should set VMWARE_GUEST in make.conf to specify which operating systems you need." |
8572 |
-} |
8573 |
|
8574 |
diff --git a/app-emulation/vmware-tools/vmware-tools-9.9.4.3206955.ebuild b/app-emulation/vmware-tools/vmware-tools-9.9.4.3206955.ebuild |
8575 |
deleted file mode 100644 |
8576 |
index b6749751331..00000000000 |
8577 |
--- a/app-emulation/vmware-tools/vmware-tools-9.9.4.3206955.ebuild |
8578 |
+++ /dev/null |
8579 |
@@ -1,57 +0,0 @@ |
8580 |
-# Copyright 1999-2016 Gentoo Foundation |
8581 |
-# Distributed under the terms of the GNU General Public License v2 |
8582 |
- |
8583 |
-inherit versionator vmware-bundle |
8584 |
- |
8585 |
-MY_PV="$(replace_version_separator 3 - $PV)" |
8586 |
-BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/7.1.3/$(get_version_component_range 4)/linux/packages/" |
8587 |
- |
8588 |
-DESCRIPTION="VMware Tools for guest operating systems" |
8589 |
-HOMEPAGE="http://www.vmware.com/products/player/" |
8590 |
- |
8591 |
-LICENSE="vmware" |
8592 |
-SLOT="0" |
8593 |
-KEYWORDS="-* ~amd64" |
8594 |
-RESTRICT="mirror" |
8595 |
-IUSE="" |
8596 |
- |
8597 |
-DEPEND="" |
8598 |
-RDEPEND="" |
8599 |
- |
8600 |
-IUSE_VMWARE_GUEST="freebsd linux netware solaris windows winPre2k" |
8601 |
- |
8602 |
-VM_INSTALL_DIR="/opt/vmware" |
8603 |
- |
8604 |
-for guest in ${IUSE_VMWARE_GUEST} ; do |
8605 |
- SRC_URI+=" vmware_guest_${guest}? ( |
8606 |
- amd64? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.x86_64.component.tar ) |
8607 |
- )" |
8608 |
- IUSE+=" vmware_guest_${guest}" |
8609 |
-done ; unset guest |
8610 |
- |
8611 |
-src_unpack() { |
8612 |
- local arch |
8613 |
- if use x86 ; then arch='i386' |
8614 |
- elif use amd64 ; then arch='x86_64' |
8615 |
- fi |
8616 |
- local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do |
8617 |
- if use "vmware_guest_${guest}" ; then |
8618 |
- local component="vmware-tools-${guest}-${MY_PV}.${arch}.component" |
8619 |
- unpack "${component}.tar" |
8620 |
- vmware-bundle_extract-component "${component}" |
8621 |
- fi |
8622 |
- done |
8623 |
-} |
8624 |
- |
8625 |
-src_install() { |
8626 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/isoimages |
8627 |
- local somethingdone; |
8628 |
- local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do |
8629 |
- if use "vmware_guest_${guest}" ; then |
8630 |
- doins "${guest}".iso{,.sig} |
8631 |
- somethingdone=yes |
8632 |
- fi |
8633 |
- done |
8634 |
- |
8635 |
- [ -n "${somethingdone}" ] || ewarn "You should set VMWARE_GUEST in make.conf to specify which operating systems you need." |
8636 |
-} |
8637 |
|
8638 |
diff --git a/app-emulation/vmware-workstation/Manifest b/app-emulation/vmware-workstation/Manifest |
8639 |
deleted file mode 100644 |
8640 |
index 84c6065fb65..00000000000 |
8641 |
--- a/app-emulation/vmware-workstation/Manifest |
8642 |
+++ /dev/null |
8643 |
@@ -1,10 +0,0 @@ |
8644 |
-DIST VMware-Workstation-10.0.6-2700073.i386.bundle.tar 281272320 SHA256 02b6c26ba33027344a943734e48cac03ed522a9cf09131837758af3ebd27ea60 SHA512 f65ce16784c9fccb0a6f09abe52bbbe1cc1567d366d03cfe0f79fdfbf4b9d5fef8238a6f62e969b8415112bf063f3d6a5e66239aa89159172520c80efd90c7e9 WHIRLPOOL 11ffae3b8a7e059e63afd2a8a19f9a07d8d63d2ef8f83c623b37e315750b09cb9a31537125614610fc988184017fe45b3ae5408670257c1dc9531dd6b6b17717 |
8645 |
-DIST VMware-Workstation-10.0.6-2700073.x86_64.bundle.tar 252610560 SHA256 e29edcb0638f32bff81d372c9eaf54e663e3376cd1d89dbd4cfe4cab533398b2 SHA512 072de1da92cbef890707a6c4e3d5223fdc60e50a5166bb72b1ebc098d28c1a75b83ed65a29fdf1311e119e590560546e376909e1384f1eab05918500ec80ede4 WHIRLPOOL 3f4252abb6c87424b88fa34adc29e1927d1e6458beca65d9b290ff0c8ad4ccaf2945e2209670f8f8d4e84548d806c18fb23dc8380ec65452841e2c0bbcce89aa |
8646 |
-DIST VMware-Workstation-11.1.2-2780323.x86_64.bundle.tar 259133440 SHA256 085b50175b253647d8b2cb188286d3cf9265ed246cc0deb3b142b0438ef5725f SHA512 1c43ebaa4f8b228ec00f24a263eddcbbad5c0c940cd67040e6e2275c3a4aab6c9e2e5ee96996ca4f007ff786ece978c5789214ad92479720182fc3153d7edbde WHIRLPOOL 60e359a1dcfe1178652d8c6be705dda4f2f31b109bf01d5b5b16dc03e26a649e8f1af2ffa03d68e9108646c98e9cad41c10a9452ea14950883f9162e57ac20ca |
8647 |
-DIST VMware-Workstation-11.1.3-3206955.x86_64.bundle.tar 259594240 SHA256 a8d333d6f6677eb1d70b3572e5bf8f34ebb6cb77bdee4b94d6ea8033f579ed5d SHA512 8cb4781dc388bcaeb82f19d18e0bf2608d393f18c4e255a1c89c9090954bbee5e78ebde5cec6df06d9c037ed4f0595a7a801d76b3a8e2b960f6822bbf1094d1b WHIRLPOOL 5ba631502ff4dbf0e480e932e9a21cbb06d25d68b9ac412beb41680d3d0e678c630ba692e7e52cda2399574b28698ca5deb6a6c54b4614ab752159b6036a0094 |
8648 |
-DIST VMware-Workstation-12.1.0-3272444.x86_64.bundle.tar 170639360 SHA256 b15d2ae889465e6e080b84474ca49ebd6c21a0bce701a0f74d34b6e930869043 SHA512 bd64fe19ebb96b06cd34795dab46490cb0e1fe4822dbce4678185fb2cba3e921170feac7904771c14ece3450ddb0e86f5f4d03081551367b8c70afe77df3fab7 WHIRLPOOL 7d72352e272358c25fe49b05c4cdc5653bffef9e20cc2151a2f032fecb98eb7831a922d8dca0ce509d8944abeaff951e9ece8b11dac6782facc762e3b54c2aac |
8649 |
-DIST VMware-Workstation-9.0.3-1410761.i386.bundle.tar 264908800 SHA256 dfe9aaa75987793eac096c0fbdb364f94e354ab668213774ea3e90d5ddcecdc0 SHA512 5d0943400cb1fefca20f1a81d3989bf5cdda5e123d1a70b09ebc20a56498d36f597ed7a0730d2f6f752c3c4baad2c86d5ef7691e8d245147d944c6f7e4e708b0 WHIRLPOOL 14a950f2deb03c3b7a088d4fb50378c7109330d89903965c28ead0be1e2223dbce05a628b1ea859215d31a8978f497bd8f807652cf266667d67893eaf2d7372b |
8650 |
-DIST VMware-Workstation-9.0.3-1410761.x86_64.bundle.tar 232724480 SHA256 2612f8a523c9f23164d7557c105520bc6e010af82b3e6d4a3ada04d8ff03cbf0 SHA512 07923231e481550cb0348e40ef341c2d0682ac0daf6c8e0ada130c03113f43a37bf322e64fb9dc73511dea0fd2851f3cb4f5e755bbad4beba9e3cc4e69566070 WHIRLPOOL d979f2d9ef8888be89d5747c16e0db7ca45609cd9d77d84baf8485b4956f9e9f99bf46c33a2690b7b1fea851c0495ed0a06b36e3e69b51abfc11604d9a62fe4d |
8651 |
-DIST gentoo-01.tar.gz 1884 SHA256 e92c694865f1b29f4d7a39efa1dd87bc71dc5f922573f00a3d31ee8e27a8c335 SHA512 454ab93997781bd0a9accddb2ac7bb446f07ea7cddef5640369025c30e03592e14869e0f0f7b4457db2f1ada31c98051426016c86201afa8bc8e3aa4ccc2f875 WHIRLPOOL 9202583b617532ab2612b384da307218e7c93c2962f0d233e28bea066b07163c9bc51c0a599309f9d703c5575ebeb292d787716225624dc1c2fdff3c44fa3513 |
8652 |
-DIST vmware-systemd-gentoo-01.tgz 1884 SHA256 e92c694865f1b29f4d7a39efa1dd87bc71dc5f922573f00a3d31ee8e27a8c335 SHA512 454ab93997781bd0a9accddb2ac7bb446f07ea7cddef5640369025c30e03592e14869e0f0f7b4457db2f1ada31c98051426016c86201afa8bc8e3aa4ccc2f875 WHIRLPOOL 9202583b617532ab2612b384da307218e7c93c2962f0d233e28bea066b07163c9bc51c0a599309f9d703c5575ebeb292d787716225624dc1c2fdff3c44fa3513 |
8653 |
-DIST vmware-systemd-gentoo-02.tgz 14064 SHA256 7ab23cb41bb8fbeca43bfd3baee35928731177620ae374ebb3b19b827d1a3210 SHA512 3a382bfd5f1eb2b218d8012588ea55c1f22786dba35a1fc0fdfdb4e40b05e0e735ed09c6961684f6442e863c3ed72024ce01f19113bbd9ca47c32e3f43c55f42 WHIRLPOOL dd7ac934584894f4a0ae86a9122080c49a4d09924011bc12dc1530ac6b5ee11fac6d55d6e5b306bb24d749a509236d3e39870b4d6b2ff5de37f6e54707ff8bb6 |
8654 |
|
8655 |
diff --git a/app-emulation/vmware-workstation/files/configure-hostd.sh b/app-emulation/vmware-workstation/files/configure-hostd.sh |
8656 |
deleted file mode 100644 |
8657 |
index 480e9037d86..00000000000 |
8658 |
--- a/app-emulation/vmware-workstation/files/configure-hostd.sh |
8659 |
+++ /dev/null |
8660 |
@@ -1,20 +0,0 @@ |
8661 |
-#!/bin/bash |
8662 |
- |
8663 |
-action="$1" |
8664 |
- |
8665 |
-case $action in |
8666 |
- add) |
8667 |
- rc-update -q add vmware-workstation-server default |
8668 |
- rc-service vmware-workstation-server start |
8669 |
- ;; |
8670 |
- remove) |
8671 |
- rc-update -q del vmware-workstation-server default |
8672 |
- rc-service vmware-workstation-server stop |
8673 |
- ;; |
8674 |
- status) |
8675 |
- rc-service -q vmware-workstation-server status |
8676 |
- ;; |
8677 |
- *) |
8678 |
- exit 1 |
8679 |
- ;; |
8680 |
-esac |
8681 |
|
8682 |
diff --git a/app-emulation/vmware-workstation/files/vmware-10.0.rc b/app-emulation/vmware-workstation/files/vmware-10.0.rc |
8683 |
deleted file mode 100644 |
8684 |
index 396b6d70513..00000000000 |
8685 |
--- a/app-emulation/vmware-workstation/files/vmware-10.0.rc |
8686 |
+++ /dev/null |
8687 |
@@ -1,36 +0,0 @@ |
8688 |
-#!/sbin/openrc-run |
8689 |
-# Copyright 1999-2014 Gentoo Foundation |
8690 |
-# Distributed under the terms of the GNU General Public License v2 |
8691 |
- |
8692 |
-depend() { |
8693 |
- need localmount |
8694 |
- use net |
8695 |
-} |
8696 |
- |
8697 |
-start() { |
8698 |
- ebegin Starting VMware USB Arbitrator |
8699 |
- #start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator |
8700 |
- @@BINDIR@@/vmware-usbarbitrator |
8701 |
- eend $? |
8702 |
- ebegin Starting VMware services |
8703 |
- modprobe -v vmci || modprobe -v vmw_vmci |
8704 |
- eend $? |
8705 |
- modprobe -av vmmon vmci vsock vmblock vmnet |
8706 |
- eend $? |
8707 |
- @@BINDIR@@/vmware-networks --start |
8708 |
- eend $? |
8709 |
-} |
8710 |
- |
8711 |
-stop() { |
8712 |
- ebegin Stopping VMware USB Arbitrator |
8713 |
- #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator |
8714 |
- killall --wait @@BINDIR@@/vmware-usbarbitrator |
8715 |
- eend $? |
8716 |
- @@BINDIR@@/vmware-networks --stop |
8717 |
- eend $? |
8718 |
- ebegin Stopping VMware services |
8719 |
- modprobe -rv vsock vmmon vmblock vmnet |
8720 |
- eend $? |
8721 |
- modprobe -rv vmci || modprobe -rv vmw_vmci |
8722 |
- eend $? |
8723 |
-} |
8724 |
|
8725 |
diff --git a/app-emulation/vmware-workstation/files/vmware-11.1.rc b/app-emulation/vmware-workstation/files/vmware-11.1.rc |
8726 |
deleted file mode 100644 |
8727 |
index 2ba649336fd..00000000000 |
8728 |
--- a/app-emulation/vmware-workstation/files/vmware-11.1.rc |
8729 |
+++ /dev/null |
8730 |
@@ -1,43 +0,0 @@ |
8731 |
-#!/sbin/openrc-run |
8732 |
-# Copyright 1999-2014 Gentoo Foundation |
8733 |
-# Distributed under the terms of the GNU General Public License v2 |
8734 |
- |
8735 |
-depend() { |
8736 |
- need localmount |
8737 |
- use net |
8738 |
-} |
8739 |
- |
8740 |
-start() { |
8741 |
- ebegin Starting VMware USB Arbitrator |
8742 |
- #start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator |
8743 |
- @@BINDIR@@/vmware-usbarbitrator |
8744 |
- eend $? |
8745 |
- ebegin Starting VMware services |
8746 |
- |
8747 |
- # quiet for vmci because it may not be there |
8748 |
- modprobe -vq vmci || modprobe -v vmw_vmci |
8749 |
- eend $? |
8750 |
- |
8751 |
- # vmci or vmw_vmci was loaded by the previous modprobe |
8752 |
- # no need to do it here |
8753 |
- modprobe -av vmmon vsock vmblock vmnet |
8754 |
- eend $? |
8755 |
- @@BINDIR@@/vmware-networks --start |
8756 |
- eend $? |
8757 |
-} |
8758 |
- |
8759 |
-stop() { |
8760 |
- ebegin Stopping VMware USB Arbitrator |
8761 |
- #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator |
8762 |
- killall --wait @@BINDIR@@/vmware-usbarbitrator |
8763 |
- eend $? |
8764 |
- @@BINDIR@@/vmware-networks --stop |
8765 |
- eend $? |
8766 |
- ebegin Stopping VMware services |
8767 |
- modprobe -rv vsock vmmon vmblock vmnet |
8768 |
- eend $? |
8769 |
- |
8770 |
- # quiet for vmci because it may not be there |
8771 |
- modprobe -rvq vmci || modprobe -rv vmw_vmci |
8772 |
- eend $? |
8773 |
-} |
8774 |
|
8775 |
diff --git a/app-emulation/vmware-workstation/files/vmware-12.1.rc b/app-emulation/vmware-workstation/files/vmware-12.1.rc |
8776 |
deleted file mode 100644 |
8777 |
index 2ba649336fd..00000000000 |
8778 |
--- a/app-emulation/vmware-workstation/files/vmware-12.1.rc |
8779 |
+++ /dev/null |
8780 |
@@ -1,43 +0,0 @@ |
8781 |
-#!/sbin/openrc-run |
8782 |
-# Copyright 1999-2014 Gentoo Foundation |
8783 |
-# Distributed under the terms of the GNU General Public License v2 |
8784 |
- |
8785 |
-depend() { |
8786 |
- need localmount |
8787 |
- use net |
8788 |
-} |
8789 |
- |
8790 |
-start() { |
8791 |
- ebegin Starting VMware USB Arbitrator |
8792 |
- #start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator |
8793 |
- @@BINDIR@@/vmware-usbarbitrator |
8794 |
- eend $? |
8795 |
- ebegin Starting VMware services |
8796 |
- |
8797 |
- # quiet for vmci because it may not be there |
8798 |
- modprobe -vq vmci || modprobe -v vmw_vmci |
8799 |
- eend $? |
8800 |
- |
8801 |
- # vmci or vmw_vmci was loaded by the previous modprobe |
8802 |
- # no need to do it here |
8803 |
- modprobe -av vmmon vsock vmblock vmnet |
8804 |
- eend $? |
8805 |
- @@BINDIR@@/vmware-networks --start |
8806 |
- eend $? |
8807 |
-} |
8808 |
- |
8809 |
-stop() { |
8810 |
- ebegin Stopping VMware USB Arbitrator |
8811 |
- #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator |
8812 |
- killall --wait @@BINDIR@@/vmware-usbarbitrator |
8813 |
- eend $? |
8814 |
- @@BINDIR@@/vmware-networks --stop |
8815 |
- eend $? |
8816 |
- ebegin Stopping VMware services |
8817 |
- modprobe -rv vsock vmmon vmblock vmnet |
8818 |
- eend $? |
8819 |
- |
8820 |
- # quiet for vmci because it may not be there |
8821 |
- modprobe -rvq vmci || modprobe -rv vmw_vmci |
8822 |
- eend $? |
8823 |
-} |
8824 |
|
8825 |
diff --git a/app-emulation/vmware-workstation/files/vmware-9.0.rc b/app-emulation/vmware-workstation/files/vmware-9.0.rc |
8826 |
deleted file mode 100644 |
8827 |
index 396b6d70513..00000000000 |
8828 |
--- a/app-emulation/vmware-workstation/files/vmware-9.0.rc |
8829 |
+++ /dev/null |
8830 |
@@ -1,36 +0,0 @@ |
8831 |
-#!/sbin/openrc-run |
8832 |
-# Copyright 1999-2014 Gentoo Foundation |
8833 |
-# Distributed under the terms of the GNU General Public License v2 |
8834 |
- |
8835 |
-depend() { |
8836 |
- need localmount |
8837 |
- use net |
8838 |
-} |
8839 |
- |
8840 |
-start() { |
8841 |
- ebegin Starting VMware USB Arbitrator |
8842 |
- #start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator |
8843 |
- @@BINDIR@@/vmware-usbarbitrator |
8844 |
- eend $? |
8845 |
- ebegin Starting VMware services |
8846 |
- modprobe -v vmci || modprobe -v vmw_vmci |
8847 |
- eend $? |
8848 |
- modprobe -av vmmon vmci vsock vmblock vmnet |
8849 |
- eend $? |
8850 |
- @@BINDIR@@/vmware-networks --start |
8851 |
- eend $? |
8852 |
-} |
8853 |
- |
8854 |
-stop() { |
8855 |
- ebegin Stopping VMware USB Arbitrator |
8856 |
- #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator |
8857 |
- killall --wait @@BINDIR@@/vmware-usbarbitrator |
8858 |
- eend $? |
8859 |
- @@BINDIR@@/vmware-networks --stop |
8860 |
- eend $? |
8861 |
- ebegin Stopping VMware services |
8862 |
- modprobe -rv vsock vmmon vmblock vmnet |
8863 |
- eend $? |
8864 |
- modprobe -rv vmci || modprobe -rv vmw_vmci |
8865 |
- eend $? |
8866 |
-} |
8867 |
|
8868 |
diff --git a/app-emulation/vmware-workstation/files/vmware-server-10.0.rc b/app-emulation/vmware-workstation/files/vmware-server-10.0.rc |
8869 |
deleted file mode 100644 |
8870 |
index a36d41e9841..00000000000 |
8871 |
--- a/app-emulation/vmware-workstation/files/vmware-server-10.0.rc |
8872 |
+++ /dev/null |
8873 |
@@ -1,54 +0,0 @@ |
8874 |
-#!/sbin/openrc-run |
8875 |
-# Copyright 1999-2013 Gentoo Foundation |
8876 |
-# Distributed under the terms of the GNU General Public License v2 |
8877 |
- |
8878 |
-depend() { |
8879 |
- need localmount vmware |
8880 |
- use net |
8881 |
-} |
8882 |
- |
8883 |
-checkconfig() { |
8884 |
- # Check if certificates exist. If not, we need to generate them, ala sshd. |
8885 |
- if [ ! -e @@ETCDIR@@/ssl/rui.key -o ! -e @@ETCDIR@@/ssl/rui.crt ]; then |
8886 |
- mkdir -p @@ETCDIR@@/ssl |
8887 |
- openssl req -x509 -days 365 -newkey rsa:2048 -keyout @@ETCDIR@@/ssl/rui.key -out @@ETCDIR@@/ssl/rui.crt -config @@ETCDIR@@/ssl/hostd.ssl.config |
8888 |
- chmod -R 600 @@ETCDIR@@/ssl |
8889 |
- fi |
8890 |
-} |
8891 |
- |
8892 |
-start() { |
8893 |
- checkconfig |
8894 |
- |
8895 |
- ebegin Starting VMware Authentication Daemon |
8896 |
- start-stop-daemon --start \ |
8897 |
- --exec @@PREFIX@@/sbin/vmware-authdlauncher |
8898 |
- eend $? |
8899 |
- ebegin Starting VMware Workstation Server |
8900 |
- start-stop-daemon --start \ |
8901 |
- --pidfile /var/run/vmware/vmware-hostd.PID \ |
8902 |
- --exec @@BINDIR@@/vmware-hostd \ |
8903 |
- -- -a -d @@ETCDIR@@/hostd/config.xml |
8904 |
- |
8905 |
- eend $? |
8906 |
-} |
8907 |
- |
8908 |
-stop() { |
8909 |
- ebegin "Shutdown VMs in the AutoStart Sequence" |
8910 |
- local HOHO_ADMIN="$(@@BINDIR@@/vmware-wssc-adminTool "@@ETCDIR@@/hostd/authorization.xml" 2>/dev/null)" |
8911 |
- |
8912 |
- if [ "x" != "x${HOHO_ADMIN}" ]; then |
8913 |
- @@BINDIR@@/vmware-vim-cmd -U "${HOHO_ADMIN}" hostsvc/autostartmanager/autostop |
8914 |
- fi |
8915 |
- eend $? |
8916 |
- |
8917 |
- ebegin Stopping VMware Workstation Server |
8918 |
- start-stop-daemon --stop \ |
8919 |
- --pidfile /var/run/vmware/vmware-hostd.PID \ |
8920 |
- --exec @@BINDIR@@/vmware-hostd |
8921 |
- eend $? |
8922 |
- ebegin Stopping VMware Authentication Daemon |
8923 |
- #start-stop-daemon --stop \ |
8924 |
- # --exec @@PREFIX@@/sbin/vmware-authdlauncher |
8925 |
- killall @@PREFIX@@/sbin/vmware-authdlauncher |
8926 |
- eend $? |
8927 |
-} |
8928 |
|
8929 |
diff --git a/app-emulation/vmware-workstation/files/vmware-server-11.1.rc b/app-emulation/vmware-workstation/files/vmware-server-11.1.rc |
8930 |
deleted file mode 100644 |
8931 |
index a36d41e9841..00000000000 |
8932 |
--- a/app-emulation/vmware-workstation/files/vmware-server-11.1.rc |
8933 |
+++ /dev/null |
8934 |
@@ -1,54 +0,0 @@ |
8935 |
-#!/sbin/openrc-run |
8936 |
-# Copyright 1999-2013 Gentoo Foundation |
8937 |
-# Distributed under the terms of the GNU General Public License v2 |
8938 |
- |
8939 |
-depend() { |
8940 |
- need localmount vmware |
8941 |
- use net |
8942 |
-} |
8943 |
- |
8944 |
-checkconfig() { |
8945 |
- # Check if certificates exist. If not, we need to generate them, ala sshd. |
8946 |
- if [ ! -e @@ETCDIR@@/ssl/rui.key -o ! -e @@ETCDIR@@/ssl/rui.crt ]; then |
8947 |
- mkdir -p @@ETCDIR@@/ssl |
8948 |
- openssl req -x509 -days 365 -newkey rsa:2048 -keyout @@ETCDIR@@/ssl/rui.key -out @@ETCDIR@@/ssl/rui.crt -config @@ETCDIR@@/ssl/hostd.ssl.config |
8949 |
- chmod -R 600 @@ETCDIR@@/ssl |
8950 |
- fi |
8951 |
-} |
8952 |
- |
8953 |
-start() { |
8954 |
- checkconfig |
8955 |
- |
8956 |
- ebegin Starting VMware Authentication Daemon |
8957 |
- start-stop-daemon --start \ |
8958 |
- --exec @@PREFIX@@/sbin/vmware-authdlauncher |
8959 |
- eend $? |
8960 |
- ebegin Starting VMware Workstation Server |
8961 |
- start-stop-daemon --start \ |
8962 |
- --pidfile /var/run/vmware/vmware-hostd.PID \ |
8963 |
- --exec @@BINDIR@@/vmware-hostd \ |
8964 |
- -- -a -d @@ETCDIR@@/hostd/config.xml |
8965 |
- |
8966 |
- eend $? |
8967 |
-} |
8968 |
- |
8969 |
-stop() { |
8970 |
- ebegin "Shutdown VMs in the AutoStart Sequence" |
8971 |
- local HOHO_ADMIN="$(@@BINDIR@@/vmware-wssc-adminTool "@@ETCDIR@@/hostd/authorization.xml" 2>/dev/null)" |
8972 |
- |
8973 |
- if [ "x" != "x${HOHO_ADMIN}" ]; then |
8974 |
- @@BINDIR@@/vmware-vim-cmd -U "${HOHO_ADMIN}" hostsvc/autostartmanager/autostop |
8975 |
- fi |
8976 |
- eend $? |
8977 |
- |
8978 |
- ebegin Stopping VMware Workstation Server |
8979 |
- start-stop-daemon --stop \ |
8980 |
- --pidfile /var/run/vmware/vmware-hostd.PID \ |
8981 |
- --exec @@BINDIR@@/vmware-hostd |
8982 |
- eend $? |
8983 |
- ebegin Stopping VMware Authentication Daemon |
8984 |
- #start-stop-daemon --stop \ |
8985 |
- # --exec @@PREFIX@@/sbin/vmware-authdlauncher |
8986 |
- killall @@PREFIX@@/sbin/vmware-authdlauncher |
8987 |
- eend $? |
8988 |
-} |
8989 |
|
8990 |
diff --git a/app-emulation/vmware-workstation/files/vmware-server-12.1.rc b/app-emulation/vmware-workstation/files/vmware-server-12.1.rc |
8991 |
deleted file mode 100644 |
8992 |
index a36d41e9841..00000000000 |
8993 |
--- a/app-emulation/vmware-workstation/files/vmware-server-12.1.rc |
8994 |
+++ /dev/null |
8995 |
@@ -1,54 +0,0 @@ |
8996 |
-#!/sbin/openrc-run |
8997 |
-# Copyright 1999-2013 Gentoo Foundation |
8998 |
-# Distributed under the terms of the GNU General Public License v2 |
8999 |
- |
9000 |
-depend() { |
9001 |
- need localmount vmware |
9002 |
- use net |
9003 |
-} |
9004 |
- |
9005 |
-checkconfig() { |
9006 |
- # Check if certificates exist. If not, we need to generate them, ala sshd. |
9007 |
- if [ ! -e @@ETCDIR@@/ssl/rui.key -o ! -e @@ETCDIR@@/ssl/rui.crt ]; then |
9008 |
- mkdir -p @@ETCDIR@@/ssl |
9009 |
- openssl req -x509 -days 365 -newkey rsa:2048 -keyout @@ETCDIR@@/ssl/rui.key -out @@ETCDIR@@/ssl/rui.crt -config @@ETCDIR@@/ssl/hostd.ssl.config |
9010 |
- chmod -R 600 @@ETCDIR@@/ssl |
9011 |
- fi |
9012 |
-} |
9013 |
- |
9014 |
-start() { |
9015 |
- checkconfig |
9016 |
- |
9017 |
- ebegin Starting VMware Authentication Daemon |
9018 |
- start-stop-daemon --start \ |
9019 |
- --exec @@PREFIX@@/sbin/vmware-authdlauncher |
9020 |
- eend $? |
9021 |
- ebegin Starting VMware Workstation Server |
9022 |
- start-stop-daemon --start \ |
9023 |
- --pidfile /var/run/vmware/vmware-hostd.PID \ |
9024 |
- --exec @@BINDIR@@/vmware-hostd \ |
9025 |
- -- -a -d @@ETCDIR@@/hostd/config.xml |
9026 |
- |
9027 |
- eend $? |
9028 |
-} |
9029 |
- |
9030 |
-stop() { |
9031 |
- ebegin "Shutdown VMs in the AutoStart Sequence" |
9032 |
- local HOHO_ADMIN="$(@@BINDIR@@/vmware-wssc-adminTool "@@ETCDIR@@/hostd/authorization.xml" 2>/dev/null)" |
9033 |
- |
9034 |
- if [ "x" != "x${HOHO_ADMIN}" ]; then |
9035 |
- @@BINDIR@@/vmware-vim-cmd -U "${HOHO_ADMIN}" hostsvc/autostartmanager/autostop |
9036 |
- fi |
9037 |
- eend $? |
9038 |
- |
9039 |
- ebegin Stopping VMware Workstation Server |
9040 |
- start-stop-daemon --stop \ |
9041 |
- --pidfile /var/run/vmware/vmware-hostd.PID \ |
9042 |
- --exec @@BINDIR@@/vmware-hostd |
9043 |
- eend $? |
9044 |
- ebegin Stopping VMware Authentication Daemon |
9045 |
- #start-stop-daemon --stop \ |
9046 |
- # --exec @@PREFIX@@/sbin/vmware-authdlauncher |
9047 |
- killall @@PREFIX@@/sbin/vmware-authdlauncher |
9048 |
- eend $? |
9049 |
-} |
9050 |
|
9051 |
diff --git a/app-emulation/vmware-workstation/files/vmware-server-9.0.rc b/app-emulation/vmware-workstation/files/vmware-server-9.0.rc |
9052 |
deleted file mode 100644 |
9053 |
index 28a364f19a0..00000000000 |
9054 |
--- a/app-emulation/vmware-workstation/files/vmware-server-9.0.rc |
9055 |
+++ /dev/null |
9056 |
@@ -1,54 +0,0 @@ |
9057 |
-#!/sbin/openrc-run |
9058 |
-# Copyright 1999-2012 Gentoo Foundation |
9059 |
-# Distributed under the terms of the GNU General Public License v2 |
9060 |
- |
9061 |
-depend() { |
9062 |
- need localmount vmware |
9063 |
- use net |
9064 |
-} |
9065 |
- |
9066 |
-checkconfig() { |
9067 |
- # Check if certificates exist. If not, we need to generate them, ala sshd. |
9068 |
- if [ ! -e @@ETCDIR@@/ssl/rui.key -o ! -e @@ETCDIR@@/ssl/rui.crt ]; then |
9069 |
- mkdir -p @@ETCDIR@@/ssl |
9070 |
- openssl req -x509 -days 365 -newkey rsa:2048 -keyout @@ETCDIR@@/ssl/rui.key -out @@ETCDIR@@/ssl/rui.crt -config @@ETCDIR@@/ssl/hostd.ssl.config |
9071 |
- chmod -R 600 @@ETCDIR@@/ssl |
9072 |
- fi |
9073 |
-} |
9074 |
- |
9075 |
-start() { |
9076 |
- checkconfig |
9077 |
- |
9078 |
- ebegin Starting VMware Authentication Daemon |
9079 |
- start-stop-daemon --start \ |
9080 |
- --exec @@PREFIX@@/sbin/vmware-authdlauncher |
9081 |
- eend $? |
9082 |
- ebegin Starting VMware Workstation Server |
9083 |
- start-stop-daemon --start \ |
9084 |
- --pidfile /var/run/vmware/vmware-hostd.PID \ |
9085 |
- --exec @@BINDIR@@/vmware-hostd \ |
9086 |
- -- -a -d @@ETCDIR@@/hostd/config.xml |
9087 |
- |
9088 |
- eend $? |
9089 |
-} |
9090 |
- |
9091 |
-stop() { |
9092 |
- ebegin "Shutdown VMs in the AutoStart Sequence" |
9093 |
- local HOHO_ADMIN="$(@@BINDIR@@/vmware-wssc-adminTool "@@ETCDIR@@/hostd/authorization.xml" 2>/dev/null)" |
9094 |
- |
9095 |
- if [ "x" != "x${HOHO_ADMIN}" ]; then |
9096 |
- @@BINDIR@@/vmware-vim-cmd -U "${HOHO_ADMIN}" hostsvc/autostartmanager/autostop |
9097 |
- fi |
9098 |
- eend $? |
9099 |
- |
9100 |
- ebegin Stopping VMware Workstation Server |
9101 |
- start-stop-daemon --stop \ |
9102 |
- --pidfile /var/run/vmware/vmware-hostd.PID \ |
9103 |
- --exec @@BINDIR@@/vmware-hostd |
9104 |
- eend $? |
9105 |
- ebegin Stopping VMware Authentication Daemon |
9106 |
- #start-stop-daemon --stop \ |
9107 |
- # --exec @@PREFIX@@/sbin/vmware-authdlauncher |
9108 |
- killall @@PREFIX@@/sbin/vmware-authdlauncher |
9109 |
- eend $? |
9110 |
-} |
9111 |
|
9112 |
diff --git a/app-emulation/vmware-workstation/metadata.xml b/app-emulation/vmware-workstation/metadata.xml |
9113 |
deleted file mode 100644 |
9114 |
index 98450715425..00000000000 |
9115 |
--- a/app-emulation/vmware-workstation/metadata.xml |
9116 |
+++ /dev/null |
9117 |
@@ -1,25 +0,0 @@ |
9118 |
-<?xml version="1.0" encoding="UTF-8"?> |
9119 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
9120 |
-<pkgmetadata> |
9121 |
- <maintainer type="project"> |
9122 |
- <email>vmware@g.o</email> |
9123 |
- <name>Gentoo VMware Project</name> |
9124 |
- </maintainer> |
9125 |
- <longdescription> |
9126 |
- VMWare Workstation is a virtual machine which can be used to install |
9127 |
- other operating systems in a virtual environment to run on top of Gentoo. |
9128 |
- </longdescription> |
9129 |
- <use> |
9130 |
- <flag name="bundled-libs">Use precompiled bundled libraries instead of the system installation</flag> |
9131 |
- <flag name="ovftool">Install OVF tool.</flag> |
9132 |
- <flag name="server">Install VMware Workstation Server component.</flag> |
9133 |
- <flag name="vix">Install VIX. The VIX API allows you to write programs and scripts |
9134 |
- that automate virtual machine operations, and run programs or manipulate |
9135 |
- files within guest operating systems. |
9136 |
- </flag> |
9137 |
- <flag name="vmware-tools">Install VMware Tools images</flag> |
9138 |
- </use> |
9139 |
- <upstream> |
9140 |
- <remote-id type="github">akhuettel/systemd-vmware</remote-id> |
9141 |
- </upstream> |
9142 |
-</pkgmetadata> |
9143 |
|
9144 |
diff --git a/app-emulation/vmware-workstation/vmware-workstation-10.0.6.2700073-r1.ebuild b/app-emulation/vmware-workstation/vmware-workstation-10.0.6.2700073-r1.ebuild |
9145 |
deleted file mode 100644 |
9146 |
index 905fd08b648..00000000000 |
9147 |
--- a/app-emulation/vmware-workstation/vmware-workstation-10.0.6.2700073-r1.ebuild |
9148 |
+++ /dev/null |
9149 |
@@ -1,498 +0,0 @@ |
9150 |
-# Copyright 1999-2017 Gentoo Foundation |
9151 |
-# Distributed under the terms of the GNU General Public License v2 |
9152 |
- |
9153 |
-EAPI=5 |
9154 |
- |
9155 |
-inherit eutils versionator fdo-mime systemd gnome2-utils pam vmware-bundle |
9156 |
- |
9157 |
-MY_PN="VMware-Workstation" |
9158 |
-MY_PV=$(get_version_component_range 1-3) |
9159 |
-PV_MINOR=$(get_version_component_range 3) |
9160 |
-PV_BUILD=$(get_version_component_range 4) |
9161 |
-MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}" |
9162 |
- |
9163 |
-SYSTEMD_UNITS_TAG="gentoo-01" |
9164 |
- |
9165 |
-DESCRIPTION="Emulate a complete PC without the performance overhead of most emulators" |
9166 |
-HOMEPAGE="http://www.vmware.com/products/workstation/" |
9167 |
-BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${MY_PV}/${PV_BUILD}/linux/core/" |
9168 |
-SRC_URI=" |
9169 |
- x86? ( ${BASE_URI}${MY_P}.i386.bundle.tar ) |
9170 |
- amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar ) |
9171 |
- https://github.com/akhuettel/systemd-vmware/archive/${SYSTEMD_UNITS_TAG}.tar.gz |
9172 |
- " |
9173 |
-LICENSE="vmware GPL-2" |
9174 |
-SLOT="0" |
9175 |
-KEYWORDS="-* ~amd64 ~x86" |
9176 |
-IUSE="cups doc ovftool server vix vmware-tools" |
9177 |
-RESTRICT="mirror strip" |
9178 |
- |
9179 |
-# vmware-workstation should not use virtual/libc as this is a |
9180 |
-# precompiled binary package thats linked to glibc. |
9181 |
-RDEPEND="dev-cpp/cairomm |
9182 |
- dev-cpp/glibmm:2 |
9183 |
- dev-cpp/gtkmm:2.4 |
9184 |
- dev-cpp/libgnomecanvasmm |
9185 |
- dev-cpp/pangomm |
9186 |
- dev-libs/atk |
9187 |
- dev-libs/glib:2 |
9188 |
- dev-libs/icu |
9189 |
- dev-libs/expat |
9190 |
- dev-libs/libaio |
9191 |
- || ( dev-libs/libgcrypt:0/11 dev-libs/libgcrypt:11/11 ) |
9192 |
- dev-libs/libsigc++ |
9193 |
- dev-libs/libxml2 |
9194 |
- dev-libs/openssl:0.9.8 |
9195 |
- dev-libs/xmlrpc-c |
9196 |
- gnome-base/libgnomecanvas |
9197 |
- gnome-base/libgtop:2 |
9198 |
- gnome-base/librsvg:2 |
9199 |
- gnome-base/orbit |
9200 |
- media-libs/fontconfig |
9201 |
- media-libs/freetype |
9202 |
- media-libs/libart_lgpl |
9203 |
- media-libs/libpng:1.2 |
9204 |
- media-libs/libpng |
9205 |
- media-libs/tiff:3 |
9206 |
- net-misc/curl |
9207 |
- cups? ( net-print/cups ) |
9208 |
- sys-devel/gcc |
9209 |
- sys-fs/fuse |
9210 |
- sys-libs/glibc |
9211 |
- sys-libs/zlib |
9212 |
- x11-libs/cairo |
9213 |
- x11-libs/gtk+:2 |
9214 |
- x11-libs/libgksu |
9215 |
- x11-libs/libICE |
9216 |
- x11-libs/libSM |
9217 |
- x11-libs/libX11 |
9218 |
- x11-libs/libXau |
9219 |
- x11-libs/libxcb |
9220 |
- x11-libs/libXcomposite |
9221 |
- x11-libs/libXcursor |
9222 |
- x11-libs/libXdamage |
9223 |
- x11-libs/libXdmcp |
9224 |
- x11-libs/libXext |
9225 |
- x11-libs/libXfixes |
9226 |
- x11-libs/libXft |
9227 |
- x11-libs/libXi |
9228 |
- x11-libs/libXinerama |
9229 |
- x11-libs/libXrandr |
9230 |
- x11-libs/libXrender |
9231 |
- x11-libs/libXtst |
9232 |
- x11-libs/pango |
9233 |
- x11-libs/pangox-compat |
9234 |
- x11-libs/startup-notification |
9235 |
- x11-themes/hicolor-icon-theme |
9236 |
- !app-emulation/vmware-player" |
9237 |
-PDEPEND="~app-emulation/vmware-modules-279.${PV_MINOR} |
9238 |
- vmware-tools? ( app-emulation/vmware-tools )" |
9239 |
- |
9240 |
-S=${WORKDIR} |
9241 |
-VM_INSTALL_DIR="/opt/vmware" |
9242 |
-VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs" |
9243 |
-VM_HOSTD_USER="root" |
9244 |
- |
9245 |
-src_unpack() { |
9246 |
- default |
9247 |
- local bundle |
9248 |
- use amd64 && bundle=${MY_P}.x86_64.bundle |
9249 |
- use x86 && bundle=${MY_P}.i386.bundle |
9250 |
- local component; for component in \ |
9251 |
- vmware-vmx \ |
9252 |
- vmware-player-app \ |
9253 |
- vmware-player-setup \ |
9254 |
- vmware-workstation \ |
9255 |
- vmware-network-editor \ |
9256 |
- vmware-network-editor-ui \ |
9257 |
- vmware-usbarbitrator \ |
9258 |
- vmware-vprobe |
9259 |
- do |
9260 |
- vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}" |
9261 |
- done |
9262 |
- |
9263 |
- if use server; then |
9264 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-workstation-server #"${S}" |
9265 |
- fi |
9266 |
- |
9267 |
- if use vix; then |
9268 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-core vmware-vix |
9269 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-lib-Workstation1000andvSphere550 vmware-vix |
9270 |
- fi |
9271 |
- if use ovftool; then |
9272 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool |
9273 |
- fi |
9274 |
-} |
9275 |
- |
9276 |
-src_prepare() { |
9277 |
- rm -f bin/vmware-modconfig |
9278 |
- rm -rf lib/modules/binary |
9279 |
- # Bug 459566 |
9280 |
- mv lib/libvmware-netcfg.so lib/lib/ |
9281 |
- |
9282 |
- if use server; then |
9283 |
- rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh} |
9284 |
- fi |
9285 |
- |
9286 |
- find "${S}" -name '*.a' -delete |
9287 |
- |
9288 |
-# clean_bundled_libs |
9289 |
-} |
9290 |
- |
9291 |
-clean_bundled_libs() { |
9292 |
- ebegin 'Removing superfluous libraries' |
9293 |
- cd lib/lib || die |
9294 |
- ldconfig -p | \ |
9295 |
- sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | \ |
9296 |
- fgrep -vx 'libcrypto.so.0.9.8 |
9297 |
-libssl.so.0.9.8i |
9298 |
-libgcr.so.0 |
9299 |
-libglib-2.0.so.0' | |
9300 |
- xargs -d'\n' -r rm -rf |
9301 |
- eend |
9302 |
-} |
9303 |
- |
9304 |
-src_install() { |
9305 |
- local major_minor=$(get_version_component_range 1-2 "${PV}") |
9306 |
- local major_minor_revision=$(get_version_component_range 1-3 "${PV}") |
9307 |
- local build=$(get_version_component_range 4 "${PV}") |
9308 |
- |
9309 |
- # revdep-rebuild entry |
9310 |
- insinto /etc/revdep-rebuild |
9311 |
- echo "SEARCH_DIRS_MASK=\"${VM_INSTALL_DIR}\"" >> ${T}/10${PN} |
9312 |
- doins "${T}"/10${PN} |
9313 |
- |
9314 |
- # install the binaries |
9315 |
- into "${VM_INSTALL_DIR}" |
9316 |
- dobin bin/* |
9317 |
- |
9318 |
- # install the libraries |
9319 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
9320 |
- doins -r lib/* |
9321 |
- |
9322 |
- # Bug 432918 |
9323 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8 \ |
9324 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libcrypto.so.0.9.8 |
9325 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8 \ |
9326 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libssl.so.0.9.8 |
9327 |
- |
9328 |
- # install the ancillaries |
9329 |
- insinto /usr |
9330 |
- doins -r share |
9331 |
- |
9332 |
- if use cups; then |
9333 |
- exeinto $(cups-config --serverbin)/filter |
9334 |
- doexe extras/thnucups |
9335 |
- |
9336 |
- insinto /etc/cups |
9337 |
- doins -r etc/cups/* |
9338 |
- fi |
9339 |
- |
9340 |
- insinto /etc/xdg |
9341 |
- doins -r etc/xdg/* |
9342 |
- |
9343 |
- # install documentation |
9344 |
- doman man/man1/vmware.1.gz |
9345 |
- |
9346 |
- if use doc; then |
9347 |
- dodoc doc/* |
9348 |
- fi |
9349 |
- |
9350 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/setup |
9351 |
- doins vmware-config |
9352 |
- |
9353 |
- # install vmware workstation server |
9354 |
- if use server; then |
9355 |
- dosbin sbin/* |
9356 |
- |
9357 |
- cd "${S}"/vmware-workstation-server |
9358 |
- |
9359 |
- # install binaries |
9360 |
- into "${VM_INSTALL_DIR}"/lib/vmware |
9361 |
- dobin bin/* |
9362 |
- |
9363 |
- dobin "${FILESDIR}"/configure-hostd.sh |
9364 |
- |
9365 |
- dobin "${FILESDIR}"/configure-hostd.sh |
9366 |
- |
9367 |
- # install the libraries |
9368 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/lib |
9369 |
- doins -r lib/* |
9370 |
- |
9371 |
- into "${VM_INSTALL_DIR}" |
9372 |
- for tool in vmware-{hostd,wssc-adminTool} ; do |
9373 |
- cat > "${T}/${tool}" <<-EOF |
9374 |
- #!/usr/bin/env bash |
9375 |
- set -e |
9376 |
- |
9377 |
- . /etc/vmware/bootstrap |
9378 |
- |
9379 |
- exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\ |
9380 |
- "${VM_INSTALL_DIR}/lib/vmware/lib" \\ |
9381 |
- "${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\ |
9382 |
- "${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@" |
9383 |
- EOF |
9384 |
- dobin "${T}/${tool}" |
9385 |
- done |
9386 |
- |
9387 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
9388 |
- doins -r hostd |
9389 |
- |
9390 |
- # create the configuration |
9391 |
- insinto /etc/vmware/hostd |
9392 |
- doins -r config/etc/vmware/hostd/* |
9393 |
- doins -r etc/vmware/hostd/* |
9394 |
- |
9395 |
- insinto /etc/vmware/ssl |
9396 |
- doins etc/vmware/ssl/* |
9397 |
- |
9398 |
- # pam |
9399 |
- pamd_mimic_system vmware-authd auth account |
9400 |
- |
9401 |
- # create directory for shared virtual machines. |
9402 |
- keepdir "${VM_DATA_STORE_DIR}" |
9403 |
- keepdir /var/log/vmware |
9404 |
- fi |
9405 |
- |
9406 |
- # install vmware-vix |
9407 |
- if use vix; then |
9408 |
- cd "${S}"/vmware-vix |
9409 |
- |
9410 |
- # install the binary |
9411 |
- into "${VM_INSTALL_DIR}" |
9412 |
- dobin bin/* |
9413 |
- |
9414 |
- # install the libraries |
9415 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-vix |
9416 |
- doins -r lib/* |
9417 |
- |
9418 |
- dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so |
9419 |
- |
9420 |
- # install headers |
9421 |
- insinto /usr/include/vmware-vix |
9422 |
- doins include/* |
9423 |
- |
9424 |
- if use doc; then |
9425 |
- dohtml -r doc/* |
9426 |
- fi |
9427 |
- fi |
9428 |
- |
9429 |
- # install ovftool |
9430 |
- if use ovftool; then |
9431 |
- cd "${S}" |
9432 |
- |
9433 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool |
9434 |
- doins -r vmware-ovftool/* |
9435 |
- |
9436 |
- chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin} |
9437 |
- dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool |
9438 |
- fi |
9439 |
- |
9440 |
- # create symlinks for the various tools |
9441 |
- local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} licenseTool vmamqpd \ |
9442 |
- vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper,zenity} ; do |
9443 |
- dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" |
9444 |
- done |
9445 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer |
9446 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware |
9447 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu |
9448 |
- |
9449 |
- # fix permissions |
9450 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks} |
9451 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper} |
9452 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/setup/vmware-config |
9453 |
- fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount |
9454 |
- fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats} |
9455 |
- if use server; then |
9456 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-{hostd,wssc-adminTool} |
9457 |
- fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd |
9458 |
- fperms 1777 "${VM_DATA_STORE_DIR}" |
9459 |
- fi |
9460 |
- if use vix; then |
9461 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config |
9462 |
- fi |
9463 |
- |
9464 |
- # create the environment |
9465 |
- local envd="${T}/90vmware" |
9466 |
- cat > "${envd}" <<-EOF |
9467 |
- PATH='${VM_INSTALL_DIR}/bin' |
9468 |
- ROOTPATH='${VM_INSTALL_DIR}/bin' |
9469 |
- EOF |
9470 |
- doenvd "${envd}" |
9471 |
- |
9472 |
- # create the configuration |
9473 |
- dodir /etc/vmware |
9474 |
- |
9475 |
- cat > "${D}"/etc/vmware/bootstrap <<-EOF |
9476 |
- BINDIR='${VM_INSTALL_DIR}/bin' |
9477 |
- LIBDIR='${VM_INSTALL_DIR}/lib' |
9478 |
- EOF |
9479 |
- |
9480 |
- cat > "${D}"/etc/vmware/config <<-EOF |
9481 |
- bindir = "${VM_INSTALL_DIR}/bin" |
9482 |
- libdir = "${VM_INSTALL_DIR}/lib/vmware" |
9483 |
- initscriptdir = "/etc/init.d" |
9484 |
- authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd" |
9485 |
- gksu.rootMethod = "su" |
9486 |
- VMCI_CONFED = "yes" |
9487 |
- VMBLOCK_CONFED = "yes" |
9488 |
- VSOCK_CONFED = "yes" |
9489 |
- NETWORKING = "yes" |
9490 |
- player.product.version = "${major_minor_revision}" |
9491 |
- product.version = "${major_minor_revision}" |
9492 |
- product.buildNumber = "${build}" |
9493 |
- product.name = "VMware Workstation" |
9494 |
- workstation.product.version = "${major_minor_revision}" |
9495 |
- EOF |
9496 |
- |
9497 |
- if use vix; then |
9498 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
9499 |
- vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware" |
9500 |
- vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix" |
9501 |
- vix.config.version = "1" |
9502 |
- EOF |
9503 |
- fi |
9504 |
- |
9505 |
- if use server; then |
9506 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
9507 |
- authd.client.port = "902" |
9508 |
- authd.proxy.nfc = "vmware-hostd:ha-nfc" |
9509 |
- authd.soapserver = "TRUE" |
9510 |
- EOF |
9511 |
- fi |
9512 |
- |
9513 |
- # install the init.d script |
9514 |
- local initscript="${T}/vmware.rc" |
9515 |
- sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
9516 |
- "${FILESDIR}/vmware-${major_minor}.rc" > ${initscript} |
9517 |
- newinitd "${initscript}" vmware |
9518 |
- |
9519 |
- if use server; then |
9520 |
- # install the init.d script |
9521 |
- local initscript="${T}/vmware-workstation-server.rc" |
9522 |
- sed -e "s:@@ETCDIR@@:/etc/vmware:g" \ |
9523 |
- -e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \ |
9524 |
- -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
9525 |
- -e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \ |
9526 |
- "${FILESDIR}/vmware-server-${major_minor}.rc" > ${initscript} |
9527 |
- newinitd "${initscript}" vmware-workstation-server |
9528 |
- fi |
9529 |
- |
9530 |
- # fill in variable placeholders |
9531 |
- sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ |
9532 |
- -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} |
9533 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \ |
9534 |
- -e "/^Encoding/d" \ |
9535 |
- -i "${D}/usr/share/applications/${PN}.desktop" |
9536 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ |
9537 |
- -e "/^Encoding/d" \ |
9538 |
- -i "${D}/usr/share/applications/vmware-player.desktop" |
9539 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \ |
9540 |
- -e "/^Encoding/d" \ |
9541 |
- -i "${D}/usr/share/applications/vmware-netcfg.desktop" |
9542 |
- |
9543 |
- if use server; then |
9544 |
- # Configuration for vmware-workstation-server |
9545 |
- local hostdUser="${VM_HOSTD_USER:-root}" |
9546 |
- sed -e "/ACEDataUser/s:root:${hostdUser}:g" \ |
9547 |
- -i "${D}/etc/vmware/hostd/authorization.xml" || die |
9548 |
- |
9549 |
- # Shared VMs Path: [standard]. |
9550 |
- sed -e "s:##{DS_NAME}##:standard:g" \ |
9551 |
- -e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \ |
9552 |
- -i "${D}/etc/vmware/hostd/datastores.xml" || die |
9553 |
- |
9554 |
- sed -e "s:##{HTTP_PORT}##:-1:g" \ |
9555 |
- -e "s:##{HTTPS_PORT}##:443:g" \ |
9556 |
- -e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \ |
9557 |
- -i "${D}/etc/vmware/hostd/proxy.xml" || die |
9558 |
- |
9559 |
- # See vmware-workstation-server.py for more details. |
9560 |
- sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
9561 |
- -e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \ |
9562 |
- -e "s:##{CFGDIR}##:/etc/vmware/:g" \ |
9563 |
- -e "s:##{ENABLE_AUTH}##:true:g" \ |
9564 |
- -e "s:##{HOSTDMODE}##:ws:g" \ |
9565 |
- -e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
9566 |
- -e "s:##{HOSTD_MOCKUP}##:false:g" \ |
9567 |
- -e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \ |
9568 |
- -e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \ |
9569 |
- -e "s:##{LOGDIR}##:/var/log/vmware/:g" \ |
9570 |
- -e "s:##{LOGLEVEL}##:verbose:g" \ |
9571 |
- -e "s:##{MOCKUP}##:mockup-host-config.xml:g" \ |
9572 |
- -e "s:##{PLUGINDIR}##:./:g" \ |
9573 |
- -e "s:##{SHLIB_PREFIX}##:lib:g" \ |
9574 |
- -e "s:##{SHLIB_SUFFIX}##:.so:g" \ |
9575 |
- -e "s:##{USE_BLKLISTSVC}##:false:g" \ |
9576 |
- -e "s:##{USE_CBRCSVC}##:false:g" \ |
9577 |
- -e "s:##{USE_CIMSVC}##:false:g" \ |
9578 |
- -e "s:##{USE_DIRECTORYSVC}##:false:g" \ |
9579 |
- -e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \ |
9580 |
- -e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \ |
9581 |
- -e "s:##{USE_DYNAMO}##:false:g" \ |
9582 |
- -e "s:##{USE_DYNSVC}##:false:g" \ |
9583 |
- -e "s:##{USE_GUESTSVC}##:false:g" \ |
9584 |
- -e "s:##{USE_HBRSVC}##:false:g" \ |
9585 |
- -e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \ |
9586 |
- -e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \ |
9587 |
- -e "s:##{USE_HTTPNFCSVC}##:false:g" \ |
9588 |
- -e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \ |
9589 |
- -e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \ |
9590 |
- -e "s:##{USE_NFCSVC}##:true:g" \ |
9591 |
- -e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \ |
9592 |
- -e "s:##{USE_OVFMGRSVC}##:true:g" \ |
9593 |
- -e "s:##{USE_PARTITIONSVC}##:false:g" \ |
9594 |
- -e "s:##{USE_SECURESOAP}##:false:g" \ |
9595 |
- -e "s:##{USE_SNMPSVC}##:false:g" \ |
9596 |
- -e "s:##{USE_SOLO_MOCKUP}##:false:g" \ |
9597 |
- -e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \ |
9598 |
- -e "s:##{USE_VCSVC_MOCKUP}##:false:g" \ |
9599 |
- -e "s:##{USE_VDISKSVC}##:false:g" \ |
9600 |
- -e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \ |
9601 |
- -e "s:##{USE_VMSVC_MOCKUP}##:false:g" \ |
9602 |
- -e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \ |
9603 |
- -e "s:##{VM_RESOURCES}##:vmResources.xml:g" \ |
9604 |
- -e "s:##{WEBSERVER_PORT_ENTRY}##::g" \ |
9605 |
- -e "s:##{WORKINGDIR}##:./:g" \ |
9606 |
- -i "${D}/etc/vmware/hostd/config.xml" || die |
9607 |
- |
9608 |
- sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \ |
9609 |
- -i "${D}/etc/vmware/hostd/environments.xml" || die |
9610 |
- |
9611 |
- # @@VICLIENT_URL@@=XXX |
9612 |
- sed -e "s:@@AUTHD_PORT@@:902:g" \ |
9613 |
- -i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die |
9614 |
- fi |
9615 |
- |
9616 |
- # install systemd unit files |
9617 |
- systemd_dounit "${WORKDIR}/systemd-vmware-${SYSTEMD_UNITS_TAG}/"*.{service,target} |
9618 |
-} |
9619 |
- |
9620 |
-pkg_config() { |
9621 |
- "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new |
9622 |
-} |
9623 |
- |
9624 |
-pkg_preinst() { |
9625 |
- gnome2_icon_savelist |
9626 |
-} |
9627 |
- |
9628 |
-pkg_postinst() { |
9629 |
- fdo-mime_desktop_database_update |
9630 |
- gnome2_icon_cache_update |
9631 |
- |
9632 |
- ewarn "/etc/env.d was updated. Please run:" |
9633 |
- ewarn "env-update && source /etc/profile" |
9634 |
- ewarn "" |
9635 |
- ewarn "Before you can use vmware workstation, you must configure a default network setup." |
9636 |
- ewarn "You can do this by running 'emerge --config ${PN}'." |
9637 |
-} |
9638 |
- |
9639 |
-pkg_prerm() { |
9640 |
- einfo "Stopping ${PN} for safe unmerge" |
9641 |
- /etc/init.d/vmware stop |
9642 |
-} |
9643 |
- |
9644 |
-pkg_postrm() { |
9645 |
- fdo-mime_desktop_database_update |
9646 |
- gnome2_icon_cache_update |
9647 |
-} |
9648 |
|
9649 |
diff --git a/app-emulation/vmware-workstation/vmware-workstation-11.1.2.2780323-r4.ebuild b/app-emulation/vmware-workstation/vmware-workstation-11.1.2.2780323-r4.ebuild |
9650 |
deleted file mode 100644 |
9651 |
index 3bc1abaa1eb..00000000000 |
9652 |
--- a/app-emulation/vmware-workstation/vmware-workstation-11.1.2.2780323-r4.ebuild |
9653 |
+++ /dev/null |
9654 |
@@ -1,548 +0,0 @@ |
9655 |
-# Copyright 1999-2016 Gentoo Foundation |
9656 |
-# Distributed under the terms of the GNU General Public License v2 |
9657 |
- |
9658 |
-EAPI=5 |
9659 |
- |
9660 |
-inherit eutils versionator readme.gentoo fdo-mime systemd gnome2-utils pam vmware-bundle |
9661 |
- |
9662 |
-MY_PN="VMware-Workstation" |
9663 |
-MY_PV=$(get_version_component_range 1-3) |
9664 |
-PV_MINOR=$(get_version_component_range 3) |
9665 |
-PV_BUILD=$(get_version_component_range 4) |
9666 |
-MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}" |
9667 |
- |
9668 |
-SYSTEMD_UNITS_TAG="gentoo-01" |
9669 |
- |
9670 |
-DESCRIPTION="Emulate a complete PC without the performance overhead of most emulators" |
9671 |
-HOMEPAGE="http://www.vmware.com/products/workstation/" |
9672 |
-BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${MY_PV}/${PV_BUILD}/linux/core/" |
9673 |
-SRC_URI=" |
9674 |
- amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar ) |
9675 |
- https://github.com/akhuettel/systemd-vmware/archive/${SYSTEMD_UNITS_TAG}.tar.gz -> vmware-systemd-${SYSTEMD_UNITS_TAG}.tgz |
9676 |
- " |
9677 |
-LICENSE="vmware GPL-2" |
9678 |
-SLOT="0" |
9679 |
-KEYWORDS="-* ~amd64" |
9680 |
-IUSE="cups bundled-libs doc ovftool server vix vmware-tools" |
9681 |
-RESTRICT="mirror strip preserve-libs" |
9682 |
- |
9683 |
-BUNDLED_LIBS_DIR=/opt/vmware/lib/vmware/lib |
9684 |
- |
9685 |
-BUNDLED_LIBS=" |
9686 |
- libXau.so.6 |
9687 |
- libXcomposite.so.1 |
9688 |
- libXcursor.so.1 |
9689 |
- libXdamage.so.1 |
9690 |
- libXdmcp.so.6 |
9691 |
- libXfixes.so.3 |
9692 |
- libXft.so.2 |
9693 |
- libXinerama.so.1 |
9694 |
- libXrandr.so.2 |
9695 |
- libXrender.so.1 |
9696 |
- libaio.so.1 |
9697 |
- libatk-1.0.so.0 |
9698 |
- libatkmm-1.6.so.1 |
9699 |
- libatspi.so.0 |
9700 |
- libcairo.so.2 |
9701 |
- libcairomm-1.0.so.1 |
9702 |
- libcurl.so.4 |
9703 |
- libdbus-1.so.3 |
9704 |
- libfontconfig.so.1 |
9705 |
- libfreetype.so.6 |
9706 |
- libfuse.so.2 |
9707 |
- libgailutil.so.18 |
9708 |
- libgdk-x11-2.0.so.0 |
9709 |
- libgcrypt.so.11 |
9710 |
- libgdk_pixbuf-2.0.so.0 |
9711 |
- libgdkmm-2.4.so.1 |
9712 |
- libgio-2.0.so.0 |
9713 |
- libgiomm-2.4.so.1 |
9714 |
-" |
9715 |
- |
9716 |
-BUNDLED_LIB_DEPENDS=" |
9717 |
- x11-libs/libXau |
9718 |
- x11-libs/libXcomposite |
9719 |
- x11-libs/libXcursor |
9720 |
- x11-libs/libXdamage |
9721 |
- x11-libs/libXdmcp |
9722 |
- x11-libs/libXfixes |
9723 |
- x11-libs/libXft |
9724 |
- x11-libs/libXinerama |
9725 |
- x11-libs/libXrandr |
9726 |
- x11-libs/libXrender |
9727 |
- dev-libs/libaio |
9728 |
- dev-libs/atk |
9729 |
- dev-cpp/atkmm |
9730 |
- app-accessibility/at-spi2-core |
9731 |
- x11-libs/cairo |
9732 |
- dev-cpp/cairomm |
9733 |
- net-misc/curl |
9734 |
- media-libs/fontconfig |
9735 |
- media-libs/freetype |
9736 |
- sys-fs/fuse |
9737 |
- x11-libs/gtk+:2 |
9738 |
- =dev-libs/libgcrypt-1.5* |
9739 |
- x11-libs/gdk-pixbuf:2 |
9740 |
- dev-cpp/gtkmm:2.4 |
9741 |
- dev-libs/glib:2 |
9742 |
- dev-cpp/glibmm:2 |
9743 |
-" |
9744 |
- |
9745 |
-# vmware-workstation should not use virtual/libc as this is a |
9746 |
-# precompiled binary package thats linked to glibc. |
9747 |
-RDEPEND=" |
9748 |
- dev-cpp/libgnomecanvasmm |
9749 |
- dev-cpp/pangomm |
9750 |
- dev-libs/icu |
9751 |
- dev-libs/expat |
9752 |
- dev-libs/libsigc++:2 |
9753 |
- dev-libs/libxml2 |
9754 |
- dev-libs/openssl:0.9.8 |
9755 |
- dev-libs/xmlrpc-c |
9756 |
- gnome-base/libgnomecanvas |
9757 |
- gnome-base/libgtop:2 |
9758 |
- gnome-base/librsvg:2 |
9759 |
- gnome-base/orbit |
9760 |
- media-libs/libart_lgpl |
9761 |
- media-libs/libpng:1.2 |
9762 |
- media-libs/libpng |
9763 |
- media-libs/tiff:3 |
9764 |
- cups? ( net-print/cups ) |
9765 |
- sys-devel/gcc |
9766 |
- sys-libs/glibc |
9767 |
- sys-libs/zlib |
9768 |
- x11-libs/libgksu |
9769 |
- x11-libs/libICE |
9770 |
- x11-libs/libSM |
9771 |
- x11-libs/libX11 |
9772 |
- x11-libs/libxcb |
9773 |
- x11-libs/libXext |
9774 |
- x11-libs/libXi |
9775 |
- x11-libs/libXtst |
9776 |
- x11-libs/pango |
9777 |
- x11-libs/pangox-compat |
9778 |
- x11-libs/startup-notification |
9779 |
- x11-themes/hicolor-icon-theme |
9780 |
- !app-emulation/vmware-player |
9781 |
- !bundled-libs? ( ${BUNDLED_LIB_DEPENDS} ) |
9782 |
- sys-apps/dbus |
9783 |
-" |
9784 |
-PDEPEND="~app-emulation/vmware-modules-304.${PV_MINOR} |
9785 |
- vmware-tools? ( app-emulation/vmware-tools )" |
9786 |
- |
9787 |
-S=${WORKDIR} |
9788 |
-VM_INSTALL_DIR="/opt/vmware" |
9789 |
-VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs" |
9790 |
-VM_HOSTD_USER="root" |
9791 |
- |
9792 |
-QA_PREBUILT="/opt/*" |
9793 |
- |
9794 |
-QA_WX_LOAD="/opt/vmware/lib/vmware/tools-upgraders/vmware-tools-upgrader-32 /opt/vmware/lib/vmware/bin/vmware-vmx-stats /opt/vmware/lib/vmware/bin/vmware-vmx-debug /opt/vmware/lib/vmware/bin/vmware-vmx" |
9795 |
- |
9796 |
-src_unpack() { |
9797 |
- default |
9798 |
- local bundle |
9799 |
- use amd64 && bundle=${MY_P}.x86_64.bundle |
9800 |
- local component; for component in \ |
9801 |
- vmware-vmx \ |
9802 |
- vmware-player-app \ |
9803 |
- vmware-player-setup \ |
9804 |
- vmware-workstation \ |
9805 |
- vmware-network-editor \ |
9806 |
- vmware-network-editor-ui \ |
9807 |
- vmware-usbarbitrator \ |
9808 |
- vmware-vprobe |
9809 |
- do |
9810 |
- vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}" |
9811 |
- done |
9812 |
- |
9813 |
- if use server; then |
9814 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-workstation-server #"${S}" |
9815 |
- fi |
9816 |
- |
9817 |
- if use vix; then |
9818 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-core vmware-vix |
9819 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-lib-Workstation1100andvSphere600 vmware-vix |
9820 |
- fi |
9821 |
- if use ovftool; then |
9822 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool |
9823 |
- fi |
9824 |
-} |
9825 |
- |
9826 |
-clean_bundled_libs() { |
9827 |
- einfo Removing bundled libraries |
9828 |
- for libname in ${BUNDLED_LIBS} ; do |
9829 |
- rm -rv "${S}"/lib/lib/${libname} || die "Failed removing bundled ${libname}" |
9830 |
- done |
9831 |
-} |
9832 |
- |
9833 |
-src_prepare() { |
9834 |
- rm -f bin/vmware-modconfig |
9835 |
- rm -rf lib/modules/binary |
9836 |
- # Bug 459566 |
9837 |
- mv lib/libvmware-netcfg.so lib/lib/ |
9838 |
- |
9839 |
- if use server; then |
9840 |
- rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh} |
9841 |
- fi |
9842 |
- |
9843 |
- find "${S}" -name '*.a' -delete |
9844 |
- |
9845 |
- if ! use bundled-libs ; then |
9846 |
- clean_bundled_libs |
9847 |
- fi |
9848 |
- |
9849 |
- DOC_CONTENTS=" |
9850 |
-/etc/env.d is updated during ${PN} installation. Please run:\n |
9851 |
-env-update && source /etc/profile\n |
9852 |
-Before you can use vmware workstation, you must configure a default network setup. |
9853 |
-You can do this by running 'emerge --config ${PN}'.\n |
9854 |
-To be able to run ${PN} your user must be in the vmware group.\n |
9855 |
-You MUST set USE=bundled-libs if you are running gcc-5, otherwise vmware will not start. |
9856 |
-" |
9857 |
-} |
9858 |
- |
9859 |
-src_install() { |
9860 |
- local major_minor=$(get_version_component_range 1-2 "${PV}") |
9861 |
- local major_minor_revision=$(get_version_component_range 1-3 "${PV}") |
9862 |
- local build=$(get_version_component_range 4 "${PV}") |
9863 |
- |
9864 |
- # revdep-rebuild entry |
9865 |
- insinto /etc/revdep-rebuild |
9866 |
- echo "SEARCH_DIRS_MASK=\"${VM_INSTALL_DIR}\"" >> ${T}/10${PN} |
9867 |
- doins "${T}"/10${PN} |
9868 |
- |
9869 |
- # install the binaries |
9870 |
- into "${VM_INSTALL_DIR}" |
9871 |
- dobin bin/* |
9872 |
- |
9873 |
- # install the libraries |
9874 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
9875 |
- doins -r lib/* |
9876 |
- |
9877 |
- # Bug 432918 |
9878 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8 \ |
9879 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libcrypto.so.0.9.8 |
9880 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8 \ |
9881 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libssl.so.0.9.8 |
9882 |
- |
9883 |
- # install the ancillaries |
9884 |
- insinto /usr |
9885 |
- doins -r share |
9886 |
- |
9887 |
- if use cups; then |
9888 |
- exeinto $(cups-config --serverbin)/filter |
9889 |
- doexe extras/thnucups |
9890 |
- |
9891 |
- insinto /etc/cups |
9892 |
- doins -r etc/cups/* |
9893 |
- fi |
9894 |
- |
9895 |
- insinto /etc/xdg |
9896 |
- doins -r etc/xdg/* |
9897 |
- |
9898 |
- # install documentation |
9899 |
- doman man/man1/vmware.1.gz |
9900 |
- |
9901 |
- if use doc; then |
9902 |
- dodoc doc/* |
9903 |
- fi |
9904 |
- |
9905 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/setup |
9906 |
- doins vmware-config |
9907 |
- |
9908 |
- # install vmware workstation server |
9909 |
- if use server; then |
9910 |
- dosbin sbin/* |
9911 |
- |
9912 |
- cd "${S}"/vmware-workstation-server |
9913 |
- |
9914 |
- # install binaries |
9915 |
- into "${VM_INSTALL_DIR}"/lib/vmware |
9916 |
- dobin bin/* |
9917 |
- |
9918 |
- dobin "${FILESDIR}"/configure-hostd.sh |
9919 |
- |
9920 |
- dobin "${FILESDIR}"/configure-hostd.sh |
9921 |
- |
9922 |
- # install the libraries |
9923 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/lib |
9924 |
- doins -r lib/* |
9925 |
- |
9926 |
- into "${VM_INSTALL_DIR}" |
9927 |
- for tool in vmware-{hostd,wssc-adminTool} ; do |
9928 |
- cat > "${T}/${tool}" <<-EOF |
9929 |
- #!/usr/bin/env bash |
9930 |
- set -e |
9931 |
- |
9932 |
- . /etc/vmware/bootstrap |
9933 |
- |
9934 |
- exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\ |
9935 |
- "${VM_INSTALL_DIR}/lib/vmware/lib" \\ |
9936 |
- "${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\ |
9937 |
- "${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@" |
9938 |
- EOF |
9939 |
- dobin "${T}/${tool}" |
9940 |
- done |
9941 |
- |
9942 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
9943 |
- doins -r hostd |
9944 |
- |
9945 |
- # create the configuration |
9946 |
- insinto /etc/vmware/hostd |
9947 |
- doins -r config/etc/vmware/hostd/* |
9948 |
- doins -r etc/vmware/hostd/* |
9949 |
- |
9950 |
- insinto /etc/vmware/ssl |
9951 |
- doins etc/vmware/ssl/* |
9952 |
- |
9953 |
- # pam |
9954 |
- pamd_mimic_system vmware-authd auth account |
9955 |
- |
9956 |
- # create directory for shared virtual machines. |
9957 |
- keepdir "${VM_DATA_STORE_DIR}" |
9958 |
- keepdir /var/log/vmware |
9959 |
- fi |
9960 |
- |
9961 |
- # install vmware-vix |
9962 |
- if use vix; then |
9963 |
- cd "${S}"/vmware-vix |
9964 |
- |
9965 |
- # install the binary |
9966 |
- into "${VM_INSTALL_DIR}" |
9967 |
- dobin bin/* |
9968 |
- |
9969 |
- # install the libraries |
9970 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-vix |
9971 |
- doins -r lib/* |
9972 |
- |
9973 |
- dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so |
9974 |
- |
9975 |
- # install headers |
9976 |
- insinto /usr/include/vmware-vix |
9977 |
- doins include/* |
9978 |
- |
9979 |
- if use doc; then |
9980 |
- dohtml -r doc/* |
9981 |
- fi |
9982 |
- fi |
9983 |
- |
9984 |
- # install ovftool |
9985 |
- if use ovftool; then |
9986 |
- cd "${S}" |
9987 |
- |
9988 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool |
9989 |
- doins -r vmware-ovftool/* |
9990 |
- |
9991 |
- chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin} |
9992 |
- dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool |
9993 |
- fi |
9994 |
- |
9995 |
- # create symlinks for the various tools |
9996 |
- local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} licenseTool vmamqpd \ |
9997 |
- vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper,zenity} ; do |
9998 |
- dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" |
9999 |
- done |
10000 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer |
10001 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware |
10002 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu |
10003 |
- |
10004 |
- # fix permissions |
10005 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks} |
10006 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper} |
10007 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/setup/vmware-config |
10008 |
- fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount |
10009 |
- fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats} |
10010 |
- if use server; then |
10011 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-{hostd,wssc-adminTool} |
10012 |
- fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd |
10013 |
- fperms 1777 "${VM_DATA_STORE_DIR}" |
10014 |
- fi |
10015 |
- if use vix; then |
10016 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config |
10017 |
- fi |
10018 |
- |
10019 |
- # create the environment |
10020 |
- local envd="${T}/90vmware" |
10021 |
- cat > "${envd}" <<-EOF |
10022 |
- PATH='${VM_INSTALL_DIR}/bin' |
10023 |
- ROOTPATH='${VM_INSTALL_DIR}/bin' |
10024 |
- EOF |
10025 |
- |
10026 |
- use bundled-libs && echo 'VMWARE_USE_SHIPPED_LIBS=1' >> "${envd}" |
10027 |
- |
10028 |
- doenvd "${envd}" |
10029 |
- |
10030 |
- # create the configuration |
10031 |
- dodir /etc/vmware |
10032 |
- |
10033 |
- cat > "${D}"/etc/vmware/bootstrap <<-EOF |
10034 |
- BINDIR='${VM_INSTALL_DIR}/bin' |
10035 |
- LIBDIR='${VM_INSTALL_DIR}/lib' |
10036 |
- EOF |
10037 |
- |
10038 |
- cat > "${D}"/etc/vmware/config <<-EOF |
10039 |
- bindir = "${VM_INSTALL_DIR}/bin" |
10040 |
- libdir = "${VM_INSTALL_DIR}/lib/vmware" |
10041 |
- initscriptdir = "/etc/init.d" |
10042 |
- authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd" |
10043 |
- gksu.rootMethod = "su" |
10044 |
- VMCI_CONFED = "yes" |
10045 |
- VMBLOCK_CONFED = "yes" |
10046 |
- VSOCK_CONFED = "yes" |
10047 |
- NETWORKING = "yes" |
10048 |
- player.product.version = "${major_minor_revision}" |
10049 |
- product.version = "${major_minor_revision}" |
10050 |
- product.buildNumber = "${build}" |
10051 |
- product.name = "VMware Workstation" |
10052 |
- workstation.product.version = "${major_minor_revision}" |
10053 |
- EOF |
10054 |
- |
10055 |
- if use vix; then |
10056 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
10057 |
- vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware" |
10058 |
- vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix" |
10059 |
- vix.config.version = "1" |
10060 |
- EOF |
10061 |
- fi |
10062 |
- |
10063 |
- if use server; then |
10064 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
10065 |
- authd.client.port = "902" |
10066 |
- authd.proxy.nfc = "vmware-hostd:ha-nfc" |
10067 |
- authd.soapserver = "TRUE" |
10068 |
- EOF |
10069 |
- fi |
10070 |
- |
10071 |
- # install the init.d script |
10072 |
- local initscript="${T}/vmware.rc" |
10073 |
- sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
10074 |
- "${FILESDIR}/vmware-${major_minor}.rc" > ${initscript} |
10075 |
- newinitd "${initscript}" vmware |
10076 |
- |
10077 |
- if use server; then |
10078 |
- # install the init.d script |
10079 |
- local initscript="${T}/vmware-workstation-server.rc" |
10080 |
- sed -e "s:@@ETCDIR@@:/etc/vmware:g" \ |
10081 |
- -e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \ |
10082 |
- -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
10083 |
- -e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \ |
10084 |
- "${FILESDIR}/vmware-server-${major_minor}.rc" > ${initscript} |
10085 |
- newinitd "${initscript}" vmware-workstation-server |
10086 |
- fi |
10087 |
- |
10088 |
- # fill in variable placeholders |
10089 |
- sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ |
10090 |
- -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} |
10091 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \ |
10092 |
- -e "/^Encoding/d" \ |
10093 |
- -i "${D}/usr/share/applications/${PN}.desktop" |
10094 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ |
10095 |
- -e "/^Encoding/d" \ |
10096 |
- -i "${D}/usr/share/applications/vmware-player.desktop" |
10097 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \ |
10098 |
- -e "/^Encoding/d" \ |
10099 |
- -i "${D}/usr/share/applications/vmware-netcfg.desktop" |
10100 |
- |
10101 |
- if use server; then |
10102 |
- # Configuration for vmware-workstation-server |
10103 |
- local hostdUser="${VM_HOSTD_USER:-root}" |
10104 |
- sed -e "/ACEDataUser/s:root:${hostdUser}:g" \ |
10105 |
- -i "${D}/etc/vmware/hostd/authorization.xml" || die |
10106 |
- |
10107 |
- # Shared VMs Path: [standard]. |
10108 |
- sed -e "s:##{DS_NAME}##:standard:g" \ |
10109 |
- -e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \ |
10110 |
- -i "${D}/etc/vmware/hostd/datastores.xml" || die |
10111 |
- |
10112 |
- sed -e "s:##{HTTP_PORT}##:-1:g" \ |
10113 |
- -e "s:##{HTTPS_PORT}##:443:g" \ |
10114 |
- -e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \ |
10115 |
- -i "${D}/etc/vmware/hostd/proxy.xml" || die |
10116 |
- |
10117 |
- # See vmware-workstation-server.py for more details. |
10118 |
- sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
10119 |
- -e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \ |
10120 |
- -e "s:##{CFGDIR}##:/etc/vmware/:g" \ |
10121 |
- -e "s:##{ENABLE_AUTH}##:true:g" \ |
10122 |
- -e "s:##{HOSTDMODE}##:ws:g" \ |
10123 |
- -e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
10124 |
- -e "s:##{HOSTD_MOCKUP}##:false:g" \ |
10125 |
- -e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \ |
10126 |
- -e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \ |
10127 |
- -e "s:##{LOGDIR}##:/var/log/vmware/:g" \ |
10128 |
- -e "s:##{LOGLEVEL}##:verbose:g" \ |
10129 |
- -e "s:##{MOCKUP}##:mockup-host-config.xml:g" \ |
10130 |
- -e "s:##{PLUGINDIR}##:./:g" \ |
10131 |
- -e "s:##{SHLIB_PREFIX}##:lib:g" \ |
10132 |
- -e "s:##{SHLIB_SUFFIX}##:.so:g" \ |
10133 |
- -e "s:##{USE_BLKLISTSVC}##:false:g" \ |
10134 |
- -e "s:##{USE_CBRCSVC}##:false:g" \ |
10135 |
- -e "s:##{USE_CIMSVC}##:false:g" \ |
10136 |
- -e "s:##{USE_DIRECTORYSVC}##:false:g" \ |
10137 |
- -e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \ |
10138 |
- -e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \ |
10139 |
- -e "s:##{USE_DYNAMO}##:false:g" \ |
10140 |
- -e "s:##{USE_DYNSVC}##:false:g" \ |
10141 |
- -e "s:##{USE_GUESTSVC}##:false:g" \ |
10142 |
- -e "s:##{USE_HBRSVC}##:false:g" \ |
10143 |
- -e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \ |
10144 |
- -e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \ |
10145 |
- -e "s:##{USE_HTTPNFCSVC}##:false:g" \ |
10146 |
- -e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \ |
10147 |
- -e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \ |
10148 |
- -e "s:##{USE_NFCSVC}##:true:g" \ |
10149 |
- -e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \ |
10150 |
- -e "s:##{USE_OVFMGRSVC}##:true:g" \ |
10151 |
- -e "s:##{USE_PARTITIONSVC}##:false:g" \ |
10152 |
- -e "s:##{USE_SECURESOAP}##:false:g" \ |
10153 |
- -e "s:##{USE_SNMPSVC}##:false:g" \ |
10154 |
- -e "s:##{USE_SOLO_MOCKUP}##:false:g" \ |
10155 |
- -e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \ |
10156 |
- -e "s:##{USE_VCSVC_MOCKUP}##:false:g" \ |
10157 |
- -e "s:##{USE_VDISKSVC}##:false:g" \ |
10158 |
- -e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \ |
10159 |
- -e "s:##{USE_VMSVC_MOCKUP}##:false:g" \ |
10160 |
- -e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \ |
10161 |
- -e "s:##{VM_RESOURCES}##:vmResources.xml:g" \ |
10162 |
- -e "s:##{WEBSERVER_PORT_ENTRY}##::g" \ |
10163 |
- -e "s:##{WORKINGDIR}##:./:g" \ |
10164 |
- -i "${D}/etc/vmware/hostd/config.xml" || die |
10165 |
- |
10166 |
- sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \ |
10167 |
- -i "${D}/etc/vmware/hostd/environments.xml" || die |
10168 |
- |
10169 |
- # @@VICLIENT_URL@@=XXX |
10170 |
- sed -e "s:@@AUTHD_PORT@@:902:g" \ |
10171 |
- -i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die |
10172 |
- fi |
10173 |
- |
10174 |
- # install systemd unit files |
10175 |
- systemd_dounit "${WORKDIR}/systemd-vmware-${SYSTEMD_UNITS_TAG}/"*.{service,target} |
10176 |
- |
10177 |
- readme.gentoo_create_doc |
10178 |
-} |
10179 |
- |
10180 |
-pkg_config() { |
10181 |
- "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new |
10182 |
-} |
10183 |
- |
10184 |
-pkg_preinst() { |
10185 |
- gnome2_icon_savelist |
10186 |
-} |
10187 |
- |
10188 |
-pkg_postinst() { |
10189 |
- fdo-mime_desktop_database_update |
10190 |
- gnome2_icon_cache_update |
10191 |
- readme.gentoo_pkg_postinst |
10192 |
-} |
10193 |
- |
10194 |
-pkg_prerm() { |
10195 |
- einfo "Stopping ${PN} for safe unmerge" |
10196 |
- /etc/init.d/vmware stop |
10197 |
-} |
10198 |
- |
10199 |
-pkg_postrm() { |
10200 |
- fdo-mime_desktop_database_update |
10201 |
- gnome2_icon_cache_update |
10202 |
-} |
10203 |
|
10204 |
diff --git a/app-emulation/vmware-workstation/vmware-workstation-11.1.3.3206955-r3.ebuild b/app-emulation/vmware-workstation/vmware-workstation-11.1.3.3206955-r3.ebuild |
10205 |
deleted file mode 100644 |
10206 |
index bd2d9b4b5d1..00000000000 |
10207 |
--- a/app-emulation/vmware-workstation/vmware-workstation-11.1.3.3206955-r3.ebuild |
10208 |
+++ /dev/null |
10209 |
@@ -1,548 +0,0 @@ |
10210 |
-# Copyright 1999-2016 Gentoo Foundation |
10211 |
-# Distributed under the terms of the GNU General Public License v2 |
10212 |
- |
10213 |
-EAPI=5 |
10214 |
- |
10215 |
-inherit eutils versionator readme.gentoo fdo-mime systemd gnome2-utils pam vmware-bundle |
10216 |
- |
10217 |
-MY_PN="VMware-Workstation" |
10218 |
-MY_PV=$(get_version_component_range 1-3) |
10219 |
-PV_MINOR=$(get_version_component_range 3) |
10220 |
-PV_BUILD=$(get_version_component_range 4) |
10221 |
-MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}" |
10222 |
- |
10223 |
-SYSTEMD_UNITS_TAG="gentoo-01" |
10224 |
- |
10225 |
-DESCRIPTION="Emulate a complete PC without the performance overhead of most emulators" |
10226 |
-HOMEPAGE="http://www.vmware.com/products/workstation/" |
10227 |
-BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${MY_PV}/${PV_BUILD}/linux/core/" |
10228 |
-SRC_URI=" |
10229 |
- amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar ) |
10230 |
- https://github.com/akhuettel/systemd-vmware/archive/${SYSTEMD_UNITS_TAG}.tar.gz -> vmware-systemd-${SYSTEMD_UNITS_TAG}.tgz |
10231 |
- " |
10232 |
-LICENSE="vmware GPL-2" |
10233 |
-SLOT="0" |
10234 |
-KEYWORDS="-* ~amd64" |
10235 |
-IUSE="cups bundled-libs doc ovftool server vix vmware-tools" |
10236 |
-RESTRICT="mirror strip" |
10237 |
- |
10238 |
-BUNDLED_LIBS_DIR=/opt/vmware/lib/vmware/lib |
10239 |
- |
10240 |
-BUNDLED_LIBS=" |
10241 |
- libXau.so.6 |
10242 |
- libXcomposite.so.1 |
10243 |
- libXcursor.so.1 |
10244 |
- libXdamage.so.1 |
10245 |
- libXdmcp.so.6 |
10246 |
- libXfixes.so.3 |
10247 |
- libXft.so.2 |
10248 |
- libXinerama.so.1 |
10249 |
- libXrandr.so.2 |
10250 |
- libXrender.so.1 |
10251 |
- libaio.so.1 |
10252 |
- libatk-1.0.so.0 |
10253 |
- libatkmm-1.6.so.1 |
10254 |
- libatspi.so.0 |
10255 |
- libcairo.so.2 |
10256 |
- libcairomm-1.0.so.1 |
10257 |
- libcurl.so.4 |
10258 |
- libdbus-1.so.3 |
10259 |
- libfontconfig.so.1 |
10260 |
- libfreetype.so.6 |
10261 |
- libfuse.so.2 |
10262 |
- libgailutil.so.18 |
10263 |
- libgdk-x11-2.0.so.0 |
10264 |
- libgcrypt.so.11 |
10265 |
- libgdk_pixbuf-2.0.so.0 |
10266 |
- libgdkmm-2.4.so.1 |
10267 |
- libgio-2.0.so.0 |
10268 |
- libgiomm-2.4.so.1 |
10269 |
-" |
10270 |
- |
10271 |
-BUNDLED_LIB_DEPENDS=" |
10272 |
- x11-libs/libXau |
10273 |
- x11-libs/libXcomposite |
10274 |
- x11-libs/libXcursor |
10275 |
- x11-libs/libXdamage |
10276 |
- x11-libs/libXdmcp |
10277 |
- x11-libs/libXfixes |
10278 |
- x11-libs/libXft |
10279 |
- x11-libs/libXinerama |
10280 |
- x11-libs/libXrandr |
10281 |
- x11-libs/libXrender |
10282 |
- dev-libs/libaio |
10283 |
- dev-libs/atk |
10284 |
- dev-cpp/atkmm |
10285 |
- app-accessibility/at-spi2-core |
10286 |
- x11-libs/cairo |
10287 |
- dev-cpp/cairomm |
10288 |
- net-misc/curl |
10289 |
- media-libs/fontconfig |
10290 |
- media-libs/freetype |
10291 |
- sys-fs/fuse |
10292 |
- x11-libs/gtk+:2 |
10293 |
- || ( dev-libs/libgcrypt:0/11 dev-libs/libgcrypt:11/11 ) |
10294 |
- x11-libs/gdk-pixbuf:2 |
10295 |
- dev-cpp/gtkmm:2.4 |
10296 |
- dev-libs/glib:2 |
10297 |
- dev-cpp/glibmm:2 |
10298 |
-" |
10299 |
- |
10300 |
-# vmware-workstation should not use virtual/libc as this is a |
10301 |
-# precompiled binary package thats linked to glibc. |
10302 |
-RDEPEND=" |
10303 |
- dev-cpp/libgnomecanvasmm |
10304 |
- dev-cpp/pangomm |
10305 |
- dev-libs/icu |
10306 |
- dev-libs/expat |
10307 |
- dev-libs/libsigc++:2 |
10308 |
- dev-libs/libxml2 |
10309 |
- dev-libs/openssl:0.9.8 |
10310 |
- dev-libs/xmlrpc-c |
10311 |
- gnome-base/libgnomecanvas |
10312 |
- gnome-base/libgtop:2 |
10313 |
- gnome-base/librsvg:2 |
10314 |
- gnome-base/orbit |
10315 |
- media-libs/libart_lgpl |
10316 |
- media-libs/libpng:1.2 |
10317 |
- media-libs/libpng |
10318 |
- media-libs/tiff:3 |
10319 |
- cups? ( net-print/cups ) |
10320 |
- sys-devel/gcc |
10321 |
- sys-libs/glibc |
10322 |
- sys-libs/zlib |
10323 |
- x11-libs/libgksu |
10324 |
- x11-libs/libICE |
10325 |
- x11-libs/libSM |
10326 |
- x11-libs/libX11 |
10327 |
- x11-libs/libxcb |
10328 |
- x11-libs/libXext |
10329 |
- x11-libs/libXi |
10330 |
- x11-libs/libXtst |
10331 |
- x11-libs/pango |
10332 |
- x11-libs/pangox-compat |
10333 |
- x11-libs/startup-notification |
10334 |
- x11-themes/hicolor-icon-theme |
10335 |
- !app-emulation/vmware-player |
10336 |
- !bundled-libs? ( ${BUNDLED_LIB_DEPENDS} ) |
10337 |
- sys-apps/dbus |
10338 |
-" |
10339 |
-PDEPEND="~app-emulation/vmware-modules-304.${PV_MINOR} |
10340 |
- vmware-tools? ( app-emulation/vmware-tools )" |
10341 |
- |
10342 |
-S=${WORKDIR} |
10343 |
-VM_INSTALL_DIR="/opt/vmware" |
10344 |
-VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs" |
10345 |
-VM_HOSTD_USER="root" |
10346 |
- |
10347 |
-QA_PREBUILT="/opt/*" |
10348 |
- |
10349 |
-QA_WX_LOAD="/opt/vmware/lib/vmware/tools-upgraders/vmware-tools-upgrader-32 /opt/vmware/lib/vmware/bin/vmware-vmx-stats /opt/vmware/lib/vmware/bin/vmware-vmx-debug /opt/vmware/lib/vmware/bin/vmware-vmx" |
10350 |
- |
10351 |
-src_unpack() { |
10352 |
- default |
10353 |
- local bundle |
10354 |
- use amd64 && bundle=${MY_P}.x86_64.bundle |
10355 |
- local component; for component in \ |
10356 |
- vmware-vmx \ |
10357 |
- vmware-player-app \ |
10358 |
- vmware-player-setup \ |
10359 |
- vmware-workstation \ |
10360 |
- vmware-network-editor \ |
10361 |
- vmware-network-editor-ui \ |
10362 |
- vmware-usbarbitrator \ |
10363 |
- vmware-vprobe |
10364 |
- do |
10365 |
- vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}" |
10366 |
- done |
10367 |
- |
10368 |
- if use server; then |
10369 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-workstation-server #"${S}" |
10370 |
- fi |
10371 |
- |
10372 |
- if use vix; then |
10373 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-core vmware-vix |
10374 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-lib-Workstation1100andvSphere600 vmware-vix |
10375 |
- fi |
10376 |
- if use ovftool; then |
10377 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool |
10378 |
- fi |
10379 |
-} |
10380 |
- |
10381 |
-clean_bundled_libs() { |
10382 |
- einfo Removing bundled libraries |
10383 |
- for libname in ${BUNDLED_LIBS} ; do |
10384 |
- rm -rv "${S}"/lib/lib/${libname} || die "Failed removing bundled ${libname}" |
10385 |
- done |
10386 |
-} |
10387 |
- |
10388 |
-src_prepare() { |
10389 |
- rm -f bin/vmware-modconfig |
10390 |
- rm -rf lib/modules/binary |
10391 |
- # Bug 459566 |
10392 |
- mv lib/libvmware-netcfg.so lib/lib/ |
10393 |
- |
10394 |
- if use server; then |
10395 |
- rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh} |
10396 |
- fi |
10397 |
- |
10398 |
- find "${S}" -name '*.a' -delete |
10399 |
- |
10400 |
- if ! use bundled-libs ; then |
10401 |
- clean_bundled_libs |
10402 |
- fi |
10403 |
- |
10404 |
- DOC_CONTENTS=" |
10405 |
-/etc/env.d is updated during ${PN} installation. Please run:\n |
10406 |
-env-update && source /etc/profile\n |
10407 |
-Before you can use vmware workstation, you must configure a default network setup. |
10408 |
-You can do this by running 'emerge --config ${PN}'.\n |
10409 |
-To be able to run ${PN} your user must be in the vmware group.\n |
10410 |
-You MUST set USE=bundled-libs if you are running gcc-5, otherwise vmware will not start. |
10411 |
-" |
10412 |
-} |
10413 |
- |
10414 |
-src_install() { |
10415 |
- local major_minor=$(get_version_component_range 1-2 "${PV}") |
10416 |
- local major_minor_revision=$(get_version_component_range 1-3 "${PV}") |
10417 |
- local build=$(get_version_component_range 4 "${PV}") |
10418 |
- |
10419 |
- # revdep-rebuild entry |
10420 |
- insinto /etc/revdep-rebuild |
10421 |
- echo "SEARCH_DIRS_MASK=\"${VM_INSTALL_DIR}\"" >> ${T}/10${PN} |
10422 |
- doins "${T}"/10${PN} |
10423 |
- |
10424 |
- # install the binaries |
10425 |
- into "${VM_INSTALL_DIR}" |
10426 |
- dobin bin/* |
10427 |
- |
10428 |
- # install the libraries |
10429 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
10430 |
- doins -r lib/* |
10431 |
- |
10432 |
- # Bug 432918 |
10433 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8 \ |
10434 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libcrypto.so.0.9.8 |
10435 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8 \ |
10436 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libssl.so.0.9.8 |
10437 |
- |
10438 |
- # install the ancillaries |
10439 |
- insinto /usr |
10440 |
- doins -r share |
10441 |
- |
10442 |
- if use cups; then |
10443 |
- exeinto $(cups-config --serverbin)/filter |
10444 |
- doexe extras/thnucups |
10445 |
- |
10446 |
- insinto /etc/cups |
10447 |
- doins -r etc/cups/* |
10448 |
- fi |
10449 |
- |
10450 |
- insinto /etc/xdg |
10451 |
- doins -r etc/xdg/* |
10452 |
- |
10453 |
- # install documentation |
10454 |
- doman man/man1/vmware.1.gz |
10455 |
- |
10456 |
- if use doc; then |
10457 |
- dodoc doc/* |
10458 |
- fi |
10459 |
- |
10460 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/setup |
10461 |
- doins vmware-config |
10462 |
- |
10463 |
- # install vmware workstation server |
10464 |
- if use server; then |
10465 |
- dosbin sbin/* |
10466 |
- |
10467 |
- cd "${S}"/vmware-workstation-server |
10468 |
- |
10469 |
- # install binaries |
10470 |
- into "${VM_INSTALL_DIR}"/lib/vmware |
10471 |
- dobin bin/* |
10472 |
- |
10473 |
- dobin "${FILESDIR}"/configure-hostd.sh |
10474 |
- |
10475 |
- dobin "${FILESDIR}"/configure-hostd.sh |
10476 |
- |
10477 |
- # install the libraries |
10478 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/lib |
10479 |
- doins -r lib/* |
10480 |
- |
10481 |
- into "${VM_INSTALL_DIR}" |
10482 |
- for tool in vmware-{hostd,wssc-adminTool} ; do |
10483 |
- cat > "${T}/${tool}" <<-EOF |
10484 |
- #!/usr/bin/env bash |
10485 |
- set -e |
10486 |
- |
10487 |
- . /etc/vmware/bootstrap |
10488 |
- |
10489 |
- exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\ |
10490 |
- "${VM_INSTALL_DIR}/lib/vmware/lib" \\ |
10491 |
- "${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\ |
10492 |
- "${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@" |
10493 |
- EOF |
10494 |
- dobin "${T}/${tool}" |
10495 |
- done |
10496 |
- |
10497 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
10498 |
- doins -r hostd |
10499 |
- |
10500 |
- # create the configuration |
10501 |
- insinto /etc/vmware/hostd |
10502 |
- doins -r config/etc/vmware/hostd/* |
10503 |
- doins -r etc/vmware/hostd/* |
10504 |
- |
10505 |
- insinto /etc/vmware/ssl |
10506 |
- doins etc/vmware/ssl/* |
10507 |
- |
10508 |
- # pam |
10509 |
- pamd_mimic_system vmware-authd auth account |
10510 |
- |
10511 |
- # create directory for shared virtual machines. |
10512 |
- keepdir "${VM_DATA_STORE_DIR}" |
10513 |
- keepdir /var/log/vmware |
10514 |
- fi |
10515 |
- |
10516 |
- # install vmware-vix |
10517 |
- if use vix; then |
10518 |
- cd "${S}"/vmware-vix |
10519 |
- |
10520 |
- # install the binary |
10521 |
- into "${VM_INSTALL_DIR}" |
10522 |
- dobin bin/* |
10523 |
- |
10524 |
- # install the libraries |
10525 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-vix |
10526 |
- doins -r lib/* |
10527 |
- |
10528 |
- dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so |
10529 |
- |
10530 |
- # install headers |
10531 |
- insinto /usr/include/vmware-vix |
10532 |
- doins include/* |
10533 |
- |
10534 |
- if use doc; then |
10535 |
- dohtml -r doc/* |
10536 |
- fi |
10537 |
- fi |
10538 |
- |
10539 |
- # install ovftool |
10540 |
- if use ovftool; then |
10541 |
- cd "${S}" |
10542 |
- |
10543 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool |
10544 |
- doins -r vmware-ovftool/* |
10545 |
- |
10546 |
- chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin} |
10547 |
- dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool |
10548 |
- fi |
10549 |
- |
10550 |
- # create symlinks for the various tools |
10551 |
- local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} licenseTool vmamqpd \ |
10552 |
- vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper,zenity} ; do |
10553 |
- dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" |
10554 |
- done |
10555 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer |
10556 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware |
10557 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu |
10558 |
- |
10559 |
- # fix permissions |
10560 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks} |
10561 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper} |
10562 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/setup/vmware-config |
10563 |
- fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount |
10564 |
- fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats} |
10565 |
- if use server; then |
10566 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-{hostd,wssc-adminTool} |
10567 |
- fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd |
10568 |
- fperms 1777 "${VM_DATA_STORE_DIR}" |
10569 |
- fi |
10570 |
- if use vix; then |
10571 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config |
10572 |
- fi |
10573 |
- |
10574 |
- # create the environment |
10575 |
- local envd="${T}/90vmware" |
10576 |
- cat > "${envd}" <<-EOF |
10577 |
- PATH='${VM_INSTALL_DIR}/bin' |
10578 |
- ROOTPATH='${VM_INSTALL_DIR}/bin' |
10579 |
- EOF |
10580 |
- |
10581 |
- use bundled-libs && echo 'VMWARE_USE_SHIPPED_LIBS=1' >> "${envd}" |
10582 |
- |
10583 |
- doenvd "${envd}" |
10584 |
- |
10585 |
- # create the configuration |
10586 |
- dodir /etc/vmware |
10587 |
- |
10588 |
- cat > "${D}"/etc/vmware/bootstrap <<-EOF |
10589 |
- BINDIR='${VM_INSTALL_DIR}/bin' |
10590 |
- LIBDIR='${VM_INSTALL_DIR}/lib' |
10591 |
- EOF |
10592 |
- |
10593 |
- cat > "${D}"/etc/vmware/config <<-EOF |
10594 |
- bindir = "${VM_INSTALL_DIR}/bin" |
10595 |
- libdir = "${VM_INSTALL_DIR}/lib/vmware" |
10596 |
- initscriptdir = "/etc/init.d" |
10597 |
- authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd" |
10598 |
- gksu.rootMethod = "su" |
10599 |
- VMCI_CONFED = "yes" |
10600 |
- VMBLOCK_CONFED = "yes" |
10601 |
- VSOCK_CONFED = "yes" |
10602 |
- NETWORKING = "yes" |
10603 |
- player.product.version = "${major_minor_revision}" |
10604 |
- product.version = "${major_minor_revision}" |
10605 |
- product.buildNumber = "${build}" |
10606 |
- product.name = "VMware Workstation" |
10607 |
- workstation.product.version = "${major_minor_revision}" |
10608 |
- EOF |
10609 |
- |
10610 |
- if use vix; then |
10611 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
10612 |
- vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware" |
10613 |
- vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix" |
10614 |
- vix.config.version = "1" |
10615 |
- EOF |
10616 |
- fi |
10617 |
- |
10618 |
- if use server; then |
10619 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
10620 |
- authd.client.port = "902" |
10621 |
- authd.proxy.nfc = "vmware-hostd:ha-nfc" |
10622 |
- authd.soapserver = "TRUE" |
10623 |
- EOF |
10624 |
- fi |
10625 |
- |
10626 |
- # install the init.d script |
10627 |
- local initscript="${T}/vmware.rc" |
10628 |
- sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
10629 |
- "${FILESDIR}/vmware-${major_minor}.rc" > ${initscript} |
10630 |
- newinitd "${initscript}" vmware |
10631 |
- |
10632 |
- if use server; then |
10633 |
- # install the init.d script |
10634 |
- local initscript="${T}/vmware-workstation-server.rc" |
10635 |
- sed -e "s:@@ETCDIR@@:/etc/vmware:g" \ |
10636 |
- -e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \ |
10637 |
- -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
10638 |
- -e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \ |
10639 |
- "${FILESDIR}/vmware-server-${major_minor}.rc" > ${initscript} |
10640 |
- newinitd "${initscript}" vmware-workstation-server |
10641 |
- fi |
10642 |
- |
10643 |
- # fill in variable placeholders |
10644 |
- sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ |
10645 |
- -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} |
10646 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \ |
10647 |
- -e "/^Encoding/d" \ |
10648 |
- -i "${D}/usr/share/applications/${PN}.desktop" |
10649 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ |
10650 |
- -e "/^Encoding/d" \ |
10651 |
- -i "${D}/usr/share/applications/vmware-player.desktop" |
10652 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \ |
10653 |
- -e "/^Encoding/d" \ |
10654 |
- -i "${D}/usr/share/applications/vmware-netcfg.desktop" |
10655 |
- |
10656 |
- if use server; then |
10657 |
- # Configuration for vmware-workstation-server |
10658 |
- local hostdUser="${VM_HOSTD_USER:-root}" |
10659 |
- sed -e "/ACEDataUser/s:root:${hostdUser}:g" \ |
10660 |
- -i "${D}/etc/vmware/hostd/authorization.xml" || die |
10661 |
- |
10662 |
- # Shared VMs Path: [standard]. |
10663 |
- sed -e "s:##{DS_NAME}##:standard:g" \ |
10664 |
- -e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \ |
10665 |
- -i "${D}/etc/vmware/hostd/datastores.xml" || die |
10666 |
- |
10667 |
- sed -e "s:##{HTTP_PORT}##:-1:g" \ |
10668 |
- -e "s:##{HTTPS_PORT}##:443:g" \ |
10669 |
- -e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \ |
10670 |
- -i "${D}/etc/vmware/hostd/proxy.xml" || die |
10671 |
- |
10672 |
- # See vmware-workstation-server.py for more details. |
10673 |
- sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
10674 |
- -e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \ |
10675 |
- -e "s:##{CFGDIR}##:/etc/vmware/:g" \ |
10676 |
- -e "s:##{ENABLE_AUTH}##:true:g" \ |
10677 |
- -e "s:##{HOSTDMODE}##:ws:g" \ |
10678 |
- -e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
10679 |
- -e "s:##{HOSTD_MOCKUP}##:false:g" \ |
10680 |
- -e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \ |
10681 |
- -e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \ |
10682 |
- -e "s:##{LOGDIR}##:/var/log/vmware/:g" \ |
10683 |
- -e "s:##{LOGLEVEL}##:verbose:g" \ |
10684 |
- -e "s:##{MOCKUP}##:mockup-host-config.xml:g" \ |
10685 |
- -e "s:##{PLUGINDIR}##:./:g" \ |
10686 |
- -e "s:##{SHLIB_PREFIX}##:lib:g" \ |
10687 |
- -e "s:##{SHLIB_SUFFIX}##:.so:g" \ |
10688 |
- -e "s:##{USE_BLKLISTSVC}##:false:g" \ |
10689 |
- -e "s:##{USE_CBRCSVC}##:false:g" \ |
10690 |
- -e "s:##{USE_CIMSVC}##:false:g" \ |
10691 |
- -e "s:##{USE_DIRECTORYSVC}##:false:g" \ |
10692 |
- -e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \ |
10693 |
- -e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \ |
10694 |
- -e "s:##{USE_DYNAMO}##:false:g" \ |
10695 |
- -e "s:##{USE_DYNSVC}##:false:g" \ |
10696 |
- -e "s:##{USE_GUESTSVC}##:false:g" \ |
10697 |
- -e "s:##{USE_HBRSVC}##:false:g" \ |
10698 |
- -e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \ |
10699 |
- -e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \ |
10700 |
- -e "s:##{USE_HTTPNFCSVC}##:false:g" \ |
10701 |
- -e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \ |
10702 |
- -e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \ |
10703 |
- -e "s:##{USE_NFCSVC}##:true:g" \ |
10704 |
- -e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \ |
10705 |
- -e "s:##{USE_OVFMGRSVC}##:true:g" \ |
10706 |
- -e "s:##{USE_PARTITIONSVC}##:false:g" \ |
10707 |
- -e "s:##{USE_SECURESOAP}##:false:g" \ |
10708 |
- -e "s:##{USE_SNMPSVC}##:false:g" \ |
10709 |
- -e "s:##{USE_SOLO_MOCKUP}##:false:g" \ |
10710 |
- -e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \ |
10711 |
- -e "s:##{USE_VCSVC_MOCKUP}##:false:g" \ |
10712 |
- -e "s:##{USE_VDISKSVC}##:false:g" \ |
10713 |
- -e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \ |
10714 |
- -e "s:##{USE_VMSVC_MOCKUP}##:false:g" \ |
10715 |
- -e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \ |
10716 |
- -e "s:##{VM_RESOURCES}##:vmResources.xml:g" \ |
10717 |
- -e "s:##{WEBSERVER_PORT_ENTRY}##::g" \ |
10718 |
- -e "s:##{WORKINGDIR}##:./:g" \ |
10719 |
- -i "${D}/etc/vmware/hostd/config.xml" || die |
10720 |
- |
10721 |
- sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \ |
10722 |
- -i "${D}/etc/vmware/hostd/environments.xml" || die |
10723 |
- |
10724 |
- # @@VICLIENT_URL@@=XXX |
10725 |
- sed -e "s:@@AUTHD_PORT@@:902:g" \ |
10726 |
- -i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die |
10727 |
- fi |
10728 |
- |
10729 |
- # install systemd unit files |
10730 |
- systemd_dounit "${WORKDIR}/systemd-vmware-${SYSTEMD_UNITS_TAG}/"*.{service,target} |
10731 |
- |
10732 |
- readme.gentoo_create_doc |
10733 |
-} |
10734 |
- |
10735 |
-pkg_config() { |
10736 |
- "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new |
10737 |
-} |
10738 |
- |
10739 |
-pkg_preinst() { |
10740 |
- gnome2_icon_savelist |
10741 |
-} |
10742 |
- |
10743 |
-pkg_postinst() { |
10744 |
- fdo-mime_desktop_database_update |
10745 |
- gnome2_icon_cache_update |
10746 |
- readme.gentoo_pkg_postinst |
10747 |
-} |
10748 |
- |
10749 |
-pkg_prerm() { |
10750 |
- einfo "Stopping ${PN} for safe unmerge" |
10751 |
- /etc/init.d/vmware stop |
10752 |
-} |
10753 |
- |
10754 |
-pkg_postrm() { |
10755 |
- fdo-mime_desktop_database_update |
10756 |
- gnome2_icon_cache_update |
10757 |
-} |
10758 |
|
10759 |
diff --git a/app-emulation/vmware-workstation/vmware-workstation-11.1.3.3206955-r4.ebuild b/app-emulation/vmware-workstation/vmware-workstation-11.1.3.3206955-r4.ebuild |
10760 |
deleted file mode 100644 |
10761 |
index 6e19aa832eb..00000000000 |
10762 |
--- a/app-emulation/vmware-workstation/vmware-workstation-11.1.3.3206955-r4.ebuild |
10763 |
+++ /dev/null |
10764 |
@@ -1,548 +0,0 @@ |
10765 |
-# Copyright 1999-2016 Gentoo Foundation |
10766 |
-# Distributed under the terms of the GNU General Public License v2 |
10767 |
- |
10768 |
-EAPI=5 |
10769 |
- |
10770 |
-inherit eutils versionator readme.gentoo fdo-mime systemd gnome2-utils pam vmware-bundle |
10771 |
- |
10772 |
-MY_PN="VMware-Workstation" |
10773 |
-MY_PV=$(get_version_component_range 1-3) |
10774 |
-PV_MINOR=$(get_version_component_range 3) |
10775 |
-PV_BUILD=$(get_version_component_range 4) |
10776 |
-MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}" |
10777 |
- |
10778 |
-SYSTEMD_UNITS_TAG="gentoo-01" |
10779 |
- |
10780 |
-DESCRIPTION="Emulate a complete PC without the performance overhead of most emulators" |
10781 |
-HOMEPAGE="http://www.vmware.com/products/workstation/" |
10782 |
-BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${MY_PV}/${PV_BUILD}/linux/core/" |
10783 |
-SRC_URI=" |
10784 |
- amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar ) |
10785 |
- https://github.com/akhuettel/systemd-vmware/archive/${SYSTEMD_UNITS_TAG}.tar.gz -> vmware-systemd-${SYSTEMD_UNITS_TAG}.tgz |
10786 |
- " |
10787 |
-LICENSE="vmware GPL-2" |
10788 |
-SLOT="0" |
10789 |
-KEYWORDS="-* ~amd64" |
10790 |
-IUSE="cups bundled-libs doc ovftool server vix vmware-tools" |
10791 |
-RESTRICT="mirror strip" |
10792 |
- |
10793 |
-BUNDLED_LIBS_DIR=/opt/vmware/lib/vmware/lib |
10794 |
- |
10795 |
-BUNDLED_LIBS=" |
10796 |
- libXau.so.6 |
10797 |
- libXcomposite.so.1 |
10798 |
- libXcursor.so.1 |
10799 |
- libXdamage.so.1 |
10800 |
- libXdmcp.so.6 |
10801 |
- libXfixes.so.3 |
10802 |
- libXft.so.2 |
10803 |
- libXinerama.so.1 |
10804 |
- libXrandr.so.2 |
10805 |
- libXrender.so.1 |
10806 |
- libaio.so.1 |
10807 |
- libatk-1.0.so.0 |
10808 |
- libatkmm-1.6.so.1 |
10809 |
- libatspi.so.0 |
10810 |
- libcairo.so.2 |
10811 |
- libcairomm-1.0.so.1 |
10812 |
- libcurl.so.4 |
10813 |
- libdbus-1.so.3 |
10814 |
- libfontconfig.so.1 |
10815 |
- libfreetype.so.6 |
10816 |
- libfuse.so.2 |
10817 |
- libgailutil.so.18 |
10818 |
- libgdk-x11-2.0.so.0 |
10819 |
- libgcrypt.so.11 |
10820 |
- libgdk_pixbuf-2.0.so.0 |
10821 |
- libgdkmm-2.4.so.1 |
10822 |
- libgio-2.0.so.0 |
10823 |
- libgiomm-2.4.so.1 |
10824 |
-" |
10825 |
- |
10826 |
-BUNDLED_LIB_DEPENDS=" |
10827 |
- x11-libs/libXau |
10828 |
- x11-libs/libXcomposite |
10829 |
- x11-libs/libXcursor |
10830 |
- x11-libs/libXdamage |
10831 |
- x11-libs/libXdmcp |
10832 |
- x11-libs/libXfixes |
10833 |
- x11-libs/libXft |
10834 |
- x11-libs/libXinerama |
10835 |
- x11-libs/libXrandr |
10836 |
- x11-libs/libXrender |
10837 |
- dev-libs/libaio |
10838 |
- dev-libs/atk |
10839 |
- dev-cpp/atkmm |
10840 |
- app-accessibility/at-spi2-core |
10841 |
- x11-libs/cairo |
10842 |
- dev-cpp/cairomm |
10843 |
- net-misc/curl |
10844 |
- media-libs/fontconfig |
10845 |
- media-libs/freetype |
10846 |
- sys-fs/fuse |
10847 |
- x11-libs/gtk+:2 |
10848 |
- || ( dev-libs/libgcrypt:0/11 dev-libs/libgcrypt:11/11 ) |
10849 |
- x11-libs/gdk-pixbuf:2 |
10850 |
- dev-cpp/gtkmm:2.4 |
10851 |
- dev-libs/glib:2 |
10852 |
- dev-cpp/glibmm:2 |
10853 |
-" |
10854 |
- |
10855 |
-# vmware-workstation should not use virtual/libc as this is a |
10856 |
-# precompiled binary package thats linked to glibc. |
10857 |
-RDEPEND=" |
10858 |
- dev-cpp/libgnomecanvasmm |
10859 |
- dev-cpp/pangomm |
10860 |
- dev-libs/icu |
10861 |
- dev-libs/expat |
10862 |
- dev-libs/libsigc++:2 |
10863 |
- dev-libs/libxml2 |
10864 |
- dev-libs/openssl:0 |
10865 |
- dev-libs/xmlrpc-c |
10866 |
- gnome-base/libgnomecanvas |
10867 |
- gnome-base/libgtop:2 |
10868 |
- gnome-base/librsvg:2 |
10869 |
- gnome-base/orbit |
10870 |
- media-libs/libart_lgpl |
10871 |
- media-libs/libpng:1.2 |
10872 |
- media-libs/libpng |
10873 |
- media-libs/tiff:3 |
10874 |
- cups? ( net-print/cups ) |
10875 |
- sys-devel/gcc |
10876 |
- sys-libs/glibc |
10877 |
- sys-libs/zlib |
10878 |
- x11-libs/libgksu |
10879 |
- x11-libs/libICE |
10880 |
- x11-libs/libSM |
10881 |
- x11-libs/libX11 |
10882 |
- x11-libs/libxcb |
10883 |
- x11-libs/libXext |
10884 |
- x11-libs/libXi |
10885 |
- x11-libs/libXtst |
10886 |
- x11-libs/pango |
10887 |
- x11-libs/pangox-compat |
10888 |
- x11-libs/startup-notification |
10889 |
- x11-themes/hicolor-icon-theme |
10890 |
- !app-emulation/vmware-player |
10891 |
- !bundled-libs? ( ${BUNDLED_LIB_DEPENDS} ) |
10892 |
- sys-apps/dbus |
10893 |
-" |
10894 |
-PDEPEND="~app-emulation/vmware-modules-304.${PV_MINOR} |
10895 |
- vmware-tools? ( app-emulation/vmware-tools )" |
10896 |
- |
10897 |
-S=${WORKDIR} |
10898 |
-VM_INSTALL_DIR="/opt/vmware" |
10899 |
-VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs" |
10900 |
-VM_HOSTD_USER="root" |
10901 |
- |
10902 |
-QA_PREBUILT="/opt/*" |
10903 |
- |
10904 |
-QA_WX_LOAD="/opt/vmware/lib/vmware/tools-upgraders/vmware-tools-upgrader-32 /opt/vmware/lib/vmware/bin/vmware-vmx-stats /opt/vmware/lib/vmware/bin/vmware-vmx-debug /opt/vmware/lib/vmware/bin/vmware-vmx" |
10905 |
- |
10906 |
-src_unpack() { |
10907 |
- default |
10908 |
- local bundle |
10909 |
- use amd64 && bundle=${MY_P}.x86_64.bundle |
10910 |
- local component; for component in \ |
10911 |
- vmware-vmx \ |
10912 |
- vmware-player-app \ |
10913 |
- vmware-player-setup \ |
10914 |
- vmware-workstation \ |
10915 |
- vmware-network-editor \ |
10916 |
- vmware-network-editor-ui \ |
10917 |
- vmware-usbarbitrator \ |
10918 |
- vmware-vprobe |
10919 |
- do |
10920 |
- vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}" |
10921 |
- done |
10922 |
- |
10923 |
- if use server; then |
10924 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-workstation-server #"${S}" |
10925 |
- fi |
10926 |
- |
10927 |
- if use vix; then |
10928 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-core vmware-vix |
10929 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-lib-Workstation1100andvSphere600 vmware-vix |
10930 |
- fi |
10931 |
- if use ovftool; then |
10932 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool |
10933 |
- fi |
10934 |
-} |
10935 |
- |
10936 |
-clean_bundled_libs() { |
10937 |
- einfo Removing bundled libraries |
10938 |
- for libname in ${BUNDLED_LIBS} ; do |
10939 |
- rm -rv "${S}"/lib/lib/${libname} || die "Failed removing bundled ${libname}" |
10940 |
- done |
10941 |
-} |
10942 |
- |
10943 |
-src_prepare() { |
10944 |
- rm -f bin/vmware-modconfig |
10945 |
- rm -rf lib/modules/binary |
10946 |
- # Bug 459566 |
10947 |
- mv lib/libvmware-netcfg.so lib/lib/ |
10948 |
- |
10949 |
- if use server; then |
10950 |
- rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh} |
10951 |
- fi |
10952 |
- |
10953 |
- find "${S}" -name '*.a' -delete |
10954 |
- |
10955 |
- if ! use bundled-libs ; then |
10956 |
- clean_bundled_libs |
10957 |
- fi |
10958 |
- |
10959 |
- DOC_CONTENTS=" |
10960 |
-/etc/env.d is updated during ${PN} installation. Please run:\n |
10961 |
-env-update && source /etc/profile\n |
10962 |
-Before you can use vmware workstation, you must configure a default network setup. |
10963 |
-You can do this by running 'emerge --config ${PN}'.\n |
10964 |
-To be able to run ${PN} your user must be in the vmware group.\n |
10965 |
-You MUST set USE=bundled-libs if you are running gcc-5, otherwise vmware will not start. |
10966 |
-" |
10967 |
-} |
10968 |
- |
10969 |
-src_install() { |
10970 |
- local major_minor=$(get_version_component_range 1-2 "${PV}") |
10971 |
- local major_minor_revision=$(get_version_component_range 1-3 "${PV}") |
10972 |
- local build=$(get_version_component_range 4 "${PV}") |
10973 |
- |
10974 |
- # revdep-rebuild entry |
10975 |
- insinto /etc/revdep-rebuild |
10976 |
- echo "SEARCH_DIRS_MASK=\"${VM_INSTALL_DIR}\"" >> ${T}/10${PN} |
10977 |
- doins "${T}"/10${PN} |
10978 |
- |
10979 |
- # install the binaries |
10980 |
- into "${VM_INSTALL_DIR}" |
10981 |
- dobin bin/* |
10982 |
- |
10983 |
- # install the libraries |
10984 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
10985 |
- doins -r lib/* |
10986 |
- |
10987 |
- # Bug 432918 |
10988 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.1.0.1/libcrypto.so.1.0.1 \ |
10989 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libcrypto.so.1.0.1 |
10990 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.1.0.1/libssl.so.1.0.1 \ |
10991 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libssl.so.1.0.1 |
10992 |
- |
10993 |
- # install the ancillaries |
10994 |
- insinto /usr |
10995 |
- doins -r share |
10996 |
- |
10997 |
- if use cups; then |
10998 |
- exeinto $(cups-config --serverbin)/filter |
10999 |
- doexe extras/thnucups |
11000 |
- |
11001 |
- insinto /etc/cups |
11002 |
- doins -r etc/cups/* |
11003 |
- fi |
11004 |
- |
11005 |
- insinto /etc/xdg |
11006 |
- doins -r etc/xdg/* |
11007 |
- |
11008 |
- # install documentation |
11009 |
- doman man/man1/vmware.1.gz |
11010 |
- |
11011 |
- if use doc; then |
11012 |
- dodoc doc/* |
11013 |
- fi |
11014 |
- |
11015 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/setup |
11016 |
- doins vmware-config |
11017 |
- |
11018 |
- # install vmware workstation server |
11019 |
- if use server; then |
11020 |
- dosbin sbin/* |
11021 |
- |
11022 |
- cd "${S}"/vmware-workstation-server |
11023 |
- |
11024 |
- # install binaries |
11025 |
- into "${VM_INSTALL_DIR}"/lib/vmware |
11026 |
- dobin bin/* |
11027 |
- |
11028 |
- dobin "${FILESDIR}"/configure-hostd.sh |
11029 |
- |
11030 |
- dobin "${FILESDIR}"/configure-hostd.sh |
11031 |
- |
11032 |
- # install the libraries |
11033 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/lib |
11034 |
- doins -r lib/* |
11035 |
- |
11036 |
- into "${VM_INSTALL_DIR}" |
11037 |
- for tool in vmware-{hostd,wssc-adminTool} ; do |
11038 |
- cat > "${T}/${tool}" <<-EOF |
11039 |
- #!/usr/bin/env bash |
11040 |
- set -e |
11041 |
- |
11042 |
- . /etc/vmware/bootstrap |
11043 |
- |
11044 |
- exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\ |
11045 |
- "${VM_INSTALL_DIR}/lib/vmware/lib" \\ |
11046 |
- "${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\ |
11047 |
- "${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@" |
11048 |
- EOF |
11049 |
- dobin "${T}/${tool}" |
11050 |
- done |
11051 |
- |
11052 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
11053 |
- doins -r hostd |
11054 |
- |
11055 |
- # create the configuration |
11056 |
- insinto /etc/vmware/hostd |
11057 |
- doins -r config/etc/vmware/hostd/* |
11058 |
- doins -r etc/vmware/hostd/* |
11059 |
- |
11060 |
- insinto /etc/vmware/ssl |
11061 |
- doins etc/vmware/ssl/* |
11062 |
- |
11063 |
- # pam |
11064 |
- pamd_mimic_system vmware-authd auth account |
11065 |
- |
11066 |
- # create directory for shared virtual machines. |
11067 |
- keepdir "${VM_DATA_STORE_DIR}" |
11068 |
- keepdir /var/log/vmware |
11069 |
- fi |
11070 |
- |
11071 |
- # install vmware-vix |
11072 |
- if use vix; then |
11073 |
- cd "${S}"/vmware-vix |
11074 |
- |
11075 |
- # install the binary |
11076 |
- into "${VM_INSTALL_DIR}" |
11077 |
- dobin bin/* |
11078 |
- |
11079 |
- # install the libraries |
11080 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-vix |
11081 |
- doins -r lib/* |
11082 |
- |
11083 |
- dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so |
11084 |
- |
11085 |
- # install headers |
11086 |
- insinto /usr/include/vmware-vix |
11087 |
- doins include/* |
11088 |
- |
11089 |
- if use doc; then |
11090 |
- dohtml -r doc/* |
11091 |
- fi |
11092 |
- fi |
11093 |
- |
11094 |
- # install ovftool |
11095 |
- if use ovftool; then |
11096 |
- cd "${S}" |
11097 |
- |
11098 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool |
11099 |
- doins -r vmware-ovftool/* |
11100 |
- |
11101 |
- chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin} |
11102 |
- dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool |
11103 |
- fi |
11104 |
- |
11105 |
- # create symlinks for the various tools |
11106 |
- local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} licenseTool vmamqpd \ |
11107 |
- vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper,zenity} ; do |
11108 |
- dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" |
11109 |
- done |
11110 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer |
11111 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware |
11112 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu |
11113 |
- |
11114 |
- # fix permissions |
11115 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks} |
11116 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper} |
11117 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/setup/vmware-config |
11118 |
- fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount |
11119 |
- fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats} |
11120 |
- if use server; then |
11121 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-{hostd,wssc-adminTool} |
11122 |
- fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd |
11123 |
- fperms 1777 "${VM_DATA_STORE_DIR}" |
11124 |
- fi |
11125 |
- if use vix; then |
11126 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config |
11127 |
- fi |
11128 |
- |
11129 |
- # create the environment |
11130 |
- local envd="${T}/90vmware" |
11131 |
- cat > "${envd}" <<-EOF |
11132 |
- PATH='${VM_INSTALL_DIR}/bin' |
11133 |
- ROOTPATH='${VM_INSTALL_DIR}/bin' |
11134 |
- EOF |
11135 |
- |
11136 |
- use bundled-libs && echo 'VMWARE_USE_SHIPPED_LIBS=1' >> "${envd}" |
11137 |
- |
11138 |
- doenvd "${envd}" |
11139 |
- |
11140 |
- # create the configuration |
11141 |
- dodir /etc/vmware |
11142 |
- |
11143 |
- cat > "${D}"/etc/vmware/bootstrap <<-EOF |
11144 |
- BINDIR='${VM_INSTALL_DIR}/bin' |
11145 |
- LIBDIR='${VM_INSTALL_DIR}/lib' |
11146 |
- EOF |
11147 |
- |
11148 |
- cat > "${D}"/etc/vmware/config <<-EOF |
11149 |
- bindir = "${VM_INSTALL_DIR}/bin" |
11150 |
- libdir = "${VM_INSTALL_DIR}/lib/vmware" |
11151 |
- initscriptdir = "/etc/init.d" |
11152 |
- authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd" |
11153 |
- gksu.rootMethod = "su" |
11154 |
- VMCI_CONFED = "yes" |
11155 |
- VMBLOCK_CONFED = "yes" |
11156 |
- VSOCK_CONFED = "yes" |
11157 |
- NETWORKING = "yes" |
11158 |
- player.product.version = "${major_minor_revision}" |
11159 |
- product.version = "${major_minor_revision}" |
11160 |
- product.buildNumber = "${build}" |
11161 |
- product.name = "VMware Workstation" |
11162 |
- workstation.product.version = "${major_minor_revision}" |
11163 |
- EOF |
11164 |
- |
11165 |
- if use vix; then |
11166 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
11167 |
- vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware" |
11168 |
- vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix" |
11169 |
- vix.config.version = "1" |
11170 |
- EOF |
11171 |
- fi |
11172 |
- |
11173 |
- if use server; then |
11174 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
11175 |
- authd.client.port = "902" |
11176 |
- authd.proxy.nfc = "vmware-hostd:ha-nfc" |
11177 |
- authd.soapserver = "TRUE" |
11178 |
- EOF |
11179 |
- fi |
11180 |
- |
11181 |
- # install the init.d script |
11182 |
- local initscript="${T}/vmware.rc" |
11183 |
- sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
11184 |
- "${FILESDIR}/vmware-${major_minor}.rc" > ${initscript} |
11185 |
- newinitd "${initscript}" vmware |
11186 |
- |
11187 |
- if use server; then |
11188 |
- # install the init.d script |
11189 |
- local initscript="${T}/vmware-workstation-server.rc" |
11190 |
- sed -e "s:@@ETCDIR@@:/etc/vmware:g" \ |
11191 |
- -e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \ |
11192 |
- -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
11193 |
- -e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \ |
11194 |
- "${FILESDIR}/vmware-server-${major_minor}.rc" > ${initscript} |
11195 |
- newinitd "${initscript}" vmware-workstation-server |
11196 |
- fi |
11197 |
- |
11198 |
- # fill in variable placeholders |
11199 |
- sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ |
11200 |
- -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} |
11201 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \ |
11202 |
- -e "/^Encoding/d" \ |
11203 |
- -i "${D}/usr/share/applications/${PN}.desktop" |
11204 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ |
11205 |
- -e "/^Encoding/d" \ |
11206 |
- -i "${D}/usr/share/applications/vmware-player.desktop" |
11207 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \ |
11208 |
- -e "/^Encoding/d" \ |
11209 |
- -i "${D}/usr/share/applications/vmware-netcfg.desktop" |
11210 |
- |
11211 |
- if use server; then |
11212 |
- # Configuration for vmware-workstation-server |
11213 |
- local hostdUser="${VM_HOSTD_USER:-root}" |
11214 |
- sed -e "/ACEDataUser/s:root:${hostdUser}:g" \ |
11215 |
- -i "${D}/etc/vmware/hostd/authorization.xml" || die |
11216 |
- |
11217 |
- # Shared VMs Path: [standard]. |
11218 |
- sed -e "s:##{DS_NAME}##:standard:g" \ |
11219 |
- -e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \ |
11220 |
- -i "${D}/etc/vmware/hostd/datastores.xml" || die |
11221 |
- |
11222 |
- sed -e "s:##{HTTP_PORT}##:-1:g" \ |
11223 |
- -e "s:##{HTTPS_PORT}##:443:g" \ |
11224 |
- -e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \ |
11225 |
- -i "${D}/etc/vmware/hostd/proxy.xml" || die |
11226 |
- |
11227 |
- # See vmware-workstation-server.py for more details. |
11228 |
- sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
11229 |
- -e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \ |
11230 |
- -e "s:##{CFGDIR}##:/etc/vmware/:g" \ |
11231 |
- -e "s:##{ENABLE_AUTH}##:true:g" \ |
11232 |
- -e "s:##{HOSTDMODE}##:ws:g" \ |
11233 |
- -e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
11234 |
- -e "s:##{HOSTD_MOCKUP}##:false:g" \ |
11235 |
- -e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \ |
11236 |
- -e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \ |
11237 |
- -e "s:##{LOGDIR}##:/var/log/vmware/:g" \ |
11238 |
- -e "s:##{LOGLEVEL}##:verbose:g" \ |
11239 |
- -e "s:##{MOCKUP}##:mockup-host-config.xml:g" \ |
11240 |
- -e "s:##{PLUGINDIR}##:./:g" \ |
11241 |
- -e "s:##{SHLIB_PREFIX}##:lib:g" \ |
11242 |
- -e "s:##{SHLIB_SUFFIX}##:.so:g" \ |
11243 |
- -e "s:##{USE_BLKLISTSVC}##:false:g" \ |
11244 |
- -e "s:##{USE_CBRCSVC}##:false:g" \ |
11245 |
- -e "s:##{USE_CIMSVC}##:false:g" \ |
11246 |
- -e "s:##{USE_DIRECTORYSVC}##:false:g" \ |
11247 |
- -e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \ |
11248 |
- -e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \ |
11249 |
- -e "s:##{USE_DYNAMO}##:false:g" \ |
11250 |
- -e "s:##{USE_DYNSVC}##:false:g" \ |
11251 |
- -e "s:##{USE_GUESTSVC}##:false:g" \ |
11252 |
- -e "s:##{USE_HBRSVC}##:false:g" \ |
11253 |
- -e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \ |
11254 |
- -e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \ |
11255 |
- -e "s:##{USE_HTTPNFCSVC}##:false:g" \ |
11256 |
- -e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \ |
11257 |
- -e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \ |
11258 |
- -e "s:##{USE_NFCSVC}##:true:g" \ |
11259 |
- -e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \ |
11260 |
- -e "s:##{USE_OVFMGRSVC}##:true:g" \ |
11261 |
- -e "s:##{USE_PARTITIONSVC}##:false:g" \ |
11262 |
- -e "s:##{USE_SECURESOAP}##:false:g" \ |
11263 |
- -e "s:##{USE_SNMPSVC}##:false:g" \ |
11264 |
- -e "s:##{USE_SOLO_MOCKUP}##:false:g" \ |
11265 |
- -e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \ |
11266 |
- -e "s:##{USE_VCSVC_MOCKUP}##:false:g" \ |
11267 |
- -e "s:##{USE_VDISKSVC}##:false:g" \ |
11268 |
- -e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \ |
11269 |
- -e "s:##{USE_VMSVC_MOCKUP}##:false:g" \ |
11270 |
- -e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \ |
11271 |
- -e "s:##{VM_RESOURCES}##:vmResources.xml:g" \ |
11272 |
- -e "s:##{WEBSERVER_PORT_ENTRY}##::g" \ |
11273 |
- -e "s:##{WORKINGDIR}##:./:g" \ |
11274 |
- -i "${D}/etc/vmware/hostd/config.xml" || die |
11275 |
- |
11276 |
- sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \ |
11277 |
- -i "${D}/etc/vmware/hostd/environments.xml" || die |
11278 |
- |
11279 |
- # @@VICLIENT_URL@@=XXX |
11280 |
- sed -e "s:@@AUTHD_PORT@@:902:g" \ |
11281 |
- -i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die |
11282 |
- fi |
11283 |
- |
11284 |
- # install systemd unit files |
11285 |
- systemd_dounit "${WORKDIR}/systemd-vmware-${SYSTEMD_UNITS_TAG}/"*.{service,target} |
11286 |
- |
11287 |
- readme.gentoo_create_doc |
11288 |
-} |
11289 |
- |
11290 |
-pkg_config() { |
11291 |
- "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new |
11292 |
-} |
11293 |
- |
11294 |
-pkg_preinst() { |
11295 |
- gnome2_icon_savelist |
11296 |
-} |
11297 |
- |
11298 |
-pkg_postinst() { |
11299 |
- fdo-mime_desktop_database_update |
11300 |
- gnome2_icon_cache_update |
11301 |
- readme.gentoo_pkg_postinst |
11302 |
-} |
11303 |
- |
11304 |
-pkg_prerm() { |
11305 |
- einfo "Stopping ${PN} for safe unmerge" |
11306 |
- /etc/init.d/vmware stop |
11307 |
-} |
11308 |
- |
11309 |
-pkg_postrm() { |
11310 |
- fdo-mime_desktop_database_update |
11311 |
- gnome2_icon_cache_update |
11312 |
-} |
11313 |
|
11314 |
diff --git a/app-emulation/vmware-workstation/vmware-workstation-12.1.0.3272444-r2.ebuild b/app-emulation/vmware-workstation/vmware-workstation-12.1.0.3272444-r2.ebuild |
11315 |
deleted file mode 100644 |
11316 |
index 9d8b6b484a8..00000000000 |
11317 |
--- a/app-emulation/vmware-workstation/vmware-workstation-12.1.0.3272444-r2.ebuild |
11318 |
+++ /dev/null |
11319 |
@@ -1,627 +0,0 @@ |
11320 |
-# Copyright 1999-2016 Gentoo Foundation |
11321 |
-# Distributed under the terms of the GNU General Public License v2 |
11322 |
- |
11323 |
-EAPI=5 |
11324 |
- |
11325 |
-inherit eutils versionator readme.gentoo-r1 fdo-mime gnome2-utils pam systemd vmware-bundle |
11326 |
- |
11327 |
-MY_PN="VMware-Workstation" |
11328 |
-MY_PV=$(get_version_component_range 1-3) |
11329 |
-PV_MODULES="308.$(get_version_component_range 2-3)" |
11330 |
-PV_BUILD=$(get_version_component_range 4) |
11331 |
-MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}" |
11332 |
- |
11333 |
-SYSTEMD_UNITS_TAG="gentoo-02" |
11334 |
- |
11335 |
-DESCRIPTION="Emulate a complete PC without the performance overhead of most emulators" |
11336 |
-HOMEPAGE="http://www.vmware.com/products/workstation/" |
11337 |
-BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${MY_PV}/${PV_BUILD}/linux/core/" |
11338 |
-SRC_URI=" |
11339 |
- amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar ) |
11340 |
- https://github.com/akhuettel/systemd-vmware/archive/${SYSTEMD_UNITS_TAG}.tar.gz -> vmware-systemd-${SYSTEMD_UNITS_TAG}.tgz |
11341 |
- " |
11342 |
- |
11343 |
-LICENSE="vmware GPL-2 GPL-3" |
11344 |
-SLOT="0" |
11345 |
-KEYWORDS="-* ~amd64" |
11346 |
-IUSE="bundled-libs cups doc ovftool server vix +vmware-tools" |
11347 |
-RESTRICT="mirror strip" |
11348 |
- |
11349 |
-BUNDLED_LIBS_DIR=/opt/vmware/lib/vmware/lib |
11350 |
- |
11351 |
-BUNDLED_LIBS=" |
11352 |
- libXau.so.6 |
11353 |
- libXcomposite.so.1 |
11354 |
- libXcursor.so.1 |
11355 |
- libXdamage.so.1 |
11356 |
- libXdmcp.so.6 |
11357 |
- libXfixes.so.3 |
11358 |
- libXft.so.2 |
11359 |
- libXinerama.so.1 |
11360 |
- libXrandr.so.2 |
11361 |
- libXrender.so.1 |
11362 |
- libaio.so.1 |
11363 |
- libatk-1.0.so.0 |
11364 |
- libatkmm-1.6.so.1 |
11365 |
- libatspi.so.0 |
11366 |
- libcairo.so.2 |
11367 |
- libcairomm-1.0.so.1 |
11368 |
- libcrypto.so.1.0.1 |
11369 |
- libcurl.so.4 |
11370 |
- libdbus-1.so.3 |
11371 |
- libfontconfig.so.1 |
11372 |
- libfreetype.so.6 |
11373 |
- libfuse.so.2 |
11374 |
- libgailutil.so.18 |
11375 |
- libgcc_s.so.1 |
11376 |
- libgcrypt.so.11 |
11377 |
- libgdk-x11-2.0.so.0 |
11378 |
- libgdk_pixbuf-2.0.so.0 |
11379 |
- libgdkmm-2.4.so.1 |
11380 |
- libgio-2.0.so.0 |
11381 |
- libgiomm-2.4.so.1 |
11382 |
- libglib-2.0.so.0 |
11383 |
- libglibmm-2.4.so.1 |
11384 |
- libglibmm_generate_extra_defs-2.4.so.1 |
11385 |
- libgmodule-2.0.so.0 |
11386 |
- libgobject-2.0.so.0 |
11387 |
- libgpg-error.so.0 |
11388 |
- libgthread-2.0.so.0 |
11389 |
- libgtk-x11-2.0.so.0 |
11390 |
- libgtkmm-2.4.so.1 |
11391 |
- libpango-1.0.so.0 |
11392 |
- libpangocairo-1.0.so.0 |
11393 |
- libpangoft2-1.0.so.0 |
11394 |
- libpangomm-1.4.so.1 |
11395 |
- libpangox-1.0.so.0 |
11396 |
- libpangoxft-1.0.so.0 |
11397 |
- libpcsclite.so.1 |
11398 |
- libpixman-1.so.0 |
11399 |
- libpng12.so.0 |
11400 |
- librsvg-2.so.2 |
11401 |
- libsigc-2.0.so.0 |
11402 |
- libssl.so.1.0.1 |
11403 |
- libstdc++.so.6 |
11404 |
- libxml2.so.2 |
11405 |
- libz.so.1 |
11406 |
-" |
11407 |
- |
11408 |
-BUNDLED_LIB_DEPENDS=" |
11409 |
- app-accessibility/at-spi2-core |
11410 |
- dev-cpp/atkmm |
11411 |
- dev-cpp/cairomm |
11412 |
- dev-cpp/glibmm:2 |
11413 |
- dev-cpp/gtkmm:2.4 |
11414 |
- dev-cpp/pangomm |
11415 |
- dev-libs/atk |
11416 |
- dev-libs/glib:2 |
11417 |
- dev-libs/libaio |
11418 |
- dev-libs/libgcrypt:11/11 |
11419 |
- dev-libs/libgpg-error |
11420 |
- dev-libs/libsigc++:2 |
11421 |
- dev-libs/libxml2 |
11422 |
- dev-libs/openssl:0 |
11423 |
- gnome-base/librsvg:2 |
11424 |
- media-libs/fontconfig |
11425 |
- media-libs/freetype |
11426 |
- media-libs/libpng:1.2 |
11427 |
- net-misc/curl |
11428 |
- sys-apps/dbus |
11429 |
- sys-apps/pcsc-lite |
11430 |
- sys-fs/fuse |
11431 |
- sys-libs/zlib |
11432 |
- x11-libs/cairo |
11433 |
- x11-libs/gdk-pixbuf:2 |
11434 |
- x11-libs/gtk+:2 |
11435 |
- x11-libs/libXau |
11436 |
- x11-libs/libXcomposite |
11437 |
- x11-libs/libXcursor |
11438 |
- x11-libs/libXdamage |
11439 |
- x11-libs/libXdmcp |
11440 |
- x11-libs/libXfixes |
11441 |
- x11-libs/libXft |
11442 |
- x11-libs/libXinerama |
11443 |
- x11-libs/libXrandr |
11444 |
- x11-libs/libXrender |
11445 |
- x11-libs/pango |
11446 |
- x11-libs/pangox-compat |
11447 |
- x11-libs/pixman |
11448 |
-" |
11449 |
- |
11450 |
-# vmware should not use virtual/libc as this is a |
11451 |
-# precompiled binary package thats linked to glibc. |
11452 |
-RDEPEND=" |
11453 |
- app-arch/bzip2 |
11454 |
- dev-libs/dbus-glib |
11455 |
- dev-libs/expat |
11456 |
- dev-libs/gmp:0 |
11457 |
- dev-libs/icu |
11458 |
- dev-libs/json-c |
11459 |
- dev-libs/libcroco |
11460 |
- dev-libs/libffi |
11461 |
- dev-libs/libgcrypt:0/20 |
11462 |
- dev-libs/libtasn1:0/6 |
11463 |
- dev-libs/nettle:0/6 |
11464 |
- gnome-base/gconf |
11465 |
- gnome-base/libgnome-keyring |
11466 |
- media-gfx/graphite2 |
11467 |
- media-libs/alsa-lib |
11468 |
- media-libs/harfbuzz:0/0.9.18 |
11469 |
- media-libs/libart_lgpl |
11470 |
- media-libs/libpng:0 |
11471 |
- media-libs/libvorbis |
11472 |
- media-libs/mesa |
11473 |
- net-dns/libidn |
11474 |
- net-libs/gnutls |
11475 |
- net-print/cups |
11476 |
- sys-apps/tcp-wrappers |
11477 |
- sys-apps/util-linux |
11478 |
- x11-libs/libICE |
11479 |
- x11-libs/libSM |
11480 |
- x11-libs/libX11 |
11481 |
- x11-libs/libXext |
11482 |
- x11-libs/libXi |
11483 |
- x11-libs/libXtst |
11484 |
- x11-libs/libXxf86vm |
11485 |
- x11-libs/libdrm |
11486 |
- x11-libs/libxcb |
11487 |
- x11-libs/libxshmfence |
11488 |
- x11-libs/startup-notification |
11489 |
- x11-libs/xcb-util |
11490 |
- x11-themes/hicolor-icon-theme |
11491 |
- bundled-libs? ( |
11492 |
- media-libs/jbigkit:0/2.1 |
11493 |
- media-libs/tiff:3 |
11494 |
- virtual/jpeg:62 |
11495 |
- ) |
11496 |
- !bundled-libs? ( ${BUNDLED_LIB_DEPENDS} ) |
11497 |
- !app-emulation/vmware-player |
11498 |
-" |
11499 |
-PDEPEND="~app-emulation/vmware-modules-${PV_MODULES} |
11500 |
- vmware-tools? ( app-emulation/vmware-tools )" |
11501 |
-DEPEND=">=dev-util/patchelf-0.9" |
11502 |
- |
11503 |
-S=${WORKDIR} |
11504 |
-VM_INSTALL_DIR="/opt/vmware" |
11505 |
-VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs" |
11506 |
-VM_HOSTD_USER="root" |
11507 |
- |
11508 |
-QA_PREBUILT="/opt/*" |
11509 |
- |
11510 |
-QA_WX_LOAD="opt/vmware/lib/vmware/tools-upgraders/vmware-tools-upgrader-32 opt/vmware/lib/vmware/bin/vmware-vmx-stats opt/vmware/lib/vmware/bin/vmware-vmx-debug opt/vmware/lib/vmware/bin/vmware-vmx" |
11511 |
- |
11512 |
-src_unpack() { |
11513 |
- default |
11514 |
- local bundle=${MY_P}.x86_64.bundle |
11515 |
- |
11516 |
- local component; for component in \ |
11517 |
- vmware-workstation \ |
11518 |
- vmware-player-app \ |
11519 |
- vmware-player-setup \ |
11520 |
- vmware-vmx \ |
11521 |
- vmware-network-editor \ |
11522 |
- vmware-network-editor-ui \ |
11523 |
- vmware-usbarbitrator \ |
11524 |
- vmware-vprobe |
11525 |
- do |
11526 |
- vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}" |
11527 |
- done |
11528 |
- |
11529 |
- if use ovftool; then |
11530 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool |
11531 |
- fi |
11532 |
- |
11533 |
- if use server; then |
11534 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-workstation-server #"${S}" |
11535 |
- fi |
11536 |
- |
11537 |
- if use vix; then |
11538 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-core vmware-vix |
11539 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-lib-Workstation1200 vmware-vix |
11540 |
- fi |
11541 |
-} |
11542 |
- |
11543 |
-clean_bundled_libs() { |
11544 |
- einfo "Removing bundled libraries" |
11545 |
- for libname in ${BUNDLED_LIBS} ; do |
11546 |
- rm -rv "${S}"/lib/lib/${libname} || die "Failed removing bundled ${libname}" |
11547 |
- done |
11548 |
- |
11549 |
- rm -rv "${S}"/lib/libconf || die "Failed removing bundled gtk conf libs" |
11550 |
- |
11551 |
- # Among the bundled libs there are libcrypto.so.1.0.1 and libssl.so.1.0.1 |
11552 |
- # (needed by libcds.so) which seem to be compiled from openssl-1.0.1h. |
11553 |
- # Upstream real sonames are *so.1.0.0 so it's necessary to fix DT_NEEDED link |
11554 |
- # in libcds.so to be able to use system libs. |
11555 |
- pushd >/dev/null . |
11556 |
- einfo "Patching libcds.so" |
11557 |
- cd "${S}"/lib/lib/libcds.so || die |
11558 |
- patchelf --replace-needed libssl.so.1.0.{1,0} \ |
11559 |
- --replace-needed libcrypto.so.1.0.{1,0} \ |
11560 |
- libcds.so || die |
11561 |
- popd >/dev/null |
11562 |
- |
11563 |
- # vmware-workstation seems to use a custom version of libgksu2.so, for this reason |
11564 |
- # we leave the bundled version. The libvmware-gksu.so library declares simply DT_NEEDED |
11565 |
- # libgksu2.so.0 but it uses at runtime the bundled version, patch the lib to avoid portage |
11566 |
- # preserve-libs mechanism to be triggered when a system lib is available (but not required) |
11567 |
- pushd >/dev/null . |
11568 |
- einfo "Patching libvmware-gksu.so" |
11569 |
- cd "${S}"/lib/lib/libvmware-gksu.so || die |
11570 |
- patchelf --set-rpath "\$ORIGIN/../libgksu2.so.0" \ |
11571 |
- libvmware-gksu.so || die |
11572 |
- popd >/dev/null |
11573 |
-} |
11574 |
- |
11575 |
-src_prepare() { |
11576 |
- rm -f bin/vmware-modconfig |
11577 |
- rm -rf lib/modules/binary |
11578 |
- # Bug 459566 |
11579 |
- mv lib/libvmware-netcfg.so lib/lib/ |
11580 |
- |
11581 |
- if use server; then |
11582 |
- rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh} |
11583 |
- fi |
11584 |
- |
11585 |
- if ! use bundled-libs ; then |
11586 |
- clean_bundled_libs |
11587 |
- fi |
11588 |
- |
11589 |
- DOC_CONTENTS=" |
11590 |
-/etc/env.d is updated during ${PN} installation. Please run:\n |
11591 |
-env-update && source /etc/profile\n |
11592 |
-Before you can use ${PN}, you must configure a default network setup. |
11593 |
-You can do this by running 'emerge --config ${PN}'.\n |
11594 |
-To be able to run ${PN} your user must be in the vmware group.\n |
11595 |
-You MUST set USE=bundled-libs if you are running gcc-5, otherwise vmware will not start. |
11596 |
-" |
11597 |
-} |
11598 |
- |
11599 |
-src_install() { |
11600 |
- local major_minor=$(get_version_component_range 1-2 "${PV}") |
11601 |
- |
11602 |
- # revdep-rebuild entry |
11603 |
- insinto /etc/revdep-rebuild |
11604 |
- echo "SEARCH_DIRS_MASK=\"${VM_INSTALL_DIR}\"" >> ${T}/10${PN} |
11605 |
- doins "${T}"/10${PN} |
11606 |
- |
11607 |
- # install the binaries |
11608 |
- into "${VM_INSTALL_DIR}" |
11609 |
- dobin bin/* |
11610 |
- |
11611 |
- # install the libraries |
11612 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
11613 |
- doins -r lib/* |
11614 |
- |
11615 |
- # workaround for hardcoded search paths needed during shared objects loading |
11616 |
- if ! use bundled-libs ; then |
11617 |
- dosym /usr/$(get_libdir)/libglib-2.0.so.0 \ |
11618 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libglib-2.0.so.0/libglib-2.0.so.0 |
11619 |
- # Bug 432918 |
11620 |
- dosym /usr/$(get_libdir)/libcrypto.so.1.0.0 \ |
11621 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.1.0.1/libcrypto.so.1.0.1 |
11622 |
- dosym /usr/$(get_libdir)/libssl.so.1.0.0 \ |
11623 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.1.0.1/libssl.so.1.0.1 |
11624 |
- fi |
11625 |
- |
11626 |
- # install the ancillaries |
11627 |
- insinto /usr |
11628 |
- doins -r share |
11629 |
- |
11630 |
- if use cups; then |
11631 |
- exeinto $(cups-config --serverbin)/filter |
11632 |
- doexe extras/thnucups |
11633 |
- |
11634 |
- insinto /etc/cups |
11635 |
- doins -r etc/cups/* |
11636 |
- fi |
11637 |
- |
11638 |
- if use doc; then |
11639 |
- dodoc doc/* |
11640 |
- fi |
11641 |
- |
11642 |
- exeinto "${VM_INSTALL_DIR}"/lib/vmware/setup |
11643 |
- doexe vmware-config |
11644 |
- |
11645 |
- # install vmware workstation server |
11646 |
- if use server; then |
11647 |
- dosbin sbin/* |
11648 |
- |
11649 |
- cd "${S}"/vmware-workstation-server |
11650 |
- |
11651 |
- # install binaries |
11652 |
- into "${VM_INSTALL_DIR}"/lib/vmware |
11653 |
- dobin bin/* |
11654 |
- |
11655 |
- dobin "${FILESDIR}"/configure-hostd.sh |
11656 |
- |
11657 |
- dobin "${FILESDIR}"/configure-hostd.sh |
11658 |
- |
11659 |
- # install the libraries |
11660 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/lib |
11661 |
- doins -r lib/* |
11662 |
- |
11663 |
- into "${VM_INSTALL_DIR}" |
11664 |
- for tool in vmware-hostd wssc-adminTool ; do |
11665 |
- cat > "${T}/${tool}" <<-EOF |
11666 |
- #!/usr/bin/env bash |
11667 |
- set -e |
11668 |
- |
11669 |
- . /etc/vmware/bootstrap |
11670 |
- |
11671 |
- exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\ |
11672 |
- "${VM_INSTALL_DIR}/lib/vmware/lib" \\ |
11673 |
- "${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\ |
11674 |
- "${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@" |
11675 |
- EOF |
11676 |
- dobin "${T}/${tool}" |
11677 |
- done |
11678 |
- |
11679 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
11680 |
- doins -r hostd |
11681 |
- |
11682 |
- # create the configuration |
11683 |
- insinto /etc/vmware/hostd |
11684 |
- doins -r config/etc/vmware/hostd/* |
11685 |
- doins -r etc/vmware/hostd/* |
11686 |
- |
11687 |
- insinto /etc/vmware/ssl |
11688 |
- doins etc/vmware/ssl/* |
11689 |
- |
11690 |
- # pam |
11691 |
- pamd_mimic_system vmware-authd auth account |
11692 |
- |
11693 |
- # create directory for shared virtual machines. |
11694 |
- keepdir "${VM_DATA_STORE_DIR}" |
11695 |
- keepdir /var/log/vmware |
11696 |
- fi |
11697 |
- |
11698 |
- # install vmware-vix |
11699 |
- if use vix; then |
11700 |
- cd "${S}"/vmware-vix |
11701 |
- |
11702 |
- # install the binary |
11703 |
- into "${VM_INSTALL_DIR}" |
11704 |
- dobin bin/* |
11705 |
- |
11706 |
- # install the libraries |
11707 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-vix |
11708 |
- doins -r lib/* |
11709 |
- |
11710 |
- dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so |
11711 |
- |
11712 |
- # install headers |
11713 |
- insinto /usr/include/vmware-vix |
11714 |
- doins include/* |
11715 |
- |
11716 |
- if use doc; then |
11717 |
- dohtml -r doc/* |
11718 |
- fi |
11719 |
- fi |
11720 |
- |
11721 |
- # install ovftool |
11722 |
- if use ovftool; then |
11723 |
- cd "${S}" |
11724 |
- |
11725 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool |
11726 |
- doins -r vmware-ovftool/* |
11727 |
- |
11728 |
- chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin} |
11729 |
- dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool |
11730 |
- fi |
11731 |
- |
11732 |
- # create symlinks for the various tools |
11733 |
- local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} licenseTool vmamqpd \ |
11734 |
- vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,zenity} ; do |
11735 |
- dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" |
11736 |
- done |
11737 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer |
11738 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware |
11739 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu |
11740 |
- |
11741 |
- # fix permissions |
11742 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks} |
11743 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/wrapper-gtk24.sh |
11744 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/libgksu2.so.0/gksu-run-helper |
11745 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/setup/vmware-config |
11746 |
- fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount |
11747 |
- fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats} |
11748 |
- if use server; then |
11749 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{vmware-hostd,wssc-adminTool} |
11750 |
- fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd |
11751 |
- fperms 1777 "${VM_DATA_STORE_DIR}" |
11752 |
- fi |
11753 |
- if use vix; then |
11754 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config |
11755 |
- fi |
11756 |
- |
11757 |
- # create the environment |
11758 |
- local envd="${T}/90vmware" |
11759 |
- cat > "${envd}" <<-EOF |
11760 |
- PATH='${VM_INSTALL_DIR}/bin' |
11761 |
- ROOTPATH='${VM_INSTALL_DIR}/bin' |
11762 |
- EOF |
11763 |
- use bundled-libs && echo 'VMWARE_USE_SHIPPED_LIBS=1' >> "${envd}" |
11764 |
- |
11765 |
- doenvd "${envd}" |
11766 |
- |
11767 |
- # create the configuration |
11768 |
- dodir /etc/vmware |
11769 |
- |
11770 |
- cat > "${D}"/etc/vmware/bootstrap <<-EOF |
11771 |
- BINDIR='${VM_INSTALL_DIR}/bin' |
11772 |
- LIBDIR='${VM_INSTALL_DIR}/lib' |
11773 |
- EOF |
11774 |
- |
11775 |
- cat > "${D}"/etc/vmware/config <<-EOF |
11776 |
- bindir = "${VM_INSTALL_DIR}/bin" |
11777 |
- libdir = "${VM_INSTALL_DIR}/lib/vmware" |
11778 |
- initscriptdir = "/etc/init.d" |
11779 |
- authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd" |
11780 |
- gksu.rootMethod = "su" |
11781 |
- VMCI_CONFED = "yes" |
11782 |
- VMBLOCK_CONFED = "yes" |
11783 |
- VSOCK_CONFED = "yes" |
11784 |
- NETWORKING = "yes" |
11785 |
- player.product.version = "${MY_PV}" |
11786 |
- product.buildNumber = "${PV_BUILD}" |
11787 |
- product.version = "${MY_PV}" |
11788 |
- product.name = "VMware Workstation" |
11789 |
- workstation.product.version = "${MY_PV}" |
11790 |
- EOF |
11791 |
- |
11792 |
- if use vix; then |
11793 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
11794 |
- vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware" |
11795 |
- vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix" |
11796 |
- vix.config.version = "1" |
11797 |
- EOF |
11798 |
- fi |
11799 |
- |
11800 |
- if use server; then |
11801 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
11802 |
- authd.client.port = "902" |
11803 |
- authd.proxy.nfc = "vmware-hostd:ha-nfc" |
11804 |
- authd.soapserver = "TRUE" |
11805 |
- EOF |
11806 |
- fi |
11807 |
- |
11808 |
- # install the init.d script |
11809 |
- local initscript="${T}/vmware.rc" |
11810 |
- sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
11811 |
- "${FILESDIR}/vmware-${major_minor}.rc" > "${initscript}" || die |
11812 |
- newinitd "${initscript}" vmware |
11813 |
- |
11814 |
- if use server; then |
11815 |
- # install the init.d script |
11816 |
- local initscript="${T}/vmware-workstation-server.rc" |
11817 |
- sed -e "s:@@ETCDIR@@:/etc/vmware:g" \ |
11818 |
- -e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \ |
11819 |
- -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
11820 |
- -e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \ |
11821 |
- "${FILESDIR}/vmware-server-${major_minor}.rc" > ${initscript} || die |
11822 |
- newinitd "${initscript}" vmware-workstation-server |
11823 |
- fi |
11824 |
- |
11825 |
- # fill in variable placeholders |
11826 |
- if use bundled-libs ; then |
11827 |
- sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ |
11828 |
- -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} || die |
11829 |
- fi |
11830 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ |
11831 |
- -e "/^Encoding/d" \ |
11832 |
- -i "${D}/usr/share/applications/vmware-player.desktop" || die |
11833 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \ |
11834 |
- -e "/^Encoding/d" \ |
11835 |
- -i "${D}/usr/share/applications/vmware-workstation.desktop" || die |
11836 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \ |
11837 |
- -e "/^Encoding/d" \ |
11838 |
- -i "${D}/usr/share/applications/vmware-netcfg.desktop" || die |
11839 |
- |
11840 |
- if use server; then |
11841 |
- # Configuration for vmware-workstation-server |
11842 |
- local hostdUser="${VM_HOSTD_USER:-root}" |
11843 |
- sed -e "/ACEDataUser/s:root:${hostdUser}:g" \ |
11844 |
- -i "${D}/etc/vmware/hostd/authorization.xml" || die |
11845 |
- |
11846 |
- # Shared VMs Path: [standard]. |
11847 |
- sed -e "s:##{DS_NAME}##:standard:g" \ |
11848 |
- -e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \ |
11849 |
- -i "${D}/etc/vmware/hostd/datastores.xml" || die |
11850 |
- |
11851 |
- sed -e "s:##{HTTP_PORT}##:-1:g" \ |
11852 |
- -e "s:##{HTTPS_PORT}##:443:g" \ |
11853 |
- -e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \ |
11854 |
- -i "${D}/etc/vmware/hostd/proxy.xml" || die |
11855 |
- |
11856 |
- # See vmware-workstation-server.py for more details. |
11857 |
- sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
11858 |
- -e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \ |
11859 |
- -e "s:##{CFGDIR}##:/etc/vmware/:g" \ |
11860 |
- -e "s:##{ENABLE_AUTH}##:true:g" \ |
11861 |
- -e "s:##{HOSTDMODE}##:ws:g" \ |
11862 |
- -e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
11863 |
- -e "s:##{HOSTD_MOCKUP}##:false:g" \ |
11864 |
- -e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \ |
11865 |
- -e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \ |
11866 |
- -e "s:##{LOGDIR}##:/var/log/vmware/:g" \ |
11867 |
- -e "s:##{LOGLEVEL}##:verbose:g" \ |
11868 |
- -e "s:##{MOCKUP}##:mockup-host-config.xml:g" \ |
11869 |
- -e "s:##{PLUGINDIR}##:./:g" \ |
11870 |
- -e "s:##{SHLIB_PREFIX}##:lib:g" \ |
11871 |
- -e "s:##{SHLIB_SUFFIX}##:.so:g" \ |
11872 |
- -e "s:##{USE_BLKLISTSVC}##:false:g" \ |
11873 |
- -e "s:##{USE_CBRCSVC}##:false:g" \ |
11874 |
- -e "s:##{USE_CIMSVC}##:false:g" \ |
11875 |
- -e "s:##{USE_DIRECTORYSVC}##:false:g" \ |
11876 |
- -e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \ |
11877 |
- -e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \ |
11878 |
- -e "s:##{USE_DYNAMO}##:false:g" \ |
11879 |
- -e "s:##{USE_DYNSVC}##:false:g" \ |
11880 |
- -e "s:##{USE_GUESTSVC}##:false:g" \ |
11881 |
- -e "s:##{USE_HBRSVC}##:false:g" \ |
11882 |
- -e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \ |
11883 |
- -e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \ |
11884 |
- -e "s:##{USE_HTTPNFCSVC}##:false:g" \ |
11885 |
- -e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \ |
11886 |
- -e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \ |
11887 |
- -e "s:##{USE_NFCSVC}##:true:g" \ |
11888 |
- -e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \ |
11889 |
- -e "s:##{USE_OVFMGRSVC}##:true:g" \ |
11890 |
- -e "s:##{USE_PARTITIONSVC}##:false:g" \ |
11891 |
- -e "s:##{USE_SECURESOAP}##:false:g" \ |
11892 |
- -e "s:##{USE_SNMPSVC}##:false:g" \ |
11893 |
- -e "s:##{USE_SOLO_MOCKUP}##:false:g" \ |
11894 |
- -e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \ |
11895 |
- -e "s:##{USE_VCSVC_MOCKUP}##:false:g" \ |
11896 |
- -e "s:##{USE_VDISKSVC}##:false:g" \ |
11897 |
- -e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \ |
11898 |
- -e "s:##{USE_VMSVC_MOCKUP}##:false:g" \ |
11899 |
- -e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \ |
11900 |
- -e "s:##{VM_RESOURCES}##:vmResources.xml:g" \ |
11901 |
- -e "s:##{WEBSERVER_PORT_ENTRY}##::g" \ |
11902 |
- -e "s:##{WORKINGDIR}##:./:g" \ |
11903 |
- -i "${D}/etc/vmware/hostd/config.xml" || die |
11904 |
- |
11905 |
- sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \ |
11906 |
- -i "${D}/etc/vmware/hostd/environments.xml" || die |
11907 |
- |
11908 |
- # @@VICLIENT_URL@@=XXX |
11909 |
- sed -e "s:@@AUTHD_PORT@@:902:g" \ |
11910 |
- -i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die |
11911 |
- fi |
11912 |
- |
11913 |
- # install systemd unit files |
11914 |
- systemd_dounit "${WORKDIR}/systemd-vmware-${SYSTEMD_UNITS_TAG}/"*.{service,target} |
11915 |
- |
11916 |
- readme.gentoo_create_doc |
11917 |
-} |
11918 |
- |
11919 |
-pkg_config() { |
11920 |
- "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new |
11921 |
-} |
11922 |
- |
11923 |
-pkg_preinst() { |
11924 |
- gnome2_icon_savelist |
11925 |
-} |
11926 |
- |
11927 |
-pkg_postinst() { |
11928 |
- fdo-mime_desktop_database_update |
11929 |
- gnome2_icon_cache_update |
11930 |
- readme.gentoo_print_elog |
11931 |
- |
11932 |
- ewarn "${P} is using an old version of libgcrypt library which" |
11933 |
- ewarn "is going to be soon removed from portage due to security reasons" |
11934 |
- ewarn "(see https://bugs.gentoo.org/show_bug.cgi?id=541564)." |
11935 |
- ewarn "Until vmware is fixed upstream you're exposed to security issues!" |
11936 |
-} |
11937 |
- |
11938 |
-pkg_prerm() { |
11939 |
- einfo "Stopping ${PN} for safe unmerge" |
11940 |
- /etc/init.d/vmware stop |
11941 |
-} |
11942 |
- |
11943 |
-pkg_postrm() { |
11944 |
- fdo-mime_desktop_database_update |
11945 |
- gnome2_icon_cache_update |
11946 |
-} |
11947 |
|
11948 |
diff --git a/app-emulation/vmware-workstation/vmware-workstation-9.0.3.1410761.ebuild b/app-emulation/vmware-workstation/vmware-workstation-9.0.3.1410761.ebuild |
11949 |
deleted file mode 100644 |
11950 |
index f7569037790..00000000000 |
11951 |
--- a/app-emulation/vmware-workstation/vmware-workstation-9.0.3.1410761.ebuild |
11952 |
+++ /dev/null |
11953 |
@@ -1,490 +0,0 @@ |
11954 |
-# Copyright 1999-2017 Gentoo Foundation |
11955 |
-# Distributed under the terms of the GNU General Public License v2 |
11956 |
- |
11957 |
-EAPI="4" |
11958 |
- |
11959 |
-inherit eutils versionator fdo-mime systemd gnome2-utils pam vmware-bundle |
11960 |
- |
11961 |
-MY_PN="VMware-Workstation" |
11962 |
-MY_PV=$(get_version_component_range 1-3) |
11963 |
-PV_MINOR=$(get_version_component_range 3) |
11964 |
-PV_BUILD=$(get_version_component_range 4) |
11965 |
-MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}" |
11966 |
- |
11967 |
-SYSTEMD_UNITS_TAG="gentoo-01" |
11968 |
- |
11969 |
-DESCRIPTION="Emulate a complete PC without the performance overhead of most emulators" |
11970 |
-HOMEPAGE="http://www.vmware.com/products/workstation/" |
11971 |
-BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${MY_PV}/${PV_BUILD}/linux/core/" |
11972 |
-SRC_URI=" |
11973 |
- x86? ( ${BASE_URI}${MY_P}.i386.bundle.tar ) |
11974 |
- amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar ) |
11975 |
- https://github.com/akhuettel/systemd-vmware/archive/${SYSTEMD_UNITS_TAG}.tar.gz |
11976 |
- " |
11977 |
-LICENSE="vmware GPL-2" |
11978 |
-SLOT="0" |
11979 |
-KEYWORDS="-* ~amd64 ~x86" |
11980 |
-IUSE="cups doc ovftool server vix vmware-tools" |
11981 |
-RESTRICT="mirror strip" |
11982 |
- |
11983 |
-# vmware-workstation should not use virtual/libc as this is a |
11984 |
-# precompiled binary package thats linked to glibc. |
11985 |
-RDEPEND="dev-cpp/cairomm |
11986 |
- dev-cpp/glibmm:2 |
11987 |
- dev-cpp/gtkmm:2.4 |
11988 |
- dev-cpp/libgnomecanvasmm |
11989 |
- dev-cpp/pangomm |
11990 |
- dev-libs/atk |
11991 |
- dev-libs/glib:2 |
11992 |
- dev-libs/icu |
11993 |
- dev-libs/expat |
11994 |
- dev-libs/libaio |
11995 |
- dev-libs/libsigc++ |
11996 |
- dev-libs/libxml2 |
11997 |
- =dev-libs/openssl-0.9.8* |
11998 |
- dev-libs/xmlrpc-c |
11999 |
- gnome-base/libgnomecanvas |
12000 |
- gnome-base/libgtop:2 |
12001 |
- gnome-base/librsvg:2 |
12002 |
- gnome-base/orbit |
12003 |
- media-libs/fontconfig |
12004 |
- media-libs/freetype |
12005 |
- media-libs/libart_lgpl |
12006 |
- =media-libs/libpng-1.2* |
12007 |
- media-libs/libpng |
12008 |
- net-misc/curl |
12009 |
- cups? ( net-print/cups ) |
12010 |
- sys-devel/gcc |
12011 |
- sys-fs/fuse |
12012 |
- sys-libs/glibc |
12013 |
- sys-libs/zlib |
12014 |
- x11-libs/cairo |
12015 |
- x11-libs/gtk+:2 |
12016 |
- x11-libs/libgksu |
12017 |
- x11-libs/libICE |
12018 |
- x11-libs/libSM |
12019 |
- x11-libs/libX11 |
12020 |
- x11-libs/libXau |
12021 |
- x11-libs/libxcb |
12022 |
- x11-libs/libXcomposite |
12023 |
- x11-libs/libXcursor |
12024 |
- x11-libs/libXdamage |
12025 |
- x11-libs/libXdmcp |
12026 |
- x11-libs/libXext |
12027 |
- x11-libs/libXfixes |
12028 |
- x11-libs/libXft |
12029 |
- x11-libs/libXi |
12030 |
- x11-libs/libXinerama |
12031 |
- x11-libs/libXrandr |
12032 |
- x11-libs/libXrender |
12033 |
- x11-libs/libXtst |
12034 |
- x11-libs/pango |
12035 |
- x11-libs/startup-notification |
12036 |
- x11-themes/hicolor-icon-theme |
12037 |
- !app-emulation/vmware-player" |
12038 |
-PDEPEND="~app-emulation/vmware-modules-271.${PV_MINOR} |
12039 |
- vmware-tools? ( app-emulation/vmware-tools )" |
12040 |
- |
12041 |
-S=${WORKDIR} |
12042 |
-VM_INSTALL_DIR="/opt/vmware" |
12043 |
-VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs" |
12044 |
-VM_HOSTD_USER="root" |
12045 |
- |
12046 |
-src_unpack() { |
12047 |
- default |
12048 |
- local bundle |
12049 |
- use amd64 && bundle=${MY_P}.x86_64.bundle |
12050 |
- use x86 && bundle=${MY_P}.i386.bundle |
12051 |
- local component; for component in \ |
12052 |
- vmware-vmx \ |
12053 |
- vmware-player-app \ |
12054 |
- vmware-player-setup \ |
12055 |
- vmware-workstation \ |
12056 |
- vmware-network-editor \ |
12057 |
- vmware-network-editor-ui \ |
12058 |
- vmware-usbarbitrator \ |
12059 |
- vmware-vprobe |
12060 |
- do |
12061 |
- vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}" |
12062 |
- done |
12063 |
- |
12064 |
- if use server; then |
12065 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-workstation-server #"${S}" |
12066 |
- fi |
12067 |
- |
12068 |
- if use vix; then |
12069 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-core vmware-vix |
12070 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-lib-Workstation900andvSphere510 vmware-vix |
12071 |
- fi |
12072 |
- if use ovftool; then |
12073 |
- vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool |
12074 |
- fi |
12075 |
-} |
12076 |
- |
12077 |
-src_prepare() { |
12078 |
- rm -f bin/vmware-modconfig |
12079 |
- rm -rf lib/modules/binary |
12080 |
- # Bug 459566 |
12081 |
- mv lib/libvmware-netcfg.so lib/lib/ |
12082 |
- |
12083 |
- if use server; then |
12084 |
- rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh} |
12085 |
- fi |
12086 |
- |
12087 |
- find "${S}" -name '*.a' -delete |
12088 |
- |
12089 |
-# clean_bundled_libs |
12090 |
-} |
12091 |
- |
12092 |
-clean_bundled_libs() { |
12093 |
- ebegin 'Removing superfluous libraries' |
12094 |
- cd lib/lib || die |
12095 |
- ldconfig -p | \ |
12096 |
- sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | \ |
12097 |
- fgrep -vx 'libcrypto.so.0.9.8 |
12098 |
-libssl.so.0.9.8i |
12099 |
-libgcr.so.0 |
12100 |
-libglib-2.0.so.0' | |
12101 |
- xargs -d'\n' -r rm -rf |
12102 |
- eend |
12103 |
-} |
12104 |
- |
12105 |
-src_install() { |
12106 |
- local major_minor=$(get_version_component_range 1-2 "${PV}") |
12107 |
- local major_minor_revision=$(get_version_component_range 1-3 "${PV}") |
12108 |
- local build=$(get_version_component_range 4 "${PV}") |
12109 |
- |
12110 |
- # install the binaries |
12111 |
- into "${VM_INSTALL_DIR}" |
12112 |
- dobin bin/* |
12113 |
- |
12114 |
- # install the libraries |
12115 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
12116 |
- doins -r lib/* |
12117 |
- |
12118 |
- # Bug 432918 |
12119 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8 \ |
12120 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libcrypto.so.0.9.8 |
12121 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8 \ |
12122 |
- "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libssl.so.0.9.8 |
12123 |
- |
12124 |
- # install the ancillaries |
12125 |
- insinto /usr |
12126 |
- doins -r share |
12127 |
- |
12128 |
- if use cups; then |
12129 |
- exeinto $(cups-config --serverbin)/filter |
12130 |
- doexe extras/thnucups |
12131 |
- |
12132 |
- insinto /etc/cups |
12133 |
- doins -r etc/cups/* |
12134 |
- fi |
12135 |
- |
12136 |
- insinto /etc/xdg |
12137 |
- doins -r etc/xdg/* |
12138 |
- |
12139 |
- # install documentation |
12140 |
- doman man/man1/vmware.1.gz |
12141 |
- |
12142 |
- if use doc; then |
12143 |
- dodoc doc/* |
12144 |
- fi |
12145 |
- |
12146 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/setup |
12147 |
- doins vmware-config |
12148 |
- |
12149 |
- # install vmware workstation server |
12150 |
- if use server; then |
12151 |
- dosbin sbin/* |
12152 |
- |
12153 |
- cd "${S}"/vmware-workstation-server |
12154 |
- |
12155 |
- # install binaries |
12156 |
- into "${VM_INSTALL_DIR}"/lib/vmware |
12157 |
- dobin bin/* |
12158 |
- |
12159 |
- dobin "${FILESDIR}"/configure-hostd.sh |
12160 |
- |
12161 |
- dobin "${FILESDIR}"/configure-hostd.sh |
12162 |
- |
12163 |
- # install the libraries |
12164 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware/lib |
12165 |
- doins -r lib/* |
12166 |
- |
12167 |
- into "${VM_INSTALL_DIR}" |
12168 |
- for tool in vmware-{hostd,wssc-adminTool} ; do |
12169 |
- cat > "${T}/${tool}" <<-EOF |
12170 |
- #!/usr/bin/env bash |
12171 |
- set -e |
12172 |
- |
12173 |
- . /etc/vmware/bootstrap |
12174 |
- |
12175 |
- exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\ |
12176 |
- "${VM_INSTALL_DIR}/lib/vmware/lib" \\ |
12177 |
- "${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\ |
12178 |
- "${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@" |
12179 |
- EOF |
12180 |
- dobin "${T}/${tool}" |
12181 |
- done |
12182 |
- |
12183 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware |
12184 |
- doins -r hostd |
12185 |
- |
12186 |
- # create the configuration |
12187 |
- insinto /etc/vmware/hostd |
12188 |
- doins -r config/etc/vmware/hostd/* |
12189 |
- doins -r etc/vmware/hostd/* |
12190 |
- |
12191 |
- insinto /etc/vmware/ssl |
12192 |
- doins etc/vmware/ssl/* |
12193 |
- |
12194 |
- # pam |
12195 |
- pamd_mimic_system vmware-authd auth account |
12196 |
- |
12197 |
- # create directory for shared virtual machines. |
12198 |
- keepdir "${VM_DATA_STORE_DIR}" |
12199 |
- keepdir /var/log/vmware |
12200 |
- fi |
12201 |
- |
12202 |
- # install vmware-vix |
12203 |
- if use vix; then |
12204 |
- cd "${S}"/vmware-vix |
12205 |
- |
12206 |
- # install the binary |
12207 |
- into "${VM_INSTALL_DIR}" |
12208 |
- dobin bin/* |
12209 |
- |
12210 |
- # install the libraries |
12211 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-vix |
12212 |
- doins -r lib/* |
12213 |
- |
12214 |
- dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so |
12215 |
- |
12216 |
- # install headers |
12217 |
- insinto /usr/include/vmware-vix |
12218 |
- doins include/* |
12219 |
- |
12220 |
- if use doc; then |
12221 |
- dohtml -r doc/* |
12222 |
- fi |
12223 |
- fi |
12224 |
- |
12225 |
- # install ovftool |
12226 |
- if use ovftool; then |
12227 |
- cd "${S}" |
12228 |
- |
12229 |
- insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool |
12230 |
- doins -r vmware-ovftool/* |
12231 |
- |
12232 |
- chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin} |
12233 |
- dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool |
12234 |
- fi |
12235 |
- |
12236 |
- # create symlinks for the various tools |
12237 |
- local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} \ |
12238 |
- vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper} ; do |
12239 |
- dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" |
12240 |
- done |
12241 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer |
12242 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware |
12243 |
- dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu |
12244 |
- |
12245 |
- # fix permissions |
12246 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks} |
12247 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper} |
12248 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/setup/vmware-config |
12249 |
- fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount |
12250 |
- fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats} |
12251 |
- if use server; then |
12252 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-{hostd,wssc-adminTool} |
12253 |
- fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd |
12254 |
- fperms 1777 "${VM_DATA_STORE_DIR}" |
12255 |
- fi |
12256 |
- if use vix; then |
12257 |
- fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config |
12258 |
- fi |
12259 |
- |
12260 |
- # create the environment |
12261 |
- local envd="${T}/90vmware" |
12262 |
- cat > "${envd}" <<-EOF |
12263 |
- PATH='${VM_INSTALL_DIR}/bin' |
12264 |
- ROOTPATH='${VM_INSTALL_DIR}/bin' |
12265 |
- EOF |
12266 |
- doenvd "${envd}" |
12267 |
- |
12268 |
- # create the configuration |
12269 |
- dodir /etc/vmware |
12270 |
- |
12271 |
- cat > "${D}"/etc/vmware/bootstrap <<-EOF |
12272 |
- BINDIR='${VM_INSTALL_DIR}/bin' |
12273 |
- LIBDIR='${VM_INSTALL_DIR}/lib' |
12274 |
- EOF |
12275 |
- |
12276 |
- cat > "${D}"/etc/vmware/config <<-EOF |
12277 |
- bindir = "${VM_INSTALL_DIR}/bin" |
12278 |
- libdir = "${VM_INSTALL_DIR}/lib/vmware" |
12279 |
- initscriptdir = "/etc/init.d" |
12280 |
- authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd" |
12281 |
- gksu.rootMethod = "su" |
12282 |
- VMCI_CONFED = "yes" |
12283 |
- VMBLOCK_CONFED = "yes" |
12284 |
- VSOCK_CONFED = "yes" |
12285 |
- NETWORKING = "yes" |
12286 |
- player.product.version = "${major_minor_revision}" |
12287 |
- product.version = "${major_minor_revision}" |
12288 |
- product.buildNumber = "${build}" |
12289 |
- product.name = "VMware Workstation" |
12290 |
- workstation.product.version = "${major_minor_revision}" |
12291 |
- EOF |
12292 |
- |
12293 |
- if use vix; then |
12294 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
12295 |
- vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware" |
12296 |
- vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix" |
12297 |
- vix.config.version = "1" |
12298 |
- EOF |
12299 |
- fi |
12300 |
- |
12301 |
- if use server; then |
12302 |
- cat >> "${D}"/etc/vmware/config <<-EOF |
12303 |
- authd.client.port = "902" |
12304 |
- authd.proxy.nfc = "vmware-hostd:ha-nfc" |
12305 |
- authd.soapserver = "TRUE" |
12306 |
- EOF |
12307 |
- fi |
12308 |
- |
12309 |
- # install the init.d script |
12310 |
- local initscript="${T}/vmware.rc" |
12311 |
- sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
12312 |
- "${FILESDIR}/vmware-${major_minor}.rc" > ${initscript} |
12313 |
- newinitd "${initscript}" vmware |
12314 |
- |
12315 |
- if use server; then |
12316 |
- # install the init.d script |
12317 |
- local initscript="${T}/vmware-workstation-server.rc" |
12318 |
- sed -e "s:@@ETCDIR@@:/etc/vmware:g" \ |
12319 |
- -e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \ |
12320 |
- -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
12321 |
- -e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \ |
12322 |
- "${FILESDIR}/vmware-server-${major_minor}.rc" > ${initscript} |
12323 |
- newinitd "${initscript}" vmware-workstation-server |
12324 |
- fi |
12325 |
- |
12326 |
- # fill in variable placeholders |
12327 |
- sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ |
12328 |
- -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} |
12329 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \ |
12330 |
- -e "/^Encoding/d" \ |
12331 |
- -i "${D}/usr/share/applications/${PN}.desktop" |
12332 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ |
12333 |
- -e "/^Encoding/d" \ |
12334 |
- -i "${D}/usr/share/applications/vmware-player.desktop" |
12335 |
- sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \ |
12336 |
- -e "/^Encoding/d" \ |
12337 |
- -i "${D}/usr/share/applications/vmware-netcfg.desktop" |
12338 |
- |
12339 |
- if use server; then |
12340 |
- # Configuration for vmware-workstation-server |
12341 |
- local hostdUser="${VM_HOSTD_USER:-root}" |
12342 |
- sed -e "/ACEDataUser/s:root:${hostdUser}:g" \ |
12343 |
- -i "${D}/etc/vmware/hostd/authorization.xml" || die |
12344 |
- |
12345 |
- # Shared VMs Path: [standard]. |
12346 |
- sed -e "s:##{DS_NAME}##:standard:g" \ |
12347 |
- -e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \ |
12348 |
- -i "${D}/etc/vmware/hostd/datastores.xml" || die |
12349 |
- |
12350 |
- sed -e "s:##{HTTP_PORT}##:-1:g" \ |
12351 |
- -e "s:##{HTTPS_PORT}##:443:g" \ |
12352 |
- -e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \ |
12353 |
- -i "${D}/etc/vmware/hostd/proxy.xml" || die |
12354 |
- |
12355 |
- # See vmware-workstation-server.py for more details. |
12356 |
- sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
12357 |
- -e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \ |
12358 |
- -e "s:##{CFGDIR}##:/etc/vmware/:g" \ |
12359 |
- -e "s:##{ENABLE_AUTH}##:true:g" \ |
12360 |
- -e "s:##{HOSTDMODE}##:ws:g" \ |
12361 |
- -e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
12362 |
- -e "s:##{HOSTD_MOCKUP}##:false:g" \ |
12363 |
- -e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \ |
12364 |
- -e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \ |
12365 |
- -e "s:##{LOGDIR}##:/var/log/vmware/:g" \ |
12366 |
- -e "s:##{LOGLEVEL}##:verbose:g" \ |
12367 |
- -e "s:##{MOCKUP}##:mockup-host-config.xml:g" \ |
12368 |
- -e "s:##{PLUGINDIR}##:./:g" \ |
12369 |
- -e "s:##{SHLIB_PREFIX}##:lib:g" \ |
12370 |
- -e "s:##{SHLIB_SUFFIX}##:.so:g" \ |
12371 |
- -e "s:##{USE_BLKLISTSVC}##:false:g" \ |
12372 |
- -e "s:##{USE_CBRCSVC}##:false:g" \ |
12373 |
- -e "s:##{USE_CIMSVC}##:false:g" \ |
12374 |
- -e "s:##{USE_DIRECTORYSVC}##:false:g" \ |
12375 |
- -e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \ |
12376 |
- -e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \ |
12377 |
- -e "s:##{USE_DYNAMO}##:false:g" \ |
12378 |
- -e "s:##{USE_DYNSVC}##:false:g" \ |
12379 |
- -e "s:##{USE_GUESTSVC}##:false:g" \ |
12380 |
- -e "s:##{USE_HBRSVC}##:false:g" \ |
12381 |
- -e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \ |
12382 |
- -e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \ |
12383 |
- -e "s:##{USE_HTTPNFCSVC}##:false:g" \ |
12384 |
- -e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \ |
12385 |
- -e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \ |
12386 |
- -e "s:##{USE_NFCSVC}##:true:g" \ |
12387 |
- -e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \ |
12388 |
- -e "s:##{USE_OVFMGRSVC}##:true:g" \ |
12389 |
- -e "s:##{USE_PARTITIONSVC}##:false:g" \ |
12390 |
- -e "s:##{USE_SECURESOAP}##:false:g" \ |
12391 |
- -e "s:##{USE_SNMPSVC}##:false:g" \ |
12392 |
- -e "s:##{USE_SOLO_MOCKUP}##:false:g" \ |
12393 |
- -e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \ |
12394 |
- -e "s:##{USE_VCSVC_MOCKUP}##:false:g" \ |
12395 |
- -e "s:##{USE_VDISKSVC}##:false:g" \ |
12396 |
- -e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \ |
12397 |
- -e "s:##{USE_VMSVC_MOCKUP}##:false:g" \ |
12398 |
- -e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \ |
12399 |
- -e "s:##{VM_RESOURCES}##:vmResources.xml:g" \ |
12400 |
- -e "s:##{WEBSERVER_PORT_ENTRY}##::g" \ |
12401 |
- -e "s:##{WORKINGDIR}##:./:g" \ |
12402 |
- -i "${D}/etc/vmware/hostd/config.xml" || die |
12403 |
- |
12404 |
- sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \ |
12405 |
- -i "${D}/etc/vmware/hostd/environments.xml" || die |
12406 |
- |
12407 |
- # @@VICLIENT_URL@@=XXX |
12408 |
- sed -e "s:@@AUTHD_PORT@@:902:g" \ |
12409 |
- -i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die |
12410 |
- fi |
12411 |
- |
12412 |
- # install systemd unit files |
12413 |
- systemd_dounit "${WORKDIR}/systemd-vmware-${SYSTEMD_UNITS_TAG}"/*.{service,target} |
12414 |
-} |
12415 |
- |
12416 |
-pkg_config() { |
12417 |
- "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new |
12418 |
-} |
12419 |
- |
12420 |
-pkg_preinst() { |
12421 |
- gnome2_icon_savelist |
12422 |
-} |
12423 |
- |
12424 |
-pkg_postinst() { |
12425 |
- fdo-mime_desktop_database_update |
12426 |
- gnome2_icon_cache_update |
12427 |
- |
12428 |
- ewarn "/etc/env.d was updated. Please run:" |
12429 |
- ewarn "env-update && source /etc/profile" |
12430 |
- ewarn "" |
12431 |
- ewarn "Before you can use vmware workstation, you must configure a default network setup." |
12432 |
- ewarn "You can do this by running 'emerge --config ${PN}'." |
12433 |
-} |
12434 |
- |
12435 |
-pkg_prerm() { |
12436 |
- einfo "Stopping ${PN} for safe unmerge" |
12437 |
- /etc/init.d/vmware stop |
12438 |
-} |
12439 |
- |
12440 |
-pkg_postrm() { |
12441 |
- fdo-mime_desktop_database_update |
12442 |
- gnome2_icon_cache_update |
12443 |
-} |