On Mon, 2003-08-25 at 10:19, Andreas Aardal Hanssen wrote:
> On Mon, 25 Aug 2003, [iso-8859-2] Ondøej Surý wrote:
> >I would suggest installing it as bincimap.conf.example all the time and
> >rest leave at packagers (in Debian, it is marked as configfile and won't
> >be overwritten unless you choose to) and INSTALL file.
> 
> For first time installers, I would like to keep it as bincimap.conf, since
> it is strange for users to have to rename a file in order to start using
> the server.

Well, I only think it is not consistent, to install configfile under two
different file names.  Maybe you could check for existance of config
file and print some text only if format of config file changes (and you
can detect it).  If I compare it to nsd (nameserver from NLnet Labs),
then they install all config files as samples:

        $(INSTALL_DATA) nsdc.conf.sample $(configfile).sample
        $(INSTALL_DATA) nsd.zones.sample $(zonesfile).sample

I think that first time installers need to setup supervise or other run
script, so cp bincimap.conf.sample bincimap.conf is not big deal for
them either.  But you are upstream author ;-), so choose as you think it
is wise.

> Of course, packagers can decide for themselves where to put any file.
> 
> Do packagers rely on the location of files after a "make install" from a
> stock distribution?

It depends.  If those files are placed correctly according to policy,
then yes, otherwise files are moved to conform to debian policy.

(I cannot speak for other distributions, only for Debian.)

In Debian there is quite clever way to install new config files, package
knows if config file was changed and install new config without asking
you only if it was not changed.  If you changed it, installation asks
you if you want to keep old file (and place new config as *.dpkg-dist or
something like that) or replace with new (and copy old config as
*.dpkg-old).  This is fine, but I think that it is too complicated to do
for single package.  People how knows what they are doing don't need
such stuff.  People how are clueless, should use package, which should
handle it all ;-).

O.

-- 
Ondřej Surý - co/CTO
---------------------------------------------------
Globe Internet, s.r.o.       -      http://globe.cz
Pláničkova 1, 162 00 Praha 6 - http://mapa.globe.cz
Tel.: +420 2 35365000        -      [EMAIL PROTECTED]

Reply via email to