Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Dec 2022 18:59:49 +0100
From:      Ronald Klop <ronald@FreeBSD.org>
To:        ports@freebsd.org
Subject:   Re: Staging and /var
Message-ID:  <430f6865-7e67-1ce1-dfee-e47488a8bf77@FreeBSD.org>
In-Reply-To: <869298973.3430864.1672163660124@mail.yahoo.com>
References:  <869298973.3430864.1672163660124.ref@mail.yahoo.com> <869298973.3430864.1672163660124@mail.yahoo.com>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?430f6865-7e67-1ce1-dfee-e47488a8bf77>