wok-current diff gzip/receipt @ rev 8061

Add pre_install and post_remove to gzip. This is to add the busybox soft links for gzip if gzip is uninstalled.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Jan 20 18:07:19 2011 +0000 (2011-01-20)
parents 420025feef6c
children 6222200efb6f
line diff
     1.1 --- a/gzip/receipt	Fri Jan 21 00:34:35 2011 +0100
     1.2 +++ b/gzip/receipt	Thu Jan 20 18:07:19 2011 +0000
     1.3 @@ -31,3 +31,22 @@
     1.4  	cp -a $_pkg/usr/bin/gunzip $fs/usr/bin
     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/bin/gzip
    1.17 +	rm -f $root/bin/gunzip
    1.18 +	status
    1.19 +}
    1.20 +
    1.21 +post_remove()
    1.22 +{
    1.23 +	ln -s /bin/busybox /bin/gzip
    1.24 +	ln -s /bin/busybox /bin/gunzip
    1.25 +}