wok rev 5015

busybox: may not overload gnu utilities
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 01 13:35:34 2010 +0100 (2010-03-01)
parents b72826dd8ec2
children 80ede22feed4
files busybox-pam/receipt busybox/receipt
line diff
     1.1 --- a/busybox-pam/receipt	Mon Mar 01 13:28:15 2010 +0100
     1.2 +++ b/busybox-pam/receipt	Mon Mar 01 13:35:34 2010 +0100
     1.3 @@ -94,13 +94,32 @@
     1.4  # Force glibc-2.7 reinstall if 2.3.6 still in use.
     1.5  pre_install()
     1.6  {
     1.7 +	local i
     1.8  	cp -a /etc/resolv.conf /etc/resolv.conf-busybox-install
     1.9  	if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
    1.10  		tazpkg get-install glibc-base --forced
    1.11  	fi
    1.12 +	answer=""
    1.13 +	while read i ; do
    1.14 +		[ -e $ROOT$i ] || continue
    1.15 +		if [ -z "$answer" ]; then
    1.16 +			echo -n "Keep installed GNU utilities ? "
    1.17 +			read answer
    1.18 +			case "$answer" in
    1.19 +			y*|Y*|o*|O*);;
    1.20 +			*) break;;
    1.21 +			esac
    1.22 +		fi
    1.23 +		mv $ROOT$i $ROOT$i-busybox-install
    1.24 +	done < $1$INSTALLED/$PACKAGE/files.list
    1.25  }
    1.26  
    1.27  post_install()
    1.28  {
    1.29 +	local i
    1.30  	mv -f /etc/resolv.conf-busybox-install /etc/resolv.conf
    1.31 +	while read i ; do
    1.32 +		[ -e $ROOT$i-busybox-install ] || continue
    1.33 +		mv $ROOT$i-busybox-install $ROOT$i
    1.34 +	done < $1$INSTALLED/$PACKAGE/files.list
    1.35  }
     2.1 --- a/busybox/receipt	Mon Mar 01 13:28:15 2010 +0100
     2.2 +++ b/busybox/receipt	Mon Mar 01 13:35:34 2010 +0100
     2.3 @@ -82,13 +82,32 @@
     2.4  # Force glibc-2.7 reinstall if 2.3.6 still in use.
     2.5  pre_install()
     2.6  {
     2.7 +	local i
     2.8  	cp -a /etc/resolv.conf /etc/resolv.conf-busybox-install
     2.9  	if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
    2.10  		tazpkg get-install glibc-base --forced
    2.11  	fi
    2.12 +	answer=""
    2.13 +	while read i ; do
    2.14 +		[ -e $ROOT$i ] || continue
    2.15 +		if [ -z "$answer" ]; then
    2.16 +			echo -n "Keep installed GNU utilities ? "
    2.17 +			read answer
    2.18 +			case "$answer" in
    2.19 +			y*|Y*|o*|O*);;
    2.20 +			*) break;;
    2.21 +			esac
    2.22 +		fi
    2.23 +		mv $ROOT$i $ROOT$i-busybox-install
    2.24 +	done < $1$INSTALLED/$PACKAGE/files.list
    2.25  }
    2.26  
    2.27  post_install()
    2.28  {
    2.29 +	local i
    2.30  	mv -f /etc/resolv.conf-busybox-install /etc/resolv.conf
    2.31 +	while read i ; do
    2.32 +		[ -e $ROOT$i-busybox-install ] || continue
    2.33 +		mv $ROOT$i-busybox-install $ROOT$i
    2.34 +	done < $1$INSTALLED/$PACKAGE/files.list
    2.35  }