Bug#426968: webalizer: Wishing new conf setup were like logrotate

2007-09-17 Thread Julian Mehnle
I agree completely.  I think the new vhost/multiple-config-file support 
architecture is bad.  I recently upgraded from a year-old version of the 
webalizer package to the current one and tried to adapt my homegrown vhost 
infrastructure (which is similar to Jacob's) to the new one in order to 
reduce the deviation from the official way of doing things, but it's 
just awful.  See below for the rationale.

I cannot even retain my own way of doing things because the webalizer 
package's configure script insists on moving /etc/webalizer.conf to
/etc/webalizer/webalizer.conf on each and every configuration of the 
package.  I considered filing a bug about this with serious severity, but 
then I figured that the entire official infrastructure should rather be 
improved instead.

I think users of webalizer (like Jacob and me) have long been accustomed to 
using webalizer.conf as a default config file and use smaller config files 
on top of that with specific configuration directives for specific vhosts.

Having this default config file (webalizer.conf) in the same directory as 
all the vhost config files is a mess.  Either move webalizer.conf back 
to /etc/ (preferred, since it's upstream's way), or create a sub-directory 
in /etc/webalizer/ for the vhost config files.

Please consider changing the package's config file architecture to that 
end.


pgpOl0BGWfmW4.pgp
Description: PGP signature


Bug#426968: webalizer: Wishing new conf setup were like logrotate

2007-05-31 Thread Jacob L. Anawalt

Package: webalizer
Version: 2.01.10-32
Severity: wishlist

I appreciate the effort put into making the default webalizer
configuration a little more 'vhost friendly'. I did this locally a while
back and it seems that I came up with a solution similar to the one in
the webalizer 2.01.10-32 package (which seems different than the
solution proposed in bug 229179.)

One point where the new package and my configuration differ is that I
left the default config in /etc.

My setup:
/etc/webalizer.conf
/etc/webalizer.d/site.conf
/etc/cron.daily/webalizer
(package.conf  package.d/ similar to logrotate and discover)

I did this to take advantage of the way webalizer takes it's
configuration parameters. It first reads a default config named
webalizer.conf. This is either a local default config in the working
directory or the global one in the configured etcdir. Then it reads
command line options, including configuration file directives. For any
given setting the last option wins. This way I can set all my common
default information like DNSCache in one place and have my per-site
('vhost') configurations be much shorter.

The new package (maybe since 2.01.10-30) does a similar thing, but now
the global default config is grouped in with the other configs in
/etc/webalizer. It no longer stands out as a special default file. Even
the cron.daily script seems to treat it like any other config by
loading it up (effectively parsing it twice) as it iterates the config
file directory if it happens to have a LogFile directive.

I should have suggested a wish list bug on this long ago, when I first
set it up this way. I hate to change things around on people, even if I
think my layout looks better.

Please consider updating the README.Debian to emphasise how 
webalizer.conf is treated differently than any other .conf in 
/etc/webalizer.


The cron.daily script could reinforce this by more clearly skipping 
webalizer.conf in the loop and invoking it after the loop iff the loop 
didn't process any other conf files by calling webalizer without a -c 
option.



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages webalizer depends on:
ii  debconf [debconf-2.0] 1.5.11 Debian configuration 
management sy

ii  libc6 2.3.6.ds1-13   GNU C Library: Shared libraries
ii  libdb4.2  4.2.52+dfsg-2  Berkeley v4.2 Database 
Libraries [

ii  libgd2-xpm2.0.33-5.2 GD Graphics Library version 2
ii  libgeoip1 1.3.17-1.1 A non-DNS IP-to-country 
resolver l

ii  libpng12-01.2.15~beta5-1 PNG library - runtime
ii  zlib1g1:1.2.3-13 compression library - runtime

webalizer recommends no packages.

--
Jacob


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]