Package: calamaris
Version: 2.99.4.5-3
Severity: normal

The README.Debian file says this:

> With release 2.99 calamaris is able to produce graphics in its reports. If
> you want to use this feature, install libgd-graph-perl and change the
> HTMLOPTIONS in /etc/cron.daily/calamaris to "-F html,graph".

However, /etc/cron.daily/calamaris doesn't allow this:

> #!/bin/sh
> 
> set -e
> 
> if [ -x "/usr/lib/calamaris/calamaris-cron-script" ]; then
>       /usr/lib/calamaris/calamaris-cron-script
> else
>       exit 0
> fi

There is nowhere to set HTMLOPTIONS.  If you just add it to that file,
it's ignored because /usr/lib/calamaris/calamaris-cron-script
unconditionally sets HTMLOPTIONS to "-F html".

If /usr/lib/calamaris/calamaris-cron-script is intended to be
user-editable (a) it is in the wrong place and (b) it should, I
assume, be listed in /var/lib/dpkg/info/calamaris.conffiles.


-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_IE:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages calamaris depends on:
ii  bc                     1.07.1-2+b1
ii  debconf [debconf-2.0]  1.5.71
ii  perl                   5.28.1-6

calamaris recommends no packages.

Versions of packages calamaris suggests:
pn  libgd-graph-perl    <none>
pn  libnetaddr-ip-perl  <none>
pn  squid | squid       <none>

-- debconf information:
  calamaris/daily/html: /var/www/calamaris/daily/index.html
  calamaris/cache_type: auto
  calamaris/monthly/title: Squid monthly
  calamaris/daily/title: Squid daily
  calamaris/weekly/title: Squid weekly
  calamaris/weekly/html: /var/www/calamaris/weekly/index.html
  calamaris/weekly/task: mail
  calamaris/monthly/mail: root
  calamaris/weekly/mail: root
  calamaris/daily/task: mail
  calamaris/monthly/task: mail
  calamaris/daily/mail: root
  calamaris/cache_file: access.log
  calamaris/monthly/html: /var/www/calamaris/monthly/index.html

Reply via email to