-diff -Nur b.awstats-6.6/tools/awstats_buildstaticpages.pl n.awstats-6.6/tools/awstats_buildstaticpages.pl
---- b.awstats-6.6/tools/awstats_buildstaticpages.pl 2006-02-08 23:26:14.000000000 +0100
-+++ n.awstats-6.6/tools/awstats_buildstaticpages.pl 2007-01-16 13:15:15.000000000 +0100
-@@ -133,7 +133,7 @@
+diff -ur awstats-7.9.orig/tools/awstats_buildstaticpages.pl awstats-7.9/tools/awstats_buildstaticpages.pl
+--- awstats-7.9.orig/tools/awstats_buildstaticpages.pl 2021-08-19 04:00:58.000000000 +0200
++++ awstats-7.9/tools/awstats_buildstaticpages.pl 2024-01-07 20:10:32.230113241 +0100
+@@ -129,7 +129,7 @@
my @PossibleConfigDir=();
if ($configdir) { @PossibleConfigDir=("$configdir"); }
# Open config file
$FileConfig=$FileSuffix='';
-@@ -293,8 +293,8 @@
+@@ -299,8 +299,8 @@
# Check if AWSTATS prog is found
my $AwstatsFound=0;
if (-s "$Awstats") { $AwstatsFound=1; }
+ $Awstats="/usr/share/awstats/wwwroot/cgi-bin/awstats.pl";
$AwstatsFound=1;
}
- if (! $AwstatsFound) {
-diff -Nur b.awstats-6.6/tools/awstats_configure.pl n.awstats-6.6/tools/awstats_configure.pl
---- b.awstats-6.6/tools/awstats_configure.pl 2006-02-08 23:26:14.000000000 +0100
-+++ n.awstats-6.6/tools/awstats_configure.pl 2007-01-16 13:15:15.000000000 +0100
-@@ -29,11 +29,11 @@
+ elsif (-s "/usr/lib/cgi-bin/awstats.pl") {
+diff -ur awstats-7.9.orig/tools/awstats_configure.pl awstats-7.9/tools/awstats_configure.pl
+--- awstats-7.9.orig/tools/awstats_configure.pl 2019-06-27 11:30:40.000000000 +0200
++++ awstats-7.9/tools/awstats_configure.pl 2024-01-07 20:10:32.231113254 +0100
+@@ -28,11 +28,11 @@
$AWSTATS_DIRDATA_PATH
/;
$AWSTATS_PATH='';
$AWSTATS_DIRDATA_PATH='/var/lib/awstats'; # Used only when configure ran on linux
-@@ -608,7 +608,7 @@
+@@ -610,7 +610,7 @@
my $bidon='';
print "Directory path to store config file(s) (Enter for default):\n> ";
$bidon=<STDIN>; chomp $bidon;
my $configdir=$bidon;
if (! -d $configdir) {
# Create the directory for config files
-diff -Nur b.awstats-6.6/tools/awstats_updateall.pl n.awstats-6.6/tools/awstats_updateall.pl
---- b.awstats-6.6/tools/awstats_updateall.pl 2006-07-24 01:57:48.000000000 +0200
-+++ n.awstats-6.6/tools/awstats_updateall.pl 2007-01-16 13:15:15.000000000 +0100
-@@ -13,7 +13,7 @@
+diff -ur awstats-7.9.orig/tools/awstats_updateall.pl awstats-7.9/tools/awstats_updateall.pl
+--- awstats-7.9.orig/tools/awstats_updateall.pl 2014-09-23 09:16:09.000000000 +0200
++++ awstats-7.9/tools/awstats_updateall.pl 2024-01-07 20:10:32.231113254 +0100
+@@ -12,7 +12,7 @@
my $VERSION="1.0 (build $REVISION)";
# Default value of DIRCONFIG
my $Debug=0;
-@@ -130,8 +130,8 @@
+@@ -129,8 +129,8 @@
# Check if AWSTATS prog is found
my $AwstatsFound=0;
if (-s "$Awstats") { $AwstatsFound=1; }
$AwstatsFound=1;
}
if (! $AwstatsFound) {
-diff -Nur b.awstats-6.6/wwwroot/cgi-bin/awstats.pl n.awstats-6.6/wwwroot/cgi-bin/awstats.pl
---- b.awstats-6.6/wwwroot/cgi-bin/awstats.pl 2007-01-16 13:14:33.000000000 +0100
-+++ n.awstats-6.6/wwwroot/cgi-bin/awstats.pl 2007-01-16 13:15:15.000000000 +0100
-@@ -1143,7 +1143,7 @@
- @PossibleConfigDir=("$configdir");
- #}
- }
-- else { @PossibleConfigDir=("$DIR","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); }
-+ else { @PossibleConfigDir=("$DIR","/etc/webapps/awstats","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); }
-
- # Open config file
- $FileConfig=$FileSuffix='';
-@@ -5681,8 +5681,8 @@
- print " First, $PROG tries to read $PROG.virtualhostname.conf as the config file.\n";
- print " If not found, $PROG tries to read $PROG.conf\n";
- print " Note 1: Config files ($PROG.virtualhostname.conf or $PROG.conf) must be\n";
-- print " in /etc/awstats, /usr/local/etc/awstats, /etc or same directory than\n";
-- print " awstats.pl script file.\n";
-+ print " in /etc/webapps/awstasts, /etc/awstats, /usr/local/etc/awstats, /etc\n";
-+ print " or same directory than awstats.pl script file.\n";
- print " Note 2: If AWSTATS_FORCE_CONFIG environment variable is defined, AWStats will\n";
- print " use it as the \"config\" value, whatever is the value on command line or URL.\n";
- print " See AWStats documentation for all setup instrutions.\n";
+diff -ur awstats-7.9.orig/wwwroot/cgi-bin/awstats.pl awstats-7.9/wwwroot/cgi-bin/awstats.pl
+--- awstats-7.9.orig/wwwroot/cgi-bin/awstats.pl 2024-01-07 20:09:51.559596037 +0100
++++ awstats-7.9/wwwroot/cgi-bin/awstats.pl 2024-01-07 20:10:32.235113304 +0100
+@@ -1716,6 +1716,7 @@
+ my $configdir = shift;
+ my @PossibleConfigDir = (
+ "$DIR",
++ "/etc/webapps/awstats",
+ "/etc/awstats",
+ "/usr/local/etc/awstats",
+ "/etc/opt/awstats"