wok rev 6914

Added xz to busybox. Doesn't change size of busybox. This is show we can use tar.xz compress for tazpkg files if we want to. Added pre_install and post_remove functions to xz receipt.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Oct 21 23:49:16 2010 +0000 (2010-10-21)
parents 320dd5f8c70e
children 3775d01597ed
files busybox/stuff/busybox-1.17.3.config xz/receipt
line diff
     1.1 --- a/busybox/stuff/busybox-1.17.3.config	Thu Oct 21 21:56:09 2010 +0000
     1.2 +++ b/busybox/stuff/busybox-1.17.3.config	Thu Oct 21 23:49:16 2010 +0000
     1.3 @@ -155,7 +155,7 @@
     1.4  # CONFIG_FEATURE_LZMA_FAST is not set
     1.5  # CONFIG_LZMA is not set
     1.6  CONFIG_UNXZ=y
     1.7 -# CONFIG_XZ is not set
     1.8 +CONFIG_XZ=y
     1.9  CONFIG_UNZIP=y
    1.10  
    1.11  #
     2.1 --- a/xz/receipt	Thu Oct 21 21:56:09 2010 +0000
     2.2 +++ b/xz/receipt	Thu Oct 21 23:49:16 2010 +0000
     2.3 @@ -31,3 +31,21 @@
     2.4  	cp -a $_pkg/usr/bin/xz $fs/usr/bin
     2.5  	cp stuff/lzma $fs/usr/bin
     2.6  }
     2.7 +
     2.8 +# Pre and post install commands for Tazpkg.
     2.9 +# We must remove all Busybox symlink before installing.
    2.10 +#
    2.11 +pre_install()
    2.12 +{
    2.13 +	local root
    2.14 +	root=$1
    2.15 +	echo "Processing pre-install commands..."
    2.16 +	echo -n "Removing all Busybox replaced utils... "
    2.17 +	rm -f $root/usr/bin/xz
    2.18 +	status
    2.19 +}
    2.20 +
    2.21 +post_remove()
    2.22 +{
    2.23 +	ln -s /bin/busybox /usr/bin/xz
    2.24 +}