wok-next view bootchart/receipt @ rev 3530
Add xorg-gccmakedep
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 22 10:58:23 2009 +0200 (2009-06-22) |
parents | |
children | 4ffc7c76d358 |
line source
1 # SliTaz package receipt.
3 PACKAGE="bootchart"
4 VERSION="0.9"
5 CATEGORY="misc"
6 SHORT_DESC="boot process performance analyzer (add init=/sbin/bootchartd to boot options)"
7 MAINTAINER="jozee@slitaz.org"
8 SUGGESTED="pybootchartgui"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.bootchart.org/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/sbin $fs/etc
19 cp -a $src/script/bootchartd $fs/sbin/bootchartd
20 cp -a $src/script/bootchartd.conf $fs/etc
21 sed -i "s/SAMPLE_PERIOD=0.2/SAMPLE_PERIOD=1/" $fs/etc/bootchartd.conf
22 sed -i "s/kdm_greet/kdm_greet slim /" $fs/sbin/bootchartd
23 sed -i "s|\/usr\/bin\/bootchart|\/usr\/bin\/pybootchartgui|g" $fs/sbin/bootchartd
25 }
27 post_install()
28 {
29 if [ -f "$1/boot/grub/menu.lst" ]; then
30 if ! grep -q "vmlinuz-$VERSION-slitaz" $1/boot/grub/menu.lst; then
31 root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1`
32 grub_dev=`cat $1/boot/grub/menu.lst | grep "root.* (" | head -n 1`
33 # Add new kernel entry in case of upgrade for installed system.
34 cat >> $1/boot/grub/menu.lst << EOT
36 title SliTaz GNU/Linux (Kernel $VERSION-slitaz) with bootchart
37 $grub_dev
38 kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev init=/sbin/bootchartd
39 EOT
40 # Display information message.
41 cat <<EOT
42 ----
43 GRUB is installed, these tree lines has been added to the menu.lst:
45 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
46 $grub_dev
47 kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev init=/sbin/bootchartd
48 ----
49 EOT
50 else
51 echo "Grub menu.lst seems already configured to boot new Kernel..."
52 fi
53 fi
54 }