summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattw <mattw@localhost>2010-08-13 04:41:43 +0000
committermattw <mattw@localhost>2010-08-13 04:41:43 +0000
commitb508c6275af8e034f990870b8bb7d9c14890fb3d (patch)
tree542267a2ac85505544b02b0b21510e996b98a309 /app-emulation/vmware-modules/vmware-modules-238.1.ebuild
parentlibview: version bump (diff)
downloadvmware-b508c6275af8e034f990870b8bb7d9c14890fb3d.tar.gz
vmware-b508c6275af8e034f990870b8bb7d9c14890fb3d.tar.bz2
vmware-b508c6275af8e034f990870b8bb7d9c14890fb3d.zip
new VMware Desktop release
svn path=/trunk/; revision=422
Diffstat (limited to 'app-emulation/vmware-modules/vmware-modules-238.1.ebuild')
-rw-r--r--app-emulation/vmware-modules/vmware-modules-238.1.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/vmware-modules-238.1.ebuild b/app-emulation/vmware-modules/vmware-modules-238.1.ebuild
new file mode 100644
index 0000000..165f260
--- /dev/null
+++ b/app-emulation/vmware-modules/vmware-modules-238.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-modules/vmware-modules-1.0.0.26.ebuild,v 1.2 2010/05/03 16:53:39 vadimk Exp $
+
+EAPI="2"
+
+inherit eutils flag-o-matic linux-mod
+
+DESCRIPTION="VMware kernel modules"
+HOMEPAGE="http://www.vmware.com/"
+
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ || ( ~app-emulation/vmware-player-3.1.1.282343
+ ~app-emulation/vmware-workstation-7.1.1.282343 )"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+
+ VMWARE_VER="VME_V65" # THIS VALUE IS JUST A PLACE HOLDER
+ VMWARE_GROUP=${VMWARE_GROUP:-vmware}
+
+ VMWARE_MODULE_LIST="vmblock vmci vmmon vmnet vsock"
+ VMWARE_MOD_DIR="${PN}-${PVR}"
+
+ BUILD_TARGETS="auto-build VMWARE_VER=${VMWARE_VER} KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}"
+
+ enewgroup "${VMWARE_GROUP}"
+ filter-flags -mfpmath=sse
+
+ for mod in ${VMWARE_MODULE_LIST}; do
+ MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)"
+ done
+}
+
+src_unpack() {
+ cd "${S}"
+ for mod in ${VMWARE_MODULE_LIST}; do
+ tar -xf /opt/vmware/lib/vmware/modules/source/${mod}.tar
+ done
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/1.0.0.26-makefile-kernel-dir.patch"
+ epatch "${FILESDIR}/1.0.0.26-makefile-include.patch"
+ epatch "${FILESDIR}/apic.patch"
+ kernel_is 2 6 35 && epatch "${FILESDIR}/iommu_map.patch"
+ kernel_is 2 6 35 && epatch "${FILESDIR}/sk_sleep.patch"
+}
+
+src_install() {
+ # this adds udev rules for vmmon*
+ if echo ${VMWARE_MODULE_LIST} | grep -q vmmon ; then
+ dodir /etc/udev/rules.d
+ echo 'KERNEL=="vmmon*", GROUP="'${VMWARE_GROUP}'", MODE=660' >> "${D}/etc/udev/rules.d/60-vmware.rules" || die
+ echo 'KERNEL=="vmnet*", GROUP="'${VMWARE_GROUP}'", MODE=660' >> "${D}/etc/udev/rules.d/60-vmware.rules" || die
+ fi
+
+ linux-mod_src_install
+}