#!/bin/sh echo "Don't forget to update this script with the change-log! Press ENTER to start..." read NAME="dstat" VERSION="0.7.2" SOURCE="http://dag.wieers.com/home-made/dstat/dstat-$VERSION.tar.bz2" DATE=`date '+%Y/%m/%d'` echo "Downloading essential packages..." tce-load -wi compiletc python squashfs-tools-4.x cd /tmp/ wget $SOURCE sudo rm -rf $NAME-$VERSION 2>/dev/null sudo rm /tmp/$NAME.tcz /tmp/$NAME.tcz.list /tmp/$NAME.tcz.md5.txt /tmp/$NAME.tcz.dep 2>/dev/null sudo rm -rf /tmp/$NAME 2>/dev/null tar xvf $NAME-$VERSION.tar.bz2 cd $NAME-$VERSION sudo mkdir -p /tmp/$NAME/usr/local/bin/ sudo mkdir -p /tmp/$NAME/usr/local/share/dstat/ sudo cp dstat /tmp/$NAME/usr/local/bin/ cd plugins sudo cp * /tmp/$NAME/usr/local/share/dstat/ echo "Creating package..." cd /tmp/ sudo mksquashfs $NAME $NAME.tcz sudo md5sum $NAME.tcz > $NAME.tcz.md5.txt cd $NAME sudo find usr -not -type d > ../$NAME.tcz.list cd /tmp/ SIZE="`du -k $NAME.tcz|cut -f1`k" sudo echo "Title: $NAME.tcz Description: Dstat: Versatile resource statistics tool Version: $VERSION Author: Dag Wieers Original-site: http://dag.wieers.com/ Copying-policy: GPLv2 Size: $SIZE Extension_by: andriscom Comments: Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. Dstat overcomes some of their limitations and adds some extra features, more counters and flexibility. Dstat is handy for monitoring systems during performance tuning tests, benchmarks or troubleshooting. Dstat allows you to view all of your system resources in real-time, you can eg. compare disk utilization in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval). Dstat gives you detailed selective information in columns and clearly indicates in what magnitude and unit the output is displayed. Less confusion, less mistakes. And most importantly, it makes it very easy to write plugins to collect your own counters. Dstat's output by default is designed for being interpreted by humans in real-time, however you can export details to CSV output to a file to be imported later into Gnumeric or Excel to generate graphs. Online man pages: http://dag.wieers.com/home-made/dstat/dstat.1.html Dstat is Python script so no compiling needed. Source: $SOURCE Change-log: 2010/10/16 Version: 0.7.2 $DATE Version: $VERSION - Rebuilt with Python 2.7, dependency changed to python.tcz Current: $DATE Version: $VERSION - Rebuilt with Python 2.7, dependency changed to python.tcz " > $NAME.tcz.info sudo echo "python.tcz " > $NAME.tcz.dep cd /tmp/ mkdir packages 2>/dev/null sudo rm packages/$NAME.tar.gz 2>/dev/null tar zcf packages/$NAME.tar.gz $NAME.tcz* echo " Run bcrypt on /tmp/packages/*.tar.gz... give password: tinycore" echo "Run the extension_audit.sh and reboot a clean system to try the packages!" echo "Send it to: tcesubmit@gmail.com"