wok-current view tiptop/receipt @ rev 21249
updated libmicrohttpd and libmicrohttpd-dev (0.9.33 -> 0.9.63)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 11 17:56:29 2019 +0100 (2019-04-11) |
parents | 9e01bc6321ea |
children | fac2fae91e34 |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://tiptop.gforge.inria.fr/"
11 WGET_URL="http://tiptop.gforge.inria.fr/releases/$TARBALL"
13 DEPENDS="ncurses libxml2"
14 BUILD_DEPENDS="ncurses-dev libxml2-dev bison flex m4"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure --prefix=/usr
20 make
21 make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr $fs/etc/skel
28 cp -a $install/usr/bin $fs/usr
29 cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc
30 }
32 post_install()
33 {
34 for i in $(ls "$1/home" 2> /dev/null); do
35 [ -f "$1/home/$i/.tiptoprc" ] && continue
36 cp "$1/etc/skel/.tiptoprc" "$1/home/$i"
37 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tiptoprc"
38 done
39 }
41 post_remove()
42 {
43 rm -f "$1"/home/*/.tiptoprc
44 }