Subject: Re: registration of none existing file
To: Berndt Josef Wulf <wulf@ping.net.au>
From: Todd Vierling <tv@pobox.com>
List: tech-pkg
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
time.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)