wok-6.x rev 17074

Add iotop
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 23 13:15:02 2014 +0200 (2014-08-23)
parents c8fa472f72a3
children 522bd129061c
files busybox-boot/receipt iotop/receipt
line diff
     1.1 --- a/busybox-boot/receipt	Fri Aug 22 21:27:24 2014 +0000
     1.2 +++ b/busybox-boot/receipt	Sat Aug 23 13:15:02 2014 +0200
     1.3 @@ -60,7 +60,7 @@
     1.4  arg()
     1.5  {
     1.6  root="\$(sed "s/^/ /;s/\$/ /;/ \$1=/!d;s/.* \$1=\\([^ ]*\\).*/\\1/" </proc/cmdline)"
     1.7 -busybox [ -n "\$root" ]
     1.8 +[ -n "\$root" ]
     1.9  }
    1.10  
    1.11  arg init
    1.12 @@ -68,12 +68,12 @@
    1.13  [ -n "\$(sed 's/\$/ /;s/^/ /;/ ro /!d' /proc/cmdline)" ] && ro="-o ro"
    1.14  [ -n "\$(sed 's/\$/ /;s/^/ /;/ rw /!d' /proc/cmdline)" ] && ro="-o rw"
    1.15  arg root && root="\$(echo \$root | sed 's|/|\\\\/|g')" &&
    1.16 -	root="\$(busybox blkid | sed "s/\"//g;/\$root/!d;s/:.*//;q")" &&
    1.17 +	root="\$(blkid | sed "s/\"//g;/\$root/!d;s/:.*//;q")" &&
    1.18  	[ -n "\$root" ] && mount \$ro \$root /mnt
    1.19 -arg loopfs && busybox losetup /dev/loop0 /mnt/\$root && mount /dev/loop0 /mnt
    1.20 +arg loopfs && losetup /dev/loop0 /mnt/\$root && mount /dev/loop0 /mnt
    1.21  arg subroot && cp /bin/busybox /mnt/\$root/dev/shm &&
    1.22  	chroot="\$root/dev/shm/busybox chroot \$root"
    1.23 -busybox [ -x /mnt/\$root/\$init ] && umount /dev && umount /proc && exec busybox switch_root mnt \$chroot \$init
    1.24 +[ -x /mnt/\$root/\$init ] && umount /dev && umount /proc && exec switch_root mnt \$chroot \$init
    1.25  
    1.26  [ -d /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb
    1.27  while read type dir ; do
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/iotop/receipt	Sat Aug 23 13:15:02 2014 +0200
     2.3 @@ -0,0 +1,29 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="iotop"
     2.7 +VERSION="0.6"
     2.8 +CATEGORY="system-tools"
     2.9 +SHORT_DESC="Show of behalf of which process is the I/O going on."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +LICENSE=""
    2.12 +WEB_SITE="http://guichaz.free.fr/iotop"
    2.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.14 +WGET_URL="$WEB_SITE/files/$TARBALL" 
    2.15 +
    2.16 +DEPENDS="python"
    2.17 +BUILD_DEPENDS="python"
    2.18 +
    2.19 +# Rules to configure and make the package.
    2.20 +compile_rules()
    2.21 +{
    2.22 +	python setup.py build
    2.23 +	python setup.py install --root=$DESTDIR
    2.24 +}
    2.25 +
    2.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.27 +genpkg_rules()
    2.28 +{
    2.29 +	mkdir -p $fs/usr
    2.30 +	cp -a $install/usr/sbin  $fs/usr
    2.31 +	cp -a $install/usr/lib  $fs/usr
    2.32 +}