[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#506703: amavis-stats: remaining issues with newly uploaded package



Hello,

Sorry to bug again but some issues have remained for the uploaded amavis stats
package.

1. Dependencies are needed on "libunix-syslog-perl" and
"librrdp-perl".  Dependency on "php4-rrdtool" must be removed as that package
does not exist anymore. Relevant lines in debian/control must be:

Depends: ${misc:Depends}, librrds-perl, librrdp-perl, libunix-syslog-perl,
rrdtool, wwwconfig-common, adduser
Recommends: amavis, php5-gd


2. amavis-stats looks for a non-existing config file "/etc/amavis-stats.conf"
at line 1120 in the sbin/amavis-stats.
New location is /etc/amavis-stats/amavis-stats.conf

relevant configure option --sysconfdir=/etc/amavis-stats

3. The package installs a cronjob but amavis-stats is a daemon now.
There must be a basic init script: /usr/sbin/amavis-stats takes start|stop as
parameters.

4. Config file must change the user to amavis-stats as data directories are
owned by that user.
$daemon_user  = 'amavis-stats';   # (no default;  customary: www-data)
$daemon_group = 'amavis-stats';

Note : in debian/rules file, I tried stating  "--with-user=amavis-stats"
"--with-group=amavis-stats" parameters and "--disable-web" parameter to disable
checking the presence of this user at build time, still the "install" command
required the user.

5. The config file must have the following line. the original looks for a
amavis.log which does not exist
$scan_logfile       = "/var/log/mail.info"





Reply to: