diff options
Diffstat (limited to 'app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2013.09.16.1328054.ebuild')
-rw-r--r-- | app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2013.09.16.1328054.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2013.09.16.1328054.ebuild b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2013.09.16.1328054.ebuild new file mode 100644 index 0000000..8ab6ce4 --- /dev/null +++ b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2013.09.16.1328054.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2013.09.16.1328054.ebuild,v 1.6 2014/08/10 16:18:12 floppym Exp $ + +EAPI="5" + +inherit eutils linux-mod versionator udev + +MY_PN="${PN/-kmod}" +MY_PV="$(replace_version_separator 3 '-')" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="Opensourced tools for VMware guests" +HOMEPAGE="http://open-vm-tools.sourceforge.net/" +SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="vmhgfs" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + CONFIG_CHECK="~DRM_VMWGFX ~VMWARE_BALLOON ~VMWARE_PVSCSI ~VMXNET3 + !UIDGID_STRICT_TYPE_CHECKS" + + # See logic in configure.ac. + local MODULES="vmxnet" + + use vmhgfs && MODULES+=" vmhgfs" + + if kernel_is -lt 3 9; then + MODULES+=" vmci vsock" + else + CONFIG_CHECK+=" VMWARE_VMCI ~VMWARE_VMCI_VSOCKETS" + fi + + if kernel_is -lt 3; then + MODULES+=" vmblock vmsync" + else + CONFIG_CHECK+=" ~FUSE_FS" + fi + + local mod + for mod in ${MODULES}; do + MODULE_NAMES+=" ${mod}(ovt:modules/linux/${mod})" + done + + linux-mod_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}/vmhgfs-linux-3.11.patch" + epatch_user +} + +src_configure() { + BUILD_TARGETS="auto-build" + export OVT_SOURCE_DIR="${S}" + export LINUXINCLUDE="${KV_OUT_DIR}/include" +} + +src_install() { + linux-mod_src_install + udev_dorules "${FILESDIR}/60-vmware.rules" +} |