Appending a file in %{_sysconfdir}

Paul Nasrat pnasrat at redhat.com
Fri Aug 18 15:54:17 UTC 2006


On Fri, 2006-08-18 at 09:22 -0500, Rex Dieter wrote:
> PFJ wrote:
> 
> > I'm packaging sdldotnet for inclusion into extras and have hit a small
> > snag. I need to amend %{_sysconfdir}/mono/config to include some bits
> > required for sdldotnet.
> > 
> > How do I append said file inside of a spec file? Should I just create a
> > new version, add the bits, diff and apply or is there a better way?
> 
> This seems something to be done in a scriplet in %post (and to undo the mods
> in %postun)

If you want to do it programatically - rhpl.simpleconfig.SimpleConfig is
what we basically use in to set these up.

Paul




More information about the fedora-extras-list mailing list