diff options
author | Thierry N <thierryn1 at hispeed dot ch> | 2009-08-12 20:54:56 +0200 |
---|---|---|
committer | Thierry N <thierryn1 at hispeed dot ch> | 2009-08-12 20:54:56 +0200 |
commit | 92cef9b78ce365311f4969a4f0233416fce1f600 (patch) | |
tree | be539ffa97aa6214709e35f612f8c29fabfb939a | |
parent | cf73b2fb02b47d5bf5e424b22c4bd1c162059201 (diff) | |
download | nutyx-pakxe-92cef9b78ce365311f4969a4f0233416fce1f600.tar.gz nutyx-pakxe-92cef9b78ce365311f4969a4f0233416fce1f600.tar.bz2 nutyx-pakxe-92cef9b78ce365311f4969a4f0233416fce1f600.tar.xz nutyx-pakxe-92cef9b78ce365311f4969a4f0233416fce1f600.zip |
Ajout de virtualbox-module#3.0.4-1
-rw-r--r-- | extra/virtualbox-module/.footprint | 8 | ||||
-rw-r--r-- | extra/virtualbox-module/.md5sum | 1 | ||||
-rwxr-xr-x | extra/virtualbox-module/Pkgfile | 28 | ||||
-rwxr-xr-x | extra/virtualbox-module/post-install | 18 |
4 files changed, 55 insertions, 0 deletions
diff --git a/extra/virtualbox-module/.footprint b/extra/virtualbox-module/.footprint new file mode 100644 index 000000000..014f99d43 --- /dev/null +++ b/extra/virtualbox-module/.footprint @@ -0,0 +1,8 @@ +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/vboxnetflt.ko diff --git a/extra/virtualbox-module/.md5sum b/extra/virtualbox-module/.md5sum new file mode 100644 index 000000000..8583f8103 --- /dev/null +++ b/extra/virtualbox-module/.md5sum @@ -0,0 +1 @@ +ac7a53050ca4c1f03abf330d27c2595b VirtualBox-3.0.4-50677-Linux_x86.run diff --git a/extra/virtualbox-module/Pkgfile b/extra/virtualbox-module/Pkgfile new file mode 100755 index 000000000..7e6fe14c6 --- /dev/null +++ b/extra/virtualbox-module/Pkgfile @@ -0,0 +1,28 @@ +# Description: Modules kernel pour virtualbox +# URL: http://www.virtualbox.org +# Maintainer: NutyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: + +name=virtualbox-module +version=3.0.4 +release=1 +_name=VirtualBox +_kernel=2.6.30.4 +_build=50677 +source=(http://download.virtualbox.org/virtualbox/$version/${_name}-${version}-${_build}-Linux_x86.run) + + + +build() { + sh "VirtualBox-${version}-${_build}-Linux_x86.run" --target "$SRC" --keep --noexec + tar xfj VirtualBox.tar.bz2 + + mkdir -p $PKG/lib/modules/${_kernel}/kernel/drivers/misc/ + cd src + make + install -D -m 0644 vboxdrv.ko \ + $PKG/lib/modules/${_kernel}/kernel/drivers/misc/vboxdrv.ko + install -D -m 0644 vboxnetflt.ko \ + $PKG/lib/modules/${_kernel}/kernel/drivers/misc/vboxnetflt.ko +} diff --git a/extra/virtualbox-module/post-install b/extra/virtualbox-module/post-install new file mode 100755 index 000000000..2932233e5 --- /dev/null +++ b/extra/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 + |