wok-next rev 21527

updated bootchart (0.9 -> 1.20)
author Hans-G?nter Theisgen
date Fri Jun 19 15:06:45 2020 +0100 (2020-06-19)
parents 1b4816ca3fef
children ce0470d0a8b1
files bootchart/receipt
line diff
     1.1 --- a/bootchart/receipt	Fri Jun 19 14:26:31 2020 +0100
     1.2 +++ b/bootchart/receipt	Fri Jun 19 15:06:45 2020 +0100
     1.3 @@ -1,34 +1,52 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="bootchart"
     1.7 -VERSION="0.9"
     1.8 +VERSION="1.20"
     1.9  CATEGORY="misc"
    1.10 +TAGS="boot performance profile analysis"
    1.11  SHORT_DESC="Boot process performance analyzer (add init=/sbin/bootchartd to boot options)"
    1.12 -MAINTAINER="devel@slitaz.org"
    1.13 +MAINTAINER="maintainer@slitaz.org"
    1.14  LICENSE="GPL2"
    1.15  WEB_SITE="http://www.bootchart.org/"
    1.16 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.18 -TAGS="boot performance profile analysis"
    1.19 +
    1.20 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.21 +WGET_URL="https://github.com/ahkok/$PACKAGE/archive/v$VERSION.tar.gz"
    1.22  
    1.23  SUGGESTED="pybootchartgui"
    1.24 +BUILD_DEPENDS="automake"
    1.25  
    1.26 -genpkg_rules() {
    1.27 -	mkdir -p $fs/sbin $fs/etc
    1.28 -	cp -a $src/script/bootchartd $fs/sbin/bootchartd
    1.29 -	cp -a $src/script/bootchartd.conf $fs/etc
    1.30 -	sed -i "s/SAMPLE_PERIOD=0.2/SAMPLE_PERIOD=1/" $fs/etc/bootchartd.conf
    1.31 -	sed -i "s/kdm_greet/kdm_greet slim /" $fs/sbin/bootchartd
    1.32 -	sed -i 's|/usr/bin/bootchart|/usr/bin/pybootchartgui|g' $fs/sbin/bootchartd
    1.33 +compile_rules()
    1.34 +{
    1.35 +	./autogen.sh &&
    1.36 +	./configure &&
    1.37 +	make &&
    1.38 +	make install
    1.39 +}
    1.40 +
    1.41 +genpkg_rules()
    1.42 +{
    1.43 +	mkdir -p $fs/sbin
    1.44 +	mkdir -p $fs/etc
    1.45 +
    1.46 +	cp -a $src/bootchartd			$fs/sbin/bootchartd
    1.47 +	cp -a $src/bootchartd.conf.example	$fs/etc/bootchartd.conf
    1.48 +	sed -i "s/SAMPLE_PERIOD=0.2/SAMPLE_PERIOD=1/" \
    1.49 +						$fs/etc/bootchartd.conf
    1.50 +	sed -i "s/kdm_greet/kdm_greet slim /"	$fs/sbin/bootchartd
    1.51 +	sed -i 's|/usr/bin/bootchart|/usr/bin/pybootchartgui|g' \
    1.52 +						$fs/sbin/bootchartd
    1.53  	chown -R root:root $fs
    1.54  }
    1.55  
    1.56 -post_install() {
    1.57 +post_install()
    1.58 +{
    1.59  	KERNEL_VERSION=$(uname -r | cut -d- -f1)
    1.60  	MENU="$1/boot/grub/menu.lst"
    1.61 -	if [ -f "$MENU" ]; then
    1.62 +	if [ -f "$MENU" ]
    1.63 +	  then
    1.64  		# add an entry only if slitaz is installed and bootchart is not configured
    1.65 -		if ! grep -q "vmlinuz-$KERNEL_VERSION-slitaz.*sbin/bootchartd.*" "$MENU"; then
    1.66 +		if ! grep -q "vmlinuz-$KERNEL_VERSION-slitaz.*sbin/bootchartd.*" "$MENU"
    1.67 +		  then
    1.68  			# FIXME: really use the first comer value?
    1.69  			#        (our lines will be LAST)
    1.70  			root_dev=`sed -n 's/.*root=\([^ ]*\).*/\1/p' "$MENU" | head -n1`
    1.71 @@ -44,7 +62,7 @@
    1.72         kernel /boot/vmlinuz-$KERNEL_VERSION-slitaz root=$root_dev init=/sbin/bootchartd
    1.73  EOT
    1.74  			echo "----"
    1.75 -		else
    1.76 +		  else
    1.77  			echo
    1.78  			echo "Grub menu.lst seems already configured to boot new Kernel..."
    1.79  		fi