Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jun 2021 18:16:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 256488] mail/roundcube: newsyslog file makes little sense
Message-ID:  <bug-256488-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256488

            Bug ID: 256488
           Summary: mail/roundcube: newsyslog file makes little sense
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ale@FreeBSD.org
          Reporter: marko.cupac@mimar.rs
             Flags: maintainer-feedback?(ale@FreeBSD.org)
          Assignee: ale@FreeBSD.org

Created attachment 225644
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D225644&action=
=3Dedit
newsyslog conf file patch

Hi,

I noticed that roundcube port installs roundcube.conf newsyslog file into
/usr/local/etc/newsyslog.conf.d. Content of this file currently makes little
sense for new installs and default setups, as neither directory in which lo=
gs
reside, nor log filenames correspond to defaults.

default.inc.php defines log dir as follows:

// use this folder to store log files
// must be writeable for the user who runs PHP process (Apache user if mod_=
php
is being used)
// This is used by the 'file' log driver.
$config['log_dir'] =3D RCUBE_INSTALL_PATH . 'logs/';

Unless overriden in config.inc.php, logs will reside in
"/usr/local/www/roundcube/logs", and not in
"/usr/local/www/roundcube/roundcube/logs" while roundcube.conf has
"/usr/local/www/roundcube/roundcube/logs".

default.inc.php states that .log extension will be appended to each log fil=
e:

// Default extension used for log file name
$config['log_file_ext'] =3D '.log';

Unles overriden in config.inc.php, log filenames will be "errors.log" and
"sendmail.log", while roundcube.conf has "errors" and "sendmail"

I have attached the patch. I haven't tested, but I would say %%WWWDIR%% here
expands to roundcube install dir of /usr/local/www/roundcube, and not FreeB=
SD's
global WWWDIR, /usr/local/www.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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