wok-6.x rev 11824

uclibc-i486: add post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 26 21:45:45 2012 +0100 (2012-02-26)
parents 04c86a61ddf9
children d357d6dbbfa8
files uclibc-cross-compiler-i486/receipt uclibc-i486/receipt
line diff
     1.1 --- a/uclibc-cross-compiler-i486/receipt	Sun Feb 26 20:56:00 2012 +0100
     1.2 +++ b/uclibc-cross-compiler-i486/receipt	Sun Feb 26 21:45:45 2012 +0100
     1.3 @@ -20,18 +20,3 @@
     1.4  		ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file
     1.5  	done
     1.6  }
     1.7 -
     1.8 -# Pre and post install commands for Tazpkg.
     1.9 -post_install()
    1.10 -{
    1.11 -	chroot "$1/" /usr/bin/uclibc-${PACKAGE##*-}-ldconfig
    1.12 -}
    1.13 -
    1.14 -pre_remove()
    1.15 -{
    1.16 -	for i in /lib/ld-uClibc.so*; do
    1.17 -		case "$(readlink $i)" in
    1.18 -		*usr/share/$PACKAGE/lib/*) rm -f $i ;;
    1.19 -		esac
    1.20 -	done
    1.21 -}
     2.1 --- a/uclibc-i486/receipt	Sun Feb 26 20:56:00 2012 +0100
     2.2 +++ b/uclibc-i486/receipt	Sun Feb 26 21:45:45 2012 +0100
     2.3 @@ -16,4 +16,19 @@
     2.4  	cp -a $src/lib/*.so* $fs/lib
     2.5  }
     2.6  
     2.7 +# Pre and post install commands for Tazpkg.
     2.8 +post_install()
     2.9 +{
    2.10 +	chroot "$1/" /usr/bin/uclibc-${PACKAGE##*-}-ldconfig
    2.11 +}
    2.12 +
    2.13 +pre_remove()
    2.14 +{
    2.15 +	for i in /lib/ld-uClibc.so*; do
    2.16 +		case "$(readlink $i)" in
    2.17 +		*usr/share/$PACKAGE/lib/*) rm -f $i ;;
    2.18 +		esac
    2.19 +	done
    2.20 +}
    2.21 +
    2.22  TAZBB_NO_INSTALL="because this is not the right target !"