From nobody Tue Dec 27 21:29:02 2022 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 4NhSTG2dKlz1Hyyt for ; Tue, 27 Dec 2022 21:29:06 +0000 (UTC) (envelope-from cmt@burggraben.net) Received: from smtp.burggraben.net (smtp.burggraben.net [IPv6:2a01:4f8:140:510a::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.burggraben.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NhSTF6Cgqz4Tk5 for ; Tue, 27 Dec 2022 21:29:05 +0000 (UTC) (envelope-from cmt@burggraben.net) Authentication-Results: mx1.freebsd.org; none Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:127b:44ff:fe4f:148d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "R3" (not verified)) by smtp.burggraben.net (Postfix) with ESMTPS id B1A0AC0031A; Tue, 27 Dec 2022 22:29:02 +0100 (CET) Received: by elch.exwg.net (Postfix, from userid 1000) id 4F7F63AB07; Tue, 27 Dec 2022 22:29:02 +0100 (CET) Date: Tue, 27 Dec 2022 22:29:02 +0100 From: Christoph Moench-Tegeder To: Stephen Roznowski Cc: "ports@freebsd.org" Subject: Re: Staging and /var Message-ID: References: <869298973.3430864.1672163660124.ref@mail.yahoo.com> <869298973.3430864.1672163660124@mail.yahoo.com> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <869298973.3430864.1672163660124@mail.yahoo.com> User-Agent: Mutt/2.2.9 (2022-11-12) X-Rspamd-Queue-Id: 4NhSTF6Cgqz4Tk5 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N ## Stephen Roznowski (sjrbulk@verizon.net): > I'm in the process of creating a new port that requires the installation > of some files in /var. When something is surprisingly hard, you should stop and think if you're holding it wrong. So, why /var? Could it make sense to use /usr/local/var/ (${PREFIX}/var to be precise)? Or maybe /var/db for local state, as it some ports use? Once you've answered that question, have a look at security/krb5-120 for how to handle ${PREFIX}/var and/or security/sudo for anything in /var/db (these are the first examples which crossed my mind, there are more). Regards, Christoph -- Spare Space