ghosting files with variable names

Nicolas Mailhot nicolas.mailhot at laposte.net
Mon Jan 16 06:37:42 UTC 2006


Michael Schwendt wrote:
> On Sun, 15 Jan 2006 14:30:22 -0800, Wart wrote:
> 
>> I've got a package that handles the rotation of its own log files
>> (tclhttpd).  Each rotated log file is appended with the date.  Currently
>> I 'rm -f' these files in the %postun section of the spec file.  Is it
>> possible to use %ghost instead, even if I can't know the names of the
>> files in advance?
> 
> Just don't. Log files do not belong into a package. They are run-time
> generated temporary files. Don't delete them in %postun either.

It's certainly nicer when a rpm -ql gives you the log files one package 
uses.

-- 
Nicolas Mailhot




More information about the fedora-extras-list mailing list