summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2012-12-22 12:24:43 +0000
committerLars Wendler <polynomial-c@gentoo.org>2012-12-22 12:24:43 +0000
commitc8c21b1f58a003f9dd0c5fe45ef67c14bfed8f2f (patch)
tree278b7e3a565c66e0b1c1d93856f9e05e2819f693 /app-emulation/virtualbox-modules
parentDrop to maintainer-needed per Jared's request on bug #440656 (diff)
downloadgentoo-2-c8c21b1f58a003f9dd0c5fe45ef67c14bfed8f2f.tar.gz
gentoo-2-c8c21b1f58a003f9dd0c5fe45ef67c14bfed8f2f.tar.bz2
gentoo-2-c8c21b1f58a003f9dd0c5fe45ef67c14bfed8f2f.zip
Version bump. Removed old
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
Diffstat (limited to 'app-emulation/virtualbox-modules')
-rw-r--r--app-emulation/virtualbox-modules/ChangeLog11
-rwxr-xr-xapp-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh22
-rw-r--r--app-emulation/virtualbox-modules/virtualbox-modules-4.1.24.ebuild59
-rw-r--r--app-emulation/virtualbox-modules/virtualbox-modules-4.2.6.ebuild (renamed from app-emulation/virtualbox-modules/virtualbox-modules-4.2.2.ebuild)2
4 files changed, 92 insertions, 2 deletions
diff --git a/app-emulation/virtualbox-modules/ChangeLog b/app-emulation/virtualbox-modules/ChangeLog
index 9548f7f20563..f8c207642a14 100644
--- a/app-emulation/virtualbox-modules/ChangeLog
+++ b/app-emulation/virtualbox-modules/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-emulation/virtualbox-modules
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/ChangeLog,v 1.118 2012/11/10 21:07:51 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/ChangeLog,v 1.119 2012/12/22 12:24:43 polynomial-c Exp $
+
+*virtualbox-modules-4.2.6 (21 Dec 2012)
+*virtualbox-modules-4.1.24 (21 Dec 2012)
+
+ 21 Dec 2012; Lars Wendler <polynomial-c@gentoo.org>
+ +virtualbox-modules-4.1.24.ebuild, -virtualbox-modules-4.2.2.ebuild,
+ +virtualbox-modules-4.2.6.ebuild, +files/create_vbox_modules_tarball.sh:
+ Version bump. Removed old. Added a script to create the modules tarball out
+ of a VirtualBox binary package.
*virtualbox-modules-4.2.4 (10 Nov 2012)
diff --git a/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh b/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh
new file mode 100755
index 000000000000..9bbc920616c0
--- /dev/null
+++ b/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# Create a virtualbox modules tarball from a VirtualBox binary package.
+# We cannot download the package by this script because of the unpredictable
+# build number being in the filename.
+#
+# usage: create_vbox_modules_tarball.sh VirtualBox-4.1.18-78361-Linux_amd64.run
+
+[ -f "$1" ] || exit 1
+
+VBOX_PACKAGE="$1"
+
+VBOX_VER="$(echo ${VBOX_PACKAGE} | sed 's@.*VirtualBox-\([[:digit:]\.]\+\).*@\1@')"
+
+sh ${VBOX_PACKAGE} --noexec --keep --nox11 || exit 2
+cd install || exit 3
+tar -xaf VirtualBox.tar.bz2 || exit 4
+cd src/vboxhost || exit 5
+tar -cvJf ../../../vbox-kernel-module-src-${VBOX_VER}.tar.xz . || exit 6
+cd ../../.. && rm install -rf
+
+exit 0
diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-4.1.24.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-4.1.24.ebuild
new file mode 100644
index 000000000000..2654208c1332
--- /dev/null
+++ b/app-emulation/virtualbox-modules/virtualbox-modules-4.1.24.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2012 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.24.ebuild,v 1.1 2012/12/22 12:24:43 polynomial-c Exp $
+
+# XXX: the tarball here is just the kernel modules split out of the binary
+# package that comes from virtualbox-bin
+
+EAPI=4
+
+inherit eutils linux-mod user
+
+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.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="pax_kernel"
+
+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() {
+ 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
+
+ if use pax_kernel && kernel_is -ge 3 0 0 ; then
+ epatch "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
+ 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:"
+ elog "/etc/conf.d/modules"
+}
diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-4.2.2.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-4.2.6.ebuild
index 27ada1912006..3c0c4e55db4e 100644
--- a/app-emulation/virtualbox-modules/virtualbox-modules-4.2.2.ebuild
+++ b/app-emulation/virtualbox-modules/virtualbox-modules-4.2.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 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.2.2.ebuild,v 1.1 2012/10/24 04:44:17 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-4.2.6.ebuild,v 1.1 2012/12/22 12:24:43 polynomial-c Exp $
# XXX: the tarball here is just the kernel modules split out of the binary
# package that comes from virtualbox-bin