From 478cfbfd2407e235a1851ee58d430a75fb92129e Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Tue, 23 Dec 2008 20:27:07 +0100 Subject: [PATCH] virtualbox: fixed some minor issues --- virtualbox/Pkgfile | 6 +++--- virtualbox/README | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/virtualbox/Pkgfile b/virtualbox/Pkgfile index 8c5ce87d7..ddb5fe73b 100644 --- a/virtualbox/Pkgfile +++ b/virtualbox/Pkgfile @@ -6,13 +6,13 @@ name=virtualbox version=2.1.0 -release=2 +release=3 source=(http://download.virtualbox.org/$name/$version/VirtualBox-$version-OSE.tar.bz2 \ $name 60-vboxdrv.rules $name.desktop) build() { KVER=$(uname -r) - KDIR=/usr/src/linux + [ ! -z $KDIR ] && KARG="KERN_DIR=$KDIR" local QT3GUI QT4GUI if [ "$(pkginfo -i | grep '^qt3 ')" ]; then @@ -37,7 +37,7 @@ build() { kmk all # compile kernel modules cd out/linux.x86/release/bin/src - make KERN_DIR=$KDIR + make $KARG # install kernel modules install -D -m 0644 vboxdrv.ko $PKG/lib/modules/$KVER/kernel/drivers/misc/vboxdrv.ko install -D -m 0644 vboxnetflt.ko $PKG/lib/modules/$KVER/kernel/drivers/misc/vboxnetflt.ko diff --git a/virtualbox/README b/virtualbox/README index c2ada8e41..43468fce5 100644 --- a/virtualbox/README +++ b/virtualbox/README @@ -45,6 +45,9 @@ POST-INSTALL PRECAUTION + To use an alternative kernel directory you should type something like: + # env KDIR=/not-default-path/src/linux pkgmk + If you have problems trying to update virtualbox (xalan-c not found...) use this command to solve it: # prt-get update -fr xerces-c xalan-c