[Lunar-commits] <moonbase> opem-vm-tools: opensource VMware tools and drivers In this module you will find drivers and tools to integrate Lunar with VMware when installed ad run as virtual. It will install kernel drivers and tools.

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sat Dec 4 11:32:10 CET 2010


commit d8fe0b84af66238f368618629e1e764df98ed671
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sat Dec 4 11:32:10 2010 +0100

    opem-vm-tools: opensource VMware tools and drivers
    In this module you will find drivers and tools to
    integrate Lunar with VMware when installed ad run as virtual.
    It will install kernel drivers and tools.
---
 virtual/open-vm-tools/BUILD        |   16 ++++++++++++++++
 virtual/open-vm-tools/CONFIGURE    |    1 +
 virtual/open-vm-tools/DEPENDS      |    6 ++++++
 virtual/open-vm-tools/DETAILS      |   36 ++++++++++++++++++++++++++++++++++++
 virtual/open-vm-tools/POST_INSTALL |    3 +++
 virtual/open-vm-tools/mount-vmware |   28 ++++++++++++++++++++++++++++
 6 files changed, 90 insertions(+), 0 deletions(-)

diff --git a/virtual/open-vm-tools/BUILD b/virtual/open-vm-tools/BUILD
new file mode 100644
index 0000000..bbd8bb5
--- /dev/null
+++ b/virtual/open-vm-tools/BUILD
@@ -0,0 +1,16 @@
+(
+
+  # --without-x is just ugly workaround which disables GUI but makes module buildable.
+  # When next release appears it probably will have this compilation bug fixed so
+  # remove this parameter and try building without it.
+  ./configure --prefix=/usr --disable-static --disable-unity --without-x &&
+  make &&
+  cd modules &&
+  make
+  cd .. &&
+  prepare_install &&
+  make install &&
+  mkdir -p /mnt/hgfs &&
+  install -m700 $SCRIPT_DIRECTORY/mount-vmware /etc/init.d/
+
+) > $C_FIFO 2>&1
diff --git a/virtual/open-vm-tools/CONFIGURE b/virtual/open-vm-tools/CONFIGURE
new file mode 100644
index 0000000..45e7a57
--- /dev/null
+++ b/virtual/open-vm-tools/CONFIGURE
@@ -0,0 +1 @@
+mquery HGFS "Mount VMware Shared Folders on boot?" y
diff --git a/virtual/open-vm-tools/DEPENDS b/virtual/open-vm-tools/DEPENDS
new file mode 100644
index 0000000..7fa04bb
--- /dev/null
+++ b/virtual/open-vm-tools/DEPENDS
@@ -0,0 +1,6 @@
+optional_depends "fuse" "" "" "to enable vmblock-fuse"
+optional_depends "icu4c" "" "--without-icu" "to enable vmblock-fuse"
+optional_depends "procps" "" "--without-procps" "to enable vmblock-fuse"
+optional_depends "gtkmm" "" "--without-gtkmm" "to enable GUI integration"
+# No such module yet in Lunar
+#optional_depends "unity" "" "--disable-unity" "to enable unity"
diff --git a/virtual/open-vm-tools/DETAILS b/virtual/open-vm-tools/DETAILS
new file mode 100644
index 0000000..751a22e
--- /dev/null
+++ b/virtual/open-vm-tools/DETAILS
@@ -0,0 +1,36 @@
+             MODULE=open-vm-tools
+            VERSION=2010.11.17-327185
+             SOURCE=$MODULE-$VERSION.tar.gz
+         SOURCE_URL=$SFORGE_URL/$MODULE
+         SOURCE_VFY=sha1:182335fec9951e472ed747b7708562a3072bbdae
+           WEB_SITE=http://open-vm-tools.sourceforge.net
+            ENTERED=20101031
+            UPDATED=20101202
+              SHORT="Open Virtual Machine Tools"
+
+cat << EOF
+The Open Virtual Machine Tools (open-vm-tools) are the
+open source implementation of VMware Tools.
+They are a set of guest operating system
+virtualization components that enhance performance
+and user experience of virtual machines.
+As virtualization technology rapidly becomes
+mainstream, each virtualization solution provider
+implements their own set of tools and utilities to
+supplement the guest virtual machine.
+However, most of the implementations are
+proprietary and are tied to a specific
+virtualization platform.
+
+With the Open Virtual Machine Tools project,
+we are hoping to solve this and other related problems.
+The tools are currently composed of kernel modules for
+Linux and user-space programs for all VMware supported
+Unix-like guest operating systems.
+They provide several useful functions like:
+* File transfer between a host and guest
+* Improved memory management and network performance
+  under virtualization
+* General mechanisms and protocols for communication
+  between host and guests and from guest to guest.
+EOF
diff --git a/virtual/open-vm-tools/POST_INSTALL b/virtual/open-vm-tools/POST_INSTALL
new file mode 100644
index 0000000..a14cab1
--- /dev/null
+++ b/virtual/open-vm-tools/POST_INSTALL
@@ -0,0 +1,3 @@
+if [ "$HGFS" == "y" ]; then
+chkconfig --add mount-vmware
+fi
diff --git a/virtual/open-vm-tools/mount-vmware b/virtual/open-vm-tools/mount-vmware
new file mode 100644
index 0000000..65660b9
--- /dev/null
+++ b/virtual/open-vm-tools/mount-vmware
@@ -0,0 +1,28 @@
+#!/bin/bash
+#
+#   mount-vmware - mounts VMware Shared Folders
+#
+# description: mount and umount the VMware Shared Folders
+# chkconfig: 345 21 86
+
+
+start() {
+   mount -t vmhgfs .host:/ /mnt/hgfs &&
+    echo -e "Mounting VMware Shared Folders in /mnt/hgfs:$RESULT_OK" ||
+    echo -e "Mounting VMware Shared Folders in /mnt/hgfs:$RESULT_FAIL"
+}
+
+stop() {
+  umount -t vmhgfs -a -f -l &&
+    echo -e "Unmounting VMware Shared Folders:$RESULT_OK" ||
+    echo -e "Unmounting VMware Shared Folders:$RESULT_FAIL"
+}
+
+# to avoid confusion we force only these options as being valid:
+case "$1" in
+  start|stop) ;;
+           *) echo  "Usage: $0 {start|stop}"  ;;
+esac
+
+. /lib/lsb/init-functions
+


More information about the Lunar-commits mailing list