Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2000 21:49:44 +0200 (CEST)
From:      dirk.meyer@dinoex.sub.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/18889: www/webalizer fix in filenames
Message-ID:  <200005291949.e4TJnia86821@home.dinoex.sub.org>

next in thread | raw e-mail | index | archive | help

>Number:         18889
>Category:       ports
>Synopsis:       www/webalizer fix in filenames
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 29 13:10:03 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dirk Meyer
>Release:        FreeBSD 3.4-RELEASE i386
>Organization:
privat
>Environment:

	gd-lib, apache

>Description:

	generates statistics in HTML output,
	for Apache web server.

>How-To-Repeat:

	On usage you gen pgn-images, with ".gif" names.

>Fix:

	apply this extra patch.

diff -ruN /usr/ports/www/webalizer/patches/patch-af ./patches/patch-af
--- /usr/ports/www/webalizer/patches/patch-af	Thu Jan  1 01:00:00 1970
+++ ./patches/patch-af	Mon May 29 21:43:10 2000
@@ -0,0 +1,40 @@
+--- webalizer.c.orig	Sun Jul 11 19:36:10 1999
++++ webalizer.c	Mon May 29 21:42:53 2000
+@@ -1981,8 +1981,8 @@
+ 
+    /* fill in filenames */
+    sprintf(html_fname,"usage_%04d%02d.%s",cur_year,cur_month,html_ext);
+-   sprintf(gif1_fname,"daily_usage_%04d%02d.gif",cur_year,cur_month);
+-   sprintf(gif2_fname,"hourly_usage_%04d%02d.gif",cur_year,cur_month);
++   sprintf(gif1_fname,"daily_usage_%04d%02d.png",cur_year,cur_month);
++   sprintf(gif2_fname,"hourly_usage_%04d%02d.png",cur_year,cur_month);
+ 
+    /* create GIF images for web page */
+    sprintf(dtitle,"%s %s %d",msg_hmth_du,l_month[cur_month-1],cur_year);
+@@ -3125,7 +3125,7 @@
+          pie_legend[i]=top_ctrys[i]->desc;
+       }
+       sprintf(pie_title,"%s %s %d",msg_ctry_use,l_month[cur_month-1],cur_year);
+-      sprintf(pie_fname,"ctry_usage_%04d%02d.gif",cur_year,cur_month);
++      sprintf(pie_fname,"ctry_usage_%04d%02d.png",cur_year,cur_month);
+ 
+       pie_chart(pie_fname,pie_title,t_hit,pie_data,pie_legend);  /* do it   */
+ 
+@@ -3213,7 +3213,7 @@
+ 
+    i=(s_mth==12)?1:s_mth+1;
+ 
+-   year_graph6x(   "usage.gif",         /* filename          */
++   year_graph6x(   "usage.png",         /* filename          */
+                    buffer,              /* graph title       */
+                    i,                   /* last month        */
+                    hist_hit,            /* data set 1        */
+@@ -3234,7 +3234,7 @@
+    }
+    write_html_head(msg_main_per);
+    /* year graph */
+-   fprintf(out_fp,"<IMG SRC=\"usage.gif\" ALT=\"%s\" "    \
++   fprintf(out_fp,"<IMG SRC=\"usage.png\" ALT=\"%s\" "    \
+                   "HEIGHT=256 WIDTH=512><P>\n",buffer);
+    /* month table */
+    fprintf(out_fp,"<TABLE WIDTH=600 BORDER=2 CELLSPACING=1 CELLPADDING=1>\n");

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005291949.e4TJnia86821>