wok-current annotate bootchart/receipt @ rev 25411
updated winetricks (20200412 -> 20220411)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 04 07:24:24 2022 +0100 (2022-08-04) |
parents | 8e41c082cb01 |
children | 73f36875e5a7 |
rev | line source |
---|---|
jozee@3217 | 1 # SliTaz package receipt. |
jozee@3217 | 2 |
jozee@3217 | 3 PACKAGE="bootchart" |
jozee@3217 | 4 VERSION="0.9" |
jozee@3217 | 5 CATEGORY="misc" |
jozee@3217 | 6 SHORT_DESC="boot process performance analyzer (add init=/sbin/bootchartd to boot options)" |
jozee@3217 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@22648 | 9 WEB_SITE="http://github.com/sofar/bootchart" |
jozee@3217 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
jozee@3217 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@19168 | 12 TAGS="boot performance profile analysis" |
jozee@3217 | 13 |
al@14789 | 14 SUGGESTED="pybootchartgui" |
jozee@3217 | 15 |
pascal@24308 | 16 # What is the latest version available today? |
pascal@24308 | 17 current_version() |
pascal@24308 | 18 { |
pascal@24308 | 19 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
pascal@24308 | 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 21 } |
pascal@24308 | 22 |
jozee@3217 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@3217 | 24 genpkg_rules() |
jozee@3217 | 25 { |
al@14789 | 26 mkdir -p $fs/sbin $fs/etc |
jozee@3217 | 27 cp -a $src/script/bootchartd $fs/sbin/bootchartd |
al@14789 | 28 cp -a $src/script/bootchartd.conf $fs/etc |
jozee@3217 | 29 sed -i "s/SAMPLE_PERIOD=0.2/SAMPLE_PERIOD=1/" $fs/etc/bootchartd.conf |
jozee@3217 | 30 sed -i "s/kdm_greet/kdm_greet slim /" $fs/sbin/bootchartd |
al@14789 | 31 sed -i 's|/usr/bin/bootchart|/usr/bin/pybootchartgui|g' $fs/sbin/bootchartd |
al@14792 | 32 chown -R root:root $fs |
jozee@3217 | 33 } |
jozee@3217 | 34 |
jozee@3217 | 35 post_install() |
jozee@3217 | 36 { |
al@14789 | 37 KERNEL_VERSION=$(uname -r | cut -d- -f1) |
al@14789 | 38 MENU="$1/boot/grub/menu.lst" |
al@14789 | 39 if [ -f "$MENU" ]; then |
al@14789 | 40 # add an entry only if slitaz is installed and bootchart is not configured |
al@14789 | 41 if ! grep -q "vmlinuz-$KERNEL_VERSION-slitaz.*sbin/bootchartd.*" "$MENU"; then |
al@14789 | 42 # FIXME: really use the first comer value? |
al@14789 | 43 # (our lines will be LAST) |
al@14789 | 44 root_dev=`sed -n 's/.*root=\([^ ]*\).*/\1/p' "$MENU" | head -n1` |
al@14789 | 45 grub_dev=`sed -n '/^[^#]*root.* (/p' "$MENU" | head -n1` |
al@14789 | 46 # Add new kernel entry for bootchart and display information message |
al@18668 | 47 echo |
al@14789 | 48 echo "----" |
al@14789 | 49 echo "GRUB is installed, these tree lines has been added to the menu.lst:" |
al@14789 | 50 tee -a "$MENU" << EOT |
jozee@3217 | 51 |
jozee@5044 | 52 title SliTaz GNU/Linux (Kernel $KERNEL_VERSION-slitaz) with bootchart |
jozee@3217 | 53 $grub_dev |
jozee@5044 | 54 kernel /boot/vmlinuz-$KERNEL_VERSION-slitaz root=$root_dev init=/sbin/bootchartd |
jozee@3217 | 55 EOT |
al@14789 | 56 echo "----" |
jozee@3217 | 57 else |
al@18668 | 58 echo |
jozee@3217 | 59 echo "Grub menu.lst seems already configured to boot new Kernel..." |
jozee@3217 | 60 fi |
jozee@3217 | 61 fi |
jozee@3217 | 62 } |