wok diff virtualbox-ose/receipt @ rev 23706
updated tmux (2.9 -> 3.0a)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 28 14:11:44 2020 +0100 (2020-04-28) |
parents | d9e974f343f0 |
children | a3c45ab9082e |
line diff
1.1 --- a/virtualbox-ose/receipt Tue Dec 25 00:10:50 2018 +0100 1.2 +++ b/virtualbox-ose/receipt Tue Apr 28 14:11:44 2020 +0100 1.3 @@ -15,7 +15,8 @@ 1.4 1.5 DEPENDS="libxml2 xorg-libXcursor libIDL xorg-libXinerama libsdl \ 1.6 xorg-libXmu curl libvncserver libpng jpeg mesa libglu-mesa vde2 \ 1.7 -python libQtCore libQtGui libQtNetwork libQtOpenGL" 1.8 +python libQtCore libQtGui libQtNetwork libQtOpenGL \ 1.9 +virtualbox-ose-modules" 1.10 BUILD_DEPENDS="bin86 dev86 iasl libIDL libsdl-dev mesa-dev libxslt-dev \ 1.11 libglu-mesa-dev Qt4-dev libsdl-ttf-dev alsa-lib-dev hal-dev xorg-libXtst-dev \ 1.12 xorg-libXrandr-dev python python-dev xalan-c curl-dev xalan-c-dev \ 1.13 @@ -28,6 +29,10 @@ 1.14 { 1.15 grep -rl 'uname -m' $src | xargs sed -i 's|\(.\)uname -m|\1echo i486|' 1.16 patch -p1 < $stuff/virtualbox-linux.patch 1.17 + cp $stuff/vbox-cpuhotplug.dsl src/VBox/Devices/PC/ 1.18 + sed -i '/Wake up on LAN/{NNNNNd};s|S2BF, 1|&, Serialized|' \ 1.19 + src/VBox/Devices/PC/vbox.dsl 1.20 + sed -i '/soapvbox\*\.h/d' src/VBox/Main/webservice/Makefile.kmk 1.21 cp $stuff/LocalConfig.kmk . 1.22 ./configure \ 1.23 --disable-pulse \ 1.24 @@ -39,8 +44,10 @@ 1.25 source ./env.sh 1.26 kmk all 2>&1 | grep -v 'kmk: No such' 1.27 1.28 - # build modules. 1.29 - KERN_DIR=/usr/src/linux make -C "$src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/src" 1.30 + # Prepare modules tree. 1.31 + mkdir -p $src/out/linux.amd64/release/bin 1.32 + cp -a $src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/src \ 1.33 + $src/out/linux.amd64/release/bin/src 1.34 # build guest additions modules 1.35 KERN_DIR=/usr/src/linux make -C "$src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions/src" 1.36 } 1.37 @@ -113,31 +120,16 @@ 1.38 chmod 644 $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/*.py 1.39 chmod 644 $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/*.py 1.40 chmod 644 $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/client/*.py 1.41 - cd $src/out/linux.$BUILD_PLATFORM_ARCH/release/bin 1.42 - 1.43 - # virtualbox-ose-modules 1.44 - KERNEL_VERSION=$(grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g') 1.45 - 1.46 - cd "$src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/src" 1.47 - install -D -m644 vboxdrv.ko "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxdrv.ko" 1.48 - install -D -m644 vboxnetflt.ko "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxnetflt.ko" 1.49 - install -D -m644 vboxnetadp.ko "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxnetadp.ko" 1.50 } 1.51 1.52 pre_remove() 1.53 { 1.54 - sed -i "s/vboxdrv vboxnetadp vboxnetflt //" "$1/etc/rcS.conf" 1.55 chroot "$1/" delgroup vboxusers 1.56 } 1.57 1.58 post_install() 1.59 { 1.60 #chroot "$1/" udevadm control --reload 1.61 - KERNEL_VERSION=$( chroot "$1/" uname -r) 1.62 - chroot "$1/" depmod -a $KERNEL_VERSION 1.63 - chroot "$1/" modprobe -a vboxdrv vboxnetadp vboxnetflt 1.64 - grep -qs vboxdrv "$1/etc/rcS.conf" || 1.65 - sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' "$1/etc/rcS.conf" 1.66 grep -qs vboxuser "$1/etc/group" || chroot "$1/" addgroup -g 199 vboxusers 1.67 echo "add yourself to vboxusers group if you want to access" 1.68 echo "host usb devices: addgroup $USER vboxusers"