Re: Staging and /var
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Dec 2022 21:12:58 UTC
On 12/27/22 14:12, jaap.akkerhuis@xs4all.nl wrote: > > >> On 27 Dec 2022, at 18:54, Stephen Roznowski <sjrbulk@verizon.net> wrote: >> >> I'm in the process of creating a new port that requires the installation of some files in /var. >> >> I notice that the file /usr/ports/Templates/BSD.local.dist doesn't have any of the /var tree in it, is there a particular reason why that is missing? (I could see where a small subset of /var would be useful to autocreate in the stage directory.) >> >> I realize that I can just do: >> >> pre-install: >> >> @${MKDIR} ${STAGEDIR}/var/xxx >> >> for the directories that I need. > > You really want to use pkg-plist for this. > > jaap > > pkg-plist (or PLIST_FILES) doesn't work for staging (without the pre-install line). For additional details, I'm porting a game, so my plist has "var/games/xxx.score" in it. Thanks,Steve