summaryrefslogtreecommitdiff
path: root/app-emulation/vmware-player/files
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2016-03-19 21:13:29 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2016-03-19 21:40:58 +0100
commit19bfd3b7095e3d5dd521aaa54350ed57254c421b (patch)
treec6380fcc3137b8642b8203f3199ddb60e2d6c075 /app-emulation/vmware-player/files
parent5e72252f1d145dabbf0a78db1b00eb4824a07480 (diff)
downloadgentoo-19bfd3b7095e3d5dd521aaa54350ed57254c421b.tar.gz
gentoo-19bfd3b7095e3d5dd521aaa54350ed57254c421b.tar.xz
app-emulation/vmware-player: Version bump. Import from Fabio Rossi's vmware overlay clone.
Several minor fixes applied (keywording, SRC_URI, environment file) by dilfridge@gentoo.org Package-Manager: portage-2.2.28
Diffstat (limited to 'app-emulation/vmware-player/files')
-rw-r--r--app-emulation/vmware-player/files/vmware-12.1.rc44
1 files changed, 44 insertions, 0 deletions
diff --git a/app-emulation/vmware-player/files/vmware-12.1.rc b/app-emulation/vmware-player/files/vmware-12.1.rc
new file mode 100644
index 00000000000..2a827bc1ae3
--- /dev/null
+++ b/app-emulation/vmware-player/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
+# $Header: $
+
+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 $?
+}