diff options
author | 2016-03-19 18:06:05 +0100 | |
---|---|---|
committer | 2016-03-19 18:07:26 +0100 | |
commit | 05f59490ec40787c0630d26995a8a08496f4363d (patch) | |
tree | 20ef2ddbe2a5de5303ed8909e5942fb0384d1884 /app-emulation/vmware-workstation/files | |
parent | app-emulation/vmware-modules: Major version bump. Imported from the vmware ov... (diff) | |
download | gentoo-05f59490ec40787c0630d26995a8a08496f4363d.tar.gz gentoo-05f59490ec40787c0630d26995a8a08496f4363d.tar.bz2 gentoo-05f59490ec40787c0630d26995a8a08496f4363d.zip |
app-emulation/vmware-workstation: Major version bump. Imported from the vmware overlay.
Many thanks to
* Alex Xu <alex_y_xu@yahoo.ca>
* Billy DeVincentis <billydv1@verizon.net>
* Fabio Rossi <rossi.f@inwind.it>
* Evan Teran <evan.teran@gmail.com>
* Harris Landgarten <harrisl@lhjonline.com>
and to everyone else who helped on bug 559798.
Package-Manager: portage-2.2.27
Diffstat (limited to 'app-emulation/vmware-workstation/files')
-rw-r--r-- | app-emulation/vmware-workstation/files/vmware-12.1.rc | 44 | ||||
-rw-r--r-- | app-emulation/vmware-workstation/files/vmware-server-12.1.rc | 55 |
2 files changed, 99 insertions, 0 deletions
diff --git a/app-emulation/vmware-workstation/files/vmware-12.1.rc b/app-emulation/vmware-workstation/files/vmware-12.1.rc new file mode 100644 index 000000000000..f2dc6927f575 --- /dev/null +++ b/app-emulation/vmware-workstation/files/vmware-12.1.rc @@ -0,0 +1,44 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need localmount + use net +} + +start() { + ebegin Starting VMware USB Arbitrator + #start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator + @@BINDIR@@/vmware-usbarbitrator + eend $? + ebegin Starting VMware services + + # quiet for vmci because it may not be there + modprobe -vq vmci || modprobe -v vmw_vmci + eend $? + + # vmci or vmw_vmci was loaded by the previous modprobe + # no need to do it here + modprobe -av vmmon vsock vmblock vmnet + eend $? + @@BINDIR@@/vmware-networks --start + eend $? +} + +stop() { + ebegin Stopping VMware USB Arbitrator + #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator + killall --wait @@BINDIR@@/vmware-usbarbitrator + eend $? + @@BINDIR@@/vmware-networks --stop + eend $? + ebegin Stopping VMware services + modprobe -rv vsock vmmon vmblock vmnet + eend $? + + # quiet for vmci because it may not be there + modprobe -rvq vmci || modprobe -rv vmw_vmci + eend $? +} diff --git a/app-emulation/vmware-workstation/files/vmware-server-12.1.rc b/app-emulation/vmware-workstation/files/vmware-server-12.1.rc new file mode 100644 index 000000000000..a82b9009c109 --- /dev/null +++ b/app-emulation/vmware-workstation/files/vmware-server-12.1.rc @@ -0,0 +1,55 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need localmount vmware + use net +} + +checkconfig() { + # Check if certificates exist. If not, we need to generate them, ala sshd. + if [ ! -e @@ETCDIR@@/ssl/rui.key -o ! -e @@ETCDIR@@/ssl/rui.crt ]; then + mkdir -p @@ETCDIR@@/ssl + openssl req -x509 -days 365 -newkey rsa:2048 -keyout @@ETCDIR@@/ssl/rui.key -out @@ETCDIR@@/ssl/rui.crt -config @@ETCDIR@@/ssl/hostd.ssl.config + chmod -R 600 @@ETCDIR@@/ssl + fi +} + +start() { + checkconfig + + ebegin Starting VMware Authentication Daemon + start-stop-daemon --start \ + --exec @@PREFIX@@/sbin/vmware-authdlauncher + eend $? + ebegin Starting VMware Workstation Server + start-stop-daemon --start \ + --pidfile /var/run/vmware/vmware-hostd.PID \ + --exec @@BINDIR@@/vmware-hostd \ + -- -a -d @@ETCDIR@@/hostd/config.xml + + eend $? +} + +stop() { + ebegin "Shutdown VMs in the AutoStart Sequence" + local HOHO_ADMIN="$(@@BINDIR@@/vmware-wssc-adminTool "@@ETCDIR@@/hostd/authorization.xml" 2>/dev/null)" + + if [ "x" != "x${HOHO_ADMIN}" ]; then + @@BINDIR@@/vmware-vim-cmd -U "${HOHO_ADMIN}" hostsvc/autostartmanager/autostop + fi + eend $? + + ebegin Stopping VMware Workstation Server + start-stop-daemon --stop \ + --pidfile /var/run/vmware/vmware-hostd.PID \ + --exec @@BINDIR@@/vmware-hostd + eend $? + ebegin Stopping VMware Authentication Daemon + #start-stop-daemon --stop \ + # --exec @@PREFIX@@/sbin/vmware-authdlauncher + killall @@PREFIX@@/sbin/vmware-authdlauncher + eend $? +} |