Re: ghosting files with variable names

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

 



Michael A. Peters wrote:
On Mon, 2006-01-16 at 07:37 +0100, Nicolas Mailhot wrote:
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.

That actually belongs in a packages man page (or other documentation).

That's exactly why it's nicer to have it in rpm -ql

file location is something chosen by the packager at spec time, man pages often reflect other defaults (when they are up to date -> cf localized pages), and there is no canonical other place to search for it.

--
Nicolas Mailhot

--
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux