Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2024 08:48:44 +0200
From:      Robert Clausecker <fuz@fuz.su>
To:        Mathieu Arnold <mat@freebsd.org>
Cc:        Zsolt Udvari <uzsolt@freebsd.org>, ports@freebsd.org, ports-developper@freebsd.org
Subject:   Re: Install file into /rescue
Message-ID:  <ZxCzTMOTa7c85ebu@fuz.su>
In-Reply-To: <r4zvjjiigwcwz46mjdvbo7dfym3iosl2b3p7wtimvquh62mcgn@gp7mmxct7dbr>
References:  <Zw9Sg5yTSvmTM9KP@bsd-zsolt-lenovo> <tgs7opl2ei5stk2w6fdpsdubjgquufciyk4txjtar6xmsv4itl@x7w23vzxv3p4> <Zw-BrZ9ba6a1UBWp@fuz.su> <r4zvjjiigwcwz46mjdvbo7dfym3iosl2b3p7wtimvquh62mcgn@gp7mmxct7dbr>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZxCzTMOTa7c85ebu>