wok-6.x annotate tiptop/receipt @ rev 17080

ncmpcpp/receipt, remind/receipt, tiptop/receipt, tmux-mem-cpu-load/receipt: update user config file
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 24 21:21:42 2014 +0200 (2014-08-24)
parents 59215edce6e6
children ce9cbd90365a
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"
paul@17078 6 SHORT_DESC="Tiptop is a performance monitoring tool for Linux."
paul@17078 7 MAINTAINER="paul@slitaz.org"
paul@17078 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@17078 9 WEB_SITE="http://tiptop.gforge.inria.fr/"
paul@17078 10 WGET_URL="http://tiptop.gforge.inria.fr/releases/$TARBALL"
paul@17078 11
paul@17078 12 DEPENDS="ncurses libxml2"
paul@17078 13 BUILD_DEPENDS="ncurses-dev libxml2-dev bison flex m4"
paul@17078 14
paul@17078 15 # Rules to configure and make the package.
paul@17078 16 compile_rules()
paul@17078 17 {
paul@17078 18 ./configure --prefix=/usr
paul@17078 19 make
paul@17078 20 make install
paul@17078 21 }
paul@17078 22
paul@17078 23 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@17078 24 genpkg_rules()
paul@17078 25 {
pascal@17080 26 mkdir -p $fs/usr $fs/etc/skel
paul@17078 27 cp -a $install/usr/bin $fs/usr
pascal@17080 28 cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc
paul@17078 29 }
paul@17078 30
pascal@17080 31 post_install()
pascal@17080 32 {
pascal@17080 33 for i in $(ls $1/home); do
pascal@17080 34 cp $1/etc/skel/.tiptoprc $1/home/$i
pascal@17080 35 chroot $1/ chown $i.users /home/$i/.tiptoprc
pascal@17080 36 done
pascal@17080 37 }
pascal@17080 38
pascal@17080 39 post_remove()
pascal@17080 40 {
pascal@17080 41 rm -f $1/home/*/.tiptoprc
pascal@17080 42 }