Re: Install file into /rescue

From: Robert Clausecker <fuz_at_fuz.su>
Date: Thu, 17 Oct 2024 06:48:44 UTC
Am Thu, Oct 17, 2024 at 07:47:06AM +0200 schrieb Mathieu Arnold:
> > > That one is easy, a port can only install files in PREFIX. So, it cannot
> > > install files in /usr/s?bin, /s?bin or /rescue. It seems the static
> > > flavor of this port is completely wrong.
> > 
> > This is incorrect.  Many ports install files into /var for example.  Our
> > infrastructure has explicit support for that, so why should it not be allowed
> > if reasonable?
> 
> Many ports *create* files in /var when they run, but they don't
> *install* files there, and that is probably fine.

games/bsdgames/pkg-plist:

@sample(,games,0664) /var/games/atc_score.sample
@sample(,games,0664) /var/games/battlestar.log.sample
@sample(,games,0664) /var/games/cfscores.sample
...

security/acme.sh/pkg-plist:

@sample(acme,acme,0640) /var/db/acme/.acme.sh/account.conf.sample

Many other examples exist.  It's somewhat common to install files and
directories into /var.

Yours,
Robert Clausecker

-- 
()  ascii ribbon campaign - for an encoding-agnostic world
/\  - against html email  - against proprietary attachments