1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../vmware/vmware-install.patch
5 # Copyright (C) 2008 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- ./vmware-install.pl.orig 2008-08-09 00:26:54.000000000 +0200
18 +++ ./vmware-install.pl 2008-09-03 13:01:02.000000000 +0200
21 if (vmware_product() eq 'wgs' || vmware_product() eq 'ws' ||
22 vmware_product() eq 'tools-for-linux') {
23 - system(shell_string($gHelper{'depmod'}) . ' -a');
24 - my $kvers = direct_command(shell_string($gHelper{'uname'}) . ' -r');
27 + #system(shell_string($gHelper{'depmod'}) . ' -a');
28 + my $kvers = $ENV{KVER};
29 + print "Kernel Version: $kvers\n";
31 if (not open(MODULESDEP, "/lib/modules/$kvers/modules.dep")) {
32 error("Unable to open kernel module dependency file\n.");
35 install_dir('./etc', $gRegistryDir, \%patch, 0x1);
38 + $rootdir = '/opt/vmware';
40 $answer = spacechk_answer('In which directory do you want to install '
41 . 'the executable files?', 'dirpath',
43 } elsif (vmware_product() eq 'tools-for-solaris') {
47 + $rootdir = '/opt/vmware';
49 + $rootdir = '/opt/vmware';
50 $answer = spacechk_answer('In which directory do you want to '
51 . 'install the binary files?', 'dirpath',
52 $rootdir . '/bin', './bin', 'BINDIR');
55 install_dir('./etc', $gRegistryDir, \%patch, 0x1);
58 + $rootdir = '/opt/vmware';
60 $answer = spacechk_answer('In which directory do you want to '
61 . 'install the binary files?', 'dirpath',
64 install_dir('./etc', $gRegistryDir, \%patch, 0x1);
67 + $rootdir = '/opt/vmware';
68 $answer = spacechk_answer('In which directory do you want to '
69 . 'install the binary files?', 'dirpath',
70 $rootdir . './bin', './bin', 'BINDIR');
73 install_dir('./etc', $gRegistryDir, \%patch, 0x1);
76 + $rootdir = '/opt/vmware';
78 $answer = spacechk_answer('In which directory do you want '
79 . 'to install the binary files?', 'dirpath',
82 install_dir('./system_etc', '/etc', \%patch, 1);
84 - install_dir('./usr', '/usr', \%patch, 1);
85 + install_dir('./usr', '/opt/vmware', \%patch, 1);
88 sub get_initscriptsdir {
94 + $rootdir = '/opt/vmware';
95 $answer = spacechk_answer('In which directory do you want '
96 . 'to install the ' . vmware_product_name()
97 . ' binary files?', 'dirpath',
99 # Force the path to reduce the risk of using "modified" external helpers
100 # If the user has a special system setup, he will will prompted for the
101 # proper location anyway
102 - $ENV{'PATH'} = '/bin:/usr/bin:/sbin:/usr/sbin';
103 + # --- removed for SDE
104 + # $ENV{'PATH'} = '/bin:/usr/bin:/sbin:/usr/sbin';
106 initialize_globals(internal_dirname($0));
107 initialize_external_helpers();
108 @@ -4241,7 +4244,7 @@
112 - my @modules = non_vmware_modules_installed();
113 + my @modules = (); #non_vmware_modules_installed();
114 if (scalar(@modules) > 0) {
115 error("The following VMware kernel modules have been found on your system that " .
116 "were not installed by the VMware Installer. Please remove them then run " .
117 @@ -4417,6 +4420,7 @@
118 . 'want this program to invoke the '
119 . 'command for you now?'
120 , 'RUN_CONFIGURATOR', 'yesno', 'yes');
123 if (vmware_product() ne 'vix') {
124 print wrap('Before running ' . vmware_product_name() . ' for the '