move
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/vmware@1339 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
3
app-emulation/vmware-server/files/90vmware-server
Normal file
3
app-emulation/vmware-server/files/90vmware-server
Normal file
@@ -0,0 +1,3 @@
|
||||
PATH=/opt/vmware/server/bin
|
||||
ROOTPATH=/opt/vmware/server/bin
|
||||
MANPATH=/opt/vmware/server/man
|
||||
11
app-emulation/vmware-server/files/authorization.xml
Normal file
11
app-emulation/vmware-server/files/authorization.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<ConfigRoot>
|
||||
<ACEData id="10">
|
||||
<ACEDataEntity>ha-folder-root</ACEDataEntity>
|
||||
<ACEDataId>10</ACEDataId>
|
||||
<ACEDataIsGroup>true</ACEDataIsGroup>
|
||||
<ACEDataPropagate>true</ACEDataPropagate>
|
||||
<ACEDataRoleId>-1</ACEDataRoleId>
|
||||
<ACEDataUser>vmware</ACEDataUser>
|
||||
</ACEData>
|
||||
<NextAceId>11</NextAceId>
|
||||
</ConfigRoot>
|
||||
4
app-emulation/vmware-server/files/vmware-authd
Normal file
4
app-emulation/vmware-server/files/vmware-authd
Normal file
@@ -0,0 +1,4 @@
|
||||
#%PAM-1.0
|
||||
auth required pam_unix.so shadow nullok
|
||||
account required pam_listfile.so item=group sense=allow file=/etc/vmware/vmwaregroup onerr=fail
|
||||
account required pam_unix.so
|
||||
69
app-emulation/vmware-server/files/vmware-server-2.rc
Executable file
69
app-emulation/vmware-server/files/vmware-server-2.rc
Executable file
@@ -0,0 +1,69 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/files/vmware-server.rc,v 1.6 2007/09/20 17:13:13 ikelos Exp $
|
||||
|
||||
depend() {
|
||||
need localmount hald
|
||||
use logger net
|
||||
after samba
|
||||
}
|
||||
|
||||
vmware_prettify() {
|
||||
# Yea, the code is ugly but the output is pretty
|
||||
state=$1
|
||||
waserror=0
|
||||
while read line
|
||||
do
|
||||
# Ignore blank lines
|
||||
[ "${line}" = "" ] && continue
|
||||
|
||||
# Determine what kind of line it is to provide einfo or ewarn etc
|
||||
case ${line} in
|
||||
*Starting\ *)
|
||||
einfo ${line};;
|
||||
*Stopping\ *)
|
||||
einfo ${line};;
|
||||
*VMware\ Virtual\ Infrastructure\ Web\ Access*)
|
||||
# Really nasty hack, because for some reason, vmware-server 2 doesn't say done when it mentions this
|
||||
einfon " ${line}"
|
||||
echo
|
||||
eend 0;;
|
||||
*)
|
||||
# Strip out anything after the <esc> code
|
||||
message=`echo ${line} | sed -e "s/^\(.*\).*$/\1/"`
|
||||
einfon " ${message}"
|
||||
echo
|
||||
|
||||
echo ${line} | grep -q done
|
||||
status=$?
|
||||
eend ${status}
|
||||
|
||||
if [ ${status} -ne 0 ]
|
||||
then
|
||||
logger -p local0.err -t vmware-${state} "${line}"
|
||||
waserror=${status}
|
||||
fi
|
||||
esac
|
||||
continue
|
||||
|
||||
done
|
||||
if [ ${waserror} -ne 0 ]
|
||||
then
|
||||
eend 1 "VMware is not properly configured! See above."
|
||||
fi
|
||||
return ${waserror}
|
||||
}
|
||||
|
||||
start() {
|
||||
test -x /etc/vmware/init.d/vmware || \
|
||||
eend 1 "vmware init script not found. Aborting" || return 1
|
||||
|
||||
/etc/vmware/init.d/vmware start | vmware_prettify start
|
||||
return $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
/etc/vmware/init.d/vmware stop | vmware_prettify stop
|
||||
return $?
|
||||
}
|
||||
79
app-emulation/vmware-server/files/vmware-server.rc
Normal file
79
app-emulation/vmware-server/files/vmware-server.rc
Normal file
@@ -0,0 +1,79 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/files/vmware-server.rc,v 1.6 2007/09/20 17:13:13 ikelos Exp $
|
||||
|
||||
depend() {
|
||||
need localmount xinetd
|
||||
use logger net
|
||||
after samba
|
||||
}
|
||||
|
||||
vmware_prettify() {
|
||||
# Yea, the code is ugly but the output is pretty
|
||||
state=$1
|
||||
waserror=0
|
||||
msgtype=0
|
||||
while read line
|
||||
do
|
||||
[ "${line}" = "" ] && continue
|
||||
if [ ${msgtype} -le 0 ]
|
||||
then
|
||||
if [ ${msgtype} -eq -1 ]
|
||||
then
|
||||
ewarn ${line}
|
||||
continue
|
||||
fi
|
||||
case ${line} in
|
||||
*:*)
|
||||
einfon ${line}
|
||||
echo
|
||||
eend 0
|
||||
msgtype=1;;
|
||||
*Stopping\ VMware\ virtual\ machines*)
|
||||
einfon ${line}
|
||||
echo
|
||||
eend 0
|
||||
msgtype=0;;
|
||||
*)
|
||||
ewarn ${line}
|
||||
msgtype=-1
|
||||
waserror=1;;
|
||||
esac
|
||||
continue
|
||||
fi
|
||||
|
||||
# Strip out anything after the <esc> code
|
||||
message=`echo ${line} | sed -e "s/^\(.*\).*$/\1/"`
|
||||
einfon " ${message}"
|
||||
echo
|
||||
|
||||
echo ${line} | grep -q done
|
||||
status=$?
|
||||
eend ${status}
|
||||
|
||||
if [ ${status} -eq 0 ]
|
||||
then
|
||||
logger -p local0.err -t vmware-${state} "${line}"
|
||||
waserror=${status}
|
||||
fi
|
||||
done
|
||||
if [ "${msgtype}" = "-1" ]
|
||||
then
|
||||
eend 1 "VMware is not properly configured! See above."
|
||||
fi
|
||||
return ${waserror}
|
||||
}
|
||||
|
||||
start() {
|
||||
test -x /etc/vmware/init.d/vmware || \
|
||||
eend 1 "vmware init script not found. Aborting" || return 1
|
||||
|
||||
/etc/vmware/init.d/vmware start | vmware_prettify start
|
||||
return $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
/etc/vmware/init.d/vmware stop | vmware_prettify stop
|
||||
return $?
|
||||
}
|
||||
48
app-emulation/vmware-server/files/vmware-server.xml
Normal file
48
app-emulation/vmware-server/files/vmware-server.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-vmware-vm">
|
||||
<comment xml:lang="en">VMware virtual machine</comment>
|
||||
<magic priority="50">
|
||||
<match type="string" value='config.version = "' offset="0:4096"/>
|
||||
</magic>
|
||||
<glob pattern="*.vmx"/>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="application/x-vmware-vmdisk">
|
||||
<comment xml:lang="en">VMware virtual disk</comment>
|
||||
<magic priority="50">
|
||||
<match type="string" value="# Disk DescriptorFile" offset="0"/>
|
||||
<match type="string" value="KDMV" offset="0"/>
|
||||
</magic>
|
||||
<glob pattern="*.vmdk"/>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="application/x-vmware-team">
|
||||
<comment xml:lang="en">VMware team</comment>
|
||||
<magic priority="50">
|
||||
<match type="string" value='<Foundry version="1">' offset="0">
|
||||
<match type="string" value="<VMTeam>" offset="23:24"/>
|
||||
</match>
|
||||
</magic>
|
||||
<glob pattern="*.vmtm"/>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="application/x-vmware-snapshot">
|
||||
<comment xml:lang="en">VMware virtual machine snapshot</comment>
|
||||
<magic priority="50">
|
||||
<match type="string" value="\\0xD0\\0xBE\\0xD0\\0xBE" offset="0"/>
|
||||
</magic>
|
||||
<glob pattern="*.vmsn"/>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="application/x-vmware-vmfoundry">
|
||||
<comment xml:lang="en">VMware virtual machine foundry</comment>
|
||||
<magic priority="50">
|
||||
<match type="string" value='<Foundry version="1">' offset="0">
|
||||
<match type="string" value="<VM>" offset="23:24"/>
|
||||
</match>
|
||||
</magic>
|
||||
<glob pattern="*.vmxf"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
Reference in New Issue
Block a user