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

Re: taking control of another package's file



On Wed, Feb 08, 2006 at 09:50:35PM -0800, Joe Van Dyk wrote:

> I'm creating an RPM that creates a new /etc/auto.master file (for
> automounting directories).
> 
> Currently, the autofs package owns this file.  So when I try to
> install my RPM that overwrites /etc/auto.master, it complains about a
> conflict between my RPM and the autofs RPM.
> 
> What's the correct resolution here?

You can consider using %trigger(un) scripts, they were designed for
inter=package pre/post (un)install scripts.  Note that the use of
trigger scripts does not comply with the LSB, but it works fine and
if the other package gets upgraded (e.g., new services file), the
script is running again.  Of course, you have to write that scripts
very carefully, idempotent, etc.

-- 
--    Jos Vos <jos xos nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


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