summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Kuznetsov <vadimk@gentoo.org>2011-04-19 15:28:32 +0000
committerVadim Kuznetsov <vadimk@gentoo.org>2011-04-19 15:28:32 +0000
commit6fd51032a612a23f2cf81888d1c39dfc74758f46 (patch)
tree4e436a1cf861959ef304bd7a5e8975db7078a3e8 /app-emulation/open-vm-tools-kmod
parentPrerelease (diff)
downloadgentoo-2-6fd51032a612a23f2cf81888d1c39dfc74758f46.tar.gz
gentoo-2-6fd51032a612a23f2cf81888d1c39dfc74758f46.tar.bz2
gentoo-2-6fd51032a612a23f2cf81888d1c39dfc74758f46.zip
version bump
(Portage version: 2.1.9.46/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/open-vm-tools-kmod')
-rw-r--r--app-emulation/open-vm-tools-kmod/ChangeLog8
-rw-r--r--app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20110328.387002.ebuild78
2 files changed, 85 insertions, 1 deletions
diff --git a/app-emulation/open-vm-tools-kmod/ChangeLog b/app-emulation/open-vm-tools-kmod/ChangeLog
index 13d5f99303f5..8b6d19d45f6b 100644
--- a/app-emulation/open-vm-tools-kmod/ChangeLog
+++ b/app-emulation/open-vm-tools-kmod/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-emulation/open-vm-tools-kmod
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/ChangeLog,v 1.14 2011/03/11 16:14:18 vadimk Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/ChangeLog,v 1.15 2011/04/19 15:28:32 vadimk Exp $
+
+*open-vm-tools-kmod-0.0.20110328.387002 (19 Apr 2011)
+
+ 19 Apr 2011; Vadim Kuznetsov <vadimk@gentoo.org>
+ +open-vm-tools-kmod-0.0.20110328.387002.ebuild:
+ version bump
*open-vm-tools-kmod-0.0.20110223.368700-r1 (11 Mar 2011)
diff --git a/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20110328.387002.ebuild b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20110328.387002.ebuild
new file mode 100644
index 000000000000..c28b4b943287
--- /dev/null
+++ b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-0.0.20110328.387002.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2011 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.20110328.387002.ebuild,v 1.1 2011/04/19 15:28:32 vadimk Exp $
+
+EAPI="2"
+
+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="vmblock vmci vmhgfs vmsync 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
+}
+
+src_prepare() {
+ sed -i.bak -e '/\smake\s/s/make/$(MAKE)/g' modules/linux/{vmblock,vmci,vmhgfs,vmsync,vmxnet,vsock}/Makefile\
+ || die "Sed failed."
+}
+
+src_configure() {
+ : # do nothing at all
+}
+
+src_install() {
+ linux-mod_src_install
+
+ local udevrules="${T}/60-vmware.rules"
+ cat > "${udevrules}" <<-EOF
+ KERNEL=="vsock", GROUP="vmware", MODE=660
+ EOF
+ insinto /etc/udev/rules.d/
+ doins "${udevrules}"
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+ elog "vmxnet3 for Linux is now upstream (as of Linux 2.6.32)"
+ elog "pvscsi for Linux is now upstream (vmw_pvscsi) (as of Linux 2.6.33)"
+ elog "vmmemctl for Linux is now upstream (vmw_balloon) (as of Linux 2.6.34)"
+}