From 09d5980043aebd4309b79173805a7c2f00e70301 Mon Sep 17 00:00:00 2001 From: tnut Date: Fri, 5 Nov 2010 09:32:12 +0100 Subject: virtualbox-module, ajout du module vboxnetadp.ko et petits ajustement du Pkgfile pour pouvoir le builder sur n'importe quel kernel --- acompiler/virtualbox-module/.footprint | 17 +++++++++-------- acompiler/virtualbox-module/Pkgfile | 25 +++++++++++++------------ 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/acompiler/virtualbox-module/.footprint b/acompiler/virtualbox-module/.footprint index 014f99d43..910e4b5de 100644 --- a/acompiler/virtualbox-module/.footprint +++ b/acompiler/virtualbox-module/.footprint @@ -1,8 +1,9 @@ -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 +drwxr-xr-x root/root lib/ +drwxr-xr-x root/root lib/modules/ +drwxr-xr-x root/root lib/modules/2.6.36-NuTyX/ +drwxr-xr-x root/root lib/modules/2.6.36-NuTyX/kernel/ +drwxr-xr-x root/root lib/modules/2.6.36-NuTyX/kernel/drivers/ +drwxr-xr-x root/root lib/modules/2.6.36-NuTyX/kernel/drivers/misc/ +-rw-r--r-- root/root lib/modules/2.6.36-NuTyX/kernel/drivers/misc/vboxdrv.ko +-rw-r--r-- root/root lib/modules/2.6.36-NuTyX/kernel/drivers/misc/vboxnetadp.ko +-rw-r--r-- root/root lib/modules/2.6.36-NuTyX/kernel/drivers/misc/vboxnetflt.ko diff --git a/acompiler/virtualbox-module/Pkgfile b/acompiler/virtualbox-module/Pkgfile index fe195a7d2..fad56be03 100755 --- a/acompiler/virtualbox-module/Pkgfile +++ b/acompiler/virtualbox-module/Pkgfile @@ -14,16 +14,17 @@ source=(http://download.virtualbox.org/virtualbox/$version/${_name}-${version}-$ 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/src/vboxhost/ - - KERNELRELEASE=${_kernel} KERN_DIR=/usr/src/linux-`echo ${_kernel}|sed "s/-NuTyX//"` 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 + 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/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 } -- cgit v1.2.3-70-g09d2