diff options
author | Patrick Lauer <patrick@gentoo.org> | 2010-02-13 18:52:24 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2010-02-13 18:52:24 +0000 |
commit | 85aa02c938610c1ca4cef0163e3e71cff7320c4c (patch) | |
tree | b50f7685b753c8cf0648f9c3264f0fbd852c8434 /app-emulation/vmware-modules | |
parent | Remove masked package. (diff) | |
download | gentoo-2-85aa02c938610c1ca4cef0163e3e71cff7320c4c.tar.gz gentoo-2-85aa02c938610c1ca4cef0163e3e71cff7320c4c.tar.bz2 gentoo-2-85aa02c938610c1ca4cef0163e3e71cff7320c4c.zip |
Small fix for header changes in 2.6.33 and later
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/vmware-modules')
-rw-r--r-- | app-emulation/vmware-modules/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/vmware-modules/vmware-modules-1.0.0.25-r1.ebuild | 78 |
2 files changed, 85 insertions, 1 deletions
diff --git a/app-emulation/vmware-modules/ChangeLog b/app-emulation/vmware-modules/ChangeLog index 2b71e2e91937..9967ef9e1391 100644 --- a/app-emulation/vmware-modules/ChangeLog +++ b/app-emulation/vmware-modules/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/vmware-modules # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-modules/ChangeLog,v 1.53 2010/01/02 20:07:47 vadimk Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-modules/ChangeLog,v 1.54 2010/02/13 18:52:24 patrick Exp $ + +*vmware-modules-1.0.0.25-r1 (13 Feb 2010) + + 13 Feb 2010; Patrick Lauer <patrick@gentoo.org> + +vmware-modules-1.0.0.25-r1.ebuild: + Small fix for header changes in 2.6.33 and later 02 Jan 2010; Vadim Kuznetsov <vadimk@gentoo.org> -vmware-modules-1.0.0.24.ebuild, vmware-modules-1.0.0.24-r1.ebuild, diff --git a/app-emulation/vmware-modules/vmware-modules-1.0.0.25-r1.ebuild b/app-emulation/vmware-modules/vmware-modules-1.0.0.25-r1.ebuild new file mode 100644 index 000000000000..26dfb0fdfac4 --- /dev/null +++ b/app-emulation/vmware-modules/vmware-modules-1.0.0.25-r1.ebuild @@ -0,0 +1,78 @@ +# 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.25-r1.ebuild,v 1.1 2010/02/13 18:52:24 patrick Exp $ + +EAPI="2" + +inherit eutils flag-o-matic linux-mod + +DESCRIPTION="VMware kernel modules" +HOMEPAGE="http://www.vmware.com/" + +SRC_URI="x86? ( + mirror://gentoo/${P}.x86.tar.bz2 + http://dev.gentoo.org/~vadimk/${P}.x86.tar.bz2 + ) + amd64? ( + mirror://gentoo/${P}.amd64.tar.bz2 + http://dev.gentoo.org/~vadimk/${P}.amd64.tar.bz2 + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +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() { + unpack ${A} + cd "${S}" + for mod in ${VMWARE_MODULE_LIST}; do + unpack ./"${P}"/${mod}.tar + done +} + +src_prepare() { + epatch "${FILESDIR}/${PV}-makefile-kernel-dir.patch" + epatch "${FILESDIR}/${PV}-makefile-include.patch" + epatch "${FILESDIR}/sched_h-2.6.32.patch" + if kernel_is -ge 2 6 33 ; then + # evil patch for new kernels - header moved + grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:' + fi +} + +src_install() { + # this adds udev rules for vmmon* + if [[ -n "`echo ${VMWARE_MODULE_LIST} | grep 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 +} |