]> TLD Linux GIT Repositories - packages/syslog-ng.git/blob - syslog-ng-datadir.patch
- updated to 4.6.0
[packages/syslog-ng.git] / syslog-ng-datadir.patch
1 FIXME: drop this patch and just fix PATH_LOCALSTATEDIR ?
2
3
4 diff -urNp -x '*.orig' syslog-ng-syslog-ng-4.2.0.org/lib/syslog-ng.h syslog-ng-syslog-ng-4.2.0/lib/syslog-ng.h
5 --- syslog-ng-syslog-ng-4.2.0.org/lib/syslog-ng.h       2023-05-10 16:55:07.000000000 +0200
6 +++ syslog-ng-syslog-ng-4.2.0/lib/syslog-ng.h   2023-07-18 21:48:11.436408132 +0200
7 @@ -42,7 +42,7 @@
8  #if SYSLOG_NG_ENABLE_ENV_WRAPPER
9  #define PATH_SYSLOGNG           SYSLOG_NG_PATH_LIBEXECDIR "/syslog-ng"
10  #endif
11 -#define PATH_PERSIST_CONFIG     SYSLOG_NG_PATH_LOCALSTATEDIR "/syslog-ng.persist"
12 +#define PATH_PERSIST_CONFIG     "/var/lib/syslog-ng/syslog-ng.persist"
13  
14  typedef struct _LogPipe LogPipe;
15  typedef struct _LogMessage LogMessage;
16 diff -urNp -x '*.orig' syslog-ng-syslog-ng-4.2.0.org/scripts/update-patterndb.in syslog-ng-syslog-ng-4.2.0/scripts/update-patterndb.in
17 --- syslog-ng-syslog-ng-4.2.0.org/scripts/update-patterndb.in   2023-05-10 16:55:07.000000000 +0200
18 +++ syslog-ng-syslog-ng-4.2.0/scripts/update-patterndb.in       2023-07-18 21:48:11.436408132 +0200
19 @@ -3,6 +3,6 @@ prefix=@prefix@
20  exec_prefix=@exec_prefix@
21  bindir=@bindir@
22  sysconfdir=@sysconfdir@
23 -localstatedir=@localstatedir@
24 +localstatedir=/var/lib/syslog-ng
25  
26  ${bindir}/pdbtool merge -r --glob \*.pdb -D ${sysconfdir}/patterndb.d -p ${localstatedir}/patterndb.xml