From: David ‘Bombe’ Roden Date: Thu, 17 Sep 2009 06:59:31 +0000 (+0200) Subject: Add app-emulation/virtualbox-modules-1.6.6-r3. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=08c885156d0e18aad83607c5501adc52d8861fd5;p=overlay.git Add app-emulation/virtualbox-modules-1.6.6-r3. --- diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest new file mode 100644 index 0000000..84d3e2e --- /dev/null +++ b/app-emulation/virtualbox-modules/Manifest @@ -0,0 +1,3 @@ +AUX virtualbox-modules-1.6.6_2.6.29.patch 566 RMD160 1eec2e7c44c81a44ca96bf50248b0f2d2318dddd SHA1 56ab75cd559bc1219a7a83a8c173e7ed44ba67e8 SHA256 23a036333daf88bc3dfed5daed03710c2ab710f0c29904b6a9a7a176820f4cc1 +DIST vbox-kernel-module-src-1.6.6.tar.bz2 196940 RMD160 bdc599dd1b2eefd8b21099a387db2dd9d70d7be8 SHA1 24f5b3b884a13fa088d616b2f61b00b02bb2e9fb SHA256 b39109d34ff6d20f8c898c988f8e2b4da12d218ae18c31989b0016d342479945 +EBUILD virtualbox-modules-1.6.6-r3.ebuild 1201 RMD160 ce7e1fd340adfc63c0c1aa45800de1a83ed6d4de SHA1 c6243c40e2f850104afbf59dfadcdca2d3f54db0 SHA256 cb587db6cf7192565d9d9647764e39105dac02776729547d08627829b57e081a diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-1.6.6_2.6.29.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-1.6.6_2.6.29.patch new file mode 100644 index 0000000..8f1ef65 --- /dev/null +++ b/app-emulation/virtualbox-modules/files/virtualbox-modules-1.6.6_2.6.29.patch @@ -0,0 +1,13 @@ +--- work/vboxdrv/linux/SUPDrv-linux.c.orig 2009-05-04 13:05:46.000000000 -0700 ++++ work/vboxdrv/linux/SUPDrv-linux.c 2009-05-04 13:06:10.000000000 -0700 +@@ -769,8 +769,8 @@ + rc = supdrvCreateSession(&g_DevExt, (PSUPDRVSESSION *)&pSession); + if (!rc) + { +- pSession->Uid = current->euid; +- pSession->Gid = current->egid; ++ pSession->Uid = current->cred->euid; ++ pSession->Gid = current->cred->egid; + pSession->Process = RTProcSelf(); + pSession->R0Process = RTR0ProcHandleSelf(); + } diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-1.6.6-r3.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-1.6.6-r3.ebuild new file mode 100644 index 0000000..8e441ec --- /dev/null +++ b/app-emulation/virtualbox-modules/virtualbox-modules-1.6.6-r3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-1.6.6-r1.ebuild,v 1.3 2008/12/25 15:46:39 maekke Exp $ + +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}/vboxdrv + +BUILD_TARGETS="all" +BUILD_TARGET_ARCH="${ARCH}" +MODULE_NAMES="vboxdrv(misc:${S})" + +pkg_setup() { + linux-mod_pkg_setup + BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" + enewgroup vboxusers +} + +src_unpack() { + unpack ${A} + cd "${S}" + if kernel_is 2 6 27 ; then + epatch "${FILESDIR}"/${P}_2.6.27.patch + fi + if kernel_is ge 2 6 29 ; then + epatch "${FILESDIR}"/${P}_2.6.29.patch + fi +} + +src_install() { + linux-mod_src_install + + # udev rule for vboxdrv + dodir /etc/udev/rules.d + echo 'KERNEL=="vboxdrv", GROUP="vboxusers" MODE=660' >> "${D}/etc/udev/rules.d/60-virtualbox.rules" +} + +pkg_postinst() { + linux-mod_pkg_postinst +}