On Wed, 2005-06-15 at 08:35 -0500, Thomas Cameron wrote: > On Wed, 2005-06-15 at 14:54 +0200, Rob Hassing wrote: > > Hello, > > > > I'm trying to build an RPM to make a system fit in our network. > > This means the rpm should replace some default config files. > > The files ldap.conf, yp.conf and auto.master should be replaced by this > > rpm. > > > > I know it is possible to overwrite files using the --replacefiles option. > > Is it also possible to create a SPEC file which overwrites files from > > other packages ? > > > > According to google I'm the only one trying to do this(or the first who > > has problems doing this) ;) > > > > Thank you very much in advance. > > I usually do it in %post. It's kind of a kludge, but it works. One way to do this is using cfengine to fix the configuration. It works nicely for some things, but can be a bloody nuisance for others :) - Panu -