From nobody Tue Dec 27 17:59:49 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 4NhMz742qcz2krqF for ; Tue, 27 Dec 2022 18:06:11 +0000 (UTC) (envelope-from ronald@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NhMz73ZHBz42l4 for ; Tue, 27 Dec 2022 18:06:11 +0000 (UTC) (envelope-from ronald@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672164371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eUIHpny6+72N12lCbFAhFL2iJXQtQkwT85W851nqp+s=; b=S7UKnobp2o9Rxm6Pe67JQ1hkQvjVPNF/9sKqu+omznAYb2stl1NHXMX7r8B2Y5/LMeb2sq nt744KuKALaRSddRcgqgpkDeX9s/cNjKFIak0Nz0raZqPO30hoxDnmUJsBSqMz5m5GGmVl a86u37xNReFmHVT3V7BKSOObmBYXff3ruw6cuhu1Ux96XmBa9/HYC0OVoTicF3BzryHdbr GckpZVImfWZ1LbmzQqyZ/ZdkJAw2+HKipCCFFsd9JYqo6Vn7kTJQXGv6Vt658HNZTo4PRH FZi1UC+cs1tvE6U2sJrF39PdkXCp3vXfWU6fyLcaEtqFqFrl4U5oTFr6AY8w4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672164371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eUIHpny6+72N12lCbFAhFL2iJXQtQkwT85W851nqp+s=; b=dOnduSSlN55TyJXMH4nGKSpDI81qmnndjsDJV0ZXEmOB6fK3qamk5DzM8A/QDLmBTQdCN3 VoW9XMlhwlYlz56sAHbVg+bE5rqbhhkr9P/Gz+IzF8rjbX3PWsIjRm70tggcEP70IkBN/e 58eYcW42/kc22GYMDf+jrHZc9OiTg7GjO9/yCiwa5dE2vMAeEk+F7OLsMLaecjsSkB3rXv gMqEBLaMnst8+e9p0o1n6qYFgq6o9asbhdGaAqroBG1soU03n4QqfMniXjeTYfQftyUUo7 khl8Fx2iMjFI6eVh+ZBb50Zg2IAzGL3lEu1mgHlkyw/ivX+u7Fot4vhZMqXGzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672164371; a=rsa-sha256; cv=none; b=k40MoRl4GJWOsuLMo0dAoRViX+BuQr8NQwTTOS12LzbNt5/TA/2LCHNwuPAdYWtkVSFM0R SGWwAGkvrMdaUHDKOf7RGpBoHiCu6NVaZ/gTCf7/FMXeYFB25xWzX9WgwL2ixvedi7mepd yqTkutEsHNJjuRsaHRpsHtvdVHp9ck4OVc/j7aDDIodgXSWnD4GTtt7ImUqJ0ZV2vUUES6 keyraCKeAtp17/Ejz+41ACiSXchll9pF+mi8khmdLz11eqfOqbzqSDhdulWjy2pafQkZDR tXrcYeoSS6t23IRVbRRL/togFtl0SpPAbxEsmFWgArAjeZ2DTM6Q9/Wb36d/Ag== Received: from [IPV6:2001:1c00:2710:7910:7c63:7576:abe9:5143] (2001-1c00-2710-7910-7c63-7576-abe9-5143.cable.dynamic.v6.ziggo.nl [IPv6:2001:1c00:2710:7910:7c63:7576:abe9:5143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: ronald/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4NhMz712gjz1HVM for ; Tue, 27 Dec 2022 18:06:11 +0000 (UTC) (envelope-from ronald@FreeBSD.org) Message-ID: <430f6865-7e67-1ce1-dfee-e47488a8bf77@FreeBSD.org> Date: Tue, 27 Dec 2022 18:59:49 +0100 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: Staging and /var To: ports@freebsd.org References: <869298973.3430864.1672163660124.ref@mail.yahoo.com> <869298973.3430864.1672163660124@mail.yahoo.com> Content-Language: en-US From: Ronald Klop In-Reply-To: <869298973.3430864.1672163660124@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ThisMailContainsUnwantedMimeParts: N On 12/27/22 18:54, Stephen Roznowski 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. > > If there isn't a particular reason why this is excluded, I can go ahead a create a bug report/patch for this file. > > Thanks, > > Steve > AFAIK... Ports mostly create the /var/xxx dir in the rc startup script. Because on diskless systems /var might be a tmpfs which is empty after every (re)boot. I remember a thread about ports providing a mtree specification to standardize this process in a central place. I don't know the status of this. A quick search gave me this part of the thread: https://lists.freebsd.org/archives/freebsd-current/2022-August/002519.html Anyway, I am not authoritative on this subject, so let's see what others say about it. Regards, Ronald.