wok annotate tiptop/receipt @ rev 24902
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 09 09:39:20 2022 +0000 (2022-04-09) |
parents | 870e1ce31226 |
children | d765616e1f3d |
rev | line source |
---|---|
paul@17078 | 1 # SliTaz package receipt. |
paul@17078 | 2 |
paul@17078 | 3 PACKAGE="tiptop" |
Hans-G?nter@22036 | 4 VERSION="2.3.1" |
paul@17078 | 5 CATEGORY="utilities" |
Hans-G?nter@22036 | 6 SHORT_DESC="A performance monitoring tool for Linux." |
paul@17078 | 7 MAINTAINER="paul@slitaz.org" |
pascal@17216 | 8 LICENSE="GPL2" |
pascal@24894 | 9 WEB_SITE="https://github.com/FeCastle/tiptop" |
Hans-G?nter@22036 | 10 |
paul@17078 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24902 | 12 WGET_URL="http://tiptop.gforge.inria.fr/releases/$TARBALL" |
paul@17078 | 13 |
Hans-G?nter@22036 | 14 DEPENDS="libxml2 ncurses" |
Hans-G?nter@22036 | 15 BUILD_DEPENDS="bison flex libxml2-dev m4 ncurses-dev" |
paul@17078 | 16 |
pascal@24902 | 17 # What is the latest version available today? |
pascal@24902 | 18 current_version() |
pascal@24902 | 19 { |
pascal@24902 | 20 wget -O - https://raw.githubusercontent.com/FeCastle/tiptop/master/configure.ac 2>/dev/null | \ |
pascal@24902 | 21 sed '/AC_INIT/!d;s|.*.tiptop., .||;s|].*||;q' |
pascal@24902 | 22 } |
pascal@24902 | 23 |
paul@17078 | 24 # Rules to configure and make the package. |
paul@17078 | 25 compile_rules() |
paul@17078 | 26 { |
Hans-G?nter@22036 | 27 ./configure --prefix=/usr && |
Hans-G?nter@22036 | 28 make && |
paul@17078 | 29 make install |
paul@17078 | 30 } |
paul@17078 | 31 |
paul@17078 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@17078 | 33 genpkg_rules() |
paul@17078 | 34 { |
Hans-G?nter@22036 | 35 mkdir -p $fs/usr |
Hans-G?nter@22036 | 36 mkdir -p $fs/etc/skel |
Hans-G?nter@22036 | 37 |
Hans-G?nter@22036 | 38 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22036 | 39 cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc |
paul@17078 | 40 } |
paul@17078 | 41 |
pascal@17080 | 42 post_install() |
pascal@17080 | 43 { |
Hans-G?nter@22036 | 44 for i in $(ls "$1/home" 2> /dev/null) |
Hans-G?nter@22036 | 45 do |
pascal@18732 | 46 [ -f "$1/home/$i/.tiptoprc" ] && continue |
pascal@18730 | 47 cp "$1/etc/skel/.tiptoprc" "$1/home/$i" |
pascal@18730 | 48 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tiptoprc" |
Hans-G?nter@22036 | 49 done |
pascal@17080 | 50 } |
pascal@17080 | 51 |
pascal@17080 | 52 post_remove() |
pascal@17080 | 53 { |
pascal@18730 | 54 rm -f "$1"/home/*/.tiptoprc |
pascal@17080 | 55 } |