summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/vmware-modules')
-rw-r--r--app-emulation/vmware-modules/Manifest1
-rw-r--r--app-emulation/vmware-modules/vmware-modules-264.1.ebuild78
2 files changed, 79 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/Manifest b/app-emulation/vmware-modules/Manifest
index 3d9685f..03dc5b5 100644
--- a/app-emulation/vmware-modules/Manifest
+++ b/app-emulation/vmware-modules/Manifest
@@ -21,4 +21,5 @@ EBUILD vmware-modules-208.2.ebuild 1861 RMD160 6641f57a7906ff1eb243e14561c37475e
EBUILD vmware-modules-238.5.ebuild 1873 RMD160 681c4ccebeb95f2fed04a4c96e61ac2eeb78b7c2 SHA1 cb0182be00360b491b1a786a19e22109433801de SHA256 387ff9118264bb7b4da60676320d1cf464bc45b6c2312ee5b41174ddcf74015a
EBUILD vmware-modules-264.0-r1.ebuild 1783 RMD160 8675556e0a64b43598daa0e5bb3112decdbcfe93 SHA1 a24a74b639692c718d73cbdf4d20b9a74388492b SHA256 52595ee7801735540b5fd7e3bb3b43fbc7bbcb114efbc6ee67b312675e9926d8
EBUILD vmware-modules-264.0.ebuild 1733 RMD160 a841071b9c267c738da4562749e3d7e3bf15a797 SHA1 b8a9ed3951f7477013271bc65ca9ce66c7ece8b6 SHA256 47b7fd8c4c07cc0deba59de425b596ed553666e649bb35a844889e387cebabbf
+EBUILD vmware-modules-264.1.ebuild 1772 RMD160 a4a0ef8c6ad13409780f4c9bb1c75d18dacb3136 SHA1 8a34e91de4f415ea40ff7d899f7301797eb5503a SHA256 dcaa56c300c1e9cb57a60dfe3d76895c5925917eea44a3bccd4794202d54d1dd
MISC metadata.xml 159 RMD160 fc7f68a382390e5916b0fb43f37a893fad4f9798 SHA1 f46b02a39bcd0165558de67ff4256cfc812418a3 SHA256 8581ae1c90a48f50fa0542c7fb28cb8984baaf12f50fa18f33e467081effb215
diff --git a/app-emulation/vmware-modules/vmware-modules-264.1.ebuild b/app-emulation/vmware-modules/vmware-modules-264.1.ebuild
new file mode 100644
index 0000000..d049a7d
--- /dev/null
+++ b/app-emulation/vmware-modules/vmware-modules-264.1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils flag-o-matic linux-info linux-mod versionator
+
+PV_MAJOR=$(get_major_version)
+PV_MINOR=$(get_version_component_range 2)
+
+DESCRIPTION="VMware kernel modules"
+HOMEPAGE="http://www.vmware.com/"
+
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ || ( =app-emulation/vmware-player-4.0.${PV_MINOR}*
+ =app-emulation/vmware-workstation-8.0.${PV_MINOR}* )"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ CONFIG_CHECK="~HIGH_RES_TIMERS"
+ if kernel_is ge 2 6 37 && kernel_is lt 2 6 39; then
+ CONFIG_CHECK="${CONFIG_CHECK} BKL"
+ fi
+
+ linux-info_pkg_setup
+
+ linux-mod_pkg_setup
+
+ VMWARE_GROUP=${VMWARE_GROUP:-vmware}
+
+ VMWARE_MODULE_LIST="vmblock vmci vmmon vmnet vsock"
+ VMWARE_MOD_DIR="${PN}-${PVR}"
+
+ BUILD_TARGETS="auto-build 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}/${PV_MAJOR}-makefile-kernel-dir.patch"
+ epatch "${FILESDIR}/${PV_MAJOR}-makefile-include.patch"
+ epatch "${FILESDIR}/${PV_MAJOR}-jobserver.patch"
+ epatch "${FILESDIR}/${PV_MAJOR}-netdevice.patch"
+}
+
+src_install() {
+ linux-mod_src_install
+ local udevrules="${T}/60-vmware.rules"
+ cat > "${udevrules}" <<-EOF
+ KERNEL=="vmci", GROUP="vmware", MODE=660
+ KERNEL=="vmmon", GROUP="vmware", MODE=660
+ KERNEL=="vsock", GROUP="vmware", MODE=660
+ EOF
+ insinto /etc/udev/rules.d/
+ doins "${udevrules}"
+}