summaryrefslogtreecommitdiff
path: root/network/awstats/patches
diff options
context:
space:
mode:
Diffstat (limited to 'network/awstats/patches')
-rw-r--r--network/awstats/patches/awstats.pl.patch8
-rw-r--r--network/awstats/patches/awstats_configure.pl.patch13
-rw-r--r--network/awstats/patches/httpd-awstats.conf.patch8
3 files changed, 13 insertions, 16 deletions
diff --git a/network/awstats/patches/awstats.pl.patch b/network/awstats/patches/awstats.pl.patch
index a749b988e2..d7f058959b 100644
--- a/network/awstats/patches/awstats.pl.patch
+++ b/network/awstats/patches/awstats.pl.patch
@@ -1,6 +1,6 @@
---- wwwroot/cgi-bin/awstats.pl.orig 2016-07-21 17:42:26.196363651 +0700
-+++ wwwroot/cgi-bin/awstats.pl 2016-07-21 17:44:55.882578219 +0700
-@@ -2223,7 +2223,7 @@
+--- wwwroot/cgi-bin/awstats.pl.orig 2017-04-03 21:23:54.906211272 -0500
++++ wwwroot/cgi-bin/awstats.pl 2017-04-03 21:26:34.551581204 -0500
+@@ -2234,7 +2234,7 @@
# Check lib files in common possible directories :
# Windows and standard package: "$DIR/lib" (lib in same dir than awstats.pl)
# Debian package: "/usr/share/awstats/lib"
@@ -9,7 +9,7 @@
my %FilePath = ();
my %DirAddedInINC = ();
my @FileListToLoad = ();
-@@ -3114,7 +3114,8 @@
+@@ -3130,7 +3130,8 @@
my @PossiblePluginsDir = (
"$DIR/plugins",
"/usr/local/awstats/wwwroot/cgi-bin/plugins",
diff --git a/network/awstats/patches/awstats_configure.pl.patch b/network/awstats/patches/awstats_configure.pl.patch
index 20c4e127f7..07836f2fde 100644
--- a/network/awstats/patches/awstats_configure.pl.patch
+++ b/network/awstats/patches/awstats_configure.pl.patch
@@ -1,6 +1,6 @@
---- tools/awstats_configure.pl.orig 2016-05-13 15:17:18.396302299 -0500
-+++ tools/awstats_configure.pl 2016-05-13 16:09:13.880063387 -0500
-@@ -27,13 +27,13 @@
+--- tools/awstats_configure.pl.orig 2017-04-03 21:17:54.645112534 -0500
++++ tools/awstats_configure.pl 2017-04-03 21:22:25.593441681 -0500
+@@ -27,11 +27,11 @@
$AWSTATS_MODEL_CONFIG
$AWSTATS_DIRDATA_PATH
/;
@@ -15,10 +15,7 @@
+$AWSTATS_CLASSES_PATH='$AWSTATS_PATH/wwwroot/classes';
+$AWSTATS_CGI_PATH='$AWSTATS_PATH/wwwroot/cgi-bin';
$AWSTATS_MODEL_CONFIG='/etc/awstats/awstats.model.conf'; # Used only when configure ran on linux
--$AWSTATS_DIRDATA_PATH='/var/lib/awstats'; # Used only when configure ran on linux
-+$AWSTATS_DIRDATA_PATH='/var/lib/awstats'; # Used only when configure ran on linux
-
-
+ $AWSTATS_DIRDATA_PATH='/var/lib/awstats'; # Used only when configure ran on linux
@@ -305,7 +305,7 @@
print "\n-----> Running OS detected: $OSLib{$OS}\n";
@@ -34,7 +31,7 @@
if ($WebServerChanged) {
if ($OS eq 'linux') {
- if (-f "/etc/debian_version") {
-+ if (-f "/etc/slackware-version") {
++ if (-f "/etc/slackware-version") {
+ # We are on Slackware :)
+ my $command="/etc/rc.d/rc.httpd restart";
+ print "\n-----> Restart Web server with '$command'\n";
diff --git a/network/awstats/patches/httpd-awstats.conf.patch b/network/awstats/patches/httpd-awstats.conf.patch
index e555bda027..ce8fd512ba 100644
--- a/network/awstats/patches/httpd-awstats.conf.patch
+++ b/network/awstats/patches/httpd-awstats.conf.patch
@@ -1,6 +1,6 @@
---- tools/httpd_conf.orig 2016-07-21 17:38:42.889026388 +0700
-+++ tools/httpd_conf 2016-07-21 17:38:44.177011033 +0700
-@@ -12,18 +12,20 @@
+--- tools/httpd_conf.orig 2017-04-03 21:14:00.521107366 -0500
++++ tools/httpd_conf 2017-04-03 21:16:07.783196402 -0500
+@@ -12,18 +12,19 @@
# Directives to add to your Apache conf file to allow use of AWStats as a CGI.
# Note that path "/usr/local/awstats/" must reflect your AWStats install path.
#
@@ -8,12 +8,12 @@
-Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
-Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
-ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
+-
+Alias /awstatsclasses "@DOCROOT@/awstats/wwwroot/classes/"
+Alias /awstatscss "@DOCROOT@/awstats/wwwroot/css/"
+Alias /awstatsicons "@DOCROOT@/awstats/wwwroot/icon/"
+ScriptAlias /awstats/ "@DOCROOT@/awstats/wwwroot/cgi-bin/"
-
#
# This is to permit URL access to scripts/files in AWStats directory.
#