wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="tiptop"
4 VERSION="2.2"
5 CATEGORY="utilities"
6 SHORT_DESC="Tiptop is a performance monitoring tool for Linux."
7 MAINTAINER="paul@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://tiptop.gforge.inria.fr/"
10 WGET_URL="http://tiptop.gforge.inria.fr/releases/$TARBALL"
12 DEPENDS="ncurses libxml2"
13 BUILD_DEPENDS="ncurses-dev libxml2-dev bison flex m4"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 ./configure --prefix=/usr
19 make
20 make install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr $fs/etc/skel
27 cp -a $install/usr/bin $fs/usr
28 cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc
29 }
31 post_install()
32 {
33 for i in $(ls $1/home); do
34 cp $1/etc/skel/.tiptoprc $1/home/$i
35 chroot $1/ chown $i.users /home/$i/.tiptoprc
36 done
37 }
39 post_remove()
40 {
41 rm -f $1/home/*/.tiptoprc
42 }