app-emulation/vmware-server: initial checkin based on new eclass

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1266 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2009-05-30 11:26:03 +00:00
parent 940be9606a
commit 3b3636d70a
10 changed files with 344 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# ChangeLog for app-emulation/vmware-server
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*vmware-server-1.0.9_p156507-r1 (30 May 2009)
30 May 2009; Mario Fetka <mario.fetka@gmail.com>
+files/vmware-server-2.rc, +files/90vmware-server,
+vmware-server-1.0.9_p156507-r1.ebuild, +files/authorization.xml,
+files/vmware-authd, +files/vmware-server.rc, +files/vmware-server.xml,
+metadata.xml:
initial checkin based on new eclass
26 Jan 2009; Mike Auty <ikelos@gentoo.org> files/vmware-server-2.rc,
vmware-server-2.0.0.122956.ebuild:
Remove xinetd requirements and add in a dependency on hal.
15 Jan 2009; Mike Auty <ikelos@gentoo.org>
vmware-server-1.0.8.126538.ebuild:
Stabilize vmware-server to match the main tree.

View File

@ -0,0 +1,12 @@
AUX 90vmware-server 91 RMD160 2a9e2e9d428a06ceac7faec500e6b1423da34b25 SHA1 e090847500dd99d161a46cd361ed2297b3d3ecae SHA256 3175cd9665850cf0d25a96849135c93ab129127370d55572f0137ba3d210e423
AUX authorization.xml 332 RMD160 f31f4300342a9290634e20187351910d72e7c28d SHA1 28e2b07ed7225c83bef3172d23d4702fe92a3f75 SHA256 a6ce67bb812ca67d26e518da4903cf27338865c0f06beb58d4a8ece6021e1630
AUX vmware-authd 211 RMD160 1bd60030f6f7bb78c0fd3b6d156498121d4be5d4 SHA1 514538222dc4e665e1d450e1bf9bf1d8e03a2b61 SHA256 3eafe9ac10aeac852faa1fbbccb5c525560e358f69964995c5cfb86c53af6b54
AUX vmware-server-2.rc 1561 RMD160 ea122e81095807e635626a9a8ff1e445137da2b0 SHA1 50262ff622afe0a8d8eab3ad2599193cd56ad211 SHA256 e4cc1591c0cd8ab6e699d4e346ea69e0a0f4d564bc34ae216027338f74517afd
AUX vmware-server.rc 1529 RMD160 d6840024f8c7be0a673e5e29660cc75fea9520d8 SHA1 049cf33eb5bac09415f8e2a85f7ecfd0bbc5ab4a SHA256 ef551e4240eea88184c96e286354a53a4983ce80c3332a127767301b42586cb2
AUX vmware-server.xml 1592 RMD160 0d7e9ed13ebb3c73dd847e95fa95499296609e8c SHA1 02db2ee7ca0abb8b8793c9f56d858bb08c1c715f SHA256 56aafee80ad705e8d832f8853c36d763d37b87d1cb132a41c50eb63085ae854d
DIST VMware-server-1.0.9-156507.tar.gz 107164305 RMD160 1ba44b50b1f516eb8f253e475d6b2c7b5eeb8ade SHA1 ba6e7a7b69e312e177d54c8272de25574e3d5ddb SHA256 e1c049328141f6ea77d31b38fa920d2adff5756a063fb38964faefe928cbd94c
DIST vmware-server-1.0.9-156507-genpatches-1.tar.bz2 2831 RMD160 ba8abdb18df385cf0566fe2d90a93139628bf4e4 SHA1 0618df489316323362ce8248794109ad6db82778 SHA256 6faf49680f08caa9b2d12ea7225190f40c2ea02f7f308647bc57444ab4978759
DIST vmware-server-1.0.9-156507-perl-fixed-rpath-libs.tar.bz2 73834 RMD160 7f64627b5b945e8d7dabe39c165a4b66b71fb4d3 SHA1 9d696750ca3ec92b31ca8112fd80dcd832494044 SHA256 c42299dd033187c67b45b739da66583fbd94cdcba745200b89a25ac96cd9364b
EBUILD vmware-server-1.0.9_p156507-r1.ebuild 2514 RMD160 67716d6f4a0b2813fe5cd3ccd55cfe2b7ad5e1d7 SHA1 bd787f03f29d6e06c162e0599bac12ba4057d172 SHA256 457f048c6f900e6f472735057fd9e3ecc9d4b9b8178b794794a132ccfa7b56e2
MISC ChangeLog 780 RMD160 4adc192931fd04f0793fa5dff3dfe264abbbacf0 SHA1 2808ad498bec23c92b73d49cddb7d578e935ad98 SHA256 94c276a972f2cf15d1aafe92d2331fbd056bbe7372382bed1e5870a93f8d3091
MISC metadata.xml 159 RMD160 fc7f68a382390e5916b0fb43f37a893fad4f9798 SHA1 f46b02a39bcd0165558de67ff4256cfc812418a3 SHA256 8581ae1c90a48f50fa0542c7fb28cb8984baaf12f50fa18f33e467081effb215

