wok-6.x rev 7617

lzma, xz: Fixed removeal of unlzma in post_install and pre_install.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Dec 12 08:04:46 2010 +0000 (2010-12-12)
parents 79ebfa5003d6
children 79688ff060bd
files lzma/receipt xz/receipt
line diff
     1.1 --- a/lzma/receipt	Sun Dec 12 13:55:48 2010 +0100
     1.2 +++ b/lzma/receipt	Sun Dec 12 08:04:46 2010 +0000
     1.3 @@ -45,7 +45,20 @@
     1.4  	ln -s lzma $fs/usr/bin/lzcat
     1.5  }
     1.6  
     1.7 +# Pre and post install commands for Tazpkg.
     1.8 +# We must remove all Busybox symlink before installing.
     1.9 +#
    1.10 +pre_install()
    1.11 +{
    1.12 +	local root
    1.13 +	root=$1
    1.14 +	echo "Processing pre-install commands..."
    1.15 +	echo -n "Removing all Busybox replaced utils... "
    1.16 +	rm -f $root/usr/bin/unlzma
    1.17 +	status
    1.18 +}
    1.19 +
    1.20  post_remove()
    1.21  {
    1.22 -	ln -s ../../bin/busybox $1/usr/bin/unlzma
    1.23 -}
    1.24 +	ln -s /bin/busybox /usr/bin/unlzma
    1.25 +}
    1.26 \ No newline at end of file
     2.1 --- a/xz/receipt	Sun Dec 12 13:55:48 2010 +0100
     2.2 +++ b/xz/receipt	Sun Dec 12 08:04:46 2010 +0000
     2.3 @@ -34,7 +34,20 @@
     2.4  	ln -s lzma $fs/usr/bin/lzcat
     2.5  }
     2.6  
     2.7 +# Pre and post install commands for Tazpkg.
     2.8 +# We must remove all Busybox symlink before installing.
     2.9 +#
    2.10 +pre_install()
    2.11 +{
    2.12 +	local root
    2.13 +	root=$1
    2.14 +	echo "Processing pre-install commands..."
    2.15 +	echo -n "Removing all Busybox replaced utils... "
    2.16 +	rm -f $root/usr/bin/unlzma
    2.17 +	status
    2.18 +}
    2.19 +
    2.20  post_remove()
    2.21  {
    2.22 -	ln -s ../../bin/busybox $1/usr/bin/unlzma
    2.23 -}
    2.24 +	ln -s /bin/busybox /usr/bin/unlzma
    2.25 +}
    2.26 \ No newline at end of file