Commit 4288da4b authored by Karoly Kasza's avatar Karoly Kasza Committed by Peter Korsgaard
Browse files

openvmtools: new package



New package: openvmtools

[Peter: add patch to fix compilation against modern glib versions]
Signed-off-by: default avatarKaroly Kasza <kaszak@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 1c102abb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1172,6 +1172,7 @@ endif
	source "package/ncdu/Config.in"
	source "package/numactl/Config.in"
	source "package/nut/Config.in"
	source "package/openvmtools/Config.in"
	source "package/powerpc-utils/Config.in"
	source "package/polkit/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+61 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_OPENVMTOOLS
	bool "openvmtools"
	depends on BR2_i386 || BR2_x86_64
	depends on BR2_USE_MMU # libglib2
	depends on BR2_USE_WCHAR # libglib2
	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
	depends on BR2_LARGEFILE
	depends on BR2_ENABLE_LOCALE
	select BR2_PACKAGE_LIBGLIB2
	help
	  Open Virtual Machine Tools for VMware guest OS

	  http://open-vm-tools.sourceforge.net/

	  ICU locales and X11 tools are currently not supported.

	  NOTE: Support for vmblock-fuse will be enabled in openvmtools if the
	        libfuse package is selected.

if BR2_PACKAGE_OPENVMTOOLS

config BR2_PACKAGE_OPENVMTOOLS_PROCPS
	bool "procps support"
	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
	select BR2_PACKAGE_PROCPS_NG
	help
	  Enable support for procps / meminfo

comment "procps support needs BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
	depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS

config BR2_PACKAGE_OPENVMTOOLS_DNET
	bool "dnet support"
	depends on BR2_INET_IPV6
	select BR2_PACKAGE_LIBDNET
	help
	  Enable support for libdnet / nicinfo

comment "dnet support needs a toolchain w/ IPv6"
	depends on !BR2_INET_IPV6

config BR2_PACKAGE_OPENVMTOOLS_PAM
	bool "PAM support"
	select BR2_PACKAGE_LINUX_PAM
	# linux-pam needs locale and wchar, but we already have this
	# dependency on the main symbol, above.
	depends on !BR2_PREFER_STATIC_LIB
	help
	  Support for PAM in openvmtools

comment "PAM support needs a toolchain w/ dynamic library"
	depends on BR2_PREFER_STATIC_LIB

endif

comment "openvmtools needs a toolchain w/ wchar, threads, RPC, largefile, locale"
	depends on BR2_i386 || BR2_x86_64
	depends on BR2_USE_MMU
	depends on !BR2_USE_WCHAR ||!BR2_TOOLCHAIN_HAS_THREADS || \
	!BR2_TOOLCHAIN_HAS_NATIVE_RPC || !BR2_LARGEFILE || !BR2_ENABLE_LOCALE
+33 −0
Original line number Diff line number Diff line
#!/bin/sh
#
# Starts vmtoolsd for openvmtools
#

EXEC="/usr/bin/vmtoolsd"
ARGS="-b"
PID="/var/run/vmtoolsd.pid"

case "$1" in
  start)
    echo -n "Starting vmtoolsd: "
    start-stop-daemon -S -q -x $EXEC -- $ARGS $PID
    if [ $? != 0 ]; then
      echo "FAILED"
      exit 1
    else
      echo "OK"
    fi
  ;;
  stop)
    echo -n "Stopping vmtoolsd: "
    start-stop-daemon -K -q -p $PID
    echo "OK"
  ;;
  restart|reload)
    $0 stop
    $0 start
  ;;
  *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
esac
+26 −0
Original line number Diff line number Diff line
lib/misc/msgList.c: missing #ifdef

This macro checks for BSD style printf(), which is not present
when compiling for uClibc. The linked functions are unnecessary in
this case, and they break compilation.

Signed-off-by: Karoly Kasza <kaszak@gmail.com>

--- open-vm-tools-9.4.6-1770165.orig/lib/misc/msgList.c	2014-07-02 00:21:14.000000000 +0200
+++ open-vm-tools-9.4.6-1770165/lib/misc/msgList.c	2014-07-29 13:40:40.000000000 +0200
@@ -487,6 +487,7 @@
    return messages->id;
 }
 
+#ifdef HAS_BSD_PRINTF
 
 /*
  *----------------------------------------------------------------------
@@ -566,6 +567,7 @@
    }
 }
 
+#endif
 
 /*
  *----------------------------------------------------------------------
+21 −0
Original line number Diff line number Diff line
scripts/linux/network: exit normally if no network control script

When using suspend/resume from the hypervisor, openvmtools checks for the
networking script, and exists with an error if not found, making the hypervisor
raise a warning message. This workaround silences that error message.

Signed-off-by: Karoly Kasza <kaszak@gmail.com>

--- open-vm-tools-9.4.6-1770165.orig/scripts/linux/network	2014-07-02 00:21:14.000000000 +0200
+++ open-vm-tools-9.4.6-1770165/scripts/linux/network	2014-08-07 16:34:21.963514273 +0200
@@ -88,7 +88,9 @@
 run_network_script()
 {
    script=`find_networking_script`
-   [ "$script" != "error" ] || Panic "Cannot find system networking script."
+#   [ "$script" != "error" ] || Panic "Cannot find system networking script."
+# Modified for buildroot
+   [ "$script" != "error" ] || exit 0
 
    # Using SysV "service" if it exists, otherwise fall back to run the script directly
    service=`which service 2>/dev/null`
Loading