wok-next rev 7616

lzma, xz: add unlzma & lzcat
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 12 13:55:48 2010 +0100 (2010-12-12)
parents fec7b135f1e7
children f067d5386393
files lzma/receipt lzma/stuff/lzma xz/receipt xz/stuff/lzma
line diff
     1.1 --- a/lzma/receipt	Sat Dec 11 21:51:57 2010 +0000
     1.2 +++ b/lzma/receipt	Sun Dec 12 13:55:48 2010 +0100
     1.3 @@ -41,5 +41,11 @@
     1.4  	cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone
     1.5  	cp stuff/lzma $fs/usr/bin
     1.6  	chmod 755 $fs/usr/bin/lzma
     1.7 +	ln -s lzma $fs/usr/bin/unlzma
     1.8 +	ln -s lzma $fs/usr/bin/lzcat
     1.9  }
    1.10  
    1.11 +post_remove()
    1.12 +{
    1.13 +	ln -s ../../bin/busybox $1/usr/bin/unlzma
    1.14 +}
     2.1 --- a/lzma/stuff/lzma	Sat Dec 11 21:51:57 2010 +0000
     2.2 +++ b/lzma/stuff/lzma	Sun Dec 12 13:55:48 2010 +0100
     2.3 @@ -14,6 +14,11 @@
     2.4  command='e'
     2.5  keep=''
     2.6  
     2.7 +case "$0" in
     2.8 +*unlzma) command='d';;
     2.9 +*lzcat)  command='d'; outfilter='s/.*/-so/'; keep='y';;
    2.10 +esac
    2.11 +
    2.12  while [ -n "$1" ]; do
    2.13    case "$1" in
    2.14    -c|--stdout|--to-stdout) outfilter='s/.*/-so/'; keep='y';;
     3.1 --- a/xz/receipt	Sat Dec 11 21:51:57 2010 +0000
     3.2 +++ b/xz/receipt	Sun Dec 12 13:55:48 2010 +0100
     3.3 @@ -30,4 +30,11 @@
     3.4  	mkdir -p $fs/usr/bin
     3.5  	cp -a $_pkg/usr/bin/xz $fs/usr/bin
     3.6  	cp stuff/lzma $fs/usr/bin
     3.7 +	ln -s lzma $fs/usr/bin/unlzma
     3.8 +	ln -s lzma $fs/usr/bin/lzcat
     3.9  }
    3.10 +
    3.11 +post_remove()
    3.12 +{
    3.13 +	ln -s ../../bin/busybox $1/usr/bin/unlzma
    3.14 +}
     4.1 --- a/xz/stuff/lzma	Sat Dec 11 21:51:57 2010 +0000
     4.2 +++ b/xz/stuff/lzma	Sun Dec 12 13:55:48 2010 +0100
     4.3 @@ -72,6 +72,11 @@
     4.4  	exit
     4.5  }
     4.6  
     4.7 +case "$0" in
     4.8 +*unlzma) lzma_utils -d $@ ;;
     4.9 +*lzcat)  lzma_utils -c -d $@ ;;
    4.10 +esac
    4.11 +
    4.12  # lzma_utils or lzma_alone ?
    4.13  [ -n "$3" ] || lzma_utils $@
    4.14  case "$1" in