Hi Darren!
Am 22.10.2013 um 09:11 schrieb Darren Spruell phatbuckett@gmail.com:
Platform Compiler ngIRCd Date Tester C M T R See
i386/unknown/openbsd5.3 gcc 4.2.1 21~rc2 13-10-21 dspruell Y Y Y Y (3)
Thanks, I'll include it!
I did want to ask about path changes in the configuration. Under v20 the use of './configure --sysconfdir=/etc/ngircd' set the paths for many parameters in the config to /etc/ngircd. I notice the new configuration has these defaulting to /usr/local/etc/ even with --sysconfdir set to /etc/ngircd.
$ egrep './configure' config.log $ ./configure --sysconfdir=/etc/ngircd --with-openssl
--- ngircd.conf-v20 Sat Dec 29 23:49:41 2012 +++ ngircd.conf Mon Oct 21 23:41:32 2013
;MotdFile = /etc/ngircd/ngircd.motd
;MotdFile = /usr/local/etc/ngircd.motd
;IncludeDir = /usr/local/etc/conf.d
;CertFile = /etc/ngircd/ssl/server-cert.pem
;CertFile = /usr/local/etc/ssl/server-cert.pem
;DHFile = /etc/ngircd/ssl/dhparams.pem
;DHFile = /usr/local/etc/ssl/dhparams.pem
;KeyFile = /etc/ngircd/ssl/server-key.pem
;KeyFile = /usr/local/etc/ssl/server-key.pem
;KeyFile = /etc/ngircd/#chan.key
;KeyFile = /usr/local/etc/#chan.key
Shouldn't the path in the config for all these be /etc/ngircd/ with --sysconfdir set as shown? The compiled in defaults appear to be correct:
$ ngircd --configtest ... Reading configuration from "/etc/ngircd/ngircd.conf" ... ... MotdFile = /etc/ngircd/ngircd.motd IncludeDir = /etc/ngircd/ngircd.conf.d
This works for me:
$ ./configure --sysconfdir=/a/test/directory … 'ngircd' binary: /usr/local/sbin Configuration file: /a/test/directory Manual pages: /usr/local/share/man Documentation: /usr/local/share/doc/ngircd … $ make $ grep "/a/test/directory" doc/sample-ngircd.conf ;MotdFile = /a/test/directory/ngircd.motd ;IncludeDir = /a/test/directory/conf.d ;CertFile = /a/test/directory/ssl/server-cert.pem ;DHFile = /a/test/directory/ssl/dhparams.pem ;KeyFile = /a/test/directory/ssl/server-key.pem ;KeyFile = /a/test/directory/#chan.key
And the "doc/sample-ngircd.conf" becomes installed as "ngircd.conf" into /a/test/directory when there is no such (old) file already.
So I can't reproduce your problem, I think?
What does your ./doc/sample-ngircd.conf file look like after running "make"? It is generated from the ./doc/sample-ngircd.conf.tmpl file …
Thanks Alex