summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authoradrianp <adrianp>2005-08-20 14:28:03 +0000
committeradrianp <adrianp>2005-08-20 14:28:03 +0000
commitb47a5cb1bbb98dd1ed02808add3cf831bf1bd97d (patch)
treeb2629a6530a00d4b413f353938c4e750f0704e04 /www
parent889924a39acf579f8b57d97dc6e5ee1f0e77c84e (diff)
downloadpkgsrc-b47a5cb1bbb98dd1ed02808add3cf831bf1bd97d.tar.gz
Patch from awstats CVS for CAN-2005-1527
Bump to nb1
Diffstat (limited to 'www')
-rw-r--r--www/awstats/Makefile3
-rw-r--r--www/awstats/distinfo9
-rw-r--r--www/awstats/patches/patch-aa353
3 files changed, 360 insertions, 5 deletions
diff --git a/www/awstats/Makefile b/www/awstats/Makefile
index ff768f54476..3b71f2431d1 100644
--- a/www/awstats/Makefile
+++ b/www/awstats/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.18 2005/08/14 15:33:44 minskim Exp $
+# $NetBSD: Makefile,v 1.19 2005/08/20 14:28:03 adrianp Exp $
#
DISTNAME= awstats-6.4
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://awstats.sourceforge.net/files/
EXTRACT_SUFX= .tgz
diff --git a/www/awstats/distinfo b/www/awstats/distinfo
index 75561e99c39..eff67b171b7 100644
--- a/www/awstats/distinfo
+++ b/www/awstats/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.11 2005/08/14 15:33:44 minskim Exp $
+$NetBSD: distinfo,v 1.12 2005/08/20 14:28:03 adrianp Exp $
-SHA1 (awstats-6.4/awstats-6.4.tgz) = e58671499006881516406e9fa704b0ef34b94971
-RMD160 (awstats-6.4/awstats-6.4.tgz) = 318b34afcb7f7e8a4d26d46344e37bcbe3a8460a
-Size (awstats-6.4/awstats-6.4.tgz) = 918435 bytes
+SHA1 (awstats-6.4nb1/awstats-6.4.tgz) = e58671499006881516406e9fa704b0ef34b94971
+RMD160 (awstats-6.4nb1/awstats-6.4.tgz) = 318b34afcb7f7e8a4d26d46344e37bcbe3a8460a
+Size (awstats-6.4nb1/awstats-6.4.tgz) = 918435 bytes
+SHA1 (patch-aa) = a28254829dc3a025648ead708c932d432a69ed59
diff --git a/www/awstats/patches/patch-aa b/www/awstats/patches/patch-aa
new file mode 100644
index 00000000000..0363c241a83
--- /dev/null
+++ b/www/awstats/patches/patch-aa
@@ -0,0 +1,353 @@
+$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";
+ }