forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-emulation/vmware-workstation: Version bump
- Loading branch information
Showing
10 changed files
with
1,794 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 $? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 $? | ||
} |
55 changes: 55 additions & 0 deletions
55
app-emulation/vmware-workstation/files/vmware-server-11.0.rc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/sbin/runscript | ||
# Copyright 1999-2013 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/files/vmware-server-10.0.rc,v 1.1 2013/10/19 11:38:39 dilfridge Exp $ | ||
|
||
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 $? | ||
} |
55 changes: 55 additions & 0 deletions
55
app-emulation/vmware-workstation/files/vmware-server-11.1.rc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/sbin/runscript | ||
# Copyright 1999-2013 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/files/vmware-server-10.0.rc,v 1.1 2013/10/19 11:38:39 dilfridge Exp $ | ||
|
||
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 $? | ||
} |
55 changes: 55 additions & 0 deletions
55
app-emulation/vmware-workstation/files/vmware-server-11.2.rc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/sbin/runscript | ||
# Copyright 1999-2013 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/files/vmware-server-10.0.rc,v 1.1 2013/10/19 11:38:39 dilfridge Exp $ | ||
|
||
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 $? | ||
} |
Oops, something went wrong.