From 98b9b5ac0ccca9207e0a3962835f4995b6323926 Mon Sep 17 00:00:00 2001 From: tnut Date: Tue, 24 Aug 2010 21:04:10 +0200 Subject: virtualbox-module dans acompiler --- acompiler/virtualbox-module/.footprint | 8 ++++++++ acompiler/virtualbox-module/.md5sum | 1 + acompiler/virtualbox-module/Pkgfile | 27 +++++++++++++++++++++++++++ acompiler/virtualbox-module/post-install | 18 ++++++++++++++++++ base/virtualbox-module/.footprint | 8 -------- base/virtualbox-module/.md5sum | 1 - base/virtualbox-module/Pkgfile | 27 --------------------------- base/virtualbox-module/post-install | 18 ------------------ 8 files changed, 54 insertions(+), 54 deletions(-) create mode 100644 acompiler/virtualbox-module/.footprint create mode 100644 acompiler/virtualbox-module/.md5sum create mode 100755 acompiler/virtualbox-module/Pkgfile create mode 100755 acompiler/virtualbox-module/post-install delete mode 100644 base/virtualbox-module/.footprint delete mode 100644 base/virtualbox-module/.md5sum delete mode 100755 base/virtualbox-module/Pkgfile delete mode 100755 base/virtualbox-module/post-install diff --git a/acompiler/virtualbox-module/.footprint b/acompiler/virtualbox-module/.footprint new file mode 100644 index 000000000..014f99d43 --- /dev/null +++ b/acompiler/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/acompiler/virtualbox-module/.md5sum b/acompiler/virtualbox-module/.md5sum new file mode 100644 index 000000000..f312c143a --- /dev/null +++ b/acompiler/virtualbox-module/.md5sum @@ -0,0 +1 @@ +6bb3ab562162c3d6150f5183010ac5e2 VirtualBox-3.2.8-64453-Linux_x86.run diff --git a/acompiler/virtualbox-module/Pkgfile b/acompiler/virtualbox-module/Pkgfile new file mode 100755 index 000000000..43dd3f448 --- /dev/null +++ b/acompiler/virtualbox-module/Pkgfile @@ -0,0 +1,27 @@ +# Description: Modules kernel pour virtualbox +# URL: http://www.virtualbox.org +# Maintainer: NutyX core team +# Packager: thierryn1 at hispeed dot ch + +name=virtualbox-module +version=3.2.8 +release=1 +_name=VirtualBox +_kernel=`uname -r|sed "s/-NuTyX//"` +_build=64453 +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/`uname -r`/kernel/drivers/misc/ + cd src + make + install -D -m 0644 vboxdrv.ko \ + $PKG/lib/modules/`uname -r`/kernel/drivers/misc/vboxdrv.ko + install -D -m 0644 vboxnetflt.ko \ + $PKG/lib/modules/`uname -r`/kernel/drivers/misc/vboxnetflt.ko +} diff --git a/acompiler/virtualbox-module/post-install b/acompiler/virtualbox-module/post-install new file mode 100755 index 000000000..2932233e5 --- /dev/null +++ b/acompiler/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 + diff --git a/base/virtualbox-module/.footprint b/base/virtualbox-module/.footprint deleted file mode 100644 index 014f99d43..000000000 --- a/base/virtualbox-module/.footprint +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index f312c143a..000000000 --- a/base/virtualbox-module/.md5sum +++ /dev/null @@ -1 +0,0 @@ -6bb3ab562162c3d6150f5183010ac5e2 VirtualBox-3.2.8-64453-Linux_x86.run diff --git a/base/virtualbox-module/Pkgfile b/base/virtualbox-module/Pkgfile deleted file mode 100755 index 43dd3f448..000000000 --- a/base/virtualbox-module/Pkgfile +++ /dev/null @@ -1,27 +0,0 @@ -# Description: Modules kernel pour virtualbox -# URL: http://www.virtualbox.org -# Maintainer: NutyX core team -# Packager: thierryn1 at hispeed dot ch - -name=virtualbox-module -version=3.2.8 -release=1 -_name=VirtualBox -_kernel=`uname -r|sed "s/-NuTyX//"` -_build=64453 -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/`uname -r`/kernel/drivers/misc/ - cd src - make - install -D -m 0644 vboxdrv.ko \ - $PKG/lib/modules/`uname -r`/kernel/drivers/misc/vboxdrv.ko - install -D -m 0644 vboxnetflt.ko \ - $PKG/lib/modules/`uname -r`/kernel/drivers/misc/vboxnetflt.ko -} diff --git a/base/virtualbox-module/post-install b/base/virtualbox-module/post-install deleted file mode 100755 index 2932233e5..000000000 --- a/base/virtualbox-module/post-install +++ /dev/null @@ -1,18 +0,0 @@ -#!/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