wok diff awstats/receipt @ rev 8695

improve receipt
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Feb 17 23:04:20 2011 +0100 (2011-02-17)
parents e21766a94165
children a1644dbcf632
line diff
     1.1 --- a/awstats/receipt	Tue Mar 30 11:53:06 2010 +0200
     1.2 +++ b/awstats/receipt	Thu Feb 17 23:04:20 2011 +0100
     1.3 @@ -31,12 +31,23 @@
     1.4  	cp -a $src/wwwroot/cgi-bin/awstats.pl  $fs/var/www/cgi-bin
     1.5  	cp -a $src/wwwroot/cgi-bin/awstats.model.conf  $fs/etc/awstats
     1.6  	
     1.7 -	cp stuff/awstats-apache.conf $fs/usr/share/awstats/extras
     1.8 -	cp stuff/awstats-lighttpd.conf $fs/usr/share/awstats/extras
     1.9 +	cp stuff/* $fs/usr/share/awstats/extras
    1.10  
    1.11  	# Add a link using google map
    1.12  	sed -i 's|Full Whois Field"|Full Whois Field <a href=\\"http://en.utrace.de/?query=".$HostResolved."\\">?</a>"|' \
    1.13  		$fs/usr/share/awstats/plugins/hostinfo.pm
    1.14 +
    1.15 +	# Avoid alias conflits
    1.16 +	for i in classes css icon ; do
    1.17 +		sed -i "s| /$i| /awstats$i|" \
    1.18 +			$fs/usr/share/awstats/extras/awstats-apache.conf
    1.19 +		sed -i "s|\"/$i|\"/awstats$i|" \
    1.20 +			$fs/usr/share/awstats/extras/awstats-lighttpd.conf
    1.21 +	done
    1.22 +	sed -i -e '/\/css\//d' -e 's|DirIcons="/icon"|DirIcons="/awstatsicon"|' \
    1.23 +		$fs/etc/awstats/awstats.model.conf
    1.24 +	sed -i 's/classes/awstatsclasses/' \
    1.25 +		$fs/usr/share/awstats/plugins/graphapplet.pm
    1.26  }
    1.27  
    1.28  post_install()
    1.29 @@ -67,6 +78,11 @@
    1.30  			/etc/init.d/lighttpd restart
    1.31  		fi
    1.32  	fi
    1.33 +	cat <<EOT
    1.34 +You should add in your crontab something like;
    1.35 +
    1.36 +0 0 * * * /usr/share/awstats/extras/update
    1.37 +EOT
    1.38  }
    1.39  
    1.40  post_remove()