wok view tiptop/receipt @ rev 24894

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 08 10:34:41 2022 +0000 (2022-04-08)
parents fac2fae91e34
children a6b997a82f39
line source
1 # SliTaz package receipt.
3 PACKAGE="tiptop"
4 VERSION="2.3.1"
5 CATEGORY="utilities"
6 SHORT_DESC="A performance monitoring tool for Linux."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/FeCastle/tiptop"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}releases/$TARBALL"
14 DEPENDS="libxml2 ncurses"
15 BUILD_DEPENDS="bison flex libxml2-dev m4 ncurses-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure --prefix=/usr &&
21 make &&
22 make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr
29 mkdir -p $fs/etc/skel
31 cp -a $install/usr/bin $fs/usr
32 cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc
33 }
35 post_install()
36 {
37 for i in $(ls "$1/home" 2> /dev/null)
38 do
39 [ -f "$1/home/$i/.tiptoprc" ] && continue
40 cp "$1/etc/skel/.tiptoprc" "$1/home/$i"
41 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tiptoprc"
42 done
43 }
45 post_remove()
46 {
47 rm -f "$1"/home/*/.tiptoprc
48 }