From nobody Thu Oct 17 06:48:44 2024 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XTdht3RdFz5YcDR for ; Thu, 17 Oct 2024 06:48:46 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XTdht0qS6z41wF; Thu, 17 Oct 2024 06:48:45 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; none Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.18.1/8.18.1) with ESMTPS id 49H6miNH038795 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 17 Oct 2024 08:48:44 +0200 (CEST) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.18.1/8.18.1/Submit) id 49H6minR038794; Thu, 17 Oct 2024 08:48:44 +0200 (CEST) (envelope-from fuz) Date: Thu, 17 Oct 2024 08:48:44 +0200 From: Robert Clausecker To: Mathieu Arnold Cc: Zsolt Udvari , ports@freebsd.org, ports-developper@freebsd.org Subject: Re: Install file into /rescue Message-ID: References: List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR] X-Rspamd-Queue-Id: 4XTdht0qS6z41wF X-Spamd-Bar: ---- 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