This one time, at band camp, Matt Zimmerman said:
> On Thu, Nov 27, 2003 at 04:07:06PM -0500, Stephen Gran wrote:
> 
> > I have to move a config file, and I am not sure of the best way of
> > handling it, so I wanted to ask for opinions.
> > 
> > The problem is that I am currently shipping an
> > /etc/default/$package, which needs to now become /etc/$package.conf
> > - it's not a shell script, but more of a hacked together config
> > file.  What I want to do is ensure that any user changes to the old
> > /etc/default/$package file get seemlessly merged into
> > /etc/$package.conf, but not mess up any user made up $package.conf
> 
> Is the file a conffile, or not?  

Yes - I guess I was unclear.  It is shipped as /etc/default/hdparm.
What I meant is that it is unsuitable as an /etc/default file because it
is the package's configuration file, rather than a sell script setting
variables, as required by policy.

> If it is a conffile (and if it is shipped in the package, it must be),
> then move it in preinst (wrapped in appropriate checks, such as
> package version and file existence), and dpkg will handle the rest.

This is the kind of thing I want to do - how do I extract $old_version?
I want to do the move if upgrading from >> 5.4-5, but not after that, so
that I don't keep on doing funky things to users' conffiles.  Pointer to
refs would great.  

Thanks,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to