# SliTaz package receipt. PACKAGE="awstats-hotspot" VERSION="1.0" CATEGORY="network" SHORT_DESC="Squid Log file analyzer configuration" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" DEPENDS="squid awstats" WEB_SITE="http://www.slitaz.org/" TAGS="log analysis" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp $stuff/* $fs/usr/bin } post_install() { chroot "$1/" /usr/bin/loghotspot.sh --install } post_remove() { cd "$1/" grep -l loghotspot.sh etc/awstats/*.conf | xargs rm -f cd - > /dev/null }