Subject: Re: PLIST and files created by the package
To: Tomasz Luchowski <zuntum@eik.pl>
From: Antti Kantee <pooka@iki.fi>
List: tech-pkg
Date: 02/03/2001 13:21:32
On Sat Feb 03 2001 at 11:36:03 +0100, Tomasz Luchowski wrote:
> I'm packaging RFCutil (it allows you to specify the number of an RFC,
> or a search string, and it returns all related RFCs). When user runs
> it for the first time with "-i" switch, ${PREFIX}/etc/rfc-index file
> is created. How should I fill in the PLIST? If I won't list
> etc/rfc-index in it, and file won't be removed when user deletes the
> package... if I'll do so, when user deletes the package without
> running rfc "-i" before, pkg_delete will complain about nonexistent
> file.
>
> What's the proper way?
There may be a better way, but here's one idea:
You could run it with -i already as part of the installation procedure.
That way the file exists always and you can put it in PLIST.
--
Antti Kantee <pooka@iki.fi> v Of course he runs NetBSD
http://www.iki.fi/pooka/ i http://www.NetBSD.org/