summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
diff options
context:
space:
mode:
authorVolker Uhrig2008-03-31 20:02:30 +0200
committerVolker Uhrig2008-03-31 20:02:30 +0200
commit711d97ed625002f5fed1a3452ab7f549701b0a4a (patch)
treebeea21b105ae2045db0ba7fae5a34e41e786ee1e /os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
parent* added TODO about missing documentation (diff)
downloadcore-711d97ed625002f5fed1a3452ab7f549701b0a4a.tar.gz
core-711d97ed625002f5fed1a3452ab7f549701b0a4a.tar.xz
core-711d97ed625002f5fed1a3452ab7f549701b0a4a.zip
* removed a few definition of my. They caused in emtpy variables later
* minor changes git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1711 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm')
-rw-r--r--os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm29
1 files changed, 19 insertions, 10 deletions
diff --git a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
index 8222d8dd..00c54f7f 100644
--- a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
+++ b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
@@ -179,20 +179,27 @@ sub installationPhase
# variants because we do not know which on is selected on client level
# (code depends on distro/version and vmware location)
# for local ... other vm-installations (TODO: generate list)
- @files = qw( local );
- foreach my $file (@files) {
+ @types = qw( local );
+ foreach my $type (@type) {
# location of the vmware stuff, "local" for directly installed
# package (more sophisticated assignment might be needed ...)
- if ( $file eq "local" ) {
- my $vmpath = "/usr/lib/vmware";
- my $vmbin = "/usr/bin";
+ if ( $type eq "local" ) {
+ $vmpath = "/usr/lib/vmware";
+ $vmbin = "/usr/bin";
}
- # if provided via another plugin (TODO: pathname not completely clear ...)
+ # if provided via another plugin
+ # -> why another plugin? Why should another plugin handle files
+ # for vmware? Do we have another plugin which writes files
+ # at the moment?
+ # -> we don't have a .../vmwareXXX/ folder => .../vmware/
+ # (TODO: pathname not completely clear ...
+ # -> should be the one of the plugin)
else {
- my $vmpath = "/opt/openslx/plugin-repo/vmwareXXX/$file";
- my $vmbin = "$vmpath/bin";
+ #my $vmpath = "/opt/openslx/plugin-repo/vmwareXXX/$type";
+ $vmpath = "/opt/openslx/plugin-repo/vmware/$type";
+ $vmbin = "$vmpath/bin";
}
- my $runlevelScript = "$self->{'pluginRepositoryPath'}/vmware.$file";
+ my $runlevelScript = "$self->{'pluginRepositoryPath'}/vmware.$type";
$self->_writeRunlevelScript($vmbin, $runlevelScript);
}
@@ -212,7 +219,7 @@ sub installationPhase
exec "\$PREFIX"'/lib/wrapper-gtk24.sh' \
"\$PREFIX"'/lib' \
"\$PREFIX"'/bin/vmware' \
- "\$PREFIX"'/libconf' "$@"
+ "\$PREFIX"'/libconf' "\$@"
End-of-Here
spitFile("$self->{'pluginRepositoryPath'}/$file", $script);
}
@@ -235,6 +242,8 @@ sub removalPhase
return;
}
+# shouldn't we make it a OpenSLX function and not just a vmware plugin
+# function. oh, i forgot, we are talking about the vmware plugin...
sub _writeRunlevelScript
{
my $self = shift;