summaryrefslogtreecommitdiffstats
path: root/base/virtualbox-module/Pkgfile
blob: 67d4d2fd89f6dea93ee91541b679ce5b10dac8b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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.1.8
release=1
_name=VirtualBox
_kernel=`uname -r|sed "s/-NuTyX//"`
_build=61349
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
}