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