diff options
Diffstat (limited to 'app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100320.243334.ebuild')
-rw-r--r-- | app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100320.243334.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100320.243334.ebuild b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100320.243334.ebuild new file mode 100644 index 000000000000..80cbe4962141 --- /dev/null +++ b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20100320.243334.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2010 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-0.0.20100320.243334.ebuild,v 1.1 2010/03/24 16:58:11 vadimk Exp $ + +inherit linux-mod versionator + +MY_DATE="$(get_version_component_range 3)" +MY_BUILD="$(get_version_component_range 4)" +MY_PN="${PN/-kmod}" +MY_PV="${MY_DATE:0:4}.${MY_DATE:4:2}.${MY_DATE:6:2}-${MY_BUILD}" +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="" + +RDEPEND="" + +DEPEND="${RDEPEND} + virtual/linux-sources + " + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + linux-mod_pkg_setup + + VMWARE_MOD_DIR="modules/linux" + VMWARE_MODULE_LIST="pvscsi vmblock vmci vmhgfs vmsync vmmemctl vmxnet vsock" + + MODULE_NAMES="" + BUILD_TARGETS="auto-build HEADER_DIR=${KERNEL_DIR}/include BUILD_DIR=${KV_OUT_DIR} OVT_SOURCE_DIR=${S}" + + for mod in ${VMWARE_MODULE_LIST}; + do + if [ "${mod}" == "vmxnet" ]; + then + MODTARGET="net" + else + MODTARGET="openvmtools" + fi + MODULE_NAMES="${MODULE_NAMES} ${mod}(${MODTARGET}:${S}/${VMWARE_MOD_DIR}/${mod})" + done +} +pkg_postinst() { + linux-mod_pkg_postinst + elog "vmxnet3 for Linux is now upstream (as of Linux 2.6.32)" +} |