wok-current rev 4776

get-virtualbox: fix patch. Remove debug stuff.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Jan 13 14:53:32 2010 +0100 (2010-01-13)
parents 97eaf8843bfd
children 6adb5df60608
files get-virtualbox/stuff/installer.u
line diff
     1.1 --- a/get-virtualbox/stuff/installer.u	Wed Jan 13 13:44:59 2010 +0100
     1.2 +++ b/get-virtualbox/stuff/installer.u	Wed Jan 13 14:53:32 2010 +0100
     1.3 @@ -1,22 +1,15 @@
     1.4 ---- stuff/get-virtualbox	Fri Jan  8 00:18:30 2010
     1.5 -+++ get-virtualbox	Tue Jan 12 23:08:29 2010
     1.6 -@@ -24,13 +24,14 @@
     1.7 +--- stuff/get-virtualbox	Thu Jan  7 14:12:34 2010
     1.8 ++++ get-virtualbox	Wed Jan 13 14:50:44 2010
     1.9 +@@ -24,7 +24,8 @@
    1.10      	 grep Linux_x86.run | sed 's|.*href="\(.*Linux_x86.run\).*|\1|'
    1.11   }
    1.12   
    1.13  -TMP_DIR=/tmp/get-$PACKAGE-$$-$RANDOM
    1.14 -+#TMP_DIR=/home/slitaz/src/get-$PACKAGE-$$-$RANDOM
    1.15 -+TMP_DIR=/home/slitaz/src/get-$PACKAGE.tmp
    1.16 ++TMP_DIR=/home/slitaz/src/get-$PACKAGE-$$-$RANDOM
    1.17 ++
    1.18   CUR_DIR=$(pwd)
    1.19   mkdir -p $TMP_DIR && cd $TMP_DIR
    1.20   
    1.21 - url=$(dl_url)
    1.22 - TARBALL=$(basename $url)
    1.23 --wget $url
    1.24 -+#wget $url
    1.25 - 
    1.26 - if [ ! -f "$TARBALL" ]; then
    1.27 - 	cd $CUR_DIR
    1.28  @@ -55,6 +56,145 @@
    1.29   
    1.30   # Install files
    1.31 @@ -163,7 +156,7 @@
    1.32   [ -d /usr/share/VirtualBox ] && ./uninstall.sh
    1.33   find /usr /etc /lib > ../before
    1.34   ./install.sh install /usr/share/VirtualBox 
    1.35 -@@ -76,13 +216,19 @@
    1.36 +@@ -76,12 +216,18 @@
    1.37   CATEGORY="non-free"
    1.38   SHORT_DESC="$SHORT_DESC"
    1.39   WEB_SITE="$WEB_SITE"
    1.40 @@ -174,19 +167,12 @@
    1.41   {
    1.42   $(grep '  udev[atp]' install/install.sh)
    1.43       chroot "\$1/" depmod -a $(uname -r)
    1.44 - }
    1.45 ++}
    1.46  +
    1.47  +post_remove()
    1.48  +{
    1.49  +		/etc/init.d/vboxdrv stop
    1.50  +		sed -i 's/vboxdrv//' /etc/rcS.conf
    1.51 -+}
    1.52 + }
    1.53   EOT
    1.54   
    1.55 - # Pack
    1.56 -@@ -93,4 +239,4 @@
    1.57 - 
    1.58 - # Clean
    1.59 - cd $CUR_DIR
    1.60 --rm -rf $TMP_DIR
    1.61 -+#rm -rf $TMP_DIR