summaryrefslogtreecommitdiff
blob: 6012432e678cf9159452ff1d95e3953043a1990a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2008 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.20.ebuild,v 1.4 2008/09/30 17:00:53 mr_bones_ Exp $

KEYWORDS="~amd64 ~x86"
VMWARE_VER="VME_V604" # THIS VALUE IS JUST A PLACE HOLDER

inherit eutils vmware-mod

VMWARE_MODULE_LIST="vmmon vmnet vmblock"
SRC_URI="x86? ( mirror://vmware/software/vmplayer/VMware-player-2.0.4-93057.i386.tar.gz )
		 amd64? ( mirror://vmware/software/vmplayer/VMware-player-2.0.4-93057.x86_64.tar.gz )"
VMWARE_MOD_DIR="vmware-player-distrib/lib/modules/source/"

kernel_check() {
	get_version
	ebegin "Checking kernel options"
	if kernel_is 2 6 ; then
		if [ $KV_PATCH -gt 24 ];
		then
		  $(linux_chkconfig_present UNUSED_SYMBOLS) && einfo "[UNUSED_SYMBOLS] is enabled in your kernel" || ewarn "[UNUSED_SYMBOLS] is not enabled in the kernel"
		fi
	fi
	eend $?
}

src_unpack() {
	kernel_check
	vmware-mod_src_unpack
	cd "${S}/vmblock-only"
	epatch "${FILESDIR}/patches/vmblock/010_all_kernel-2.6.25.patch"
	cd "${S}"
	epatch "${FILESDIR}/${PV}-makefile-kernel-dir.patch"
	epatch "${FILESDIR}/${PV}-vmmon-2.6.26.patch"
	epatch "${FILESDIR}/${PV}-vmnet-2.6.26.patch"
	epatch "${FILESDIR}/${PV}-vmblock-2.6.26-1.patch"
	epatch "${FILESDIR}/${PV}-vmblock-2.6.26-2.patch"
}