wok-6.x rev 14001

virtualbox-ose:try to fix + up to 4.2.6
author ernia <monghitri@aruba.it>
date Thu Feb 14 20:48:38 2013 +0000 (2013-02-14)
parents 755fb3544005
children c9e36e1126f9
files virtualbox-ose/receipt
line diff
     1.1 --- a/virtualbox-ose/receipt	Thu Feb 14 13:36:00 2013 +0100
     1.2 +++ b/virtualbox-ose/receipt	Thu Feb 14 20:48:38 2013 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="virtualbox-ose"
     1.7 -VERSION="4.1.8"
     1.8 +VERSION="4.2.6"
     1.9  CATEGORY="misc"
    1.10  SHORT_DESC="Powerful x86 virtualization for enterprise as well as home use (Open Source Edition)"
    1.11  MAINTAINER="slaxemulator@gmail.com"
    1.12 @@ -18,14 +18,14 @@
    1.13  xorg-libXrandr-dev python python-dev xalan-c curl-dev xalan-c-dev \
    1.14  xerces-c-dev openssl-dev zlib-dev libcap-dev glib-dev libvncserver-dev \
    1.15  pam pam-dev bzip2 linux-module-headers pkg-config tar wget vde2-dev \
    1.16 -libpng-dev gsoap-dev"
    1.17 +libpng-dev gsoap-dev libdevmapper-dev"
    1.18  
    1.19  # Rules to configure and make the package.
    1.20  compile_rules()
    1.21  {
    1.22  	cd $src
    1.23  	patch -Np1 -i "$stuff/virtualbox-4-makeself-check.patch"
    1.24 -	patch -Np1 -i "$stuff/virtualbox-4-mkisofs-check.patch"
    1.25 +	#patch -Np1 -i "$stuff/virtualbox-4-mkisofs-check.patch"
    1.26  	cp $stuff/LocalConfig.kmk .
    1.27  	./configure \
    1.28  		--disable-pulse \
    1.29 @@ -124,6 +124,9 @@
    1.30  	# virtualbox-modules
    1.31  	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.32  
    1.33 +	#cooking installs module in linux major version dir
    1.34 +	KERNEL_VERSION=${KERNEL_VERSION:0:3}
    1.35 +
    1.36  	cd "$src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/src"
    1.37  	install -D -m644 vboxdrv.ko "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxdrv.ko"
    1.38  	install -D -m644 vboxnetflt.ko "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxnetflt.ko"
    1.39 @@ -148,8 +151,8 @@
    1.40  	install -m755 -D $src/src/VBox/Additions/x11/Installer/vboxclient.desktop \
    1.41  		$fs/etc/xdg/autostart/vboxclient.desktop
    1.42  
    1.43 -	install -D vboxmouse_drv_19.so \
    1.44 -		"$fs/usr/lib/X11/modules/input/vboxmouse.so"
    1.45 +	#install -D vboxmouse_drv_19.so \
    1.46 +	#	"$fs/usr/lib/X11/modules/input/vboxmouse.so"
    1.47  	[ -f vboxvideo_drv_19.so ] &&
    1.48  	install -D vboxvideo_drv_19.so \
    1.49  		"$fs/usr/lib/X11/modules/drivers/vboxvideo.so"
    1.50 @@ -185,6 +188,9 @@
    1.51  post_install()
    1.52  {
    1.53  	KERNEL_VERSION=`grep  ^VERSION= $1/var/lib/tazpkg/installed/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.54 +	
    1.55 +	#cooking installs module in linux major version dir
    1.56 +	KERNEL_VERSION=${KERNEL_VERSION:0:3}	
    1.57  
    1.58  	chroot "$1/" depmod -a $KERNEL_VERSION-slitaz
    1.59  	grep -qs vboxdrv $1/etc/rcS.conf ||