virtualization/app-emulation/vmware-modules/vmware-modules-138.8.ebuild

36 lines
962 B
Bash

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
GENPATCHES_VER="2"
VM_SRC_URI="mirror://vmware/software/vmserver/VMware-server-1.0.8-126538.tar.gz"
VM_MODULE_LIST="vmmon vmnet"
inherit vmware-mod-2
KEYWORDS="~amd64 ~x86"
IUSE="init_mm-patch"
S="${WORKDIR}"/vmware-server-distrib/lib/modules/source/
pkg_setup() {
if kernel_is ge 2 6 25; then
CONFIG_CHECK="UNUSED_SYMBOLS"
fi
if kernel_is ge 2 6 29; then
if use init_mm-patch ; then
ewarn "starting with kernel version 2.6.29 the deprecated"
ewarn "symbole init_mm isn't exported."
ewarn "plz recompile your kenel with applied init_mm patch"
ewarn "http://www.insecure.ws/2009/04/21/vmware-specific-specific-55x-and-kernel-2629"
else
ewarn "starting with kernel version 2.6.29 the deprecated"
ewarn "symbole init_mm isn't exported."
die "kernel not supported!"
fi
fi
vmware-mod-2_pkg_setup
}