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.