summaryrefslogtreecommitdiffstats
path: root/base/virtualbox-module/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'base/virtualbox-module/Pkgfile')
-rwxr-xr-xbase/virtualbox-module/Pkgfile34
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
+}