summaryrefslogtreecommitdiff
path: root/open-vm-tools
diff options
context:
space:
mode:
authorAlan Mizrahi <alan+crux@mizrahi.com.ve>2011-08-11 17:08:12 +0900
committerAlan Mizrahi <alan+crux@mizrahi.com.ve>2011-08-11 17:08:12 +0900
commitc63df53c4e4b8a845c6a82d706fc5718dcdd8428 (patch)
tree74bd4101072e5bd4d6ac3fef5b35bbbce1706cd3 /open-vm-tools
parent62221278949bcd2d257d821df458b533d46888fb (diff)
downloadcontrib-c63df53c4e4b8a845c6a82d706fc5718dcdd8428.tar.gz
contrib-c63df53c4e4b8a845c6a82d706fc5718dcdd8428.tar.xz
open-vm-tools: Initial commit. Version 2011.04.25-402641
Diffstat (limited to 'open-vm-tools')
-rw-r--r--open-vm-tools/.footprint74
-rw-r--r--open-vm-tools/.md5sum4
-rw-r--r--open-vm-tools/Pkgfile43
-rw-r--r--open-vm-tools/README45
-rw-r--r--open-vm-tools/hostinfo.patch12
-rw-r--r--open-vm-tools/post-install2
-rw-r--r--open-vm-tools/tools.conf11
-rwxr-xr-xopen-vm-tools/vmtools.rc29
8 files changed, 220 insertions, 0 deletions
diff --git a/open-vm-tools/.footprint b/open-vm-tools/.footprint
new file mode 100644
index 000000000..776ef39e4
--- /dev/null
+++ b/open-vm-tools/.footprint
@@ -0,0 +1,74 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/rc.d/
+-rwxr-xr-x root/root etc/rc.d/vmtools
+drwxr-xr-x root/root etc/vmware-tools/
+lrwxrwxrwx root/root etc/vmware-tools/plugins -> /usr/lib/open-vm-tools/plugins
+-rwxr-xr-x root/root etc/vmware-tools/poweroff-vm-default
+-rwxr-xr-x root/root etc/vmware-tools/poweron-vm-default
+-rwxr-xr-x root/root etc/vmware-tools/resume-vm-default
+drwxr-xr-x root/root etc/vmware-tools/scripts/
+drwxr-xr-x root/root etc/vmware-tools/scripts/vmware/
+-rwxr-xr-x root/root etc/vmware-tools/statechange.subr
+-rwxr-xr-x root/root etc/vmware-tools/suspend-vm-default
+-rwxr-xr-x root/root etc/vmware-tools/tools.conf
+-rwxr-xr-x root/root etc/vmware-tools/vm-support
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/modules/
+drwxr-xr-x root/root lib/modules/<kernel-version>/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/misc/
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/misc/vmci.ko
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/misc/vmsync.ko
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/fs/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/fs/vmblock/
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/fs/vmblock/vmblock.ko
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/fs/vmhgfs/
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/fs/vmhgfs/vmhgfs.ko
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/net/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/net/vsock/
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/net/vsock/vsock.ko
+drwxr-xr-x root/root sbin/
+-rwxr-xr-x root/root sbin/mount.vmhgfs
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/vmtoolsd
+-rwxr-xr-x root/root usr/bin/vmware-checkvm
+-rwxr-xr-x root/root usr/bin/vmware-hgfsclient
+-rwxr-xr-x root/root usr/bin/vmware-rpctool
+-rwxr-xr-x root/root usr/bin/vmware-toolbox-cmd
+-rwxr-xr-x root/root usr/bin/vmware-xferlogs
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/vmGuestLib/
+-rw-r--r-- root/root usr/include/vmGuestLib/includeCheck.h
+-rw-r--r-- root/root usr/include/vmGuestLib/vmGuestLib.h
+-rw-r--r-- root/root usr/include/vmGuestLib/vmSessionId.h
+-rw-r--r-- root/root usr/include/vmGuestLib/vm_basic_types.h
+-rw-r--r-- root/root usr/include/vmci_sockets.h
+drwxr-xr-x root/root usr/lib/
+-rwxr-xr-x root/root usr/lib/libguestlib.la
+lrwxrwxrwx root/root usr/lib/libguestlib.so -> libguestlib.so.0.0.0
+lrwxrwxrwx root/root usr/lib/libguestlib.so.0 -> libguestlib.so.0.0.0
+-rwxr-xr-x root/root usr/lib/libguestlib.so.0.0.0
+-rwxr-xr-x root/root usr/lib/libhgfs.la
+lrwxrwxrwx root/root usr/lib/libhgfs.so -> libhgfs.so.0.0.0
+lrwxrwxrwx root/root usr/lib/libhgfs.so.0 -> libhgfs.so.0.0.0
+-rwxr-xr-x root/root usr/lib/libhgfs.so.0.0.0
+-rwxr-xr-x root/root usr/lib/libvmtools.la
+lrwxrwxrwx root/root usr/lib/libvmtools.so -> libvmtools.so.0.0.0
+lrwxrwxrwx root/root usr/lib/libvmtools.so.0 -> libvmtools.so.0.0.0
+-rwxr-xr-x root/root usr/lib/libvmtools.so.0.0.0
+drwxr-xr-x root/root usr/lib/open-vm-tools/
+drwxr-xr-x root/root usr/lib/open-vm-tools/plugins/
+drwxr-xr-x root/root usr/lib/open-vm-tools/plugins/common/
+-rwxr-xr-x root/root usr/lib/open-vm-tools/plugins/common/libhgfsServer.la
+-rwxr-xr-x root/root usr/lib/open-vm-tools/plugins/common/libhgfsServer.so
+-rwxr-xr-x root/root usr/lib/open-vm-tools/plugins/common/libvix.la
+-rwxr-xr-x root/root usr/lib/open-vm-tools/plugins/common/libvix.so
+drwxr-xr-x root/root usr/lib/open-vm-tools/plugins/vmsvc/
+-rwxr-xr-x root/root usr/lib/open-vm-tools/plugins/vmsvc/libguestInfo.so
+-rwxr-xr-x root/root usr/lib/open-vm-tools/plugins/vmsvc/libpowerOps.so
+-rwxr-xr-x root/root usr/lib/open-vm-tools/plugins/vmsvc/libtimeSync.so
+-rwxr-xr-x root/root usr/lib/open-vm-tools/plugins/vmsvc/libvmbackup.so
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/vmguestlib.pc
diff --git a/open-vm-tools/.md5sum b/open-vm-tools/.md5sum
new file mode 100644
index 000000000..4e22850fe
--- /dev/null
+++ b/open-vm-tools/.md5sum
@@ -0,0 +1,4 @@
+cb18a7cd39b2f20e542bd29c569d1bf3 hostinfo.patch
+f6d87599523de31f02aaf229bf2ff08c open-vm-tools-2011.04.25-402641.tar.gz
+8b2a357cfbe5de97b2a7d5fa9c4266d7 tools.conf
+d4a8b123bf7b0ba29313c50675f04fa9 vmtools.rc
diff --git a/open-vm-tools/Pkgfile b/open-vm-tools/Pkgfile
new file mode 100644
index 000000000..2ed6f4364
--- /dev/null
+++ b/open-vm-tools/Pkgfile
@@ -0,0 +1,43 @@
+# Description: VMWare Tools
+# URL: http://open-vm-tools.sf.net/
+# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
+# Depends: libdnet
+
+name=open-vm-tools
+version=2011.04.25-402641
+release=1
+source=( \
+http://downloads.sourceforge.net/project/$name/$name/${version%-*}/$name-$version.tar.gz \
+vmtools.rc
+tools.conf
+hostinfo.patch
+)
+
+build(){
+ cd $name-$version
+ patch -p1 -i $SRC/hostinfo.patch
+
+ ./configure \
+ --prefix=/usr \
+ --disable-static \
+ --without-root-privileges \
+ --without-x \
+ --without-gtk2 \
+ --without-gtkmm \
+ --without-icu \
+ --without-pam
+ # --without-procps \
+ # --without-dnet \
+ make
+ make DESTDIR=$PKG install
+ mv $PKG/usr/sbin/mount.vmhgfs $PKG/sbin/mount.vmhgfs
+ install -D $SRC/vmtools.rc $PKG/etc/rc.d/vmtools
+
+ rm -rf $PKG/usr/{etc,sbin,share} $PKG/etc/vmware-tools/scripts/vmware/network
+ # rm -f $PKG/usr/lib/lib{vmtools,hgfs}.{,l}a $PKG/usr/lib/libguestlib.a
+
+ # This is included in the linux kernel, enable CONFIG_VMXNET3
+ rm -f $PKG/lib/modules/`uname -r`/kernel/drivers/net/vmxnet.ko && rmdir $PKG/lib/modules/`uname -r`/kernel/drivers/net
+
+ install $SRC/tools.conf $PKG/etc/vmware-tools/tools.conf
+}
diff --git a/open-vm-tools/README b/open-vm-tools/README
new file mode 100644
index 000000000..3de139860
--- /dev/null
+++ b/open-vm-tools/README
@@ -0,0 +1,45 @@
+README for open-vm-tools
+
+INTRODUCTION
+
+This port contains VMware Tools. You should install it if you are running CRUX
+as a virtual machine under the VMware hypervisor.
+This has only been tested on single core 32-bit virtual machines.
+The VMware filesystem (vmhgfs) has not been tested.
+Feedback is appreciated.
+
+POST-INSTALL
+
+1. Run the post-install script.
+2. Add vmtools to the list of services to start at boot time.
+
+FAQ
+
+Q: What is the difference between this and the official commercial VMware Tools
+ distribution?
+
+A: This code comes from the GPL release of VMware's tools, so in theory
+ it should work just as the commercial version.
+ That said, since this port is intended to be used on a server environment,
+ all the desktop utilities have been removed (eg: no GUI applications).
+
+Q: Where is the driver for the VMware network adapter and disk controller?
+
+A: Some device drivers are already included in the Linux kernel and disabled
+ in this port.
+ Please enable these kernel options:
+ * CONFIG_VMWARE_BALLOON
+ * CONFIG_VMWARE_PVSCSI
+ * CONFIG_VMXNET3
+ If your boot filesystem is connected to a paravirtual SCSI interface make
+ sure CONFIG_VMWARE_PVSCSI is set as builtin instead of module.
+
+
+Q: Why do I have to shutdown/reboot twice my VM from VMware before it reacts?
+
+A: Did you run the post-install script?
+
+
+--
+If you have any feedback/problems please email me:
+Alan Mizrahi, alan at mizrahi dot com dot ve
diff --git a/open-vm-tools/hostinfo.patch b/open-vm-tools/hostinfo.patch
new file mode 100644
index 000000000..b58dbde0f
--- /dev/null
+++ b/open-vm-tools/hostinfo.patch
@@ -0,0 +1,12 @@
+--- open-vm-tools-2011.04.25-402641/lib/misc/hostinfoPosix.c.orig 2011-07-01 16:21:05.260000210 +0900
++++ open-vm-tools-2011.04.25-402641/lib/misc/hostinfoPosix.c 2011-07-01 16:21:30.120000215 +0900
+@@ -643,9 +643,6 @@
+ int i = 0;
+
+ if ((fd = open(filename, O_RDONLY)) < 0) {
+- Warning("%s: could not open file%s: %d\n", __FUNCTION__, filename,
+- errno);
+-
+ return FALSE;
+ }
+
diff --git a/open-vm-tools/post-install b/open-vm-tools/post-install
new file mode 100644
index 000000000..ef33139bc
--- /dev/null
+++ b/open-vm-tools/post-install
@@ -0,0 +1,2 @@
+#!/bin/sh
+crux > /etc/release
diff --git a/open-vm-tools/tools.conf b/open-vm-tools/tools.conf
new file mode 100644
index 000000000..266d3854f
--- /dev/null
+++ b/open-vm-tools/tools.conf
@@ -0,0 +1,11 @@
+[logging]
+log=syslog
+level=warning
+vmsvc.level=warning
+vmsvc.data=/var/log/vmware-vmsvc.log
+vmusr.handler=syslog
+vmusr.level=warning
+vmusr.data=/var/log/vmware-vmsvc.log.user
+
+[vmsvc]
+disable-tools-version=true
diff --git a/open-vm-tools/vmtools.rc b/open-vm-tools/vmtools.rc
new file mode 100755
index 000000000..ca6f7cb02
--- /dev/null
+++ b/open-vm-tools/vmtools.rc
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# /etc/rc.d/vmtools: start/stop VMware Tools
+#
+
+PIDFILE=/var/run/vmware-tools.pid
+VMTOOLSD_BIN=/usr/bin/vmtoolsd
+
+case $1 in
+start)
+ $VMTOOLSD_BIN --background=$PIDFILE
+ ;;
+stop)
+ if [ -f $PIDFILE ]; then
+ kill $(< $PIDFILE) && rm -f $PIDFILE
+ else
+ killall -q $VMTOOLSD_BIN
+ fi
+ ;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart]"
+ ;;
+esac
+
+# End of file

Generated by cgit