[-]
[+]
|
Changed |
awstats.spec
|
|
[-]
[+]
|
Added |
awstats-7.0-CVE-2006-2237_read_open.patch
^
|
@@ -0,0 +1,80 @@
+--- wwwroot/cgi-bin/awstats.pl.orig 2010-10-16 19:24:03.000000000 +0200
++++ wwwroot/cgi-bin/awstats.pl 2011-01-07 20:26:06.811019892 +0100
+@@ -1739,20 +1739,20 @@
+ foreach (@PossibleConfigDir) {
+ my $searchdir = $_;
+ if ( $searchdir && $searchdir !~ /[\\\/]$/ ) { $searchdir .= "/"; }
+- if ( open( CONFIG, "$searchdir$PROG.$SiteConfig.conf" ) ) {
++ if ( open( CONFIG, "<$searchdir$PROG.$SiteConfig.conf" ) ) {
+ $FileConfig = "$searchdir$PROG.$SiteConfig.conf";
+ $FileSuffix = ".$SiteConfig";
+ if ($Debug){debug("Opened config: $searchdir$PROG.$SiteConfig.conf", 2);}
+ last;
+ }else{if ($Debug){debug("Unable to open config file: $searchdir$PROG.$SiteConfig.conf", 2);}}
+- if ( open( CONFIG, "$searchdir$PROG.conf" ) ) {
++ if ( open( CONFIG, "<$searchdir$PROG.conf" ) ) {
+ $FileConfig = "$searchdir$PROG.conf";
+ $FileSuffix = '';
+ if ($Debug){debug("Opened config: $searchdir$PROG.$SiteConfig.conf", 2);}
+ last;
+ }else{if ($Debug){debug("Unable to open config file: $searchdir$PROG.conf", 2);}}
+ #CL - Added to open config if full path is passed to awstats
+- if ( open( CONFIG, "$SiteConfig" ) ) {
++ if ( open( CONFIG, "<$SiteConfig" ) ) {
+ $FileConfig = "$SiteConfig";
+ $FileSuffix = '';
+ if ($Debug){debug("Opened config: $SiteConfig", 2);}
+@@ -2308,7 +2308,7 @@
+ {
+ $searchdir .= "/";
+ }
+- if ( open( LANG, "${searchdir}awstats-$_[0].txt" ) ) {
++ if ( open( LANG, "<${searchdir}awstats-$_[0].txt" ) ) {
+ $FileLang = "${searchdir}awstats-$_[0].txt";
+ last;
+ }
+@@ -2324,7 +2324,7 @@
+ {
+ $searchdir .= "/";
+ }
+- if ( open( LANG, "${searchdir}awstats-en.txt" ) ) {
++ if ( open( LANG, "<${searchdir}awstats-en.txt" ) ) {
+ $FileLang = "${searchdir}awstats-en.txt";
+ last;
+ }
+@@ -3640,7 +3640,7 @@
+
+ # Open files
+ if ($withread) {
+- open( HISTORY, $filetoread )
++ open( HISTORY, "<$filetoread" )
+ || error( "Couldn't open file \"$filetoread\" for read: $!",
+ "", "", $MigrateStats );
+ binmode HISTORY
+@@ -7498,7 +7498,7 @@
+ LoadCache_hashfiles( $filetoload, $hashtoload );
+ }
+ if ( !scalar keys %$hashtoload ) {
+- open( DNSFILE, "$filetoload" )
++ open( DNSFILE, "<$filetoload" )
+ or error("Couldn't open DNS Cache file \"$filetoload\": $!");
+
+ #binmode DNSFILE; # If we set binmode here, it seems that the load is broken on ActiveState 5.8
+@@ -7893,7 +7893,7 @@
+ my $filesource = shift;
+ my $filetarget = shift;
+ if ($Debug) { debug( "FileCopy($filesource,$filetarget)", 1 ); }
+- open( FILESOURCE, "$filesource" ) || return 1;
++ open( FILESOURCE, "<$filesource" ) || return 1;
+ open( FILETARGET, ">$filetarget" ) || return 1;
+ binmode FILESOURCE;
+ binmode FILETARGET;
+@@ -17520,7 +17520,7 @@
+
+ # Open log file
+ if ($Debug) { debug("Open log file \"$LogFile\""); }
+- open( LOG, "$LogFile" )
++ open( LOG, "<$LogFile" )
+ || error("Couldn't open server log file \"$LogFile\" : $!");
+ binmode LOG
+ ; # Avoid premature EOF due to log files corrupted with \cZ or bin chars
|
[-]
[+]
|
Added |
awstats-7.0-enable_ipv6.patch
^
|
@@ -0,0 +1,11 @@
+--- wwwroot/cgi-bin/awstats.model.conf.patched 2009-01-12 10:18:50.000000000 +0100
++++ wwwroot/cgi-bin/awstats.model.conf 2009-01-12 10:19:48.000000000 +0100
+@@ -1282,7 +1282,7 @@
+ # Note: If you are interested in having country report, you should use the
+ # geoip or geoipfree plugin instead of enabled reverse DNS lookup.
+ #
+-#LoadPlugin="ipv6"
++LoadPlugin="ipv6"
+
+ # Plugin: HashFiles
+ # Perl modules required: Storable
|
[-]
[+]
|
Added |
awstats-7.0-ftp_conf.patch
^
|
@@ -0,0 +1,1506 @@
+--- wwwroot/cgi-bin/awstats.model.conf.ftp
++++ wwwroot/cgi-bin/awstats.model.conf.ftp
+@@ -0,0 +1,1503 @@
++# AWSTATS CONFIGURE FILE 6.6
++#-----------------------------------------------------------------------------
++# Copy this file into awstats.www.mydomain.conf and edit this new config file
++# to setup AWStats (See documentation in docs/ directory).
++# The config file must be in /etc/awstats, /usr/local/etc/awstats or /etc (for
++# Unix/Linux) or same directory than awstats.pl (Windows, Mac, Unix/Linux...)
++# To include an environment variable in any parameter (AWStats will replace
++# it with its value when reading it), follow the example:
++# Parameter="__ENVNAME__"
++# Note that environment variable AWSTATS_CURRENT_CONFIG is always defined with
++# the config value in an AWStats running session and can be used like others.
++#-----------------------------------------------------------------------------
++# $Revision: 1.327 $ - $Author: eldy $ - $Date: 2006/04/21 22:28:49 $
++
++
++
++#-----------------------------------------------------------------------------
++# MAIN SETUP SECTION (Required to make AWStats work)
++#-----------------------------------------------------------------------------
++
++# "LogFile" contains the web, ftp or mail server log file to analyze.
++# Possible values: A full path, or a relative path from awstats.pl directory.
++# Example: "/var/log/apache/access.log"
++# Example: "../logs/mycombinedlog.log"
++# You can also use tags in this filename if you need a dynamic file name
++# depending on date or time (Replacement is made by AWStats at the beginning
++# of its execution). This is available tags :
++# %YYYY-n is replaced with 4 digits year we were n hours ago
++# %YY-n is replaced with 2 digits year we were n hours ago
++# %MM-n is replaced with 2 digits month we were n hours ago
++# %MO-n is replaced with 3 letters month we were n hours ago
++# %DD-n is replaced with day we were n hours ago
++# %HH-n is replaced with hour we were n hours ago
++# %NS-n is replaced with number of seconds at 00:00 since 1970
++# %WM-n is replaced with the week number in month (1-5)
++# %Wm-n is replaced with the week number in month (0-4)
++# %WY-n is replaced with the week number in year (01-52)
++# %Wy-n is replaced with the week number in year (00-51)
++# %DW-n is replaced with the day number in week (1-7, 1=sunday)
++# use n=24 if you need (1-7, 1=monday)
++# %Dw-n is replaced with the day number in week (0-6, 0=sunday)
++# use n=24 if you need (0-6, 0=monday)
++# Use 0 for n if you need current year, month, day, hour...
++# Example: "/var/log/access_log.%YYYY-0%MM-0%DD-0.log"
++# Example: "C:/WINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%DD-24.log"
++# You can also use a pipe if log file come from a pipe :
++# Example: "gzip -d </var/log/apache/access.log.gz |"
++# If there are several log files from load balancing servers :
++# Example: "/pathtotools/logresolvemerge.pl *.log |"
++#
++# for vsftpd:
++LogFile="/var/log/vsftpd.log"
++# for pure-ftpd:
++# /var/log/pureftpd.lo
++
++
++
++# Enter the log file type you want to analyze.
++# Possible values:
++# W - For a web log file
++# S - For a streaming log file
++# M - For a mail log file
++# F - For a ftp log file
++# Example: W
++# Default: W
++#
++LogType=F
++
++
++# Enter here your log format (Must match your web server config. See setup
++# instructions in documentation to know how to configure your web server to
++# have the required log format).
++# Possible values: 1,2,3,4 or "your_own_personalized_log_format"
++# 1 - Apache or Lotus Notes/Domino native combined log format (NCSA combined/XLF/ELF log format)
++# 2 - IIS or ISA format (IIS W3C log format). See FAQ-COM115 For ISA.
++# 3 - Webstar native log format.
++# 4 - Apache or Squid native common log format (NCSA common/CLF log format)
++# With LogFormat=4, some features (browsers, os, keywords...) can't work.
++# "your_own_personalized_log_format" = If your log is ftp, mail or other format,
++# you must use following keys to define the log format string (See FAQ for
++# ftp, mail or exotic web log format examples):
++# %host Client hostname or IP address (or Sender host for mail log)
++# %host_r Receiver hostname or IP address (for mail log)
++# %lognamequot Authenticated login/user with format: "john"
++# %logname Authenticated login/user with format: john
++# %time1 Date and time with format: [dd/mon/yyyy:hh:mm:ss +0000] or [dd/mon/yyyy:hh:mm:ss]
++# %time2 Date and time with format: yyyy-mm-dd hh:mm:ss
++# %time3 Date and time with format: Mon dd hh:mm:ss or Mon dd hh:mm:ss yyyy
++# %time4 Date and time with unix timestamp format: dddddddddd
++# %methodurl Method and URL with format: "GET /index.html HTTP/x.x"
++# %methodurlnoprot Method and URL with format: "GET /index.html"
++# %method Method with format: GET
++# %url URL only with format: /index.html
++# %query Query string (used by URLWithQuery option)
++# %code Return code status (with format for web log: 999)
++# %bytesd Size of document in bytes
++# %refererquot Referer page with format: "http://from.com/from.htm"
++# %referer Referer page with format: http://from.com/from.htm
++# %uabracket User agent with format: [Mozilla/4.0 (compatible, ...)]
++# %uaquot User agent with format: "Mozilla/4.0 (compatible, ...)"
++# %ua User agent with format: Mozilla/4.0_(compatible...)
++# %gzipin mod_gzip compression input bytes: In:XXX
++# %gzipout mod_gzip compression output bytes & ratio: Out:YYY:ZZpct.
++# %gzipratio mod_gzip compression ratio: ZZpct.
++# %deflateratio mod_deflate compression ratio with format: (ZZ)
++# %email EMail sender (for mail log)
++# %email_r EMail receiver (for mail log)
++# %virtualname Web sever virtual hostname. Use this tag when same log
++# contains data of several virtual web servers. AWStats
++# will discard records not in SiteDomain nor HostAliases
++# %cluster If log file is provided from several computers (merged by
++# logresolvemerge.pl), use this to define cluster id field.
++# %extraX Another field that you plan to use for building a
++# personalized report with ExtraSection feature (See later).
++# If your log format has some fields not included in this list, use:
++# %other Means another not used field
++# %otherquot Means another not used double quoted field
++#
++# Examples for Apache combined logs (following two examples are equivalent):
++# LogFormat = 1
++# LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"
++#
++# Example for IIS:
++# LogFormat = 2
++#
++LogFormat=1
++
++
++# If your log field's separator is not a space, you can change this parameter.
++# This parameter is not used if LogFormat is a predefined value (1,2,3,4)
++# Backslash can be used as escape character.
++# Example: " "
++# Example: "\t"
++# Example: "\|"
++# Example: ","
++# Default: " "
++#
++LogSeparator=" "
++
++
++# "SiteDomain" must contain the main domain name, or the main intranet web
++# server name, used to reach the web site.
++# If you share the same log file for several virtual web servers, this
++# parameter is used to tell AWStats to filter record that contains records for
++# this virtual host name only (So check that this virtual hostname can be
++# found in your log file and use a personalized log format that include the
++# %virtualname tag).
++# But for multi hosting a better solution is to have one log file for each
++# virtual web server. In this case, this parameter is only used to generate
++# full URL's links when ShowLinksOnUrl option is set to 1.
++# If analyzing mail log, enter here the domain name of mail server.
++# Example: "myintranetserver"
++# Example: "www.domain.com"
++# Example: "ftp.domain.com"
++# Example: "domain.com"
++#
++SiteDomain=""
++
++
++# Enter here all other possible domain names, addresses or virtual host
++# aliases someone can use to access your site. Try to keep only the minimum
++# number of possible names/addresses to have the best performances.
++# You can repeat the "SiteDomain" value in this list.
++# This parameter is used to analyze referer field in log file and to help
++# AWStats to know if a referer URL is a local URL of same site or an URL of
++# another site.
++# Note: Use space between each value.
++# Note: You can use regular expression values writing value with REGEX[value].
++# Note: You can also use @/mypath/myfile if list of aliases are in a file.
++# Example: "www.myserver.com localhost 127.0.0.1 REGEX[mydomain\.(net|org)$]"
++#
++HostAliases="localhost 127.0.0.1 REGEX[myserver\.com$]"
++
++
++# If you want to have hosts reported by name instead of ip address, AWStats
++# need to make reverse DNS lookups (if not already done in your log file).
++# With DNSLookup to 0, all hosts will be reported by their IP addresses and
++# not by the full hostname of visitors (except if names are already available
++# in log file).
++# If you want/need to set DNSLookup to 1, don't forget that this will reduce
++# dramatically AWStats update process speed. Do not use on large web sites.
++# Note: Reverse DNS lookup is done on IPv4 only (Enable ipv6 plugin for IPv6).
++# Note: Result of DNS Lookup can be used to build the Country report. However
++# it is highly recommanded to enable the plugin 'geoipfree' or 'geoip' to
++# have an accurate Country report with no need of DNS Lookup.
++# Possible values:
++# 0 - No DNS Lookup
++# 1 - DNS Lookup is fully enabled
++# 2 - DNS Lookup is made only from static DNS cache file (if it exists)
++# Default: 2
++#
++DNSLookup=1
++
++
++# When AWStats updates its statistics, it stores results of its analysis in
++# files (AWStats database). All those files are written in the directory
|
[-]
[+]
|
Added |
awstats-7.0-geo.patch
^
|
@@ -0,0 +1,11 @@
+--- wwwroot/cgi-bin/plugins/geoipfree.pm.orig 2009-05-27 18:55:50.000000000 +0200
++++ wwwroot/cgi-bin/plugins/geoipfree.pm 2011-01-07 20:40:12.979391392 +0100
+@@ -50,7 +50,7 @@
+ # <-----
+ # ENTER HERE CODE TO DO INIT PLUGIN ACTIONS
+ debug(" Plugin geoipfree: InitParams=$InitParams",1);
+- %TmpDomainLookup=();
++# %TmpDomainLookup=();
+ $gi = Geo::IPfree->new();
+ # $gi->Faster; # Do not enable Faster as the Memoize module is rarely available
+ # ----->
|
[-]
[+]
|
Added |
awstats-7.0-java15.patch
^
|
@@ -0,0 +1,11 @@
+--- wwwroot/classes/src/Makefile.pl.orig 2009-01-12 11:06:21.000000000 +0100
++++ wwwroot/classes/src/Makefile.pl 2009-01-12 11:06:38.000000000 +0100
+@@ -4,7 +4,7 @@
+ $FILENAME=awgraphapplet;
+
+ print "Build class file by compiling .java file\n";
+-$ret=`javac AWGraphApplet.java`;
++$ret=`javac -target 1.5 AWGraphApplet.java`;
+ print $ret;
+
+ print "Build jar file\n";
|
[-]
[+]
|
Added |
awstats-7.0-smtp_conf.patch
^
|
@@ -0,0 +1,1506 @@
+--- wwwroot/cgi-bin/awstats.model.conf.smtp
++++ wwwroot/cgi-bin/awstats.model.conf.smtp
+@@ -0,0 +1,1503 @@
++# AWSTATS CONFIGURE FILE 6.6
++#-----------------------------------------------------------------------------
++# Copy this file into awstats.www.mydomain.conf and edit this new config file
++# to setup AWStats (See documentation in docs/ directory).
++# The config file must be in /etc/awstats, /usr/local/etc/awstats or /etc (for
++# Unix/Linux) or same directory than awstats.pl (Windows, Mac, Unix/Linux...)
++# To include an environment variable in any parameter (AWStats will replace
++# it with its value when reading it), follow the example:
++# Parameter="__ENVNAME__"
++# Note that environment variable AWSTATS_CURRENT_CONFIG is always defined with
++# the config value in an AWStats running session and can be used like others.
++#-----------------------------------------------------------------------------
++# $Revision: 1.327 $ - $Author: eldy $ - $Date: 2006/04/21 22:28:49 $
++
++
++
++#-----------------------------------------------------------------------------
++# MAIN SETUP SECTION (Required to make AWStats work)
++#-----------------------------------------------------------------------------
++
++# "LogFile" contains the web, ftp or mail server log file to analyze.
++# Possible values: A full path, or a relative path from awstats.pl directory.
++# Example: "/var/log/apache/access.log"
++# Example: "../logs/mycombinedlog.log"
++# You can also use tags in this filename if you need a dynamic file name
++# depending on date or time (Replacement is made by AWStats at the beginning
++# of its execution). This is available tags :
++# %YYYY-n is replaced with 4 digits year we were n hours ago
++# %YY-n is replaced with 2 digits year we were n hours ago
++# %MM-n is replaced with 2 digits month we were n hours ago
++# %MO-n is replaced with 3 letters month we were n hours ago
++# %DD-n is replaced with day we were n hours ago
++# %HH-n is replaced with hour we were n hours ago
++# %NS-n is replaced with number of seconds at 00:00 since 1970
++# %WM-n is replaced with the week number in month (1-5)
++# %Wm-n is replaced with the week number in month (0-4)
++# %WY-n is replaced with the week number in year (01-52)
++# %Wy-n is replaced with the week number in year (00-51)
++# %DW-n is replaced with the day number in week (1-7, 1=sunday)
++# use n=24 if you need (1-7, 1=monday)
++# %Dw-n is replaced with the day number in week (0-6, 0=sunday)
++# use n=24 if you need (0-6, 0=monday)
++# Use 0 for n if you need current year, month, day, hour...
++# Example: "/var/log/access_log.%YYYY-0%MM-0%DD-0.log"
++# Example: "C:/WINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%DD-24.log"
++# You can also use a pipe if log file come from a pipe :
++# Example: "gzip -d </var/log/apache/access.log.gz |"
++# If there are several log files from load balancing servers :
++# Example: "/pathtotools/logresolvemerge.pl *.log |"
++#
++# for vsftpd:
++LogFile="/var/log/mail"
++# for pure-ftpd:
++# /var/log/pureftpd.lo
++
++
++
++# Enter the log file type you want to analyze.
++# Possible values:
++# W - For a web log file
++# S - For a streaming log file
++# M - For a mail log file
++# F - For a ftp log file
++# Example: W
++# Default: W
++#
++LogType=M
++
++
++# Enter here your log format (Must match your web server config. See setup
++# instructions in documentation to know how to configure your web server to
++# have the required log format).
++# Possible values: 1,2,3,4 or "your_own_personalized_log_format"
++# 1 - Apache or Lotus Notes/Domino native combined log format (NCSA combined/XLF/ELF log format)
++# 2 - IIS or ISA format (IIS W3C log format). See FAQ-COM115 For ISA.
++# 3 - Webstar native log format.
++# 4 - Apache or Squid native common log format (NCSA common/CLF log format)
++# With LogFormat=4, some features (browsers, os, keywords...) can't work.
++# "your_own_personalized_log_format" = If your log is ftp, mail or other format,
++# you must use following keys to define the log format string (See FAQ for
++# ftp, mail or exotic web log format examples):
++# %host Client hostname or IP address (or Sender host for mail log)
++# %host_r Receiver hostname or IP address (for mail log)
++# %lognamequot Authenticated login/user with format: "john"
++# %logname Authenticated login/user with format: john
++# %time1 Date and time with format: [dd/mon/yyyy:hh:mm:ss +0000] or [dd/mon/yyyy:hh:mm:ss]
++# %time2 Date and time with format: yyyy-mm-dd hh:mm:ss
++# %time3 Date and time with format: Mon dd hh:mm:ss or Mon dd hh:mm:ss yyyy
++# %time4 Date and time with unix timestamp format: dddddddddd
++# %methodurl Method and URL with format: "GET /index.html HTTP/x.x"
++# %methodurlnoprot Method and URL with format: "GET /index.html"
++# %method Method with format: GET
++# %url URL only with format: /index.html
++# %query Query string (used by URLWithQuery option)
++# %code Return code status (with format for web log: 999)
++# %bytesd Size of document in bytes
++# %refererquot Referer page with format: "http://from.com/from.htm"
++# %referer Referer page with format: http://from.com/from.htm
++# %uabracket User agent with format: [Mozilla/4.0 (compatible, ...)]
++# %uaquot User agent with format: "Mozilla/4.0 (compatible, ...)"
++# %ua User agent with format: Mozilla/4.0_(compatible...)
++# %gzipin mod_gzip compression input bytes: In:XXX
++# %gzipout mod_gzip compression output bytes & ratio: Out:YYY:ZZpct.
++# %gzipratio mod_gzip compression ratio: ZZpct.
++# %deflateratio mod_deflate compression ratio with format: (ZZ)
++# %email EMail sender (for mail log)
++# %email_r EMail receiver (for mail log)
++# %virtualname Web sever virtual hostname. Use this tag when same log
++# contains data of several virtual web servers. AWStats
++# will discard records not in SiteDomain nor HostAliases
++# %cluster If log file is provided from several computers (merged by
++# logresolvemerge.pl), use this to define cluster id field.
++# %extraX Another field that you plan to use for building a
++# personalized report with ExtraSection feature (See later).
++# If your log format has some fields not included in this list, use:
++# %other Means another not used field
++# %otherquot Means another not used double quoted field
++#
++# Examples for Apache combined logs (following two examples are equivalent):
++# LogFormat = 1
++# LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"
++#
++# Example for IIS:
++# LogFormat = 2
++#
++LogFormat=1
++
++
++# If your log field's separator is not a space, you can change this parameter.
++# This parameter is not used if LogFormat is a predefined value (1,2,3,4)
++# Backslash can be used as escape character.
++# Example: " "
++# Example: "\t"
++# Example: "\|"
++# Example: ","
++# Default: " "
++#
++LogSeparator=" "
++
++
++# "SiteDomain" must contain the main domain name, or the main intranet web
++# server name, used to reach the web site.
++# If you share the same log file for several virtual web servers, this
++# parameter is used to tell AWStats to filter record that contains records for
++# this virtual host name only (So check that this virtual hostname can be
++# found in your log file and use a personalized log format that include the
++# %virtualname tag).
++# But for multi hosting a better solution is to have one log file for each
++# virtual web server. In this case, this parameter is only used to generate
++# full URL's links when ShowLinksOnUrl option is set to 1.
++# If analyzing mail log, enter here the domain name of mail server.
++# Example: "myintranetserver"
++# Example: "www.domain.com"
++# Example: "ftp.domain.com"
++# Example: "domain.com"
++#
++SiteDomain=""
++
++
++# Enter here all other possible domain names, addresses or virtual host
++# aliases someone can use to access your site. Try to keep only the minimum
++# number of possible names/addresses to have the best performances.
++# You can repeat the "SiteDomain" value in this list.
++# This parameter is used to analyze referer field in log file and to help
++# AWStats to know if a referer URL is a local URL of same site or an URL of
++# another site.
++# Note: Use space between each value.
++# Note: You can use regular expression values writing value with REGEX[value].
++# Note: You can also use @/mypath/myfile if list of aliases are in a file.
++# Example: "www.myserver.com localhost 127.0.0.1 REGEX[mydomain\.(net|org)$]"
++#
++HostAliases="localhost 127.0.0.1 REGEX[myserver\.com$]"
++
++
++# If you want to have hosts reported by name instead of ip address, AWStats
++# need to make reverse DNS lookups (if not already done in your log file).
++# With DNSLookup to 0, all hosts will be reported by their IP addresses and
++# not by the full hostname of visitors (except if names are already available
++# in log file).
++# If you want/need to set DNSLookup to 1, don't forget that this will reduce
++# dramatically AWStats update process speed. Do not use on large web sites.
++# Note: Reverse DNS lookup is done on IPv4 only (Enable ipv6 plugin for IPv6).
++# Note: Result of DNS Lookup can be used to build the Country report. However
++# it is highly recommanded to enable the plugin 'geoipfree' or 'geoip' to
++# have an accurate Country report with no need of DNS Lookup.
++# Possible values:
++# 0 - No DNS Lookup
++# 1 - DNS Lookup is fully enabled
++# 2 - DNS Lookup is made only from static DNS cache file (if it exists)
++# Default: 2
++#
++DNSLookup=1
++
++
++# When AWStats updates its statistics, it stores results of its analysis in
++# files (AWStats database). All those files are written in the directory
|
[-]
[+]
|
Added |
awstats-7.0-www_SiteConfig.patch
^
|
@@ -0,0 +1,14 @@
+--- wwwroot/cgi-bin/awstats.pl.orig 2011-01-07 20:26:06.811019892 +0100
++++ wwwroot/cgi-bin/awstats.pl 2011-01-07 20:35:22.948407496 +0100
+@@ -1744,6 +1744,11 @@
+ $FileSuffix = ".$SiteConfig";
+ if ($Debug){debug("Opened config: $searchdir$PROG.$SiteConfig.conf", 2);}
+ last;
++ }else{if ( open( CONFIG, "<$searchdir$PROG.www.$SiteConfig.conf" ) ) {
++ $FileConfig = "$searchdir$PROG.www.$SiteConfig.conf";
++ $FileSuffix = ".www.$SiteConfig";
++ if ($Debug){debug("Opened config: $searchdir$PROG.www.$SiteConfig.conf", 2);}
++ last;
+ }else{if ($Debug){debug("Unable to open config file: $searchdir$PROG.$SiteConfig.conf", 2);}}
+ if ( open( CONFIG, "<$searchdir$PROG.conf" ) ) {
+ $FileConfig = "$searchdir$PROG.conf";
|
[-]
[+]
|
Added |
awstats-7.0.patch
^
|
@@ -0,0 +1,104 @@
+--- wwwroot/cgi-bin/awstats.model.conf.orig 2009-01-12 10:11:02.000000000 +0100
++++ wwwroot/cgi-bin/awstats.model.conf 2009-01-12 10:16:19.000000000 +0100
+@@ -48,8 +48,9 @@
+ # If there are several log files from load balancing servers :
+ # Example: "/pathtotools/logresolvemerge.pl *.log |"
+ #
+-LogFile="/var/log/httpd/mylog.log"
+-
++LogFile="/var/log/apache2/awstats.log"
++#Change to this one for Apache 1.x
++#LogFile="/var/log/httpd/awstats.log"
+
+ # Enter the log file type you want to analyze.
+ # Possible values:
+@@ -185,7 +186,7 @@
+ # 2 - DNS Lookup is made only from static DNS cache file (if it exists)
+ # Default: 2
+ #
+-DNSLookup=2
++DNSLookup=1
+
+
+ # When AWStats updates its statistics, it stores results of its analysis in
+@@ -200,7 +201,7 @@
+ # Example: "C:/awstats_data_dir"
+ # Default: "." (means same directory as awstats.pl)
+ #
+-DirData="."
++DirData="/var/cache/awstats"
+
+
+ # Relative or absolute web URL of your awstats cgi-bin directory.
+@@ -219,7 +220,7 @@
+ # Example: "../icon"
+ # Default: "/icon" (means you must copy icon directories in "/mywwwroot/icon")
+ #
+-DirIcons="/icon"
++DirIcons="/icons/awstats"
+
+
+ # When this parameter is set to 1, AWStats adds a button on report page to
+@@ -909,7 +910,7 @@
+ # Example: "/usr/share/awstats/lang"
+ # Default: "./lang" (means lang directory is in same location than awstats.pl)
+ #
+-DirLang="./lang"
++DirLang="/var/lib/awstats/lang"
+
+
+ # Show menu header with reports' links
+@@ -1154,7 +1155,7 @@
+ # Example: "en es fr nl de"
+ # Default: ""
+ #
+-ShowFlagLinks=""
++ShowFlagLinks="de en es fr nl"
+
+
+ # Each URL, shown in stats report views, are links you can click.
+@@ -1265,7 +1266,7 @@
+ # Note that enabling this kind of help will increased HTML report pages size,
+ # so server load and bandwidth.
+ #
+-#LoadPlugin="tooltips"
++LoadPlugin="tooltips"
+
+ # Plugin: DecodeUTFKeys
+ # Perl modules required: Encode and URI::Escape
+@@ -1302,7 +1303,7 @@
+ # accurate version including updates (http://www.maxmind.com/app/perl?rId=awstat)
+ # This plugin reduces AWStats speed of 8% !
+ #
+-#LoadPlugin="geoip GEOIP_STANDARD /pathto/GeoIP.dat"
++#LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"
+
+ # Plugin: GeoIPfree
+ # Perl modules required: Geo::IPfree version 0.2+ (from Graciliano M.P.)
+@@ -1327,7 +1328,7 @@
+ # You need to purchase a license from Maxmind to get/use the Region database.
+ # This plugin reduces AWStats speed.
+ #
+-#LoadPlugin="geoip_region_maxmind GEOIP_STANDARD /pathto/GeoIPRegion.dat"
++#LoadPlugin="geoip_region_maxmind GEOIP_STANDARD /usr/share/GeoIP/GeoIPRegion.dat"
+
+ # Plugin: GeoIP_City_Maxmind
+ # Perl modules required: Geo::IP (from Maxmind)
+@@ -1352,7 +1353,7 @@
+ # You need to purchase a license from Maxmind to get/use the ISP database.
+ # This plugin reduces AWStats speed.
+ #
+-#LoadPlugin="geoip_isp_maxmind GEOIP_STANDARD /pathto/GeoIPISP.dat"
++#LoadPlugin="geoip_isp_maxmind GEOIP_STANDARD /usr/share/GeoIP/GeoIPISP.dat"
+
+ # Plugin: GeoIP_Org_Maxmind
+ # Perl modules required: Geo::IP (from Maxmind)
+@@ -1363,7 +1364,7 @@
+ # You need to purchase a license from Maxmind to get/use the Org database.
+ # This plugin reduces AWStats speed.
+ #
+-#LoadPlugin="geoip_org_maxmind GEOIP_STANDARD /pathto/GeoIPOrg.dat"
++#LoadPlugin="geoip_org_maxmind GEOIP_STANDARD /usr/share/GeoIP/GeoIPOrg.dat"
+
+ # Plugin: UserInfo
+ # Perl modules required: None
|
|
Added |
awstats-7.0.tar.bz2
^
|
[-]
[+]
|
Added |
awstats.spec69
^
|
@@ -0,0 +1,159 @@
+#
+# spec file for package awstats (Version 6.95)
+#
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+# norootforbuild
+%define _default_patch_fuzz 3
+
+Name: awstats
+License: GNU General Public License (GPL)
+Group: Productivity/Networking/Web/Utilities
+Version: 6.95
+Release: 70
+URL: http://awstats.sourceforge.net
+Summary: Advanced Web Statistics
+Source: awstats-%{version}.tar.bz2
+Source2: module.awstats
+Source4: cron.d.awstats
+Source5: awstats-update
+Source6: awstats-update.8
+Source7: awstats.logrotate
+Source8: apache2.awstats.conf
+Source9: awstats-rpmlintrc
+Patch: %{name}-%{version}.patch
+Patch1: %{name}-%{version}-CVE-2006-2237_read_open.patch
+Patch2: %{name}-%{version}-geo.patch
+Patch3: %{name}-%{version}-enable_ipv6.patch
+Patch4: %{name}-%{version}-ftp_conf.patch
+Patch5: %{name}-%{version}-smtp_conf.patch
+Patch7: %{name}-%{version}-www_SiteConfig.patch
+##Patch8: %{name}-%{version}-dos2unix-Makefile.patch
+Patch9: %{name}-%{version}-browsers.patch
+Patch10: %{name}-%{version}-java15.patch
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+AutoReqProv: no
+Requires: apache2 perl perl-Net-DNS logrotate cron
+BuildRequires: java2-devel-packages dos2unix
+
+%if 0%{?suse_version}
+%define apache_serverroot /srv/www
+%endif
+
+%if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version}
+%define apache_serverroot /var/www
+%endif
+
+%description
+Advanced Web Statistics (AWStats) is a powerful Web server log file
+analyzer (Perl script) that shows Web statistics including visitors,
+pages, hits, hours, search engines, keywords used to find your site,
+broken links, robots, and more.
+
+
+
+%prep
+%setup
+%patch
+%patch1
+%patch2
+%patch3
+%patch4
+%patch5
+%patch7
+##%patch8
+%patch9
+%patch10
+find -type f -name .cvsignore -print0 | xargs -r0 rm -v
+
+%build
+pushd wwwroot/classes/src
+ ./Makefile.pl
+popd
+# fix dos linebreaks in tools
+pushd tools
+ dos2unix *.pl
+popd
+
+%install
+%__install -d -m 755 $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin
+%__install -d -m 755 $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin/classes
+%__install -d -m 755 $RPM_BUILD_ROOT%{apache_serverroot}/htdocs/icons/awstats
+%__install -d -m 755 $RPM_BUILD_ROOT/var/lib/awstats/lang
+%__install -d -m 755 $RPM_BUILD_ROOT/var/cache/awstats
+%__install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/apache2
+%__install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.d
+%__install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/awstats
+%__install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.d
+%__install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
+%__install -d -m 755 $RPM_BUILD_ROOT/usr/sbin
+%__install -d -m 755 $RPM_BUILD_ROOT/usr/share/apache2/icons/awstats/
+%__install -d -m 755 $RPM_BUILD_ROOT/%{_mandir}/man8
+cp -a wwwroot/icon/* $RPM_BUILD_ROOT%{apache_serverroot}/htdocs/icons/awstats/
+cp -a wwwroot/icon/* $RPM_BUILD_ROOT/usr/share/apache2/icons/awstats/
+cp -a wwwroot/cgi-bin/lang $RPM_BUILD_ROOT/var/lib/awstats/
+cp -a wwwroot/cgi-bin/{lib,plugins} $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin/
+cp -a wwwroot/classes/* $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin/classes/
+cp -a wwwroot/cgi-bin/awstats.pl $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin/
+cp -a wwwroot/cgi-bin/awstats.model.conf $RPM_BUILD_ROOT%{_sysconfdir}/awstats/awstats.conf.web
+cp -a wwwroot/cgi-bin/awstats.model.conf.ftp $RPM_BUILD_ROOT%{_sysconfdir}/awstats/awstats.conf.ftp
+cp -a wwwroot/cgi-bin/awstats.model.conf.smtp $RPM_BUILD_ROOT%{_sysconfdir}/awstats/awstats.conf.smtp
+%__install -m 644 $RPM_SOURCE_DIR/apache2.awstats.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.d/awstats.conf
+%__install -d -m 755 $RPM_BUILD_ROOT/var/adm/fillup-templates
+%__install -m 644 $RPM_SOURCE_DIR/cron.d.awstats $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/suse-awstats
+%__install -m 755 $RPM_SOURCE_DIR/awstats-update $RPM_BUILD_ROOT/usr/sbin
+%__install -m 644 $RPM_SOURCE_DIR/awstats-update.8 $RPM_BUILD_ROOT%{_mandir}/man8
+%__install -m 644 $RPM_SOURCE_DIR/awstats.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/awstats
+rm -rf $RPM_BUILD_ROOT%{apache_serverroot}/cgi-bin/lib/browsers.pm.orig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc README.TXT docs/* wwwroot/js wwwroot/css tools
+%config(noreplace) /etc/logrotate.d/awstats
+%dir /etc/awstats
+%attr(644,root,root) %config /etc/awstats/awstats.conf.web
+%attr(644,root,root) %config /etc/awstats/awstats.conf.ftp
+%attr(644,root,root) %config /etc/awstats/awstats.conf.smtp
+%config /etc/cron.d/suse-awstats
+%attr(755,root,root) %{_sbindir}/awstats-update
+%{_mandir}/man8/awstats-update.8.gz
+%attr(755,root,root) %{apache_serverroot}/cgi-bin/awstats.pl
+%{apache_serverroot}/cgi-bin/plugins
+%{apache_serverroot}/cgi-bin/lib
+%{apache_serverroot}/cgi-bin/classes
+%dir %{apache_serverroot}/htdocs/icons
+%{apache_serverroot}/htdocs/icons/*
+%dir /var/lib/awstats
+/var/lib/awstats/lang
+%dir /var/cache/awstats
+%dir /etc/apache2
+%dir /etc/apache2/conf.d
+%dir /usr/share/apache2
+%dir /usr/share/apache2/icons
+%config /etc/apache2/conf.d/awstats.conf
+%{_datadir}/apache2/icons/awstats
+
+%changelog
+* Sat Oct 10 2009 Carsten Schoene <vhcs@j0ke.net> - 6.95-70
+- update to prerelease 6.95
+ - removed dos2unix makefile patch
+ - reworked geoip & browser patch
+
+* Mon Jan 12 2009 Carsten Schoene <vhcs@j0ke.net> - 6.9-50
+- update to release 6.9
+ - reworked all patches
+
+* Sat Nov 15 2008 Carsten Schoene <vhcs@j0ke.net> - 6.8-45
+- update to release 6.8
+ - cross-distribution build
+ - reworked some patches
+ - added www_SiteConfig patch
|