[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: backing up/replacing files from another package



On Wed, Aug 27, 2003 at 04:36:22PM -0700, Eric Winger wrote:
> The question, basically is this: "How does one have a .deb package which 
> replaces/overwrites files from another package (in this case a 
> dependency)?"
Dependency means that a package with a foobar script
depends on the foobar interpreter.

An example of a `replace` are in vim:
Replaces: vim-rt, vim-tiny (<< 6.0), vim-perl (<< 6.0), vim-python (<< 6.0), vim-tcl (<< 6.0), vim-tty (<< 6.0), vim-gtk (<< 6.0)
Provides: editor, vim-rt


> 
> The specific example is this. We want to use autofs. For our turnkey 
> systems, we want to have our own little package, that "configures" the 
> autofs configuration a certain way. So we build this package, and cause 
> it to depend on autofs. Then, we want to replace the versions of 
> /etc/auto.master and /etc/auto.misc that were supplied by the original 
> autofs pacakge, and restart autofs. We've tried some interesting 
> applications of preinst and postrm, but it doesn't really work right. 
> I'm thinking there's got to be a "higher level" way of handling this 
> type of scenario.

dspsyco

>From its description:
Description: Debian packages of system configurations
 Dpsyco introduces the concept of configuration packages. It is a special
 form of debian packages that is applied on top of the original debian
 packages. With this you can add users, groups, apply a file skeleton,
 patch things and more. Observe! No such configuration packages should be
 uploaded to the debian archives. This kind of things are intended to be
 created and used by the system administrator only.

> 
> Thanks to any and all.

I'm sure you will contribute also.



Geert Stappers



Reply to: