wok rev 14336

linux-uml: update TARBALL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 13 17:23:38 2013 +0200 (2013-04-13)
parents da03be6e2691
children b2a632fc9587
files linux-uml/receipt
line diff
     1.1 --- a/linux-uml/receipt	Sat Apr 13 15:34:35 2013 +0200
     1.2 +++ b/linux-uml/receipt	Sat Apr 13 17:23:38 2013 +0200
     1.3 @@ -3,12 +3,12 @@
     1.4  PACKAGE="linux-uml"
     1.5  SOURCE="linux"
     1.6  VERSION="3.2.40"
     1.7 -KBASEVER="${VERSION:0:3}"
     1.8 +KBASEVER="3.2"
     1.9  CATEGORY="base-system"
    1.10  SHORT_DESC="The User Mode Linux kernel."
    1.11  BUILD_DEPENDS="slitaz-toolchain perl"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.14 +TARBALL="$SOURCE-$KBASEVER.tar.xz"
    1.15  WEB_SITE="http://www.kernel.org/"
    1.16  WGET_URL="ftp://ftp.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
    1.17  
    1.18 @@ -92,8 +92,8 @@
    1.19  #!/bin/sh
    1.20  
    1.21  # /etc/inittab: "tty21::respawn:/bin/su -c '/boot/vm-uml 1 /boot/guests/slitaz.img 2 512m' nobody"
    1.22 -tap=tap\${1:-0}
    1.23 -n=\${tap#tap}
    1.24 +n=\${1:-0}
    1.25 +tap=tap\$n
    1.26  args="rw root=/dev/null"
    1.27  dev="initrd=\$(ls -r /boot/rootfs*.gz | sed q)"
    1.28  if [ -n "\$2" ]; then
    1.29 @@ -102,9 +102,10 @@
    1.30  fi
    1.31  
    1.32  cd \$(dirname \$0)
    1.33 -ifconfig \$tap 192.168.\${tap#tap}.1
    1.34 -./linux-uml-$VERSION \$dev mem=\${4:-512m} fakehd fake_ide ubd=3 con=pts ssl=pts \\
    1.35 -	con0=fd:0,fd:1 eth0=tuntap,\$tap,fe:f0:00:00:00:0\$n,192.168.\$n.1 \$args
    1.36 +ifconfig \$tap 192.168.\$n.1
    1.37 +./linux-uml-$VERSION \$dev mem=\${4:-512m} fakehd fake_ide ubd=3 con0=fd:0,fd:1 \\
    1.38 +	con=pts ssl=pts eth0=tuntap,\$tap,fe:f0:00:00:00:0\$n,192.168.\$n.1 \\
    1.39 +	\$args cpuinfo=\$(sed '/model name/!d;s/.*: //;s/ /_/g;q' /proc/cpuinfo)
    1.40  EOT
    1.41  	chmod 755 $fs/boot/vm-uml
    1.42  }