virtualization/app-emulation/vmware-server/vmware-server-1.0.9_p156507.ebuild

91 lines
2.4 KiB
Bash
Raw Normal View History

# 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.
VM_SRC="VMware-server-${PV/_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"
}