wok-next view awstats-hotspot/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents d5aab818505e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="awstats-hotspot"
4 VERSION="1.0"
5 CATEGORY="network"
6 SHORT_DESC="Squid Log file analyzer configuration"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.slitaz.org/"
10 HOST_ARCH="any"
12 genpkg_rules() {
13 mkdir -p $fs/usr/bin
14 cp $stuff/* $fs/usr/bin
15 DEPENDS="squid awstats"
16 TAGS="log analysis"
17 }
19 post_install() {
20 chroot "$1/" /usr/bin/loghotspot.sh --install
21 }
23 post_remove() {
24 cd "$1/"
25 grep -l loghotspot.sh etc/awstats/*.conf | xargs rm -f
26 cd - > /dev/null
27 }