From 6b2b5155773c903582eebb60226d637ee6f45961 Mon Sep 17 00:00:00 2001 From: geos_one Date: Sat, 23 Jan 2010 14:10:56 +0000 Subject: [PATCH] add virtualbox modules git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1868 6952d904-891a-0410-993b-d76249ca496b --- app-emulation/virtualbox-modules/ChangeLog | 294 ++++++++++++++++++ app-emulation/virtualbox-modules/Manifest | 6 + .../virtualbox-modules-1.6.6_2.6.27.patch | 79 +++++ .../files/virtualbox-modules-2.6.29_rc.patch | 11 + app-emulation/virtualbox-modules/metadata.xml | 13 + .../virtualbox-modules-3.1.2.ebuild | 65 ++++ 6 files changed, 468 insertions(+) create mode 100644 app-emulation/virtualbox-modules/ChangeLog create mode 100644 app-emulation/virtualbox-modules/Manifest create mode 100644 app-emulation/virtualbox-modules/files/virtualbox-modules-1.6.6_2.6.27.patch create mode 100644 app-emulation/virtualbox-modules/files/virtualbox-modules-2.6.29_rc.patch create mode 100644 app-emulation/virtualbox-modules/metadata.xml create mode 100644 app-emulation/virtualbox-modules/virtualbox-modules-3.1.2.ebuild diff --git a/app-emulation/virtualbox-modules/ChangeLog b/app-emulation/virtualbox-modules/ChangeLog new file mode 100644 index 00000000..d06f40e2 --- /dev/null +++ b/app-emulation/virtualbox-modules/ChangeLog @@ -0,0 +1,294 @@ +# ChangeLog for app-emulation/virtualbox-modules +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/ChangeLog,v 1.54 2009/12/02 20:37:35 patrick Exp $ + +*virtualbox-modules-3.1.0 (02 Dec 2009) + + 02 Dec 2009; Patrick Lauer + +virtualbox-modules-3.1.0.ebuild: + Bump + + 30 Nov 2009; Patrick Lauer + -virtualbox-modules-3.0.8.ebuild, -virtualbox-modules-3.0.10.ebuild: + Remove old + + 30 Nov 2009; Markus Meier + virtualbox-modules-3.0.12.ebuild: + amd64 stable, bug #294678 + + 27 Nov 2009; Christian Faulhammer + virtualbox-modules-3.0.12.ebuild: + stable x86, security bug 294678 + +*virtualbox-modules-3.0.12 (19 Nov 2009) + + 19 Nov 2009; Patrick Lauer + +virtualbox-modules-3.0.12.ebuild: + Bump, closes #293556 + + 10 Nov 2009; Patrick Lauer + -virtualbox-modules-1.6.6.ebuild, -virtualbox-modules-1.6.6-r1.ebuild, + -virtualbox-modules-3.0.6.ebuild: + Drop old + + 09 Nov 2009; Markus Meier + virtualbox-modules-3.0.8.ebuild: + amd64 stable, bug #288836 + + 09 Nov 2009; Markus Meier + virtualbox-modules-3.0.6.ebuild: + amd64 stable, bug #285451 + +*virtualbox-modules-3.0.10 (03 Nov 2009) + + 03 Nov 2009; Patrick Lauer + +virtualbox-modules-3.0.10.ebuild: + Bump to 3.0.10, fixes #291214 #290296 #285749 #286163 + + 19 Oct 2009; Christian Faulhammer + virtualbox-modules-3.0.8.ebuild: + stable x86, bug 288836 + +*virtualbox-modules-3.0.8 (06 Oct 2009) + + 06 Oct 2009; Patrick Lauer + +virtualbox-modules-3.0.8.ebuild: + Bump to 3.0.8, big thanks to X-Drum for testing + + 21 Sep 2009; Christian Faulhammer + virtualbox-modules-3.0.6.ebuild: + stable x86, bug 285451 + + 12 Sep 2009; Patrick Lauer + -virtualbox-modules-3.0.4.ebuild: + Remove old + +*virtualbox-modules-3.0.6 (10 Sep 2009) + + 10 Sep 2009; Patrick Lauer + +virtualbox-modules-3.0.6.ebuild: + Bump to 3.0.6, thanks to Alessio Cassiba. Fixes #284407 + + 17 Aug 2009; Patrick Lauer + -virtualbox-modules-2.1.4.ebuild, -virtualbox-modules-2.2.0.ebuild, + -virtualbox-modules-2.2.2.ebuild, -virtualbox-modules-2.2.4.ebuild, + -virtualbox-modules-3.0.2.ebuild: + Dropping vulnerable versions for #280157 + +*virtualbox-modules-3.0.4 (17 Aug 2009) + + 17 Aug 2009; Patrick Lauer + +virtualbox-modules-3.0.4.ebuild: + Bump to 3.0.4, fixes #280157. Thanks to Alessio Cassibba + +*virtualbox-modules-3.0.2 (16 Jul 2009) + + 16 Jul 2009; Patrick Lauer + +virtualbox-modules-3.0.2.ebuild: + Bump to 3.0.2. Fixes #275963. Thanks to Alessio Cassiba and all the + testers + +*virtualbox-modules-2.2.4 (01 Jun 2009) + + 01 Jun 2009; Patrick Lauer + +virtualbox-modules-2.2.4.ebuild: + Bump to 2.2.4, thanks to Alessio Cassibba. Fixes #271983 #271341 #269335 + + 30 Apr 2009; Patrick Lauer + -virtualbox-modules-2.0.2.ebuild, -virtualbox-modules-2.0.4.ebuild, + -virtualbox-modules-2.0.6.ebuild: + Remove old 2.0 + +*virtualbox-modules-2.2.2 (30 Apr 2009) + + 30 Apr 2009; Patrick Lauer + +virtualbox-modules-2.2.2.ebuild: + Bump to 2.2.2, thanks to Alessio Cassibba. Fixes #267838 + +*virtualbox-modules-2.2.0 (18 Apr 2009) + + 18 Apr 2009; Patrick Lauer + +virtualbox-modules-2.2.0.ebuild: + Bump to 2.2.0. Many thanks to Alessio Cassibba for the ebuilds. Part of + #265510 + + 05 Mar 2009; Patrick Lauer + +files/virtualbox-modules-2.6.29_rc.patch: + Adding missing patch, closes #261314 + +*virtualbox-modules-2.1.4 (03 Mar 2009) + + 03 Mar 2009; Patrick Lauer + +virtualbox-modules-2.1.4.ebuild: + Bump to 2.1.4. Ebuild by Alessio Cassibba (X-Drum) , + imported from the jokey overlay. Fixes vboxdrv kernel problems with + 2.6.29-rc* kernels, thanks to Ben Kohler bug #259688 + + 25 Dec 2008; Markus Meier + virtualbox-modules-1.6.6-r1.ebuild: + x86 stable, bug #245624 + + 25 Dec 2008; Thomas Anderson + virtualbox-modules-1.6.6-r1.ebuild: + stable amd64, bug 245624 + + 18 Dec 2008; Diego E. Pettenò + +files/virtualbox-modules-1.6.6_2.6.27.patch, + +virtualbox-modules-1.6.6-r1.ebuild: + Proxy fix from Alessio. + +*virtualbox-modules-1.6.6-r1 (18 Dec 2008) + + 18 Dec 2008; Diego E. Pettenò + +files/virtualbox-modules-1.6.6_2.6.27.patch, + +virtualbox-modules-1.6.6-r1.ebuild: + Proxy fix from Alessio. + + 25 Nov 2008; Alessio Cassibba (X-Drum) + -virtualbox-modules-2.0.2.ebuild: + drop version 2.0.2 + + 10 Nov 2008; Alessio Cassibba (X-Drum) + -virtualbox-modules-1.6.6.ebuild, +virtualbox-modules-1.6.6-r1.ebuild, + +files/virtualbox-modules-1.6.6_2.6.27.patch: + fix compilation against kernel 2.6.27 thanks to gengor@gentoo.org, see bug + #245624 + +*virtualbox-modules-2.0.6 (29 Nov 2008) + + 29 Nov 2008; Mike Frysinger + +virtualbox-modules-2.0.6.ebuild: + Version bump for Alessio Cassibba #248776 by Rodrigo Severo. + + 28 Oct 2008; Markus Ullmann + virtualbox-modules-1.6.6.ebuild: + Reinstate stable keyword for bug #244718 + +*virtualbox-modules-2.0.4 (27 Oct 2008) + + 27 Oct 2008; Markus Ullmann + -virtualbox-modules-1.6.4.ebuild, +virtualbox-modules-2.0.4.ebuild: + (Proxy commit) Version bump + + 25 Oct 2008; Alessio Cassibba (X-Drum) + -virtualbox-modules-1.6.4.ebuild, +virtualbox-modules-2.0.4.ebuild: + Version Bump; drop version 1.6.4 + +*virtualbox-modules-2.0.2 (15 Sep 2008) + + 15 Sep 2008; Markus Ullmann + -virtualbox-modules-1.6.2.ebuild, virtualbox-modules-1.6.4.ebuild, + virtualbox-modules-1.6.6.ebuild, +virtualbox-modules-2.0.2.ebuild: + (Proxy-Commit) Port from dev overlay + + 14 Sep 2008; Alessio Cassibba (X-Drum) ChangeLog: + +virtualbox-modules-2.0.2.ebuild, -virtualbox-modules-1.6.2.ebuild: + Version Bump + +*virtualbox-modules-1.6.6 (06 Sep 2008) + + 06 Sep 2008; Markus Ullmann + -virtualbox-modules-1.5.7.ebuild, virtualbox-modules-1.6.2.ebuild, + virtualbox-modules-1.6.4.ebuild, +virtualbox-modules-1.6.6.ebuild: + Port from dev overlay + + 02 Sep 2008; Alessio Cassibba (X-Drum) + -virtualbox-modules-1.5.7.ebuild, virtualbox-modules-1.6.4.ebuild, + +virtualbox-modules-1.6.6.ebuild: + Version bump; drop old 1.5.x version + + 27 Aug 2008; Markus Ullmann + virtualbox-modules-1.6.4.ebuild: + Stable on x86 and amd64 + + 27 Aug 2008; Markus Ullmann + -files/virtualbox-modules_2.6.24.patch, + -virtualbox-modules-1.5.2-r1.ebuild, -virtualbox-modules-1.5.4.ebuild, + -virtualbox-modules-1.5.6.ebuild, virtualbox-modules-1.5.7.ebuild, + virtualbox-modules-1.6.2.ebuild, virtualbox-modules-1.6.4.ebuild: + Adjust blockers for renaming + +*virtualbox-modules-1.6.4 (10 Aug 2008) + + 10 Aug 2008; Markus Ullmann + +virtualbox-modules-1.6.4.ebuild: + Add version bump from my overlay wrt bug #233683 + +*virtualbox-modules-1.6.2 (13 Jun 2008) + + 13 Jun 2008; Doug Goldstein + +virtualbox-modules-1.6.2.ebuild: + copy changes from jokey's overlay to the tree as jokey requested + +*virtualbox-modules-1.5.7 (21 Apr 2008) + + 21 Apr 2008; Markus Ullmann + +virtualbox-modules-1.5.7.ebuild: + (Proxy commit) version bump to fix API change in kernel 2.6.25 + (chage_page_attr function) bug #218198 + + 06 Mar 2008; Christoph Mende + virtualbox-modules-1.5.4.ebuild: + Stable on amd64, bug #208905 + + 04 Mar 2008; Markus Ullmann + virtualbox-modules-1.5.4.ebuild: + Stable on x86 wrt bug #208905 + +*virtualbox-modules-1.5.6 (25 Feb 2008) + + 25 Feb 2008; Diego Pettenò + +virtualbox-modules-1.5.6.ebuild: + Version bump, as requested by the proxy-maintainer Alessio Cassibba. + +*virtualbox-modules-1.5.4 (05 Jan 2008) + + 05 Jan 2008; Markus Ullmann + +virtualbox-modules-1.5.4.ebuild: + Version bump wrt bug #203893 thanks to x-drum + + 06 Dec 2007; Markus Ullmann + files/virtualbox-modules_2.6.24.patch, virtualbox-modules-1.5.2-r1.ebuild: + Only apply 2.6.24 patch if there is such a kernel and add more patch stuff + from upstream, thanks to Bjoern Olausson in bug #199798 + +*virtualbox-modules-1.5.2-r1 (05 Dec 2007) + + 05 Dec 2007; Markus Ullmann + +files/virtualbox-modules_2.6.24.patch, -virtualbox-modules-1.5.2.ebuild, + +virtualbox-modules-1.5.2-r1.ebuild: + Add 2.6.24 kernel patch from bug #199798 , thanks to Bjoern Olausson + + 03 Nov 2007; Markus Ullmann + -virtualbox-modules-1.4.0.ebuild: + Cleanup + + 29 Oct 2007; Dawid Węgliński + virtualbox-modules-1.5.2.ebuild: + Stable on x86 + + 22 Oct 2007; Markus Ullmann + -virtualbox-modules-1.3.8.ebuild, -virtualbox-modules-1.5.0.ebuild: + Drop old + +*virtualbox-modules-1.5.2 (22 Oct 2007) + + 22 Oct 2007; Markus Ullmann + +virtualbox-modules-1.5.2.ebuild: + Version bump wrt bug #196424 thanks to Alessio for the ebuilds + + 17 Sep 2007; Markus Ullmann + virtualbox-modules-1.5.0.ebuild: + nmi_watchdog=0 no more needed for amd64, remove message in pkg_postinst, + from x-drum + +*virtualbox-modules-1.5.0 (04 Sep 2007) + + 04 Sep 2007; Markus Ullmann + +virtualbox-modules-1.5.0.ebuild: + Version bump wrt bug #191142 + + 23 Jun 2007; Charlie Shepherd + virtualbox-modules-1.3.8.ebuild, virtualbox-modules-1.4.0.ebuild: + Fix headers, thanks to x-drum + diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest new file mode 100644 index 00000000..7c78981d --- /dev/null +++ b/app-emulation/virtualbox-modules/Manifest @@ -0,0 +1,6 @@ +AUX virtualbox-modules-1.6.6_2.6.27.patch 2918 RMD160 a50f9aa5fbfe8570d446e8fb1e58d137cbce145f SHA1 ea4453a5716e205c171e3675ec2b53573fba5bb9 SHA256 ff18838027ec512a1381cb80379fda18fc43a0e8f4236e748e9b1de9140c83e6 +AUX virtualbox-modules-2.6.29_rc.patch 367 RMD160 984b9cf5d8f35cf77d2432a0c7df9fd220a5a0c7 SHA1 a4392716ce0ff0ee2e59450205d28f5af410dade SHA256 3039f51883044d36a622cb0d68f9be789a8c21e7f8fd0ddb7ebdd83522a2e9ad +DIST vbox-kernel-module-src-3.1.2.tar.bz2 686130 RMD160 c5a5551caebbabf4957a3232794c33ce0827a8a6 SHA1 64cc6288b40216ae6cbd96113ef02b1eed3a3619 SHA256 7048a41cbc0753a75d8d15179bb83f891e301106e6ac89f5dac90afd0b858720 +EBUILD virtualbox-modules-3.1.2.ebuild 1894 RMD160 908cbe1aa5689565c83518f64ec218f3267606a9 SHA1 61890a88709cb9c3e1919c5f479e04931c25e02c SHA256 bc59ed711ff536a544d5c648c8ce9c5267b4c61536b22913a822cb2e08fc3341 +MISC ChangeLog 9863 RMD160 f5536ba8ea7a6db4ee015b9794fee9aeef4a4262 SHA1 6906bb031a58d80329665317ae8e577451ad420e SHA256 8a017f70853b94fb089350299108023380cd13d70c802078f33bdf206f38f6ab +MISC metadata.xml 344 RMD160 12935d5b21be85bc4222fd06371c93dcbf6f534e SHA1 68b99919921f246738cce4350b77d895e7c78106 SHA256 fff5aeb6f453d2e137765ca5016e81344cb0cd0cecd51d81bbb889cb1d7a5ba9 diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-1.6.6_2.6.27.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-1.6.6_2.6.27.patch new file mode 100644 index 00000000..2fa70a28 --- /dev/null +++ b/app-emulation/virtualbox-modules/files/virtualbox-modules-1.6.6_2.6.27.patch @@ -0,0 +1,79 @@ +--- a/linux/SUPDrv-linux.c ++++ b/linux/SUPDrv-linux.c +@@ -115,44 +115,6 @@ + # error "CONFIG_X86_HIGH_ENTRY is not supported by VBoxDrv at this time." + #endif + +-/* +- * This sucks soooo badly on x86! Why don't they export __PAGE_KERNEL_EXEC so PAGE_KERNEL_EXEC would be usable? +- */ +-#if defined(RT_ARCH_AMD64) +-# define MY_PAGE_KERNEL_EXEC PAGE_KERNEL_EXEC +-#elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE) +-# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC) +-#else +-# define MY_PAGE_KERNEL_EXEC PAGE_KERNEL +-#endif +- +-/* +- * The redhat hack section. +- * - The current hacks are for 2.4.21-15.EL only. +- */ +-#ifndef NO_REDHAT_HACKS +-/* accounting. */ +-# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) +-# ifdef VM_ACCOUNT +-# define MY_DO_MUNMAP(a,b,c) do_munmap(a, b, c, 0) /* should it be 1 or 0? */ +-# endif +-# endif +- +-/* backported remap_page_range. */ +-# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) +-# include +-# ifdef tlb_vma /* probably not good enough... */ +-# define HAVE_26_STYLE_REMAP_PAGE_RANGE 1 +-# endif +-# endif +- +-#endif /* !NO_REDHAT_HACKS */ +- +- +-#ifndef MY_DO_MUNMAP +-# define MY_DO_MUNMAP(a,b,c) do_munmap(a, b, c) +-#endif +- + + /** @def ONE_MSEC_IN_JIFFIES + * The number of jiffies that make up 1 millisecond. Must be at least 1! */ +--- a/r0drv/linux/alloc-r0drv-linux.c ++++ b/r0drv/linux/alloc-r0drv-linux.c +@@ -131,11 +131,10 @@ PRTMEMHDR rtMemAlloc(size_t cb, uint32_t + } + else + # endif +- pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM, PAGE_KERNEL_EXEC); ++ pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM, MY_PAGE_KERNEL_EXEC); + + #elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE) +- pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM, +- __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC)); ++ pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM, MY_PAGE_KERNEL_EXEC); + #else + pHdr = (PRTMEMHDR)vmalloc(cb + sizeof(*pHdr)); + #endif +--- a/r0drv/linux/the-linux-kernel.h ++++ b/r0drv/linux/the-linux-kernel.h +@@ -174,7 +174,12 @@ DECLINLINE(unsigned long) msecs_to_jiffi + #if defined(RT_ARCH_AMD64) + # define MY_PAGE_KERNEL_EXEC PAGE_KERNEL_EXEC + #elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE) +-# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC) ++# ifdef __PAGE_KERNEL_EXEC ++ /* >= 2.6.27 */ ++# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? __PAGE_KERNEL_EXEC | _PAGE_GLOBAL : __PAGE_KERNEL_EXEC) ++# else ++# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC) ++# endif + #else + # define MY_PAGE_KERNEL_EXEC PAGE_KERNEL + #endif diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-2.6.29_rc.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-2.6.29_rc.patch new file mode 100644 index 00000000..0724b4d8 --- /dev/null +++ b/app-emulation/virtualbox-modules/files/virtualbox-modules-2.6.29_rc.patch @@ -0,0 +1,11 @@ +--- vboxdrv/Makefile.orig 2009-02-25 01:22:57.626074529 +0100 ++++ vboxdrv/Makefile 2009-02-25 01:23:36.419076205 +0100 +@@ -67,7 +67,7 @@ + endif + + # use vm_insert_page() API (if available) to map kernel pages to userland - better debugging +-# VBOX_USE_INSERT_PAGE = 1 ++VBOX_USE_INSERT_PAGE = 1 + + # override is required by the Debian guys + override MODULE = vboxdrv diff --git a/app-emulation/virtualbox-modules/metadata.xml b/app-emulation/virtualbox-modules/metadata.xml new file mode 100644 index 00000000..76eddd3f --- /dev/null +++ b/app-emulation/virtualbox-modules/metadata.xml @@ -0,0 +1,13 @@ + + + +no-herd + + jokey@gentoo.org + Markus Ullmann + + + swapon@gmail.com + Alessio Cassibba + + diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-3.1.2.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-3.1.2.ebuild new file mode 100644 index 00000000..06954896 --- /dev/null +++ b/app-emulation/virtualbox-modules/virtualbox-modules-3.1.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-3.1.0.ebuild,v 1.1 2009/12/02 20:37:35 patrick 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://gentoo.zerodev.it/files/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="!=app-emulation/virtualbox-ose-9999" + +S=${WORKDIR} + +BUILD_TARGETS="all" +BUILD_TARGET_ARCH="${ARCH}" +MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S})" + +pkg_setup() { + linux-mod_pkg_setup + BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" + enewgroup vboxusers +} + +src_install() { + linux-mod_src_install + + # udev rule for vboxdrv + dodir /etc/udev/rules.d + echo '#SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0644"' \ + > "${D}/etc/udev/rules.d/10-virtualbox.rules" + echo '#SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0644"' \ + >> "${D}/etc/udev/rules.d/10-virtualbox.rules" +} + +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 + elog "" + elog "If you are experiencing problems on your guests" + elog "with USB support and app-emulation/virtualbox-bin," + elog "uncomment the udev rules placed in:" + elog "" + elog "/etc/udev/rules.d/10-virtualbox.rules" + elog "" +}