From cd40a7eb5540476366198ecf11fee04f4d63d76e Mon Sep 17 00:00:00 2001 From: tnut Date: Tue, 26 Jan 2010 20:03:26 +0100 Subject: Maj de virtualbox-module#3.1.2-6, déplacé dans base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/virtualbox-module/.footprint | 8 ++++++++ base/virtualbox-module/.md5sum | 1 + base/virtualbox-module/Pkgfile | 28 ++++++++++++++++++++++++++++ base/virtualbox-module/post-install | 18 ++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 base/virtualbox-module/.footprint create mode 100644 base/virtualbox-module/.md5sum create mode 100755 base/virtualbox-module/Pkgfile create mode 100755 base/virtualbox-module/post-install (limited to 'base/virtualbox-module') diff --git a/base/virtualbox-module/.footprint b/base/virtualbox-module/.footprint new file mode 100644 index 000000000..014f99d43 --- /dev/null +++ b/base/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// +drwxr-xr-x root/root lib/modules//kernel/ +drwxr-xr-x root/root lib/modules//kernel/drivers/ +drwxr-xr-x root/root lib/modules//kernel/drivers/misc/ +-rw-r--r-- root/root lib/modules//kernel/drivers/misc/vboxdrv.ko +-rw-r--r-- root/root lib/modules//kernel/drivers/misc/vboxnetflt.ko diff --git a/base/virtualbox-module/.md5sum b/base/virtualbox-module/.md5sum new file mode 100644 index 000000000..12c8cb3f0 --- /dev/null +++ b/base/virtualbox-module/.md5sum @@ -0,0 +1 @@ +4178a0f5aa924c5202632e576d1c14c1 VirtualBox-3.1.2-56127-Linux_x86.run diff --git a/base/virtualbox-module/Pkgfile b/base/virtualbox-module/Pkgfile new file mode 100755 index 000000000..c8b60fc31 --- /dev/null +++ b/base/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.1.2 +release=6 +_name=VirtualBox +_kernel=`uname -r` +_build=56127 +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/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 + -- cgit v1.2.3-70-g09d2