wok-6.x rev 10940

procps: update receipt
author Paul Issott <paul@slitaz.org>
date Mon Aug 29 12:09:32 2011 +0100 (2011-08-29)
parents 7bae2701caba
children 9d1bc27242eb
files procps/receipt
line diff
     1.1 --- a/procps/receipt	Sun Aug 28 21:01:21 2011 +0200
     1.2 +++ b/procps/receipt	Mon Aug 29 12:09:32 2011 +0100
     1.3 @@ -22,28 +22,44 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	mkdir -p $fs/usr $fs/lib
     1.8 +	mkdir -p $fs/usr $fs/lib $fs/bin $fs/sbin
     1.9  	cp -a $_pkg/usr/bin $fs/usr
    1.10 -	cp -a $_pkg/lib/* $fs/lib
    1.11 +	cp -a $_pkg/bin $fs
    1.12 +	cp -a $_pkg/sbin $fs
    1.13 +	cp -a $_pkg/lib $fs
    1.14  
    1.15  	# Remove utils already supplied by Busybox
    1.16 -	for i in free top uptime watch
    1.17 -	do
    1.18 -		rm -f $fs/usr/bin/$i
    1.19 -	done
    1.20 +	#for i in free top uptime watch
    1.21 +	#do
    1.22 +		#rm -f $fs/usr/bin/$i
    1.23 +	#done
    1.24  }
    1.25  
    1.26  # Overlap busybox
    1.27  pre_install()
    1.28  {
    1.29 +	rm -f $1/bin/kill
    1.30 +	rm -f $1/bin/ps
    1.31 +	rm -f $1/bin/watch
    1.32 +	rm -f $1/sbin/sysctl
    1.33  	rm -f $1/usr/bin/pkill
    1.34  	rm -f $1/usr/bin/pmap
    1.35  	rm -f $1/usr/bin/pgrep
    1.36 +	rm -f $1/usr/bin/top
    1.37 +	rm -f $1/usr/bin/free
    1.38 +	rm -f $1/usr/bin/uptime
    1.39  }
    1.40  
    1.41  post_remove()
    1.42  {
    1.43 +	ln -s /bin/busybox /bin/kill
    1.44 +	ln -s /bin/busybox /bin/ps
    1.45 +	ln -s /bin/busybox /bin/watch
    1.46 +	ln -s /bin/busybox /sbin/sysctl	
    1.47  	ln -s /bin/busybox /usr/bin/pkill
    1.48  	ln -s /bin/busybox /usr/bin/pmap
    1.49  	ln -s /bin/busybox /usr/bin/pgrep
    1.50 +	ln -s /bin/busybox /usr/bin/top
    1.51 +	ln -s /bin/busybox /usr/bin/free
    1.52 +	ln -s /bin/busybox /usr/bin/uptime
    1.53  }