wok-current rev 10950
get-virtualbox: only /opt/VirtualBox is supported now...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 02 14:26:45 2011 +0200 (2011-09-02) |
parents | f23b234efc5e |
children | 01076ad2186a |
files | get-virtualbox/stuff/get-virtualbox linux-source/stuff/get-linux-source |
line diff
1.1 --- a/get-virtualbox/stuff/get-virtualbox Thu Sep 01 19:45:03 2011 +0100 1.2 +++ b/get-virtualbox/stuff/get-virtualbox Fri Sep 02 14:26:45 2011 +0200 1.3 @@ -47,20 +47,24 @@ 1.4 # Extract 1.5 sh $TARBALL --noexec --keep 1.6 1.7 -BUILD_DEPENDS="slitaz-toolchain bzip2 linux-source python python-dev" 1.8 +BUILD_DEPENDS="slitaz-toolchain bzip2 linux-source python python-dev coreutils-command" 1.9 for i in $BUILD_DEPENDS; do 1.10 [ -d /var/lib/tazpkg/installed/$i ] && continue 1.11 yes y | tazpkg get-install $i 1.12 done 1.13 +[ -d /lib/modules/$(uname -r)/source ] || get-linux-source 1.14 +[ -d /lib/modules/$(uname -r)/build ] || 1.15 + cp -a /lib/modules/$(uname -r)/source /lib/modules/$(uname -r)/build 1.16 1.17 # Install files 1.18 cd install 1.19 -[ -d /usr/share/VirtualBox ] && ./uninstall.sh 1.20 -find /usr /etc /lib > ../before 1.21 -./install.sh install /usr/share/VirtualBox 1.22 +[ -d /usr/share/VirtualBox -o -d /opt/VirtualBox ] && ./uninstall.sh 1.23 +[ -d /opt ] || mkdir /opt 1.24 +find /usr /etc /lib /opt > ../before 1.25 +./install.sh install 1.26 cd .. 1.27 -find /usr /etc /lib > after 1.28 -sed -i 's/ps -U/ps | grep/' /usr/share/VirtualBox/VBox.sh 1.29 +find /usr /etc /lib /opt > after 1.30 +sed -i 's/ps -U/ps | grep/' /opt/VirtualBox/VBox.sh 1.31 echo 'lsmod | grep -q vboxdrv || modprobe vboxdrv' >> /etc/vbox/vbox.cfg 1.32 mkdir -p $PACKAGE-$VERSION/fs 1.33 diff -U0 before after | grep ^+/ | sed 's|^\+/||' | \
2.1 --- a/linux-source/stuff/get-linux-source Thu Sep 01 19:45:03 2011 +0100 2.2 +++ b/linux-source/stuff/get-linux-source Fri Sep 02 14:26:45 2011 +0200 2.3 @@ -40,6 +40,8 @@ 2.4 done < slitaz/patches 2.5 [ ! -f System.map ] && cp slitaz/config .config && 2.6 make oldconfig && make modules_prepare 2.7 +ln -s /usr/src/linux-$VERSION /lib/modules/$VERSION-slitaz/build 2.8 +ln -s linux-$VERSION /usr/src/linux 2.9 2.10 cat <<EOT 2.11 ----