From nobody Tue Dec 27 19:12:53 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 4NhPSL078Hz2l25h for ; Tue, 27 Dec 2022 19:13:06 +0000 (UTC) (envelope-from jaap.akkerhuis@xs4all.nl) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.183]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NhPSK5vhGz4Dy3 for ; Tue, 27 Dec 2022 19:13:05 +0000 (UTC) (envelope-from jaap.akkerhuis@xs4all.nl) Authentication-Results: mx1.freebsd.org; none X-KPN-MessageId: 55f474b3-861a-11ed-9172-005056992ed3 Received: from smtp.kpnmail.nl (unknown [10.31.155.6]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 55f474b3-861a-11ed-9172-005056992ed3; Tue, 27 Dec 2022 20:11:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=to:date:subject:mime-version:content-type:message-id:from; bh=bNzDadDG8TRmI11zBeFs3dv+4KxQVf6NNlSVOQI0B/Y=; b=hQ8eUpVZI1mt8vabX/En53kEKp6F4GdZsEE2jxA1611DjOueUhYrDS0sQwUudmZA89HI8pmYSBAqQ ut7UJTKHI8NAhMY3NixKLJmQMRvjkShhKTnxFAPQaTP4yg0CjwxRr+B4IHDqC5xUgqAsjGn5vLRn8t sKuY7C/Jy3VUMAAFi1S4xJ+iD9WR3e1lxWSYE18gC1ZRGFyGKacQ1WUHLxPAynrX+4qiu9ZbCZOVh7 qtji/EWXIOmzVsX6aR+o0DEx5A7eXoUefgeF9nCxdAft0PPK4Euly0gHtYYeaDYG1Q/TxJl+9sTeH/ 4srjgxjSYm5nLUY2qbW6537nE8Y4OVA== X-KPN-MID: 33|W18cugUJ8hQENWIwB/wY1JsT1JPvMQrVuvDsDRV0PBFYOkT2kK/H1OCTFuU3q9n EY0FRo1pK11kBgpkGpFheSH8csuvtczrOayNB6KRAC2A= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|yvBTu2ba5eoRBr9AN5lppXi1BTNAPjm2kfa7O/coFjfc4h74zlJ6uMTwSlfg/GJ stA9wKM0r7FFcGV9ZvAtP1A== X-Originating-IP: 31.151.65.212 Received: from smtpclient.apple (31-151-65-212.dynamic.upc.nl [31.151.65.212]) by smtp.xs4all.nl (Halon) with ESMTPSA id 7cbfc207-861a-11ed-87f0-00505699772e; Tue, 27 Dec 2022 20:13:04 +0100 (CET) From: jaap.akkerhuis@xs4all.nl Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_BFD764D7-C81F-4628-8F91-27773C9FE0D9"; protocol="application/pgp-signature"; micalg=pgp-sha1 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 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: Staging and /var Date: Tue, 27 Dec 2022 20:12:53 +0100 In-Reply-To: <869298973.3430864.1672163660124@mail.yahoo.com> Cc: "ports@freebsd.org" To: Stephen Roznowski References: <869298973.3430864.1672163660124.ref@mail.yahoo.com> <869298973.3430864.1672163660124@mail.yahoo.com> X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Rspamd-Queue-Id: 4NhPSK5vhGz4Dy3 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8737, ipnet:195.121.64.0/18, country:NL] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_BFD764D7-C81F-4628-8F91-27773C9FE0D9 Content-Type: multipart/alternative; boundary="Apple-Mail=_B527054E-2377-4500-A921-AC125A6429A4" --Apple-Mail=_B527054E-2377-4500-A921-AC125A6429A4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 27 Dec 2022, at 18:54, Stephen Roznowski = wrote: >=20 > I'm in the process of creating a new port that requires the = installation of some files in /var. >=20 > 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.) >=20 > I realize that I can just do: >=20 > pre-install: >=20 > @${MKDIR} ${STAGEDIR}/var/xxx >=20 > for the directories that I need. You really want to use pkg-plist for this. jaap --Apple-Mail=_B527054E-2377-4500-A921-AC125A6429A4 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii

On 27 Dec 2022, at 18:54, Stephen Roznowski <sjrbulk@verizon.net> 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. 

You really want to use pkg-plist for this.

jaap


--Apple-Mail=_B527054E-2377-4500-A921-AC125A6429A4-- --Apple-Mail=_BFD764D7-C81F-4628-8F91-27773C9FE0D9 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: no-use-standard-socket iF0EARECAB0WIQQrCaF5s4l4c+dDH/sjEcdY8Kh9hQUCY6tDtQAKCRAjEcdY8Kh9 hVj0AKCMoe1VXa4Ytu3YpwEl0F0Agl5DywCfQFrV1sNKf3KWNXLxHqirAZsSchQ= =/MZ3 -----END PGP SIGNATURE----- --Apple-Mail=_BFD764D7-C81F-4628-8F91-27773C9FE0D9--