wok-next annotate awstats-hotspot/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | a6f7b6b890c2 |
children | 0cbe4b1f2230 |
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 WEB_SITE="http://www.slitaz.org/" |
pascal@12973 | 10 |
al@21020 | 11 genpkg_rules() { |
pascal@12973 | 12 mkdir -p $fs/usr/bin |
pascal@12973 | 13 cp $stuff/* $fs/usr/bin |
al@21020 | 14 DEPENDS="squid awstats" |
al@21020 | 15 TAGS="log analysis" |
pascal@12973 | 16 } |
pascal@12973 | 17 |
al@21020 | 18 post_install() { |
al@18667 | 19 chroot "$1/" /usr/bin/loghotspot.sh --install |
pascal@12973 | 20 } |
pascal@12973 | 21 |
al@21020 | 22 post_remove() { |
pascal@18670 | 23 cd "$1/" |
pascal@18670 | 24 grep -l loghotspot.sh etc/awstats/*.conf | xargs rm -f |
pascal@18670 | 25 cd - > /dev/null |
pascal@12973 | 26 } |