From 87dadc59fc53557acfa70092ad5e71fb790dda03 Mon Sep 17 00:00:00 2001 From: Volker Uhrig Date: Wed, 14 May 2008 15:46:18 +0000 Subject: * added installation of vmplayer 2 * added installation in stage1 * configuration and setup in stage3 and stage4 not done yet! git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1766 95ad53e4-c205-0410-b2fa-d234c58c8868 --- .../plugins/vmware/OpenSLX/OSPlugin/vmware.pm | 49 +++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) (limited to 'os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm') diff --git a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm index 031a4566..327a7af5 100644 --- a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm +++ b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm @@ -162,13 +162,16 @@ sub installationPhase # for local ... and other vm-installations # TODO: generate the list from ** / 'vmware::kind' (stage1 attributes) # (do not generate scripts for packages which are not installed) - my @types = qw( local ); + my @types = qw( local vmpl2.0 ); foreach my $type (@types) { # location of the vmware stuff if ($type eq "local") { $self->_localInstallation(); } # TODO: here we will add the slx-installed versions + elsif ($type eq "vmpl2.0") { + $self->_vmpl2Installation(); + } else { #my $vmpath = "$self->{'pluginRepositoryPath'}/vmware/$type"; #my $vmbin = "$vmpath/bin"; @@ -400,6 +403,50 @@ sub _localInstallation } +sub _vmpl2Installation { + my $self = shift; + + my $kind = "vmpl2.0"; + my $vmpath = "/opt/openslx/plugin-repo/vmware/$kind/root/lib/vmware"; + my $vmbin = "/opt/openslx/plugin-repo/vmware/$kind/root/bin"; + my $vmversion = "TODO_we_know_it"; + my $vmbuildversion = "TODO_we_know_it"; + + my $pluginFilesPath + = "$self->{'openslxPath'}/lib/plugins/$self->{'name'}/files"; + my $installationPath = "$self->{'pluginRepositoryPath'}/$kind"; + + mkpath($installationPath); + + + ## + ## Copy needed files + + # copy 'normal' needed files + my @files = qw( nvram.5.0 install-vmpl2.0.sh ); + foreach my $file (@files) { + copyFile("$pluginFilesPath/$file", "$installationPath"); + } + # copy on depending runvmware file + copyFile("$pluginFilesPath/runvmware-player-v2", "$installationPath", "runvmware"); + + ## + ## Download and install the binarys + system("/bin/sh /opt/openslx/plugin-repo/$self->{'name'}/$kind/install-$kind.sh"); + + + + ## + ## Create runlevel script + my $runlevelScript = "$self->{'pluginRepositoryPath'}/$kind/vmware.init"; + $self->_writeRunlevelScript($vmbin, $runlevelScript); + + ## + ## Create wrapperscripts + #TODO: change local + $self->_writeWrapperScript("$vmpath", "$kind", "player") + +} 1; -- cgit v1.2.3-55-g7522