Created attachment 225644 [details]
newsyslog conf file patch
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 logs 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'] = 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 file:
// Default extension used for log file name
$config['log_file_ext'] = '.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 FreeBSD's global WWWDIR, /usr/local/www.
A commit in branch main references this bug:
Author: Alex Dupre <ale@FreeBSD.org>
AuthorDate: 2021-06-09 09:29:21 +0000
Commit: Alex Dupre <ale@FreeBSD.org>
CommitDate: 2021-06-09 09:29:21 +0000
mail/roundcube: fix newsyslog.d default config file.
Submitted by: Marko CupaÄ <firstname.lastname@example.org>
mail/roundcube/Makefile | 1 +
mail/roundcube/files/newsyslog.conf.in | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)