wok diff bootchart/receipt @ rev 3506
Depends: xorg-libXp
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Fri Jun 19 12:41:39 2009 +0000 (2009-06-19) |
parents | |
children | 4ffc7c76d358 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/bootchart/receipt Fri Jun 19 12:41:39 2009 +0000 1.3 @@ -0,0 +1,54 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="bootchart" 1.7 +VERSION="0.9" 1.8 +CATEGORY="misc" 1.9 +SHORT_DESC="boot process performance analyzer (add init=/sbin/bootchartd to boot options)" 1.10 +MAINTAINER="jozee@slitaz.org" 1.11 +SUGGESTED="pybootchartgui" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 +WEB_SITE="http://www.bootchart.org/" 1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 + 1.16 + 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + mkdir -p $fs/sbin $fs/etc 1.22 + cp -a $src/script/bootchartd $fs/sbin/bootchartd 1.23 + cp -a $src/script/bootchartd.conf $fs/etc 1.24 + sed -i "s/SAMPLE_PERIOD=0.2/SAMPLE_PERIOD=1/" $fs/etc/bootchartd.conf 1.25 + sed -i "s/kdm_greet/kdm_greet slim /" $fs/sbin/bootchartd 1.26 + sed -i "s|\/usr\/bin\/bootchart|\/usr\/bin\/pybootchartgui|g" $fs/sbin/bootchartd 1.27 + 1.28 +} 1.29 + 1.30 +post_install() 1.31 +{ 1.32 + if [ -f "$1/boot/grub/menu.lst" ]; then 1.33 + if ! grep -q "vmlinuz-$VERSION-slitaz" $1/boot/grub/menu.lst; then 1.34 + root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1` 1.35 + grub_dev=`cat $1/boot/grub/menu.lst | grep "root.* (" | head -n 1` 1.36 + # Add new kernel entry in case of upgrade for installed system. 1.37 + cat >> $1/boot/grub/menu.lst << EOT 1.38 + 1.39 +title SliTaz GNU/Linux (Kernel $VERSION-slitaz) with bootchart 1.40 +$grub_dev 1.41 + kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev init=/sbin/bootchartd 1.42 +EOT 1.43 + # Display information message. 1.44 + cat <<EOT 1.45 +---- 1.46 +GRUB is installed, these tree lines has been added to the menu.lst: 1.47 + 1.48 +title SliTaz GNU/Linux (Kernel $VERSION-slitaz) 1.49 +$grub_dev 1.50 + kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev init=/sbin/bootchartd 1.51 +---- 1.52 +EOT 1.53 + else 1.54 + echo "Grub menu.lst seems already configured to boot new Kernel..." 1.55 + fi 1.56 + fi 1.57 +}