Just a minor compiling issue for version 1.6.7 (actually it's been there for a while...). If I want to put the syslog-ng.conf file in a different location, I use the --sysconfdir option to configure. The problem is the configure.in file automatically adds "/syslog-ng" on to the end of whatever I put in. I have no problem with it doing this by default, but if I go through the effort of using --sysconfdir, then the configure script should do what it's told (even if that's thought to be wrong by some). Since syslog-ng only uses one conf file, I'd rather put it directly under /etc... My fix so far is to go and comment out that line before I run configure, but that's just a quick hack. Oh, and just before someone says otherwise, configure modifies some .h files and there's no way (that I know of anyways - please correct me if I'm wrong) to override those settings via make. I'm not asking anyone to change the defaults, but is it possible to either: 1) Add another option to configure to handle the subdirectory? eg: --sysconfsubdir or something like this? (eg: the default would end up being $PREFIX/$SYSCONFDIR/$SYSCONFSUBDIR/syslog-ng.conf) 2) If --sysconfdir is specified, use whatever it is set to. Otherwise use $PREFIX/etc/syslog-ng
On Tue, 2005-05-10 at 10:12 -0600, Andrew Morris wrote:
My fix so far is to go and comment out that line before I run configure, but that's just a quick hack.
Oh, and just before someone says otherwise, configure modifies some .h files and there's no way (that I know of anyways - please correct me if I'm wrong) to override those settings via make.
Can you go into some more details? What do you want to accomplish exactly?
I'm not asking anyone to change the defaults, but is it possible to either:
1) Add another option to configure to handle the subdirectory? eg: --sysconfsubdir or something like this? (eg: the default would end up being $PREFIX/$SYSCONFDIR/$SYSCONFSUBDIR/syslog-ng.conf) 2) If --sysconfdir is specified, use whatever it is set to. Otherwise use $PREFIX/etc/syslog-ng
Although I agree with you, I'd rather not change it for the current tree. The 2.0 tree behaves correctly in this regard (e.g. uses plain $sysconfdir) -- Bazsi
Balazs Scheidler wrote:
On Tue, 2005-05-10 at 10:12 -0600, Andrew Morris wrote:
My fix so far is to go and comment out that line before I run configure, but that's just a quick hack.
Oh, and just before someone says otherwise, configure modifies some .h files and there's no way (that I know of anyways - please correct me if I'm wrong) to override those settings via make.
Can you go into some more details? What do you want to accomplish exactly?
In my case I just want the syslog-ng.conf file in /etc. The only way I could get this done is to specify a conf file on the command line or to comment out the line in the configure.in file that adds the syslog-ng directory to the sysconfdir variable.
I'm not asking anyone to change the defaults, but is it possible to either:
1) Add another option to configure to handle the subdirectory? eg: --sysconfsubdir or something like this? (eg: the default would end up being $PREFIX/$SYSCONFDIR/$SYSCONFSUBDIR/syslog-ng.conf) 2) If --sysconfdir is specified, use whatever it is set to. Otherwise use $PREFIX/etc/syslog-ng
Although I agree with you, I'd rather not change it for the current tree. The 2.0 tree behaves correctly in this regard (e.g. uses plain $sysconfdir)
Ok, I need this for strict production systems, so I opted for the 1.6 tree as it was listed as "stable" on the web page. For now, my "hack" works and doesn't cause any major issues. If it's handled in the 2.0 tree, I agree with you in not changing anything with the 1.6 tree.
participants (2)
-
Andrew Morris
-
Balazs Scheidler