From 7aa9620520363551ef4c9adc7f2318661a96265a Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Thu, 12 May 2011 19:28:17 +0200 Subject: update vmchooser --- .../vmchooser/OpenSLX/OSPlugin/vmchooser.pm | 13 +++++++++++++ src/os-plugins/plugins/vmchooser/XX_vmchooser.sh | 16 ++++++++++++++++ .../files/themes/openslx/openslx-left.png | Bin 0 -> 9187 bytes .../files/themes/openslx/openslx-right.png | Bin 0 -> 3390 bytes .../vmchooser/files/themes/openslx/openslx.ini | 4 ++++ .../vmchooser/files/themes/unifr/title_l.png | Bin 0 -> 17458 bytes .../vmchooser/files/themes/unifr/title_r.png | Bin 0 -> 4113 bytes .../plugins/vmchooser/files/themes/unifr/unifr.ini | 4 ++++ src/os-plugins/plugins/vmchooser/files/vmchooser | Bin 1530562 -> 1534964 bytes 9 files changed, 37 insertions(+) create mode 100644 src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx-left.png create mode 100644 src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx-right.png create mode 100644 src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx.ini create mode 100644 src/os-plugins/plugins/vmchooser/files/themes/unifr/title_l.png create mode 100644 src/os-plugins/plugins/vmchooser/files/themes/unifr/title_r.png create mode 100644 src/os-plugins/plugins/vmchooser/files/themes/unifr/unifr.ini mode change 100644 => 100755 src/os-plugins/plugins/vmchooser/files/vmchooser (limited to 'src/os-plugins/plugins/vmchooser') diff --git a/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm b/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm index 134ead6d..f3428e1a 100644 --- a/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm +++ b/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm @@ -76,6 +76,17 @@ sub getAttrInfo content_descr => '1 means active - 0 means inactive', default => '0', }, + 'vmchooser::theme' => { + applies_to_systems => 1, + applies_to_clients => 1, + description => unshiftHereDoc(<<' End-of-Here'), + theme for vmchooser + End-of-Here + #TODO: + #content_regex => qr{^(0|1)$}, + content_descr => 'name of theme', + default => 'default', + }, 'vmchooser::env' => { applies_to_systems => 1, applies_to_clients => 1, @@ -118,6 +129,8 @@ sub installationPhase copyFile("$pluginBasePath/$file", "$pluginRepoPath/"); chmod 0755, "$pluginRepoPath/$file"; } + + copyDir("$pluginBasePath/themes", "$pluginRepoPath/"); # set ditro-specific default session $self->{distro}->copyDefaultSession($pluginRepoPath); diff --git a/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh b/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh index 71852896..4253c501 100644 --- a/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh +++ b/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh @@ -28,6 +28,22 @@ if [ -e $CONFFILE ]; then && echo "vmchooser: copying stage3 configuration file ..." testmkd ${PLUGINCONFDIR}/loopimg testmkd ${PLUGINCONFDIR}/fd-loop 1777 + + vmchooser_conf_dir=/mnt/etc/vmchooser + vmchooser_conf=${vmchooser_conf_dir}/vmchooser.conf + + testmkd ${vmchooser_conf_dir} + + [ ! -z $vmchooser_env ] && echo "pool=${vmchooser_env}" >> $vmchooser_conf + [ ! -z $vmchooser_themne ] && echo "theme=${vmchooser_theme}" >> $vmchooser_conf + [ ! -z $vmchooser_pvs ] && echo "pvs=${vmchooser_pvs}" >> $vmchooser_conf + [ ! -z $vmchooser_xmlpath ] && echo "path=${vmchooser_xmlpath}" >> $vmchooser_conf + + vmchooser_theme_dir=/mnt/usr/local/share/vmchooser/themes + testmkd $vmchooser_theme_dir + + cp -r ${PLUGINDIR}/themes/* $vmchooser_theme_dir + cp $CONFFILE ${PLUGINCONFDIR}/vmchooser.conf ln -s ${PLUGINDIR}/run-virt.sh ${BINDIR}/run-virt.sh ln -s ${PLUGINDIR}/vmchooser ${BINDIR}/vmchooser diff --git a/src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx-left.png b/src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx-left.png new file mode 100644 index 00000000..900dd867 Binary files /dev/null and b/src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx-left.png differ diff --git a/src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx-right.png b/src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx-right.png new file mode 100644 index 00000000..8ca9347b Binary files /dev/null and b/src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx-right.png differ diff --git a/src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx.ini b/src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx.ini new file mode 100644 index 00000000..57a22821 --- /dev/null +++ b/src/os-plugins/plugins/vmchooser/files/themes/openslx/openslx.ini @@ -0,0 +1,4 @@ +background-color=#ffffff +image-right=openslx-right.png +image-left=openslx-left.png + diff --git a/src/os-plugins/plugins/vmchooser/files/themes/unifr/title_l.png b/src/os-plugins/plugins/vmchooser/files/themes/unifr/title_l.png new file mode 100644 index 00000000..e602ccd1 Binary files /dev/null and b/src/os-plugins/plugins/vmchooser/files/themes/unifr/title_l.png differ diff --git a/src/os-plugins/plugins/vmchooser/files/themes/unifr/title_r.png b/src/os-plugins/plugins/vmchooser/files/themes/unifr/title_r.png new file mode 100644 index 00000000..3edbcb0c Binary files /dev/null and b/src/os-plugins/plugins/vmchooser/files/themes/unifr/title_r.png differ diff --git a/src/os-plugins/plugins/vmchooser/files/themes/unifr/unifr.ini b/src/os-plugins/plugins/vmchooser/files/themes/unifr/unifr.ini new file mode 100644 index 00000000..dadcb4e1 --- /dev/null +++ b/src/os-plugins/plugins/vmchooser/files/themes/unifr/unifr.ini @@ -0,0 +1,4 @@ +background-color=#003592 +image-right=title_r.png +image-left=title_l.png + diff --git a/src/os-plugins/plugins/vmchooser/files/vmchooser b/src/os-plugins/plugins/vmchooser/files/vmchooser old mode 100644 new mode 100755 index 745cdb71..5b341900 Binary files a/src/os-plugins/plugins/vmchooser/files/vmchooser and b/src/os-plugins/plugins/vmchooser/files/vmchooser differ -- cgit v1.2.3-55-g7522