summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2011-02-19 19:05:53 +0100
committertnut <thierryn1 at hispeed dot ch>2011-02-19 19:05:53 +0100
commit3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42 (patch)
treef472df63e228b34a163d187d9fa9b347b56482fb
parent46f16b408c34da2f51f02b5db6ca6005bf402d63 (diff)
downloadnutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.tar.gz
nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.tar.bz2
nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.tar.xz
nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.zip
virtualbox-module dans base
-rw-r--r--base/virtualbox-module/.footprint.i6869
-rw-r--r--base/virtualbox-module/.footprint.x86_649
-rw-r--r--base/virtualbox-module/.md5sum.i6861
-rw-r--r--base/virtualbox-module/.md5sum.x86_641
-rwxr-xr-xbase/virtualbox-module/Pkgfile34
-rwxr-xr-xbase/virtualbox-module/post-install18
6 files changed, 72 insertions, 0 deletions
diff --git a/base/virtualbox-module/.footprint.i686 b/base/virtualbox-module/.footprint.i686
new file mode 100644
index 000000000..5f72358b1
--- /dev/null
+++ b/base/virtualbox-module/.footprint.i686
@@ -0,0 +1,9 @@
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/modules/
+drwxr-xr-x root/root lib/modules/<kernel-version>/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/misc/
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/misc/vboxdrv.ko
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/misc/vboxnetadp.ko
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/misc/vboxnetflt.ko
diff --git a/base/virtualbox-module/.footprint.x86_64 b/base/virtualbox-module/.footprint.x86_64
new file mode 100644
index 000000000..5f72358b1
--- /dev/null
+++ b/base/virtualbox-module/.footprint.x86_64
@@ -0,0 +1,9 @@
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/modules/
+drwxr-xr-x root/root lib/modules/<kernel-version>/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/misc/
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/misc/vboxdrv.ko
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/misc/vboxnetadp.ko
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/misc/vboxnetflt.ko
diff --git a/base/virtualbox-module/.md5sum.i686 b/base/virtualbox-module/.md5sum.i686
new file mode 100644
index 000000000..98be98861
--- /dev/null
+++ b/base/virtualbox-module/.md5sum.i686
@@ -0,0 +1 @@
+9598e9386cd31984c86381a41f673d7c VirtualBox-4.0.4-70112-Linux_x86.run
diff --git a/base/virtualbox-module/.md5sum.x86_64 b/base/virtualbox-module/.md5sum.x86_64
new file mode 100644
index 000000000..f0e261924
--- /dev/null
+++ b/base/virtualbox-module/.md5sum.x86_64
@@ -0,0 +1 @@
+2a382c44557d06fa7337b045902baaa0 VirtualBox-4.0.4-70112-Linux_amd64.run
diff --git a/base/virtualbox-module/Pkgfile b/base/virtualbox-module/Pkgfile
new file mode 100755
index 000000000..8de841f84
--- /dev/null
+++ b/base/virtualbox-module/Pkgfile
@@ -0,0 +1,34 @@
+# Description: Modules kernel pour virtualbox
+# URL: http://www.virtualbox.org
+# Maintainer: NutyX core team
+# Packager: thierryn1 at hispeed dot ch
+
+name=virtualbox-module
+version=4.0.4
+release=1
+_name=VirtualBox
+_kernel=`uname -r`
+_build=70112
+
+[ "`uname -m`" == "i686" ] && _ARCH=x86
+[ "`uname -m`" == "x86_64" ] && _ARCH=amd64
+
+source=(http://download.virtualbox.org/virtualbox/$version/${_name}-${version}-${_build}-Linux_${_ARCH}.run)
+
+
+
+build() {
+ sh "VirtualBox-${version}-${_build}-Linux_${_ARCH}.run" --target "$SRC" --keep --noexec
+ tar xfj VirtualBox.tar.bz2
+
+ mkdir -p $PKG/lib/modules/${_kernel}/kernel/drivers/misc/
+ cd $SRC/src/vboxhost/
+
+ KERNELRELEASE=${_kernel} KERN_DIR=/usr/src/linux-`echo ${_kernel}|sed "s/-NuTyX//"` make
+
+ for i in vboxdrv.ko vboxnetflt.ko vboxnetadp.ko
+ do
+ install -D -m0644 $i \
+ $PKG/lib/modules/${_kernel}/kernel/drivers/misc/$i
+ done
+}
diff --git a/base/virtualbox-module/post-install b/base/virtualbox-module/post-install
new file mode 100755
index 000000000..2932233e5
--- /dev/null
+++ b/base/virtualbox-module/post-install
@@ -0,0 +1,18 @@
+#!/bin/sh
+# Mettre a jour les modules
+depmod
+
+# Si pas de groupe vboxusers on en creer un
+/usr/bin/getent group vboxusers || /usr/sbin/groupadd -g 80 vboxusers
+
+# Ajout du module dans /etc/sysconfig/modules
+if ! grep "vboxdrv" /etc/sysconfig/modules >/dev/null; then
+ sed -i '/End/ i vboxdrv' /etc/sysconfig/modules
+fi
+if ! grep "vboxnetflt" /etc/sysconfig/modules >/dev/null; then
+ sed -i '/End/ i vboxnetflt' /etc/sysconfig/modules
+fi
+
+
+# End of File
+