diff options
author | tnut <thierryn1 at hispeed dot ch> | 2011-02-19 19:05:53 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2011-02-19 19:05:53 +0100 |
commit | 3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42 (patch) | |
tree | f472df63e228b34a163d187d9fa9b347b56482fb /base/virtualbox-module/Pkgfile | |
parent | 46f16b408c34da2f51f02b5db6ca6005bf402d63 (diff) | |
download | nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.tar.gz nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.tar.bz2 nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.tar.xz nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.zip |
virtualbox-module dans base
Diffstat (limited to 'base/virtualbox-module/Pkgfile')
-rwxr-xr-x | base/virtualbox-module/Pkgfile | 34 |
1 files changed, 34 insertions, 0 deletions
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 +} |