View File

@ -0,0 +1,3 @@
PATH=/opt/vmware/server/bin
ROOTPATH=/opt/vmware/server/bin
MANPATH=/opt/vmware/server/man

View 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>

View 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

View 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 $?
}

View 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 $?
}

View 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='&lt;Foundry version="1"&gt;' offset="0">
<match type="string" value="&lt;VMTeam&gt;" 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='&lt;Foundry version="1"&gt;' offset="0">
<match type="string" value="&lt;VM&gt;" offset="23:24"/>
</match>
</magic>
<glob pattern="*.vmxf"/>
</mime-type>
</mime-info>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>vmware</herd>
</pkgmetadata>

View File

@ -0,0 +1,92 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
# Unlike many other binary packages the user doesn't need to agree to a licence
# to download VMWare. The agreeing to a licence is part of the configure step
# which the user must run manually.
MY_PV="${PV/_p/-}"
MY_P="VMware-server-${MY_PV}"
VM_SRC="${MY_P}.tar.gz"
VM_SRC_EXTRA="perl-fixed-rpath-libs genpatches-1"
inherit eutils vmware-1
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
DEPEND=">=sys-libs/glibc-2.3.5
>=dev-lang/perl-5
sys-apps/pciutils
sys-apps/findutils
virtual/os-headers"
# vmware-server should not use virtual/libc as this is a
# precompiled binary package thats linked to glibc.
RDEPEND=">=sys-libs/glibc-2.3.5
amd64? (
>=app-emulation/emul-linux-x86-baselibs-2.5.5-r3
app-emulation/emul-linux-x86-gtklibs )
x86? (
x11-libs/libX11
x11-libs/libXft
x11-libs/libXtst
x11-libs/libXext
x11-libs/libXt
x11-libs/libICE
x11-libs/libSM
x11-libs/libXrender )
>=dev-lang/perl-5
!<sys-apps/dbus-0.62
!app-emulation/vmware-player
!app-emulation/vmware-workstation
~app-emulation/vmware-modules-138.9
!<app-emulation/vmware-modules-138.9
!>app-emulation/vmware-modules-138.9
sys-apps/pciutils
virtual/pam
sys-apps/xinetd"
S=${WORKDIR}/vmware-server-distrib
src_unpack() {
vmware-1_src_unpack
}
src_prepare() {
vmware-1_src_prepare
# patch the vmware /etc/pam.d file to ensure that only
# vmware group members can log in
cp "${FILESDIR}/vmware-authd" "${S}/etc/pam.d/vmware-authd"
}
src_install() {
vmware-1_src_install
# Fix the amd64 emulation pam stuff
use amd64 && dosed "s:pam_:/lib32/security/pam_:" ${config_dir}/pam.d/vmware-authd
# Remove libpam on amd64 because it's linked against the wrong paths
use amd64 && rm "${D}/opt/vmware/server/lib/lib/libpam.so.0/libpam.so"
echo "${VMWARE_GROUP}" > "${D}${config_dir}/vmwaregroup"
dosym /etc/init.d/xinetd ${config_dir}/init.d
}
pkg_config() {
einfo "Running ${ROOT}${dir}/bin/vmware-config.pl"
"${ROOT}${dir}/bin/vmware-config.pl"
}
pkg_postinst() {
vmware-1_pkg_postinst
elog "Remember by default xinetd only allows connections from localhost"
elog "To allow external users access to vmware-server you must edit"
elog " /etc/xinetd.d/vmware-authd"
elog "and specify a new 'only_from' line"
echo
ewarn "VMWare Server also has issues when running on a JFS filesystem. For more"
ewarn "information see http://bugs.gentoo.org/show_bug.cgi?id=122500#c94"
}