summaryrefslogtreecommitdiff
path: root/www/awstats/patches
diff options
context:
space:
mode:
authorminskim <minskim>2006-05-16 18:13:55 +0000
committerminskim <minskim>2006-05-16 18:13:55 +0000
commitd445fd0ec9c11e78726d852be61e478c482f64ce (patch)
treee3d4a629824534007e25c0457e6fdc8bb3bb7486 /www/awstats/patches
parent4af5d3837d8f9c720c3023b022ff11b9cc9e2374 (diff)
downloadpkgsrc-d445fd0ec9c11e78726d852be61e478c482f64ce.tar.gz
Update awstats to 6.6.
Major changes since 6.4: - Fixed CVE-2006-2237. - All geoip plugins support the PurePerl version. - Possible use of vhost in extra section. - Support IPv6 in AllowAccessFromWebToFollowingIPAddresses parameter. - Added svn family to browsers detection. - RSS catcher/readers in robot database. - LogFormat=2 can now change its value dynamically if logformat change. - More new features and bug fixes.
Diffstat (limited to 'www/awstats/patches')
-rw-r--r--www/awstats/patches/patch-aa353
-rw-r--r--www/awstats/patches/patch-ab20
2 files changed, 10 insertions, 363 deletions
diff --git a/www/awstats/patches/patch-aa b/www/awstats/patches/patch-aa
deleted file mode 100644
index 0363c241a83..00000000000
--- a/www/awstats/patches/patch-aa
+++ /dev/null
@@ -1,353 +0,0 @@
-$NetBSD: patch-aa,v 1.3 2005/08/20 14:28:03 adrianp Exp $
-
---- wwwroot/cgi-bin/awstats.pl.orig 2005-02-24 21:02:23.000000000 +0000
-+++ wwwroot/cgi-bin/awstats.pl
-@@ -625,8 +625,10 @@ a:hover { color: #$color_hover; text-d
- EOF
- # Call to plugins' function AddHTMLStyles
- foreach my $pluginname (keys %{$PluginsLoaded{'AddHTMLStyles'}}) {
-- my $function="AddHTMLStyles_$pluginname()";
-- eval("$function");
-+# my $function="AddHTMLStyles_$pluginname()";
-+# eval("$function");
-+ my $function="AddHTMLStyles_$pluginname";
-+ &$function();
- }
-
- if ($BuildReportFormat eq 'xhtml' || $BuildReportFormat eq 'xml') { print ($ENV{'HTTP_USER_AGENT'}=~/Firebird/i?"//-->\n":"]]>\n"); }
-@@ -660,8 +662,10 @@ sub html_end {
-
- # Call to plugins' function AddHTMLBodyFooter
- foreach my $pluginname (keys %{$PluginsLoaded{'AddHTMLBodyFooter'}}) {
-- my $function="AddHTMLBodyFooter_$pluginname()";
-- eval("$function");
-+# my $function="AddHTMLBodyFooter_$pluginname()";
-+# eval("$function");
-+ my $function="AddHTMLBodyFooter_$pluginname";
-+ &$function();
- }
-
- if ($FrameName ne 'index' && $FrameName ne 'mainleft') {
-@@ -3254,15 +3258,19 @@ sub Read_History_With_TmpUpdate {
- # The plugin for this section was loaded
- $found=1;
- my $issectiontoload=$SectionsToLoad{"plugin_$pluginname"};
-- my $function="SectionReadHistory_$pluginname(\$issectiontoload,\$readxml,\$xmleb,\$countlines)";
-- eval("$function");
-+# my $function="SectionReadHistory_$pluginname(\$issectiontoload,\$readxml,\$xmleb,\$countlines)";
-+# eval("$function");
-+ my $function="SectionReadHistory_$pluginname";
-+ &$function($issectiontoload,$readxml,$xmleb,$countlines);
- delete $SectionsToLoad{"plugin_$pluginname"};
- if ($SectionsToSave{"plugin_$pluginname"}) {
- Save_History("plugin_$pluginname",$year,$month);
- delete $SectionsToSave{"plugin_$pluginname"};
- if ($withpurge) {
-- my $function="SectionInitHashArray_$pluginname()";
-- eval("$function");
-+# my $function="SectionInitHashArray_$pluginname()";
-+# eval("$function");
-+ my $function="SectionInitHashArray_$pluginname";
-+ &$function();
- }
- }
- last;
-@@ -3977,8 +3985,10 @@ sub Save_History {
- if ($AtLeastOneSectionPlugin && $sectiontosave =~ /^plugin_(\w+)$/i) {
- my $pluginname=$1;
- if ($PluginsLoaded{'SectionInitHashArray'}{"$pluginname"}) {
-- my $function="SectionWriteHistory_$pluginname(\$xml,\$xmlbb,\$xmlbs,\$xmlbe,\$xmlrb,\$xmlrs,\$xmlre,\$xmleb,\$xmlee)";
-- eval("$function");
-+# my $function="SectionWriteHistory_$pluginname(\$xml,\$xmlbb,\$xmlbs,\$xmlbe,\$xmlrb,\$xmlrs,\$xmlre,\$xmleb,\$xmlee)";
-+# eval("$function");
-+ my $function="SectionWriteHistory_$pluginname";
-+ &$function($xml,$xmlbb,$xmlbs,$xmlbe,$xmlrb,$xmlrs,$xmlre,$xmleb,$xmlee);
- }
- }
-
-@@ -4203,8 +4213,10 @@ sub Init_HashArray {
- %{'_section_' . $ix . '_l'} = %{'_section_' . $ix . '_p'} = ();
- }
- foreach my $pluginname (keys %{$PluginsLoaded{'SectionInitHashArray'}}) {
-- my $function="SectionInitHashArray_$pluginname()";
-- eval("$function");
-+# my $function="SectionInitHashArray_$pluginname()";
-+# eval("$function");
-+ my $function="SectionInitHashArray_$pluginname";
-+ &$function();
- }
- }
-
-@@ -4788,8 +4800,10 @@ sub ShowUserInfo {
- my $user=shift;
- # Call to plugins' function ShowInfoUser
- foreach my $pluginname (sort keys %{$PluginsLoaded{'ShowInfoUser'}}) {
-- my $function="ShowInfoUser_$pluginname('$user')";
-- eval("$function");
-+# my $function="ShowInfoUser_$pluginname('$user')";
-+# eval("$function");
-+ my $function="ShowInfoUser_$pluginname";
-+ &$function($user);
- }
- }
-
-@@ -4804,8 +4818,10 @@ sub ShowClusterInfo {
- my $user=shift;
- # Call to plugins' function ShowInfoCluster
- foreach my $pluginname (sort keys %{$PluginsLoaded{'ShowInfoCluster'}}) {
-- my $function="ShowInfoCluster_$pluginname('$user')";
-- eval("$function");
-+# my $function="ShowInfoCluster_$pluginname('$user')";
-+# eval("$function");
-+ my $function="ShowInfoCluster_$pluginname";
-+ &$function($user);
- }
- }
-
-@@ -4820,8 +4836,10 @@ sub ShowHostInfo {
- my $host=shift;
- # Call to plugins' function ShowInfoHost
- foreach my $pluginname (sort keys %{$PluginsLoaded{'ShowInfoHost'}}) {
-- my $function="ShowInfoHost_$pluginname('$host')";
-- eval("$function");
-+# my $function="ShowInfoHost_$pluginname('$host')";
-+# eval("$function");
-+ my $function="ShowInfoHost_$pluginname";
-+ &$function($host);
- }
- }
-
-@@ -4838,8 +4856,10 @@ sub ShowURLInfo {
-
- # Call to plugins' function ShowInfoURL
- foreach my $pluginname (keys %{$PluginsLoaded{'ShowInfoURL'}}) {
-- my $function="ShowInfoURL_$pluginname('$url')";
-- eval("$function");
-+# my $function="ShowInfoURL_$pluginname('$url')";
-+# eval("$function");
-+ my $function="ShowInfoURL_$pluginname";
-+ &$function($url);
- }
-
- if (length($nompage)>$MaxLengthOfShownURL) { $nompage=substr($nompage,0,$MaxLengthOfShownURL)."..."; }
-@@ -5154,8 +5174,10 @@ sub ShowMenuCateg {
- my $linetitle=0;
- # Call to plugins' function AddHTMLMenuLink
- foreach my $pluginname (keys %{$PluginsLoaded{'AddHTMLMenuLink'}}) {
-- my $function="AddHTMLMenuLink_$pluginname('$categ',\$menu,\$menulink,\$menutext)";
-- eval("$function");
-+# my $function="AddHTMLMenuLink_$pluginname('$categ',\$menu,\$menulink,\$menutext)";
-+# eval("$function");
-+ my $function="AddHTMLMenuLink_$pluginname";
-+ &$function($categ,$menu,$menulink,$menutext);
- }
- foreach my $key (%$menu) { if ($menu->{$key}>0) { $linetitle++; last; } }
- if (! $linetitle) { return; }
-@@ -5723,8 +5745,10 @@ if (! $HeaderHTMLSent) { &html_head; }
-
- # AWStats output is replaced by a plugin output
- if ($PluginMode) {
-- my $function="BuildFullHTMLOutput_$PluginMode()";
-- eval("$function");
-+# my $function="BuildFullHTMLOutput_$PluginMode()";
-+# eval("$function");
-+ my $function="BuildFullHTMLOutput_$PluginMode";
-+ &$function();
- if ($? || $@) { error("$@"); }
- &html_end(0);
- exit 0;
-@@ -6623,8 +6647,10 @@ if ($UpdateStats && $FrameName ne 'index
- elsif ($PluginsLoaded{'GetCountryCodeByAddr'}{'geoip'}) { $Domain=GetCountryCodeByAddr_geoip($HostResolved); }
- if ($AtLeastOneSectionPlugin) {
- foreach my $pluginname (keys %{$PluginsLoaded{'SectionProcessIp'}}) {
-- my $function="SectionProcessIp_$pluginname(\$HostResolved)";
-- eval("$function");
-+# my $function="SectionProcessIp_$pluginname(\$HostResolved)";
-+# eval("$function");
-+ my $function="SectionProcessIp_$pluginname";
-+ &$function($HostResolved);
- }
- }
- }
-@@ -6638,8 +6664,10 @@ if ($UpdateStats && $FrameName ne 'index
- elsif ($HostResolved =~ /\.(\w+)$/) { $Domain=$1; }
- if ($AtLeastOneSectionPlugin) {
- foreach my $pluginname (keys %{$PluginsLoaded{'SectionProcessIp'}}) {
-- my $function="SectionProcessIp_$pluginname(\$Host)";
-- eval("$function");
-+# my $function="SectionProcessIp_$pluginname(\$Host)";
-+# eval("$function");
-+ my $function="SectionProcessIp_$pluginname";
-+ &$function($Host);
- }
- }
- }
-@@ -6649,8 +6677,10 @@ if ($UpdateStats && $FrameName ne 'index
- elsif ($HostResolved =~ /\.(\w+)$/) { $Domain=$1; }
- if ($AtLeastOneSectionPlugin) {
- foreach my $pluginname (keys %{$PluginsLoaded{'SectionProcessHostname'}}) {
-- my $function="SectionProcessHostname_$pluginname(\$HostResolved)";
-- eval("$function");
-+# my $function="SectionProcessHostname_$pluginname(\$HostResolved)";
-+# eval("$function");
-+ my $function="SectionProcessHostname_$pluginname";
-+ &$function($HostResolved);
- }
- }
- }
-@@ -7319,8 +7349,10 @@ if (scalar keys %HTMLOutput) {
-
- # Call to plugins' function AddHTMLBodyHeader
- foreach my $pluginname (keys %{$PluginsLoaded{'AddHTMLBodyHeader'}}) {
-- my $function="AddHTMLBodyHeader_$pluginname()";
-- eval("$function");
-+# my $function="AddHTMLBodyHeader_$pluginname()";
-+# eval("$function");
-+ my $function="AddHTMLBodyHeader_$pluginname";
-+ &$function();
- }
-
- my $WIDTHMENU1=($FrameName eq 'mainleft'?$FRAMEWIDTH:150);
-@@ -7462,8 +7494,10 @@ if (scalar keys %HTMLOutput) {
-
- # Call to plugins' function AddHTMLMenuHeader
- foreach my $pluginname (keys %{$PluginsLoaded{'AddHTMLMenuHeader'}}) {
-- my $function="AddHTMLMenuHeader_$pluginname()";
-- eval("$function");
-+# my $function="AddHTMLMenuHeader_$pluginname()";
-+# eval("$function");
-+ my $function="AddHTMLMenuHeader_$pluginname";
-+ &$function();
- }
-
- # MENU
-@@ -7572,8 +7606,10 @@ if (scalar keys %HTMLOutput) {
-
- # Call to plugins' function AddHTMLMenuFooter
- foreach my $pluginname (keys %{$PluginsLoaded{'AddHTMLMenuFooter'}}) {
-- my $function="AddHTMLMenuFooter_$pluginname()";
-- eval("$function");
-+# my $function="AddHTMLMenuFooter_$pluginname()";
-+# eval("$function");
-+ my $function="AddHTMLMenuFooter_$pluginname";
-+ &$function();
- }
-
- # Exit if left frame
-@@ -7666,8 +7702,10 @@ if (scalar keys %HTMLOutput) {
-
- # Call to plugins' function AddHTMLContentHeader
- foreach my $pluginname (keys %{$PluginsLoaded{'AddHTMLContentHeader'}}) {
-- my $function="AddHTMLContentHeader_$pluginname()";
-- eval("$function");
-+# my $function="AddHTMLContentHeader_$pluginname()";
-+# eval("$function");
-+ my $function="AddHTMLContentHeader_$pluginname";
-+ &$function();
- }
-
- # Output particular part
-@@ -7946,8 +7984,10 @@ if (scalar keys %HTMLOutput) {
- if ($HTMLOutput{'urldetail'} || $HTMLOutput{'urlentry'} || $HTMLOutput{'urlexit'}) {
- # Call to plugins' function ShowPagesFilter
- foreach my $pluginname (keys %{$PluginsLoaded{'ShowPagesFilter'}}) {
-- my $function="ShowPagesFilter_$pluginname()";
-- eval("$function");
-+# my $function="ShowPagesFilter_$pluginname()";
-+# eval("$function");
-+ my $function="ShowPagesFilter_$pluginname";
-+ &$function();
- }
- print "$Center<a name=\"urls\">&nbsp;</a><br />\n";
- # Show filter form
-@@ -7977,8 +8017,10 @@ if (scalar keys %HTMLOutput) {
- if ($ShowPagesStats =~ /X/i) { print "<th bgcolor=\"#$color_x\" width=\"80\">$Message[116]</th>"; }
- # Call to plugins' function ShowPagesAddField
- foreach my $pluginname (keys %{$PluginsLoaded{'ShowPagesAddField'}}) {
-- my $function="ShowPagesAddField_$pluginname('title')";
-- eval("$function");
-+# my $function="ShowPagesAddField_$pluginname('title')";
-+# eval("$function");
-+ my $function="ShowPagesAddField_$pluginname()";
-+ &$function('title');
- }
- print "<th>&nbsp;</th></tr>\n";
- $total_p=$total_k=$total_e=$total_x=0;
-@@ -8010,8 +8052,10 @@ if (scalar keys %HTMLOutput) {
- if ($ShowPagesStats =~ /X/i) { print "<td>".($_url_x{$key}?$_url_x{$key}:"&nbsp;")."</td>"; }
- # Call to plugins' function ShowPagesAddField
- foreach my $pluginname (keys %{$PluginsLoaded{'ShowPagesAddField'}}) {
-- my $function="ShowPagesAddField_$pluginname('$key')";
-- eval("$function");
-+# my $function="ShowPagesAddField_$pluginname('$key')";
-+# eval("$function");
-+ my $function="ShowPagesAddField_$pluginname";
-+ &$function($key);
- }
- print "<td class=\"aws\">";
- # alt and title are not provided to reduce page size
-@@ -8039,8 +8083,10 @@ if (scalar keys %HTMLOutput) {
- if ($ShowPagesStats =~ /X/i) { print "<td>".($rest_x?$rest_x:"&nbsp;")."</td>"; }
- # Call to plugins' function ShowPagesAddField
- foreach my $pluginname (keys %{$PluginsLoaded{'ShowPagesAddField'}}) {
-- my $function="ShowPagesAddField_$pluginname('')";
-- eval("$function");
-+# my $function="ShowPagesAddField_$pluginname('')";
-+# eval("$function");
-+ my $function="ShowPagesAddField_$pluginname";
-+ &$function('');
- }
- print "<td>&nbsp;</td></tr>\n";
- }
-@@ -8485,8 +8531,10 @@ if (scalar keys %HTMLOutput) {
- if ($htmloutput =~ /^plugin_(\w+)$/) {
- my $pluginname=$1;
- print "$Center<a name=\"plugin_$pluginname\">&nbsp;</a><br />";
-- my $function="AddHTMLGraph_$pluginname()";
-- eval("$function");
-+# my $function="AddHTMLGraph_$pluginname()";
-+# eval("$function");
-+ my $function="AddHTMLGraph_$pluginname";
-+ &$function();
- &html_end(1);
- }
- }
-@@ -9592,8 +9640,10 @@ if (scalar keys %HTMLOutput) {
- if ($ShowPagesStats =~ /X/i) { print "<th bgcolor=\"#$color_x\" width=\"80\">$Message[116]</th>"; }
- # Call to plugins' function ShowPagesAddField
- foreach my $pluginname (keys %{$PluginsLoaded{'ShowPagesAddField'}}) {
-- my $function="ShowPagesAddField_$pluginname('title')";
-- eval("$function");
-+# my $function="ShowPagesAddField_$pluginname('title')";
-+# eval("$function");
-+ my $function="ShowPagesAddField_$pluginname";
-+ &$function('title');
- }
- print "<th>&nbsp;</th></tr>\n";
- $total_p=$total_e=$total_x=$total_k=0;
-@@ -9624,8 +9674,10 @@ if (scalar keys %HTMLOutput) {
- if ($ShowPagesStats =~ /X/i) { print "<td>".($_url_x{$key}?$_url_x{$key}:"&nbsp;")."</td>"; }
- # Call to plugins' function ShowPagesAddField
- foreach my $pluginname (keys %{$PluginsLoaded{'ShowPagesAddField'}}) {
-- my $function="ShowPagesAddField_$pluginname('$key')";
-- eval("$function");
-+# my $function="ShowPagesAddField_$pluginname('$key')";
-+# eval("$function");
-+ my $function="ShowPagesAddField_$pluginname";
-+ &$function($key);
- }
- print "<td class=\"aws\">";
- if ($ShowPagesStats =~ /P/i && $LogType ne 'F') { print "<img src=\"$DirIcons\/other\/$BarPng{'hp'}\" width=\"$bredde_p\" height=\"4\"".AltTitle("")." /><br />"; }
-@@ -9653,8 +9705,10 @@ if (scalar keys %HTMLOutput) {
- if ($ShowPagesStats =~ /X/i) { print "<td>".($rest_x?$rest_x:"&nbsp;")."</td>"; }
- # Call to plugins' function ShowPagesAddField
- foreach my $pluginname (keys %{$PluginsLoaded{'ShowPagesAddField'}}) {
-- my $function="ShowPagesAddField_$pluginname('')";
-- eval("$function");
-+# my $function="ShowPagesAddField_$pluginname('')";
-+# eval("$function");
-+ my $function="ShowPagesAddField_$pluginname";
-+ &$function('');
- }
- print "<td>&nbsp;</td></tr>\n";
- }
diff --git a/www/awstats/patches/patch-ab b/www/awstats/patches/patch-ab
index bc180b52d6a..e1e6e31207e 100644
--- a/www/awstats/patches/patch-ab
+++ b/www/awstats/patches/patch-ab
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.3 2005/08/26 20:22:56 adrianp Exp $
+$NetBSD: patch-ab,v 1.4 2006/05/16 18:13:55 minskim Exp $
---- tools/awstats_configure.pl.orig 2005-01-15 22:42:58.000000000 +0000
+--- tools/awstats_configure.pl.orig 2006-02-08 13:26:14.000000000 -0800
+++ tools/awstats_configure.pl
@@ -29,12 +29,12 @@ $AWSTATS_MODEL_CONFIG
$AWSTATS_DIRDATA_PATH
@@ -124,15 +124,15 @@ $NetBSD: patch-ab,v 1.3 2005/08/26 20:22:56 adrianp Exp $
else { $modelfile="$AWSTATS_PATH\\wwwroot\\cgi-bin\\awstats.model.conf"; }
@@ -604,11 +606,11 @@ if ($bidon =~ /^y/i) {
if ($OS eq 'linux') {
- print "\n-----> Define config file path\n";
- print "In which directory do you plan to store your config file(s) ?\n";
-- print "Default: /etc/awstats\n";
-+ print "Default: @PKG_SYSCONFDIR@\n";
- my $bidon='';
- print "Directory path to store config file(s) (Enter for default):\n> ";
- $bidon=<STDIN>; chomp $bidon;
+ print "\n-----> Define config file path\n";
+ print "In which directory do you plan to store your config file(s) ?\n";
+- print "Default: /etc/awstats\n";
++ print "Default: @PKG_SYSCONFDIR@\n";
+ my $bidon='';
+ print "Directory path to store config file(s) (Enter for default):\n> ";
+ $bidon=<STDIN>; chomp $bidon;
- if (! $bidon) { $bidon = "/etc/awstats"; }
+ if (! $bidon) { $bidon = "@PKG_SYSCONFDIR@"; }
- my $configdir=$bidon;
+ my $configdir=$bidon;
if (! -d $configdir) {
# Create the directory for config files