wok rev 22036

updated tiptop (2.2 -> 2.3.1)
author Hans-G?nter Theisgen
date Mon Oct 21 15:30:09 2019 +0100 (2019-10-21)
parents 284b8e871560
children b8ddcdf440e4
files tiptop/receipt
line diff
     1.1 --- a/tiptop/receipt	Mon Oct 21 15:20:41 2019 +0100
     1.2 +++ b/tiptop/receipt	Mon Oct 21 15:30:09 2019 +0100
     1.3 @@ -1,41 +1,45 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="tiptop"
     1.7 -VERSION="2.2"
     1.8 +VERSION="2.3.1"
     1.9  CATEGORY="utilities"
    1.10 -SHORT_DESC="Tiptop is a performance monitoring tool for Linux."
    1.11 +SHORT_DESC="A performance monitoring tool for Linux."
    1.12  MAINTAINER="paul@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://tiptop.gforge.inria.fr/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://tiptop.gforge.inria.fr/"
    1.18 -WGET_URL="http://tiptop.gforge.inria.fr/releases/$TARBALL"
    1.19 +WGET_URL="${WEB_SITE}releases/$TARBALL"
    1.20  
    1.21 -DEPENDS="ncurses libxml2"
    1.22 -BUILD_DEPENDS="ncurses-dev libxml2-dev bison flex m4"
    1.23 +DEPENDS="libxml2 ncurses"
    1.24 +BUILD_DEPENDS="bison flex libxml2-dev m4 ncurses-dev"
    1.25  
    1.26  # Rules to configure and make the package.
    1.27  compile_rules()
    1.28  {
    1.29 -	./configure --prefix=/usr
    1.30 -	make
    1.31 +	./configure --prefix=/usr &&
    1.32 +	make &&
    1.33  	make install
    1.34  }
    1.35  
    1.36  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.37  genpkg_rules()
    1.38  {
    1.39 -	mkdir -p $fs/usr $fs/etc/skel
    1.40 -	cp -a $install/usr/bin $fs/usr
    1.41 -	cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc
    1.42 +	mkdir -p $fs/usr
    1.43 +	mkdir -p $fs/etc/skel
    1.44 +
    1.45 +	cp -a $install/usr/bin	$fs/usr
    1.46 +	cp -a $src/tiptoprc	$fs/etc/skel/.tiptoprc
    1.47  }
    1.48  
    1.49  post_install()
    1.50  {
    1.51 -	for i in $(ls "$1/home" 2> /dev/null); do
    1.52 +	for i in $(ls "$1/home" 2> /dev/null)
    1.53 +	  do
    1.54  		[ -f "$1/home/$i/.tiptoprc" ] && continue
    1.55  		cp "$1/etc/skel/.tiptoprc" "$1/home/$i"
    1.56  		chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tiptoprc"
    1.57 -	done
    1.58 +	  done
    1.59  }
    1.60  
    1.61  post_remove()