Index: trunk/debian/rules
===================================================================
--- trunk/debian/rules	(revision 1030)
+++ trunk/debian/rules	(revision 1037)
@@ -55,11 +55,12 @@
 	find debian/alternc-awstats/ -depth -name CVS -type d -exec rm -rf {} \;
 
-	install -m 0755 -g www-data -o www-data awstats-alternc.png debian/alternc-awstats/usr/share/awstats/icon/
+	install -m 0755 -g www-data -o www-data awstats_alternc.png debian/alternc-awstats/usr/share/awstats/icon/
 	install -m 0755 -g www-data -o www-data alternc-awstats debian/alternc-awstats/usr/lib/alternc/
-	install -m 0755 -g www-data -o www-data alternc-awstats.manual.sh debian/alternc-awstats/usr/lib/alternc/
 	install -m 0755 -g www-data -o www-data awstats.cache.php debian/alternc-awstats/usr/lib/alternc/
 	install -m 0644 awstats.sql debian/alternc-awstats/usr/share/alternc/
 	install -m 0644 -g www-data -o www-data awstats.template.conf debian/alternc-awstats/etc/alternc/
 	install -m 0444 debian/lintian-override debian/alternc-awstats/usr/share/lintian/overrides/alternc-awstats
+	mkdir debian/alternc-awstats/var/cache/awstats
+	chown 33.33 debian/alternc-awstats/var/cache/awstats
 
 #	dh_install --prefix=install/alternc
Index: trunk/debian/dirs
===================================================================
--- trunk/debian/dirs	(revision 1030)
+++ trunk/debian/dirs	(revision 1037)
@@ -1,3 +1,4 @@
 etc/alternc
+var/cache/awstats
 var/alternc/bureau/class
 var/alternc/bureau/admin
Index: trunk/alternc-awstats
===================================================================
--- trunk/alternc-awstats	(revision 1035)
+++ trunk/alternc-awstats	(revision 1037)
@@ -17,5 +17,5 @@
 fi
 
-CACHEDIR="/var/cache/alternc-awstats"
+CACHEDIR="/var/cache/awstats"
 TMPDNS=`mktemp -p /tmp`
 TMPLOG=`mktemp -p /tmp`
@@ -26,5 +26,5 @@
     rm -f $TMPDNS
     rm -f $TMPLOG
-    rm -rf $CACHEDIR/*
+#    rm -rf $CACHEDIR/*
 }
 
@@ -46,7 +46,9 @@
 
 # Clear the cache dir
-rm -rf $CACHEDIR/* 
-# Fill the cache dir
-/usr/lib/alternc/awstats.cache.php
+# DONT do it ! it looses all previously computed data ! 
+#rm -rf $CACHEDIR/* 
+# Fill the cache dir (/etc dir)
+# not required: m_aws.php build it properly
+# /usr/lib/alternc/awstats.cache.php
 
 # Launch the stat
Index: trunk/alternc-awstats.manual.sh
===================================================================
--- trunk/alternc-awstats.manual.sh	(revision 1030)
+++ 	(revision )
@@ -1,76 +1,0 @@
-#!/bin/sh
-
-if [ "$USER" != "www-data" ] 
-then
-    echo "Fatal : this script must be launched as www-data"
-    exit 1
-fi
-
-. /etc/alternc/local.sh
-
-if [ -e /etc/alternc/webalizer.conf ]
-then
-    . /etc/alternc/webalizer.conf
-fi
-
-if [ -z "$ACCESSLOG" ]
-then
-    ACCESSLOG="/var/log/apache/access.log.1"
-fi
-
-if [ -z "$MYSQL_HOST" ]
-then
-    MYSQL_HOST="localhost"
-fi
-
-# The regeneration is using a different cache directory
-CACHEDIR="/tmp/alternc-webalizer"
-TMPCACHE=`mktemp -p /tmp`
-
-TMPLOG=`mktemp -p /tmp`
-mkdir -p $CACHEDIR
-
-trap cleanup 1 2 15
-
-function cleanup {
-    rm -f $TMPLOG
-    rm -f $TMPCACHE
-    rm -rf $CACHEDIR/*
-}
-
-# Generate the cache dir :
-/usr/lib/alternc/reset_stats_conf.php
-rsync /var/cache/alternc-webalizer/ $CACHEDIR  -a
-
-ACCESSDIR=`dirname $ACCESSLOG`
-
-MAXFILE=`cd $ACCESSDIR; ls access.log.*.gz | sed -e 's/access.log.\(.*\).gz/\1/' | sort -g | tail -1`
-
-function dostat {
-    read LANG DOM
-    while [ "$DOM" ]
-      do
-      # one day, we may delete old statistics for this member :
-      # but we need to 
-      # 1. confirm
-      # 2. found the directory in the conf file.
-      # rm -f usage.png usage_*.html index.html hourly_usage_*.png daily_usage_*.png ctry_usage_*.png webalizer.current webalizer.hist
-
-      export LC_ALL="$LANG"
-      export LANG
-      export LC_MESSAGES="$LANG"
-      # first run: resolve IPs in cache
-      ( for i in `seq $MAXFILE 2` ; do zcat ${ACCESSDIR}/access.log.${i}.gz ; done ; cat ${ACCESSDIR}/access.log.1) | grep -h " $DOM$" | tee $TMPLOG | /usr/bin/webalizer -D $TMPCACHE -N 20 -c $CACHEDIR/$DOM.conf -
-      
-      # Second run : launch the stats
-      /usr/bin/webalizer -D $TMPCACHE -N 0 -c $CACHEDIR/$DOM.conf - <$TMPLOG 2>/dev/null
-      read LANG DOM
-    done
-}
-
-echo "Please enter the statistics you want to regenerate from gzipped apache logs."
-echo "Enter one line per stat as follow : \"languagecode domain\" "
-
-dostat
-
-cleanup
