wok-next annotate tiptop/receipt @ rev 21410
updated polkit (0.113 -> 0.116)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 24 17:53:05 2020 +0100 (2020-04-24) |
parents | ed8073aa8cf0 |
children |
rev | line source |
---|---|
paul@17078 | 1 # SliTaz package receipt. |
paul@17078 | 2 |
paul@17078 | 3 PACKAGE="tiptop" |
paul@17078 | 4 VERSION="2.2" |
paul@17078 | 5 CATEGORY="utilities" |
al@21020 | 6 SHORT_DESC="Performance monitoring tool for Linux" |
paul@17078 | 7 MAINTAINER="paul@slitaz.org" |
pascal@17216 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="http://tiptop.gforge.inria.fr/" |
al@21020 | 10 |
paul@17078 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@17078 | 12 WGET_URL="http://tiptop.gforge.inria.fr/releases/$TARBALL" |
paul@17078 | 13 |
paul@17078 | 14 BUILD_DEPENDS="ncurses-dev libxml2-dev bison flex m4" |
paul@17078 | 15 |
al@21020 | 16 compile_rules() { |
al@21020 | 17 ./configure --prefix=/usr && |
al@21020 | 18 make && |
paul@17078 | 19 make install |
paul@17078 | 20 } |
paul@17078 | 21 |
al@21020 | 22 genpkg_rules() { |
pascal@17080 | 23 mkdir -p $fs/usr $fs/etc/skel |
paul@17078 | 24 cp -a $install/usr/bin $fs/usr |
pascal@17080 | 25 cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc |
al@21020 | 26 DEPENDS="ncurses libxml2" |
paul@17078 | 27 } |
paul@17078 | 28 |
al@21020 | 29 post_install() { |
al@21020 | 30 for i in $(ls "$1/home" 2>/dev/null); do |
pascal@18732 | 31 [ -f "$1/home/$i/.tiptoprc" ] && continue |
pascal@18730 | 32 cp "$1/etc/skel/.tiptoprc" "$1/home/$i" |
pascal@18730 | 33 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tiptoprc" |
pascal@17080 | 34 done |
pascal@17080 | 35 } |
pascal@17080 | 36 |
al@21020 | 37 post_remove() { |
pascal@18730 | 38 rm -f "$1"/home/*/.tiptoprc |
pascal@17080 | 39 } |