On 08/06/2010 10:09 PM, Ludovic Rousseau wrote:
2010/8/6 Kalev Lember<[email protected]>:
What happens with the common case for distros where $prefix=/usr and
$sysconfdir=/etc? It looks very much like pcscd will then consider whole
/etc as its config dir ...
If your configuration directory for pcscd is NOT /etc then do not use
--sysconfigdir=/etc
sysconfigdir usually means "the default _system_ configuration
directory" (/etc in most distros). It's not _application_ config directory.
Please don't redefine the meaning of sysconfigdir in pcsc-lite, but
instead use another configure option for overriding application config
directory. However, is there need for that? Would anyone actually want
to rename "reader.conf.d" to something else?
I'd rather kill the sysconfdir="${sysconfdir}/reader.conf.d" line and set it
down below instead: PCSCLITE_CONFIG_DIR="${sysconfdir_exp}/reader.conf.d"
That was the case before. But then if you use
--sysconfdir=/etc/reader.conf.d you end up with
sysconfdir=/etc/reader.conf.d/reader.conf.d
Just set sysconfdir to the configuration directory or file you want to
use with pcscd.
Most distros have wrappers for configure script. For example, in Debian
where you maintain pcsc-lite package, all you needed with pcsc-lite
1.6.2 in debian/rules is this:
#!/usr/bin/make -f
%:
dh $@
The reason why this works is that when debhelper finds a configure
script, it calls ./configure with _standard_ arguments, which includes
--sysconfdir=/etc
pcsc-lite should do the sane thing and use /etc/reader.conf.d when only
--sysconfdir=/etc is passed to configure; this is also how it currently
works in pcsc-lite 1.6.2.
The following invocation should be enough to make pcscd use
/etc/reader.conf.d as its config dir:
./configure --prefix=/usr --sysconfdir=/etc
If someone really needs to override the name "reader.conf.d" you could
introduce another configure option which ignores --sysconfdir value
completely and overrides the default directory.
--
Kalev
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle