From 3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42 Mon Sep 17 00:00:00 2001 From: tnut Date: Sat, 19 Feb 2011 19:05:53 +0100 Subject: virtualbox-module dans base --- base/virtualbox-module/Pkgfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 base/virtualbox-module/Pkgfile (limited to 'base/virtualbox-module/Pkgfile') 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 +} -- cgit v1.2.3-70-g09d2