pkgsrc/net/cacti/patches/patch-lib_clog__webapi.php
hauke c93f5a78b8 Completing the upgrade to Cacti v1.2.3.
Funny enough, the previous commit coincided with my own work on a
package upgrade. It brought a few bits and bobs I had been missing,
and my work closes a few of its gaps.

In detail:

INSTALL - set CACTI_USER and APACHE_GROUP properly

MESSAGES - mention newer PHPs' php.d, while updating the extension list
           mention <https://github.com/Cacti/cacti/issues/2621> setup problem

Makefile - add mandatory dependencies: php-{json,zlib,mbstring,posix}
           add patched files to 'paths' substitution

files/httpd-cacti.conf - convert to Apache 2.4 ACL syntax

patches/ - comments, CACTI_LOGDIR substitution

Minor touch-ups everywhere - I am sure there is more to do.

The result pkglints, builds, installs, configures (taking the above
#2621 into account), and runs.
2019-04-29 16:09:05 +00:00

15 lines
494 B
PHP

$NetBSD: patch-lib_clog__webapi.php,v 1.1 2019/04/29 16:09:05 hauke Exp $
Make log directory configurable by package variable
--- lib/clog_webapi.php.orig 2019-03-30 23:40:23.000000000 +0000
+++ lib/clog_webapi.php
@@ -56,7 +56,7 @@ function clog_validate_filename(&$file,
$logbase = basename($logfile);
if ($logfile == '') {
- $logfile = $config['base_path'] . '/log/cacti.log';
+ $logfile = '@CACTI_LOGDIR@' . '/cacti.log';
}
$errfile = read_config_option('path_stderrlog');