# HG changeset patch # User Michael Schloh von Bennewitz # Date 1239707623 -7200 # Node ID 3831ba5c7ba78c9e50adc56fcd38d36201a95384 # Parent d02b8517b4af234ea12f86c89b892b05a19c00ef Correct misaligned image and table in main output page. diff -r d02b8517b4af -r 3831ba5c7ba7 webalizer/webalizer.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webalizer/webalizer.patch Tue Apr 14 13:13:43 2009 +0200 @@ -0,0 +1,29 @@ +Index: graphs.c +diff -Nau graphs.c.orig graphs.c +--- graphs.c.orig 2009-04-14 11:58:01.576710518 +0200 ++++ graphs.c 2009-04-14 12:16:00.411207613 +0200 +@@ -114,7 +114,7 @@ + double fmaxval=0.0; + + /* initalize the graph */ +- init_graph(title,512,256); /* init as 512 x 256 */ ++ init_graph(title,@l_gwidth@,256); /* init as @l_gwidth@ x 256 */ + + gdImageLine(im, 305,25,305,233,black); /* draw section lines */ + gdImageLine(im, 304,25,304,233,white); +Index: output.c +diff -Nau output.c.orig output.c +--- output.c.orig 2009-01-13 06:34:04.000000000 +0100 ++++ output.c 2009-04-14 12:46:38.913442401 +0200 +@@ -2431,9 +2431,9 @@ + + /* year graph */ + fprintf(out_fp,"\"%s\"

\n",buffer); ++ "HEIGHT=256 WIDTH=@l_gwidth@>

\n",buffer); + /* month table */ +- fprintf(out_fp,"\n"); ++ fprintf(out_fp,"
\n"); + fprintf(out_fp,"\n"); + fprintf(out_fp,"\n",msg_main_sum); diff -r d02b8517b4af -r 3831ba5c7ba7 webalizer/webalizer.spec --- a/webalizer/webalizer.spec Thu Apr 09 15:05:22 2009 +0200 +++ b/webalizer/webalizer.spec Tue Apr 14 13:13:43 2009 +0200 @@ -37,17 +37,19 @@ Group: Logfile License: GPL Version: %{V_here} -Release: 20090408 +Release: 20090414 # package options %option with_dns no %option with_geoip no +%option with_gwidth 512 # list of sources Source0: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz Source1: ftp://ftp.mrunix.net/pub/webalizer/geodb/webalizer-geodb-%{V_geodb}.tgz Source2: ftp://ftp.mrunix.net/pub/webalizer/webalizer-flags.tgz Source3: rc.webalizer +Patch0: webalizer.patch # build information Prefix: %{l_prefix} @@ -85,6 +87,11 @@ %{l_gzip} -d -c %{SOURCE1} | %{l_tar} xf - %{l_gzip} -d -c %{SOURCE2} | %{l_tar} xf - ) || exit $? + %patch -p0 + %{l_shtool} subst \ + -e "s;@l_gwidth@;%{with_gwidth};g" \ + graphs.c \ + output.c %build CC="%{l_cc}" \
",GREY); + fprintf(out_fp,"%s