app-emulation/vmware-server: cleanup
(Portage version: 2.2.0_alpha75-r1/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
This commit is contained in:
parent
09674f00a4
commit
3132bc28cc
@ -1,7 +1,13 @@
|
||||
# ChangeLog for app-emulation/vmware-server
|
||||
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
||||
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/ChangeLog,v 1.61 2009/12/18 16:14:42 vadimk Exp $
|
||||
|
||||
19 Nov 2011; Mario Fetka <mario.fetka@gmail.com>
|
||||
-vmware-server-1.0.8.126538.ebuild, -vmware-server-1.0.9.156507.ebuild,
|
||||
-vmware-server-1.0.10.203137.ebuild, vmware-server-1.0.10.203137-r1.ebuild,
|
||||
-vmware-server-2.0.2.203138.ebuild, -vmware-server-2.0.2.203138-r1.ebuild:
|
||||
cleanup
|
||||
|
||||
06 Dec 2010; Mario Fetka <mario.fetka@gmail.com>
|
||||
vmware-server-1.0.10.203137-r1.ebuild:
|
||||
dont set automatically
|
||||
|
@ -21,17 +21,10 @@ AUX vmware-server-2.rc 1563 RMD160 dc3b5e2e2e6b89486d093f0f5a2b479d8b6525c9 SHA1
|
||||
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.10-203137.tar.gz 107183610 RMD160 0ddaa6a6f5b3c08804eb1b97f13ffd0fc0b87876 SHA1 f21ed65a500b2176166d90ed2821892ce1cb1fd5 SHA256 744d6057daeea5f9a950d164a3d9c5ca6273feed645699cfcf16d8acbcfa504c
|
||||
DIST VMware-server-1.0.8-126538.tar.gz 107047809 RMD160 9a1bb74accd2b3e8a84933f9676eb2cd2b1783c9 SHA1 5745503d49b8eef5a93530cbf38fc0a908ef5409 SHA256 03fb55d0088fb0867bb4697ace7535d6038bab52b948e874180a122893656d0c
|
||||
DIST VMware-server-1.0.9-156507.tar.gz 107164305 RMD160 1ba44b50b1f516eb8f253e475d6b2c7b5eeb8ade SHA1 ba6e7a7b69e312e177d54c8272de25574e3d5ddb SHA256 e1c049328141f6ea77d31b38fa920d2adff5756a063fb38964faefe928cbd94c
|
||||
DIST VMware-server-2.0.2-203138.i386.tar.gz 506047036 RMD160 3119bf56e1ef9c63dfcb969d951cd78bd9c667e1 SHA1 2917c8d4e521cb9af186be8fcaf2043b1a516a6c SHA256 b4779515e2a8ecc4d768c07f9264aeb94e45986262626a3a557466e77f371662
|
||||
DIST VMware-server-2.0.2-203138.x86_64.tar.gz 474415801 RMD160 0778f78122ee6b701543df5885ad1e8d3325fb82 SHA1 b65d3d46dc947fc7995bda354c4947afabd23474 SHA256 a1230f43f6b668a751e9ce2c9d2f6a2c75e4d4cea88f583901f67dbd67412e25
|
||||
DIST vmware-server-perl-fixed-rpath-libs.tar.bz2 73834 RMD160 7f64627b5b945e8d7dabe39c165a4b66b71fb4d3 SHA1 9d696750ca3ec92b31ca8112fd80dcd832494044 SHA256 c42299dd033187c67b45b739da66583fbd94cdcba745200b89a25ac96cd9364b
|
||||
EBUILD vmware-server-1.0.10.203137-r1.ebuild 3689 RMD160 0cb516b86a761ab61b4521154d05f716420e8c75 SHA1 761e5218041bea3eeb5edd5c0971bf767694121a SHA256 a40847b3188a43604d4fe869f4b6a48beb2db6d9bac0d5c8e70b13c942ea90ad
|
||||
EBUILD vmware-server-1.0.10.203137.ebuild 3235 RMD160 b0109235281ca0cec263caf02a5ea2d6d5981ec4 SHA1 88828a83b6f6848e9d77e914f1e0dd2897131d77 SHA256 1707a6cfe3907c1acacfd42a3c5268327d59a0c4401aa22080bfa1d26fbdd233
|
||||
EBUILD vmware-server-1.0.8.126538.ebuild 2988 RMD160 f2357cd81b4dec02049a61e6819bdc42bbaf62fb SHA1 f8cf7a291f1832a0f51153318ce99b5c4d57f643 SHA256 ef04d90fb43477e7d6e8bb0f1820d3ff61dcc93c47e2681ffc847b5138ae4ddf
|
||||
EBUILD vmware-server-1.0.9.156507.ebuild 2988 RMD160 94ae0854fc4c33eb36180c457a2f6d237c1be541 SHA1 12248abfb16a02a7a1edc28b196f18555df46383 SHA256 238560397076cd27bafbf15ca7370724fbe5c0fdb944d1a79acb7675cc79cc5a
|
||||
EBUILD vmware-server-2.0.2.203138-r1.ebuild 10059 RMD160 799135f4f398f8326cc2b73d2dd87408ff91c0a7 SHA1 34f9f0731b932a485b8fa5b78e8445b8ae96a86f SHA256 eee06445795d9bc322ecd079ea9850e572445d2823b5a47a8fefbf532391ed85
|
||||
EBUILD vmware-server-1.0.10.203137-r1.ebuild 3695 RMD160 78ce4a0273dd8133159bf99ad863841e1c90df09 SHA1 ca74e42494c761eb2e4f961ea0c2295d4f343a6c SHA256 709e4681dce7c7f32e32f488ec8fc07e320eed66353f97d686f52eff6e40a64b
|
||||
EBUILD vmware-server-2.0.2.203138-r2.ebuild 9827 RMD160 3a4d1f41313ed7206aa9cd516db39e51b0e16ad4 SHA1 f127dd7f6bcf88dff00296c28d25f92ed7591753 SHA256 7eb5306037a212fc59636e0071c8e0b77dc55568126e36b68aef00654415cf75
|
||||
EBUILD vmware-server-2.0.2.203138.ebuild 10059 RMD160 799135f4f398f8326cc2b73d2dd87408ff91c0a7 SHA1 34f9f0731b932a485b8fa5b78e8445b8ae96a86f SHA256 eee06445795d9bc322ecd079ea9850e572445d2823b5a47a8fefbf532391ed85
|
||||
MISC ChangeLog 15209 RMD160 f94814726478dc8b2eb3bb52696c81b836bcabe4 SHA1 96c2d9a0e136feed626a87210e98b5e49a69db34 SHA256 c6ff9746c60cbee6990c40586859718f3dfde5f56c4247c8a313f1affe74884d
|
||||
MISC ChangeLog 15500 RMD160 d6c51b0190a9022b0a3b931dd8aca926760997a4 SHA1 832b06c9157cb72e0e8ef56ac6f00b34bba06f30 SHA256 b138449fa5edb205543f179d5d24ad16cee9de077c12c323231b895b932d86ec
|
||||
MISC metadata.xml 451 RMD160 34ad07edf6d4f6d9b00b8c0ea197fa8ddad2397b SHA1 7983215b3da6bbfb2e5c167b33b0625a5a31280d SHA256 b64b12ed17797856c0f950540b92f134ca8ffafd40eabafb4ef90c889e16a3e3
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/vmware-server-1.0.10.203137.ebuild,v 1.1 2009/12/18 16:14:42 vadimk Exp $
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
# to download VMWare. The agreeing to a licence is part of the configure step
|
||||
# which the user must run manually.
|
||||
|
||||
inherit eutils versionator vmware-1
|
||||
inherit eutils versionator vmware
|
||||
|
||||
MY_PV=$(replace_version_separator 3 '-' )
|
||||
MY_P="VMware-server-${MY_PV}"
|
||||
|
@ -1,106 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/vmware-server-1.0.10.203137.ebuild,v 1.1 2009/12/18 16:14:42 vadimk Exp $
|
||||
|
||||
# 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.
|
||||
|
||||
inherit eutils versionator vmware
|
||||
|
||||
MY_PV=$(replace_version_separator 3 '-' )
|
||||
MY_P="VMware-server-${MY_PV}"
|
||||
|
||||
DESCRIPTION="VMware Server for Linux"
|
||||
HOMEPAGE="http://www.vmware.com/"
|
||||
SRC_URI="mirror://vmware/software/vmserver/${MY_P}.tar.gz
|
||||
http://dev.gentoo.org/~ikelos/devoverlay-distfiles/${PN}-perl-fixed-rpath-libs.tar.bz2
|
||||
mirror://gentoo/${PN}-perl-fixed-rpath-libs.tar.bz2"
|
||||
|
||||
LICENSE="vmware"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
RESTRICT="strip"
|
||||
|
||||
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 )
|
||||
!amd64? (
|
||||
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.10
|
||||
!<app-emulation/vmware-modules-138.10
|
||||
!>app-emulation/vmware-modules-138.10
|
||||
sys-apps/pciutils
|
||||
virtual/pam
|
||||
sys-apps/xinetd"
|
||||
|
||||
S=${WORKDIR}/vmware-server-distrib
|
||||
|
||||
RUN_UPDATE="no"
|
||||
ANY_ANY=""
|
||||
PATCHES=("general")
|
||||
|
||||
src_unpack() {
|
||||
EPATCH_SUFFIX="patch"
|
||||
vmware_src_unpack
|
||||
#cd "${WORKDIR}"
|
||||
#unpack ${PN}-perl-fixed-rpath-libs.tar.bz2
|
||||
|
||||
# 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"
|
||||
|
||||
# Proper lsmod
|
||||
sed -i -e "s:/sbin/lsmod:/bin/lsmod:" "${S}"/installer/services.sh || die "sed"
|
||||
sed -i -e "s:/sbin/lsmod:/bin/lsmod:" "${S}"/lib/net-services.sh || die "sed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
vmware_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"
|
||||
einfo "on amd64 systems you may have to add -skipstopstart"
|
||||
"${ROOT}${dir}/bin/vmware-config.pl"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
vmware_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"
|
||||
}
|
@ -1,101 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/vmware-server-1.0.9.156507.ebuild,v 1.3 2009/08/01 14:24:50 maekke Exp $
|
||||
|
||||
# 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.
|
||||
|
||||
inherit eutils versionator vmware
|
||||
|
||||
MY_PV=$(replace_version_separator 3 '-' )
|
||||
MY_P="VMware-server-${MY_PV}"
|
||||
|
||||
DESCRIPTION="VMware Server for Linux"
|
||||
HOMEPAGE="http://www.vmware.com/"
|
||||
SRC_URI="mirror://vmware/software/vmserver/${MY_P}.tar.gz
|
||||
http://dev.gentoo.org/~ikelos/devoverlay-distfiles/${PN}-perl-fixed-rpath-libs.tar.bz2
|
||||
mirror://gentoo/${PN}-perl-fixed-rpath-libs.tar.bz2"
|
||||
|
||||
LICENSE="vmware"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
KEYWORDS="-* amd64 x86"
|
||||
RESTRICT="strip"
|
||||
|
||||
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 )
|
||||
!amd64? (
|
||||
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
|
||||
|
||||
RUN_UPDATE="no"
|
||||
ANY_ANY=""
|
||||
PATCHES="general"
|
||||
|
||||
src_unpack() {
|
||||
EPATCH_SUFFIX="patch"
|
||||
vmware_src_unpack
|
||||
#cd "${WORKDIR}"
|
||||
#unpack ${PN}-perl-fixed-rpath-libs.tar.bz2
|
||||
|
||||
# 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_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_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"
|
||||
}
|
@ -1,101 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/vmware-server-1.0.9.156507.ebuild,v 1.3 2009/08/01 14:24:50 maekke Exp $
|
||||
|
||||
# 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.
|
||||
|
||||
inherit eutils versionator vmware
|
||||
|
||||
MY_PV=$(replace_version_separator 3 '-' )
|
||||
MY_P="VMware-server-${MY_PV}"
|
||||
|
||||
DESCRIPTION="VMware Server for Linux"
|
||||
HOMEPAGE="http://www.vmware.com/"
|
||||
SRC_URI="mirror://vmware/software/vmserver/${MY_P}.tar.gz
|
||||
http://dev.gentoo.org/~ikelos/devoverlay-distfiles/${PN}-perl-fixed-rpath-libs.tar.bz2
|
||||
mirror://gentoo/${PN}-perl-fixed-rpath-libs.tar.bz2"
|
||||
|
||||
LICENSE="vmware"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
KEYWORDS="-* amd64 x86"
|
||||
RESTRICT="strip"
|
||||
|
||||
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 )
|
||||
!amd64? (
|
||||
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
|
||||
|
||||
RUN_UPDATE="no"
|
||||
ANY_ANY=""
|
||||
PATCHES="general"
|
||||
|
||||
src_unpack() {
|
||||
EPATCH_SUFFIX="patch"
|
||||
vmware_src_unpack
|
||||
#cd "${WORKDIR}"
|
||||
#unpack ${PN}-perl-fixed-rpath-libs.tar.bz2
|
||||
|
||||
# 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_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_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"
|
||||
}
|
@ -1,320 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/vmware-server-2.0.2.203138-r1.ebuild,v 1.4 2010/05/13 22:33:47 vadimk Exp $
|
||||
|
||||
# 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.
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils pam pax-utils versionator
|
||||
|
||||
MY_PV=$(replace_version_separator 3 '-' )
|
||||
MY_PN="VMware-server-${MY_PV}"
|
||||
|
||||
DESCRIPTION="VMware Server for Linux"
|
||||
HOMEPAGE="http://www.vmware.com/"
|
||||
DOWNLOAD_URL="http://downloads.vmware.com/d/info/datacenter_downloads/vmware_server/2_0"
|
||||
SRC_URI=" x86? ( mirror://vmware/software/vmserver/${MY_PN}.i386.tar.gz )
|
||||
amd64? ( mirror://vmware/software/vmserver/${MY_PN}.x86_64.tar.gz ) "
|
||||
|
||||
LICENSE="vmware"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~x86 ~amd64"
|
||||
RESTRICT="fetch strip"
|
||||
|
||||
CDEPEND="
|
||||
>=dev-lang/perl-5
|
||||
>=sys-libs/glibc-2.3.5
|
||||
sys-apps/pciutils"
|
||||
DEPEND="${CDEPEND}
|
||||
sys-apps/findutils
|
||||
x11-misc/shared-mime-info
|
||||
virtual/os-headers"
|
||||
# vmware-server should not use virtual/libc as this is a
|
||||
# precompiled binary package thats linked to glibc.
|
||||
RDEPEND="${CDEPEND}
|
||||
~app-emulation/vmware-modules-208.2
|
||||
dev-libs/expat
|
||||
dev-libs/glib
|
||||
dev-libs/libxml2
|
||||
=media-libs/libpng-1.2*
|
||||
sys-apps/hal
|
||||
sys-fs/fuse
|
||||
sys-libs/zlib
|
||||
virtual/pam
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXau
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libXext
|
||||
x11-libs/libXft
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
x11-misc/xdg-utils
|
||||
!<sys-apps/dbus-0.62
|
||||
!app-emulation/vmware-player
|
||||
!app-emulation/vmware-workstation
|
||||
"
|
||||
|
||||
PDEPEND="app-emulation/vmware-vix"
|
||||
|
||||
S=${WORKDIR}/vmware-server-distrib
|
||||
|
||||
pkg_setup() {
|
||||
if use x86; then
|
||||
MY_P="${MY_PN}.i386"
|
||||
elif use amd64; then
|
||||
MY_P="${MY_PN}.x86_64"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_nofetch() {
|
||||
if use x86; then
|
||||
MY_P="${MY_PN}.i386"
|
||||
elif use amd64; then
|
||||
MY_P="${MY_PN}.x86_64"
|
||||
fi
|
||||
|
||||
einfo "Please download the ${MY_P}.bundle from"
|
||||
einfo "${DOWNLOAD_URL}"
|
||||
einfo "and place it in ${DISTDIR}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
VMWARE_GROUP=${VMWARE_GROUP:-vmware}
|
||||
VMWARE_INSTALL_DIR=/opt/${PN//-//}
|
||||
|
||||
shortname="wgs"
|
||||
product="vmware"
|
||||
config_program="vmware-config.pl"
|
||||
config_dir="/etc/vmware"
|
||||
product_name="VMware Server 2"
|
||||
|
||||
enewgroup ${VMWARE_GROUP}
|
||||
|
||||
# Remove PAX MPROTECT flag from all applicable files in /bin, /sbin for
|
||||
# the vmware package only (since modules, tools and console should not
|
||||
# need to generate code on the fly in memory).
|
||||
pax-mark -m $(list-paxables "${S}"/{bin{,-debug},sbin}/{vmware-serverd,vmware-vmx})
|
||||
|
||||
EPATCH_SOURCE="${FILESDIR}"/${PV} EPATCH_SUFFIX="patch" epatch
|
||||
|
||||
# Proper lsmod
|
||||
sed -i -e "s:/sbin/lsmod:/bin/lsmod:" "${S}"/installer/services.sh || die "sed"
|
||||
sed -i -e "s:/sbin/lsmod:/bin/lsmod:" "${S}"/lib/net-services.sh || die "sed"
|
||||
|
||||
# Set the name
|
||||
sed -i -e "s:%LONGNAME%:${product_name}:" "${S}"/installer/services.sh || die "sed"
|
||||
sed -i -e "s:%SHORTNAME%:${shortname}:" "${S}"/installer/services.sh || die "sed"
|
||||
|
||||
# We won't want any perl scripts from VMware once we've finally got all
|
||||
# of the configuration done, but for now, they're necessary.
|
||||
#rm -f *.pl bin/*.pl
|
||||
rm -f *.pl
|
||||
rm -f etc/installer.sh
|
||||
|
||||
# Since with Gentoo we compile everthing it doesn't make sense to keep
|
||||
# the precompiled modules arround. Saves about 4 megs of disk space too.
|
||||
rm -rf "${S}"/lib/modules/binary
|
||||
# We also don't need to keep the icons around, or do we?
|
||||
#rm -rf ${S}/lib/share/icons
|
||||
|
||||
rm -rf "${S}"/etc/pam.d/
|
||||
sed -i -e "s:configure_wgs_pam_d():#&:" "${S}"/bin/vmware-config.pl || die "sed pam_d"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# We loop through our directories and copy everything to our system.
|
||||
for x in bin lib sbin
|
||||
do
|
||||
if [[ -e "${S}/${x}" ]]
|
||||
then
|
||||
dodir "${VMWARE_INSTALL_DIR}"/${x}
|
||||
cp -pPR "${S}"/${x}/* "${D}""${VMWARE_INSTALL_DIR}"/${x} \
|
||||
|| die "copying ${x}"
|
||||
fi
|
||||
done
|
||||
|
||||
# Bug 282213
|
||||
mv "${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libpng12.so.0/libpng12.so.0 \
|
||||
"${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libpng12.so.0/libpng12.so.0.old
|
||||
dosym /usr/lib/libpng12.so.0 "${VMWARE_INSTALL_DIR}"/lib/lib/libpng12.so.0/libpng12.so.0
|
||||
|
||||
# Bug 292771
|
||||
mv "${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libexpat.so.0/libexpat.so.0 \
|
||||
"${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libexpat.so.0/libexpat.so.0.old
|
||||
dosym /usr/lib/libexpat.so.1 "${VMWARE_INSTALL_DIR}"/lib/lib/libexpat.so.0/libexpat.so.0
|
||||
mv "${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libxml2.so.2/libxml2.so.2 \
|
||||
"${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libxml2.so.2/libxml2.so.2.old
|
||||
dosym /usr/lib/libxml2.so.2 "${VMWARE_INSTALL_DIR}"/lib/lib/libxml2.so.2/libxml2.so.2
|
||||
|
||||
# If we have an /etc directory, we copy it.
|
||||
if [[ -e "${S}/etc" ]]
|
||||
then
|
||||
dodir "${config_dir}"
|
||||
cp -pPR "${S}"/etc/* "${D}""${config_dir}"
|
||||
fowners root:${VMWARE_GROUP} "${config_dir}"
|
||||
fperms 770 "${config_dir}"
|
||||
fi
|
||||
|
||||
# If we have any helper files, we install them. First, we check for an
|
||||
# init script.
|
||||
if [[ -e "${FILESDIR}/${PN}.rc" ]]
|
||||
then
|
||||
newinitd "${FILESDIR}"/${PN}.rc ${product} || die "newinitd"
|
||||
fi
|
||||
# Then we check for an environment file.
|
||||
if [[ -e "${FILESDIR}/90${PN}" ]]
|
||||
then
|
||||
doenvd "${FILESDIR}"/90${PN} || die "doenvd"
|
||||
fi
|
||||
# Last, we check for any mime files.
|
||||
if [[ -e "${FILESDIR}/${PN}.xml" ]]
|
||||
then
|
||||
insinto /usr/share/mime/packages
|
||||
doins "${FILESDIR}"/${PN}.xml || die "mimetypes"
|
||||
fi
|
||||
|
||||
# Blame bug #91191 for this one.
|
||||
if [[ -e doc/EULA ]]
|
||||
then
|
||||
insinto "${VMWARE_INSTALL_DIR}"/doc
|
||||
doins doc/EULA || die "copying EULA"
|
||||
fi
|
||||
|
||||
# Do we have vmware-ping/vmware-vmx? If so, make them setuid.
|
||||
for p in /bin/vmware-ping /lib/bin/vmware-vmx /lib/bin-debug/vmware-vmx /lib/bin/vmware-vmx-debug /sbin/vmware-authd;
|
||||
do
|
||||
if [ -x "${D}${VMWARE_INSTALL_DIR}${p}" ]
|
||||
then
|
||||
fowners root:${VMWARE_GROUP} "${VMWARE_INSTALL_DIR}"${p}
|
||||
fperms 4750 "${VMWARE_INSTALL_DIR}"${p}
|
||||
fi
|
||||
done
|
||||
|
||||
# This removed the user/group warnings
|
||||
# But also broke vmware-server with FEATURES="userpriv" since it removes
|
||||
# the set-UID bit
|
||||
#chown -R root:${VMWARE_GROUP} ${D} || die
|
||||
|
||||
# We like desktop icons.
|
||||
# TODO: Fix up the icon creation, across the board.
|
||||
#make_desktop_entry ${PN} "${product_name}" ${PN}.png
|
||||
|
||||
# Now, we copy in our services.sh file
|
||||
exeinto "${config_dir}"/init.d
|
||||
newexe installer/services.sh ${product} || die "services.sh"
|
||||
|
||||
newinitd "${FILESDIR}/vmware-server-2.rc" vmware
|
||||
|
||||
# startup symlinks
|
||||
dosym ${config_dir}/init.d/${product} ${config_dir}/init.d/vmware-autostart
|
||||
dosym ${config_dir}/init.d/${product} ${config_dir}/init.d/vmware-core
|
||||
dosym ${config_dir}/init.d/${product} ${config_dir}/init.d/vmware-mgmt
|
||||
|
||||
# pam
|
||||
pamd_mimic_system vmware-authd auth account
|
||||
|
||||
# Man pages and docs
|
||||
dodoc doc/*
|
||||
doman man/man1/*
|
||||
|
||||
# VMware authorization service
|
||||
insinto ${config_dir}/hostd
|
||||
doins "${FILESDIR}/authorization.xml"
|
||||
|
||||
# Finally, we run the "Questions"
|
||||
einfo "Adding answers to ${config_dir}/locations"
|
||||
locations="${D}${config_dir}/locations"
|
||||
echo "answer BINDIR ${VMWARE_INSTALL_DIR}/bin" >> ${locations}
|
||||
echo "answer LIBDIR ${VMWARE_INSTALL_DIR}/lib" >> ${locations}
|
||||
echo "answer MANDIR ${VMWARE_INSTALL_DIR}/man" >> ${locations}
|
||||
echo "answer DOCDIR ${VMWARE_INSTALL_DIR}/doc" >> ${locations}
|
||||
echo "answer SBINDIR ${VMWARE_INSTALL_DIR}/sbin" >> ${locations}
|
||||
echo "answer RUN_CONFIGURATOR no" >> ${locations}
|
||||
echo "answer INITDIR ${config_dir}/init.d" >> ${locations}
|
||||
echo "answer INITSCRIPTSDIR ${config_dir}/init.d" >> ${locations}
|
||||
echo "answer VMCI_CONFED yes" >> ${locations}
|
||||
echo "answer VSOCK_CONFED yes" >> ${locations}
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Running ${VMWARE_INSTALL_DIR}/bin/vmware-config.pl"
|
||||
"${VMWARE_INSTALL_DIR}/bin/vmware-config.pl"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# This must be done after the install to get the mtimes on each file
|
||||
# right.
|
||||
|
||||
#Note: it's a bit weird to use ${D} in a preinst script but it should work
|
||||
#(drobbins, 1 Feb 2002)
|
||||
|
||||
einfo "Generating ${config_dir}/locations file."
|
||||
d=`echo ${D} | wc -c`
|
||||
for x in `find ${D}${VMWARE_INSTALL_DIR} ${D}${config_dir}` ; do
|
||||
x="`echo ${x} | cut -c ${d}-`"
|
||||
if [ -d "${D}/${x}" ] ; then
|
||||
echo "directory ${x}" >> "${D}${config_dir}"/locations
|
||||
else
|
||||
echo -n "file ${x}" >> "${D}${config_dir}"/locations
|
||||
if [ "${x}" == "${config_dir}/locations" ] ; then
|
||||
echo "" >> "${D}${config_dir}"/locations
|
||||
elif [ "${x}" == "${config_dir}/not_configured" ] ; then
|
||||
echo "" >> "${D}${config_dir}"/locations
|
||||
else
|
||||
echo -n " " >> "${D}${config_dir}"/locations
|
||||
find "${D}${x}" -printf %T@ >> "${D}${config_dir}"/locations
|
||||
echo "" >> "${D}${config_dir}"/locations
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
update-mime-database /usr/share/mime
|
||||
[[ -d "${config_dir}" ]] && chown -R root:${VMWARE_GROUP} ${config_dir}
|
||||
|
||||
# This is to fix the problem where the not_configured file doesn't get
|
||||
# removed when the configuration is run. This doesn't remove the file
|
||||
# It just tells the vmware-config.pl script it can delete it.
|
||||
einfo "Updating ${config_dir}/locations"
|
||||
for x in "${config_dir}"/._cfg????_locations ; do
|
||||
if [ -f $x ] ; then
|
||||
cat $x >> "${config_dir}"/locations
|
||||
rm $x
|
||||
fi
|
||||
done
|
||||
|
||||
ewarn "Use "
|
||||
ewarn " emerge vmware-server --config"
|
||||
ewarn "to configure your installation of ${product_name}."
|
||||
|
||||
ewarn "In order to run ${product_name}, you have to"
|
||||
ewarn "be in the '${VMWARE_GROUP}' group."
|
||||
|
||||
#ewarn "By default xinetd only allows connections from localhost"
|
||||
#ewarn "To allow external users access to vmware-server you must edit"
|
||||
#ewarn " /etc/xinetd.d/vmware-authd"
|
||||
#ewarn "and specify a new 'only_from' line"
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
einfo "Stopping ${product_name} for safe unmerge"
|
||||
/etc/init.d/vmware stop
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if ! has_version app-emulation/${PN}; then
|
||||
elog "To remove all traces of ${product} you will need to remove the files"
|
||||
elog "in ${config_dir} and /etc/init.d/${product}."
|
||||
elog "If the vmware-modules package is installed, you may no longer need it."
|
||||
fi
|
||||
}
|
@ -1,320 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/vmware-server-2.0.2.203138-r1.ebuild,v 1.4 2010/05/13 22:33:47 vadimk Exp $
|
||||
|
||||
# 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.
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils pam pax-utils versionator
|
||||
|
||||
MY_PV=$(replace_version_separator 3 '-' )
|
||||
MY_PN="VMware-server-${MY_PV}"
|
||||
|
||||
DESCRIPTION="VMware Server for Linux"
|
||||
HOMEPAGE="http://www.vmware.com/"
|
||||
DOWNLOAD_URL="http://downloads.vmware.com/d/info/datacenter_downloads/vmware_server/2_0"
|
||||
SRC_URI=" x86? ( mirror://vmware/software/vmserver/${MY_PN}.i386.tar.gz )
|
||||
amd64? ( mirror://vmware/software/vmserver/${MY_PN}.x86_64.tar.gz ) "
|
||||
|
||||
LICENSE="vmware"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~x86 ~amd64"
|
||||
RESTRICT="fetch strip"
|
||||
|
||||
CDEPEND="
|
||||
>=dev-lang/perl-5
|
||||
>=sys-libs/glibc-2.3.5
|
||||
sys-apps/pciutils"
|
||||
DEPEND="${CDEPEND}
|
||||
sys-apps/findutils
|
||||
x11-misc/shared-mime-info
|
||||
virtual/os-headers"
|
||||
# vmware-server should not use virtual/libc as this is a
|
||||
# precompiled binary package thats linked to glibc.
|
||||
RDEPEND="${CDEPEND}
|
||||
~app-emulation/vmware-modules-208.2
|
||||
dev-libs/expat
|
||||
dev-libs/glib
|
||||
dev-libs/libxml2
|
||||
=media-libs/libpng-1.2*
|
||||
sys-apps/hal
|
||||
sys-fs/fuse
|
||||
sys-libs/zlib
|
||||
virtual/pam
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXau
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libXext
|
||||
x11-libs/libXft
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
x11-misc/xdg-utils
|
||||
!<sys-apps/dbus-0.62
|
||||
!app-emulation/vmware-player
|
||||
!app-emulation/vmware-workstation
|
||||
"
|
||||
|
||||
PDEPEND="app-emulation/vmware-vix"
|
||||
|
||||
S=${WORKDIR}/vmware-server-distrib
|
||||
|
||||
pkg_setup() {
|
||||
if use x86; then
|
||||
MY_P="${MY_PN}.i386"
|
||||
elif use amd64; then
|
||||
MY_P="${MY_PN}.x86_64"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_nofetch() {
|
||||
if use x86; then
|
||||
MY_P="${MY_PN}.i386"
|
||||
elif use amd64; then
|
||||
MY_P="${MY_PN}.x86_64"
|
||||
fi
|
||||
|
||||
einfo "Please download the ${MY_P}.bundle from"
|
||||
einfo "${DOWNLOAD_URL}"
|
||||
einfo "and place it in ${DISTDIR}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
VMWARE_GROUP=${VMWARE_GROUP:-vmware}
|
||||
VMWARE_INSTALL_DIR=/opt/${PN//-//}
|
||||
|
||||
shortname="wgs"
|
||||
product="vmware"
|
||||
config_program="vmware-config.pl"
|
||||
config_dir="/etc/vmware"
|
||||
product_name="VMware Server 2"
|
||||
|
||||
enewgroup ${VMWARE_GROUP}
|
||||
|
||||
# Remove PAX MPROTECT flag from all applicable files in /bin, /sbin for
|
||||
# the vmware package only (since modules, tools and console should not
|
||||
# need to generate code on the fly in memory).
|
||||
pax-mark -m $(list-paxables "${S}"/{bin{,-debug},sbin}/{vmware-serverd,vmware-vmx})
|
||||
|
||||
EPATCH_SOURCE="${FILESDIR}"/${PV} EPATCH_SUFFIX="patch" epatch
|
||||
|
||||
# Proper lsmod
|
||||
sed -i -e "s:/sbin/lsmod:/bin/lsmod:" "${S}"/installer/services.sh || die "sed"
|
||||
sed -i -e "s:/sbin/lsmod:/bin/lsmod:" "${S}"/lib/net-services.sh || die "sed"
|
||||
|
||||
# Set the name
|
||||
sed -i -e "s:%LONGNAME%:${product_name}:" "${S}"/installer/services.sh || die "sed"
|
||||
sed -i -e "s:%SHORTNAME%:${shortname}:" "${S}"/installer/services.sh || die "sed"
|
||||
|
||||
# We won't want any perl scripts from VMware once we've finally got all
|
||||
# of the configuration done, but for now, they're necessary.
|
||||
#rm -f *.pl bin/*.pl
|
||||
rm -f *.pl
|
||||
rm -f etc/installer.sh
|
||||
|
||||
# Since with Gentoo we compile everthing it doesn't make sense to keep
|
||||
# the precompiled modules arround. Saves about 4 megs of disk space too.
|
||||
rm -rf "${S}"/lib/modules/binary
|
||||
# We also don't need to keep the icons around, or do we?
|
||||
#rm -rf ${S}/lib/share/icons
|
||||
|
||||
rm -rf "${S}"/etc/pam.d/
|
||||
sed -i -e "s:configure_wgs_pam_d():#&:" "${S}"/bin/vmware-config.pl || die "sed pam_d"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# We loop through our directories and copy everything to our system.
|
||||
for x in bin lib sbin
|
||||
do
|
||||
if [[ -e "${S}/${x}" ]]
|
||||
then
|
||||
dodir "${VMWARE_INSTALL_DIR}"/${x}
|
||||
cp -pPR "${S}"/${x}/* "${D}""${VMWARE_INSTALL_DIR}"/${x} \
|
||||
|| die "copying ${x}"
|
||||
fi
|
||||
done
|
||||
|
||||
# Bug 282213
|
||||
mv "${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libpng12.so.0/libpng12.so.0 \
|
||||
"${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libpng12.so.0/libpng12.so.0.old
|
||||
dosym /usr/lib/libpng12.so.0 "${VMWARE_INSTALL_DIR}"/lib/lib/libpng12.so.0/libpng12.so.0
|
||||
|
||||
# Bug 292771
|
||||
mv "${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libexpat.so.0/libexpat.so.0 \
|
||||
"${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libexpat.so.0/libexpat.so.0.old
|
||||
dosym /usr/lib/libexpat.so.1 "${VMWARE_INSTALL_DIR}"/lib/lib/libexpat.so.0/libexpat.so.0
|
||||
mv "${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libxml2.so.2/libxml2.so.2 \
|
||||
"${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libxml2.so.2/libxml2.so.2.old
|
||||
dosym /usr/lib/libxml2.so.2 "${VMWARE_INSTALL_DIR}"/lib/lib/libxml2.so.2/libxml2.so.2
|
||||
|
||||
# If we have an /etc directory, we copy it.
|
||||
if [[ -e "${S}/etc" ]]
|
||||
then
|
||||
dodir "${config_dir}"
|
||||
cp -pPR "${S}"/etc/* "${D}""${config_dir}"
|
||||
fowners root:${VMWARE_GROUP} "${config_dir}"
|
||||
fperms 770 "${config_dir}"
|
||||
fi
|
||||
|
||||
# If we have any helper files, we install them. First, we check for an
|
||||
# init script.
|
||||
if [[ -e "${FILESDIR}/${PN}.rc" ]]
|
||||
then
|
||||
newinitd "${FILESDIR}"/${PN}.rc ${product} || die "newinitd"
|
||||
fi
|
||||
# Then we check for an environment file.
|
||||
if [[ -e "${FILESDIR}/90${PN}" ]]
|
||||
then
|
||||
doenvd "${FILESDIR}"/90${PN} || die "doenvd"
|
||||
fi
|
||||
# Last, we check for any mime files.
|
||||
if [[ -e "${FILESDIR}/${PN}.xml" ]]
|
||||
then
|
||||
insinto /usr/share/mime/packages
|
||||
doins "${FILESDIR}"/${PN}.xml || die "mimetypes"
|
||||
fi
|
||||
|
||||
# Blame bug #91191 for this one.
|
||||
if [[ -e doc/EULA ]]
|
||||
then
|
||||
insinto "${VMWARE_INSTALL_DIR}"/doc
|
||||
doins doc/EULA || die "copying EULA"
|
||||
fi
|
||||
|
||||
# Do we have vmware-ping/vmware-vmx? If so, make them setuid.
|
||||
for p in /bin/vmware-ping /lib/bin/vmware-vmx /lib/bin-debug/vmware-vmx /lib/bin/vmware-vmx-debug /sbin/vmware-authd;
|
||||
do
|
||||
if [ -x "${D}${VMWARE_INSTALL_DIR}${p}" ]
|
||||
then
|
||||
fowners root:${VMWARE_GROUP} "${VMWARE_INSTALL_DIR}"${p}
|
||||
fperms 4750 "${VMWARE_INSTALL_DIR}"${p}
|
||||
fi
|
||||
done
|
||||
|
||||
# This removed the user/group warnings
|
||||
# But also broke vmware-server with FEATURES="userpriv" since it removes
|
||||
# the set-UID bit
|
||||
#chown -R root:${VMWARE_GROUP} ${D} || die
|
||||
|
||||
# We like desktop icons.
|
||||
# TODO: Fix up the icon creation, across the board.
|
||||
#make_desktop_entry ${PN} "${product_name}" ${PN}.png
|
||||
|
||||
# Now, we copy in our services.sh file
|
||||
exeinto "${config_dir}"/init.d
|
||||
newexe installer/services.sh ${product} || die "services.sh"
|
||||
|
||||
newinitd "${FILESDIR}/vmware-server-2.rc" vmware
|
||||
|
||||
# startup symlinks
|
||||
dosym ${config_dir}/init.d/${product} ${config_dir}/init.d/vmware-autostart
|
||||
dosym ${config_dir}/init.d/${product} ${config_dir}/init.d/vmware-core
|
||||
dosym ${config_dir}/init.d/${product} ${config_dir}/init.d/vmware-mgmt
|
||||
|
||||
# pam
|
||||
pamd_mimic_system vmware-authd auth account
|
||||
|
||||
# Man pages and docs
|
||||
dodoc doc/*
|
||||
doman man/man1/*
|
||||
|
||||
# VMware authorization service
|
||||
insinto ${config_dir}/hostd
|
||||
doins "${FILESDIR}/authorization.xml"
|
||||
|
||||
# Finally, we run the "Questions"
|
||||
einfo "Adding answers to ${config_dir}/locations"
|
||||
locations="${D}${config_dir}/locations"
|
||||
echo "answer BINDIR ${VMWARE_INSTALL_DIR}/bin" >> ${locations}
|
||||
echo "answer LIBDIR ${VMWARE_INSTALL_DIR}/lib" >> ${locations}
|
||||
echo "answer MANDIR ${VMWARE_INSTALL_DIR}/man" >> ${locations}
|
||||
echo "answer DOCDIR ${VMWARE_INSTALL_DIR}/doc" >> ${locations}
|
||||
echo "answer SBINDIR ${VMWARE_INSTALL_DIR}/sbin" >> ${locations}
|
||||
echo "answer RUN_CONFIGURATOR no" >> ${locations}
|
||||
echo "answer INITDIR ${config_dir}/init.d" >> ${locations}
|
||||
echo "answer INITSCRIPTSDIR ${config_dir}/init.d" >> ${locations}
|
||||
echo "answer VMCI_CONFED yes" >> ${locations}
|
||||
echo "answer VSOCK_CONFED yes" >> ${locations}
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Running ${VMWARE_INSTALL_DIR}/bin/vmware-config.pl"
|
||||
"${VMWARE_INSTALL_DIR}/bin/vmware-config.pl"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# This must be done after the install to get the mtimes on each file
|
||||
# right.
|
||||
|
||||
#Note: it's a bit weird to use ${D} in a preinst script but it should work
|
||||
#(drobbins, 1 Feb 2002)
|
||||
|
||||
einfo "Generating ${config_dir}/locations file."
|
||||
d=`echo ${D} | wc -c`
|
||||
for x in `find ${D}${VMWARE_INSTALL_DIR} ${D}${config_dir}` ; do
|
||||
x="`echo ${x} | cut -c ${d}-`"
|
||||
if [ -d "${D}/${x}" ] ; then
|
||||
echo "directory ${x}" >> "${D}${config_dir}"/locations
|
||||
else
|
||||
echo -n "file ${x}" >> "${D}${config_dir}"/locations
|
||||
if [ "${x}" == "${config_dir}/locations" ] ; then
|
||||
echo "" >> "${D}${config_dir}"/locations
|
||||
elif [ "${x}" == "${config_dir}/not_configured" ] ; then
|
||||
echo "" >> "${D}${config_dir}"/locations
|
||||
else
|
||||
echo -n " " >> "${D}${config_dir}"/locations
|
||||
find "${D}${x}" -printf %T@ >> "${D}${config_dir}"/locations
|
||||
echo "" >> "${D}${config_dir}"/locations
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
update-mime-database /usr/share/mime
|
||||
[[ -d "${config_dir}" ]] && chown -R root:${VMWARE_GROUP} ${config_dir}
|
||||
|
||||
# This is to fix the problem where the not_configured file doesn't get
|
||||
# removed when the configuration is run. This doesn't remove the file
|
||||
# It just tells the vmware-config.pl script it can delete it.
|
||||
einfo "Updating ${config_dir}/locations"
|
||||
for x in "${config_dir}"/._cfg????_locations ; do
|
||||
if [ -f $x ] ; then
|
||||
cat $x >> "${config_dir}"/locations
|
||||
rm $x
|
||||
fi
|
||||
done
|
||||
|
||||
ewarn "Use "
|
||||
ewarn " emerge vmware-server --config"
|
||||
ewarn "to configure your installation of ${product_name}."
|
||||
|
||||
ewarn "In order to run ${product_name}, you have to"
|
||||
ewarn "be in the '${VMWARE_GROUP}' group."
|
||||
|
||||
#ewarn "By default xinetd only allows connections from localhost"
|
||||
#ewarn "To allow external users access to vmware-server you must edit"
|
||||
#ewarn " /etc/xinetd.d/vmware-authd"
|
||||
#ewarn "and specify a new 'only_from' line"
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
einfo "Stopping ${product_name} for safe unmerge"
|
||||
/etc/init.d/vmware stop
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if ! has_version app-emulation/${PN}; then
|
||||
elog "To remove all traces of ${product} you will need to remove the files"
|
||||
elog "in ${config_dir} and /etc/init.d/${product}."
|
||||
elog "If the vmware-modules package is installed, you may no longer need it."
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue
Block a user