wok-6.x annotate awstats-hotspot/receipt @ rev 18734
Remove redundant messages in {pre|post}_{install|remove}() in random packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 21 02:53:09 2015 +0200 (2015-12-21) |
parents | d5f9f516b706 |
children | a6f7b6b890c2 |
rev | line source |
---|---|
pascal@12973 | 1 # SliTaz package receipt. |
pascal@12973 | 2 |
pascal@12973 | 3 PACKAGE="awstats-hotspot" |
pascal@12973 | 4 VERSION="1.0" |
pascal@12973 | 5 CATEGORY="network" |
pascal@12973 | 6 SHORT_DESC="Squid Log file analyzer configuration" |
pascal@12973 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15201 | 8 LICENSE="GPL2" |
pascal@12973 | 9 DEPENDS="squid awstats" |
pascal@12973 | 10 WEB_SITE="http://www.slitaz.org/" |
pascal@12973 | 11 TAGS="log analyze" |
pascal@12973 | 12 |
pascal@12973 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@12973 | 14 genpkg_rules() |
pascal@12973 | 15 { |
pascal@12973 | 16 mkdir -p $fs/usr/bin |
pascal@12973 | 17 cp $stuff/* $fs/usr/bin |
pascal@12973 | 18 } |
pascal@12973 | 19 |
pascal@12973 | 20 post_install() |
pascal@12973 | 21 { |
al@18667 | 22 chroot "$1/" /usr/bin/loghotspot.sh --install |
pascal@12973 | 23 } |
pascal@12973 | 24 |
pascal@12973 | 25 post_remove() |
pascal@12973 | 26 { |
pascal@18670 | 27 cd "$1/" |
pascal@18670 | 28 grep -l loghotspot.sh etc/awstats/*.conf | xargs rm -f |
pascal@18670 | 29 cd - > /dev/null |
pascal@12973 | 30 } |