Subject: Re: registration of none existing file
To: Berndt Josef Wulf <email@example.com>
From: Todd Vierling <firstname.lastname@example.org>
Date: 05/29/1999 23:34:21
On Sun, 30 May 1999, Berndt Josef Wulf wrote:
: what is the correct procedure for registering files which
: are none-existing at the time of installation?
If the file is used to store config info, state info, logging, or the like,
it should not be removed at pkg_delete time. They should be deleted
manually by the user.
If the file is independent of configuration, don't register it; use:
@unexec rm -f %D/path/to/file 2>/dev/null || true
%D will be replaced automatically by the value of $PREFIX at pkg_delete
-- Todd Vierling (Personal email@example.com; Bus. firstname.lastname@example.org)