diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2011-08-17 23:34:38 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2011-08-17 23:34:38 +0000 |
commit | 74ebcd155061864887996f0a6c47b541c7550ece (patch) | |
tree | 2b4ea6f0b8edfa2cf3f14e32343bc799d9c4eee8 /app-emulation/virtualbox-modules | |
parent | Version bump for dev channel release. (diff) | |
download | gentoo-2-74ebcd155061864887996f0a6c47b541c7550ece.tar.gz gentoo-2-74ebcd155061864887996f0a6c47b541c7550ece.tar.bz2 gentoo-2-74ebcd155061864887996f0a6c47b541c7550ece.zip |
Version bump
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/virtualbox-modules')
-rw-r--r-- | app-emulation/virtualbox-modules/ChangeLog | 9 | ||||
-rw-r--r-- | app-emulation/virtualbox-modules/virtualbox-modules-4.1.2.ebuild | 61 |
2 files changed, 69 insertions, 1 deletions
diff --git a/app-emulation/virtualbox-modules/ChangeLog b/app-emulation/virtualbox-modules/ChangeLog index b082bf0ca158..e3fae77b69ab 100644 --- a/app-emulation/virtualbox-modules/ChangeLog +++ b/app-emulation/virtualbox-modules/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-emulation/virtualbox-modules # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/ChangeLog,v 1.88 2011/08/09 10:45:42 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/ChangeLog,v 1.89 2011/08/17 23:34:38 polynomial-c Exp $ + +*virtualbox-modules-4.1.2 (17 Aug 2011) + + 17 Aug 2011; Lars Wendler <polynomial-c@gentoo.org> + +virtualbox-modules-4.1.2.ebuild: + Version bump. Added some PCI checks as suggested by Fabio Rossi in bug + #379119. 09 Aug 2011; Lars Wendler <polynomial-c@gentoo.org> -virtualbox-modules-3.2.12.ebuild, -virtualbox-modules-4.0.10.ebuild, diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-4.1.2.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-4.1.2.ebuild new file mode 100644 index 000000000000..1fae61094275 --- /dev/null +++ b/app-emulation/virtualbox-modules/virtualbox-modules-4.1.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-4.1.2.ebuild,v 1.1 2011/08/17 23:34:38 polynomial-c Exp $ + +# XXX: the tarball here is just the kernel modules split out of the binary +# package that comes from virtualbox-bin + +EAPI=2 + +inherit eutils linux-mod + +MY_P=vbox-kernel-module-src-${PV} +DESCRIPTION="Kernel Modules for Virtualbox" +HOMEPAGE="http://www.virtualbox.org/" +SRC_URI="http://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="!=app-emulation/virtualbox-9999" + +S=${WORKDIR} + +BUILD_TARGETS="all" +BUILD_TARGET_ARCH="${ARCH}" +MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})" + +pkg_setup() { + # check for kernel options to support PCI passthrough (since 2.6.31) + CONFIG_CHECK="~IOMMU_SUPPORT ~DMAR ~PCI_STUB" + linux-mod_pkg_setup + + BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" + enewgroup vboxusers +} + +src_prepare() { + 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() { + linux-mod_src_install +} + +pkg_postinst() { + linux-mod_pkg_postinst + elog "Starting with the 3.x release new kernel modules were added," + elog "be sure to load all the needed modules." + elog "" + elog "Please add \"vboxdrv\", \"vboxnetflt\" and \"vboxnetadp\" to:" + if has_version sys-apps/openrc; then + elog "/etc/conf.d/modules" + else + elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" + fi +} |