wok annotate tiptop/receipt @ rev 24536
updated fail2ban (0.10.4 -> 0.11.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 13:43:14 2022 +0100 (2022-02-23) |
parents | ed8073aa8cf0 |
children | 870e1ce31226 |
rev | line source |
---|---|
paul@17078 | 1 # SliTaz package receipt. |
paul@17078 | 2 |
paul@17078 | 3 PACKAGE="tiptop" |
Hans-G?nter@22036 | 4 VERSION="2.3.1" |
paul@17078 | 5 CATEGORY="utilities" |
Hans-G?nter@22036 | 6 SHORT_DESC="A performance monitoring tool for Linux." |
paul@17078 | 7 MAINTAINER="paul@slitaz.org" |
pascal@17216 | 8 LICENSE="GPL2" |
Hans-G?nter@22036 | 9 WEB_SITE="http://tiptop.gforge.inria.fr/" |
Hans-G?nter@22036 | 10 |
paul@17078 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22036 | 12 WGET_URL="${WEB_SITE}releases/$TARBALL" |
paul@17078 | 13 |
Hans-G?nter@22036 | 14 DEPENDS="libxml2 ncurses" |
Hans-G?nter@22036 | 15 BUILD_DEPENDS="bison flex libxml2-dev m4 ncurses-dev" |
paul@17078 | 16 |
paul@17078 | 17 # Rules to configure and make the package. |
paul@17078 | 18 compile_rules() |
paul@17078 | 19 { |
Hans-G?nter@22036 | 20 ./configure --prefix=/usr && |
Hans-G?nter@22036 | 21 make && |
paul@17078 | 22 make install |
paul@17078 | 23 } |
paul@17078 | 24 |
paul@17078 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@17078 | 26 genpkg_rules() |
paul@17078 | 27 { |
Hans-G?nter@22036 | 28 mkdir -p $fs/usr |
Hans-G?nter@22036 | 29 mkdir -p $fs/etc/skel |
Hans-G?nter@22036 | 30 |
Hans-G?nter@22036 | 31 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22036 | 32 cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc |
paul@17078 | 33 } |
paul@17078 | 34 |
pascal@17080 | 35 post_install() |
pascal@17080 | 36 { |
Hans-G?nter@22036 | 37 for i in $(ls "$1/home" 2> /dev/null) |
Hans-G?nter@22036 | 38 do |
pascal@18732 | 39 [ -f "$1/home/$i/.tiptoprc" ] && continue |
pascal@18730 | 40 cp "$1/etc/skel/.tiptoprc" "$1/home/$i" |
pascal@18730 | 41 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tiptoprc" |
Hans-G?nter@22036 | 42 done |
pascal@17080 | 43 } |
pascal@17080 | 44 |
pascal@17080 | 45 post_remove() |
pascal@17080 | 46 { |
pascal@18730 | 47 rm -f "$1"/home/*/.tiptoprc |
pascal@17080 | 48 } |