wok-6.x diff 8086tiny/receipt @ rev 15878

tinc: fix config path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 05 10:25:27 2014 +0000 (2014-02-05)
parents c324508a40bf
children d0d74920c618
line diff
     1.1 --- a/8086tiny/receipt	Wed Jan 22 18:22:51 2014 +0100
     1.2 +++ b/8086tiny/receipt	Wed Feb 05 10:25:27 2014 +0000
     1.3 @@ -1,11 +1,11 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="8086tiny"
     1.7 -VERSION="1.00"
     1.8 +VERSION="1.02"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="PC XT-compatible emulator/virtual machine."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 -LICENSE="CC-SA"
    1.13 +LICENSE="MIT"
    1.14  TARBALL="${PACKAGE}_${VERSION/./}.tar.bz2"
    1.15  WEB_SITE="http://www.megalith.co.uk/8086tiny"
    1.16  WGET_URL="$WEB_SITE/downloads/$TARBALL"
    1.17 @@ -16,7 +16,6 @@
    1.18  # Rules to configure and make the package.
    1.19  compile_rules()
    1.20  {
    1.21 -	sed -i 's/.*time.h/#include <stdio.h>\n&/' 8086tiny.c
    1.22  	sed 's/#OPTS/OPTS/' < Makefile > Makefile.nographics
    1.23  	make -f Makefile.nographics CC=gcc &&
    1.24  	mv 8086tiny 8086tiny.nographics &&
    1.25 @@ -34,10 +33,14 @@
    1.26  	cat > $fs/usr/bin//8086tiny.sh <<EOT
    1.27  #!/bin/sh
    1.28  
    1.29 -clear
    1.30 -stty cbreak raw -echo min 0
    1.31 -\${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@"
    1.32 -stty cooked echo
    1.33 +if [ ! -e "\$1" ]; then
    1.34 +	echo "Usage: \$0 fd_image [hd_image]"
    1.35 +else
    1.36 +	clear
    1.37 +	stty cbreak raw -echo min 0
    1.38 +	\${TINY8086:-/usr/bin/8086tiny} /usr/share/8086tiny/bios "\$@"
    1.39 +	stty cooked echo
    1.40 +fi
    1.41  EOT
    1.42  	chmod 755 $fs/usr/bin/8086tiny.sh
    1.43  }