# HG changeset patch # User Christopher Rogers # Date 1287704956 0 # Node ID d22789fb1e9200689d73684ccd25f37997b4d536 # Parent 320dd5f8c70e0a18200214ce32c708fb557e87da 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. diff -r 320dd5f8c70e -r d22789fb1e92 busybox/stuff/busybox-1.17.3.config --- a/busybox/stuff/busybox-1.17.3.config Thu Oct 21 21:56:09 2010 +0000 +++ b/busybox/stuff/busybox-1.17.3.config Thu Oct 21 23:49:16 2010 +0000 @@ -155,7 +155,7 @@ # CONFIG_FEATURE_LZMA_FAST is not set # CONFIG_LZMA is not set CONFIG_UNXZ=y -# CONFIG_XZ is not set +CONFIG_XZ=y CONFIG_UNZIP=y # diff -r 320dd5f8c70e -r d22789fb1e92 xz/receipt --- a/xz/receipt Thu Oct 21 21:56:09 2010 +0000 +++ b/xz/receipt Thu Oct 21 23:49:16 2010 +0000 @@ -31,3 +31,21 @@ cp -a $_pkg/usr/bin/xz $fs/usr/bin cp stuff/lzma $fs/usr/bin } + +# Pre and post install commands for Tazpkg. +# We must remove all Busybox symlink before installing. +# +pre_install() +{ + local root + root=$1 + echo "Processing pre-install commands..." + echo -n "Removing all Busybox replaced utils... " + rm -f $root/usr/bin/xz + status +} + +post_remove() +{ + ln -s /bin/busybox /usr/bin/xz +}