diff options
author | Jose V Beneyto <sepen@crux.nu> | 2010-11-11 15:12:32 +0100 |
---|---|---|
committer | Jose V Beneyto <sepen@crux.nu> | 2010-11-11 15:14:11 +0100 |
commit | a5cd71f8c677218e76f61cd589f0b70e3d5d8d71 (patch) | |
tree | d9b25f53a33161e0cabef24144f5151c52f63f1d /virtualbox/Pkgfile | |
parent | 808241bbd961d57dd27f47c2bd2945627083a00d (diff) | |
download | contrib-a5cd71f8c677218e76f61cd589f0b70e3d5d8d71.tar.gz contrib-a5cd71f8c677218e76f61cd589f0b70e3d5d8d71.tar.xz |
virtualbox: updated to 3.2.10 (thanks to Victor Martinez)
Diffstat (limited to 'virtualbox/Pkgfile')
-rw-r--r-- | virtualbox/Pkgfile | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/virtualbox/Pkgfile b/virtualbox/Pkgfile index c7348a74f..dc8b85641 100644 --- a/virtualbox/Pkgfile +++ b/virtualbox/Pkgfile @@ -2,20 +2,27 @@ # URL: http://www.virtualbox.org/ # Maintainer: Jose V Beneyto, sepen at crux dot nu # Packager: Jose V Beneyto, sepen at crux dot nu -# Depends on: bin86 dev86 hal libsdl libidl qt4 xalan-c iasl xorg-libxmu libcap +# Depends on: bin86 dev86 hal libsdl libidl qt4 xerces-c iasl xorg-libxmu libcap name=virtualbox -version=3.1.8 -release=2 +version=3.2.10 +release=1 source=(http://download.virtualbox.org/$name/${version%-*}/VirtualBox-${version}-OSE.tar.bz2 \ - $name 60-vboxdrv.rules $name.desktop iasl-length-calculation-fix.patch) + $name 60-vboxdrv.rules $name.desktop) build() { # environment value [ ! -z $KERN_DIR ] && KARG="KERN_DIR=$KERN_DIR" cd VirtualBox-${version%-*}_OSE - patch -p1 -i $SRC/iasl-length-calculation-fix.patch + + sed -i Config.kmk \ + -e "s|VBOX_WITH_WARNINGS_AS_ERRORS = 1|VBOX_WITH_WARNINGS_AS_ERRORS =|g" \ + -e "s|VBOX_WITH_PAM = 1|VBOX_WITH_PAM =|g" + + sed -i src/VBox/Devices/PC/vbox.dsl \ + -e 's|Name (_CID, "smc-napa")|Name (_CID, "smcnapa")|' + # compile ./configure --with-qt4-dir=/usr/share/qt4 \ --disable-hardening \ @@ -23,15 +30,19 @@ build() { --disable-pulse source ./env.sh kmk all + # compile kernel modules cd out/linux.x86/release/bin/src make $KARG + # install kernel modules install -d $PKG/lib/modules/$(uname -r)/kernel/drivers/misc install -m 0644 *.ko $PKG/lib/modules/$(uname -r)/kernel/drivers/misc + # remove superfluous files rm -rf $SRC/VirtualBox-${version%-*}_OSE/out/linux.x86/release/bin/{sdk/samples,testcase,nls*} find $SRC/VirtualBox-${version%-*}_OSE/out/linux.x86/release/bin -type f -name 'tst*' -exec rm -rf {} \; + # do the rest install -D -m 0644 $SRC/60-vboxdrv.rules $PKG/etc/udev/rules.d/60-vboxdrv.rules install -d $PKG/usr/{bin,share/$name,share/pixmaps} |