Re: need spec file example to replace files from various packages

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

 



If you were inclined to share, I would be inclined to look...that sounds
pretty sweet.

Craig

On Tue, 2006-12-05 at 18:11 -0500, Steve Friedman wrote:
> We wrote an RPM that:
> 
> (a) Requires whatever other RPMs that we want to use (so a standard 
> install would work and we didn't need to spend time selecting the packages 
> to install and so that we could deploy a newly useful RPM quickly to all 
> machines)
> 
> (b) installs our config files to /etc/local-install
> 
> (c) includes an init.d script which runs at level 01 in rc2/3/4/5 to copy 
> the above files to their appropriate location (overwriting the RPM-owned 
> file) on each startup.
> 
> I couldn't think of a better way.
> 
> Steve Friedman
> 
> 
> On Tue, 5 Dec 2006, Paul Johnson wrote:
> 
> > After installing Fedora, I want to replace various configuration files
> > on lab computers. If I can learn how to do this in the post section of
> > an RPM spec file, I will be happy.  For example, I want/need to
> > replace things like
> >
> > /etc/gdm/PreSession/Default
> > /etc/gdm/PostSession/Default
> > /etc/pam.d/system-auth
> > /etc/hosts.allow
> > /etc/hosts.deny
> >
> > One brute force option is to install with rpm --replacefiles, but yum
> > does not like that.
> > So can  you point me at a spec file or two that will give example
> > syntax on how I can create a backup of those files and replace them
> > with the ones I want.
> >
> > Please?
> >
> >
> 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux