Skip to contentSkip to conversation

openvmtools: new package

PATCH Superseded Karoly Kasza 1 participant 1 message Jul 19, 2014

v3 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 openvmtools: new package

New package: openvmtools

---

Changes v2 -> v3:
- Bump to version 9.4.6
- Dropped kernel module compilation, it was for ancient kernels
- Changed to use procps-ng instead of legacy procps
- Added systemd startup script
- Added license information

 package/Config.in                    |    1 +
 package/openvmtools/Config.in        |   56 +++++++++++++++++++++++
 package/openvmtools/S10vmtoolsd      |   33 ++++++++++++++
 package/openvmtools/openvmtools.mk   |   81 ++++++++++++++++++++++++++++++++++
 package/openvmtools/shutdown         |    7 +++
 package/openvmtools/vmtoolsd.service |    8 ++++
 6 files changed, 186 insertions(+)
 create mode 100644 package/openvmtools/Config.in
 create mode 100644 package/openvmtools/S10vmtoolsd
 create mode 100644 package/openvmtools/openvmtools.mk
 create mode 100644 package/openvmtools/shutdown
 create mode 100644 package/openvmtools/vmtoolsd.service
package/Config.in +1 -0
index f9722f6..bb7edd3 100644
@@ -1151,6 +1151,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
package/openvmtools/Config.in new file +56 -0

56 lines not on this page · raw message

package/openvmtools/S10vmtoolsd new file +33 -0
new file mode 100644
index 0000000..3ab351e
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# Starts vmtoolsd for openvmtools
+#
+
+PID=/var/run/vmtoolsd.pid
+
+case "$1" in
+  start)
+	echo -n "Starting vmtoolsd: "
+	/usr/bin/vmtoolsd -b $PID
+	if [ $? != 0 ]; then
+		echo "FAILED"
+		exit 1
+	else
+		echo "OK"
+	fi
+	;;
+  stop)
+	echo -n "Stopping vmtoolsd: "
+	kill `cat $PID`
+	echo "OK"
+	;;
+  restart|reload)
+	$0 stop
+	$0 start
+	;;
+  *)
+	echo "Usage: $0 {start|stop|restart}"
+	exit 1
+esac
+
+exit $?
package/openvmtools/openvmtools.mk new file +81 -0

81 lines not on this page · raw message

package/openvmtools/shutdown new file +7 -0
new file mode 100644
index 0000000..bca9765
@@ -0,0 +1,7 @@
+#!/bin/sh
+#compatibility script for openvmtools
+if [ "$1" == "-r" ]; then
+/sbin/reboot
+else
+/sbin/poweroff
+fi
package/openvmtools/vmtoolsd.service new file +8 -0
new file mode 100644
index 0000000..b099ba3
@@ -0,0 +1,8 @@
+[Unit]
+Description=vmtoolsd for openvmtools
+
+[Service]
+ExecStart=/usr/bin/vmtoolsd -b /var/run/vmtoolsd.pid
+
+[Install]
+WantedBy=multi-user.target
Signature · 1 line
1.7.10.4