wok-6.x rev 14131
coreutils: fix: /bin/cp missing
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Feb 28 11:39:11 2013 +0100 (2013-02-28) |
parents | 1ec8a747eee5 |
children | eaa75d6adeb2 |
files | coreutils/receipt |
line diff
1.1 --- a/coreutils/receipt Thu Feb 28 10:46:10 2013 +0000 1.2 +++ b/coreutils/receipt Thu Feb 28 11:39:11 2013 +0100 1.3 @@ -67,19 +67,28 @@ 1.4 cp -a $install/usr/bin/split $fs/usr/bin 1.5 cp -a $install/usr/bin/users $fs/usr/bin 1.6 cp -a $install/usr/bin/groups $fs/usr/bin 1.7 - cp -a $install/usr/bin/cp $fs/bin 1.8 + # we need busybox cp for installing the pkg 1.9 + cp -a $install/usr/bin/cp $fs/usr/bin 1.10 } 1.11 1.12 # Pre and post install commands for Tazpkg. 1.13 -# We must remove all Busybox symlink before installing. 1.14 +# We must remove all Busybox symlink but cp before installing. 1.15 # 1.16 pre_install() 1.17 { 1.18 local root 1.19 root=$1 1.20 echo "Processing pre-install commands..." 1.21 - echo -n "Removing all Busybox replaced utils... " 1.22 - rm -f $root/usr/bin/od $root/usr/bin/split $root/bin/cp 1.23 + echo -n "Removing Busybox replaced utils... " 1.24 + rm -f $root/usr/bin/od $root/usr/bin/split 1.25 + status 1.26 +} 1.27 + 1.28 +post_install() 1.29 +{ 1.30 + echo -n "Installing cp..." 1.31 + rm $root/bin/cp && 1.32 + mv $root/usr/bin/cp $root/bin 1.33 status 1.34 } 1.35