From nobody Tue Dec 27 21:12:58 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 4NhS6n1HMXz1Hx3s for ; Tue, 27 Dec 2022 21:13:05 +0000 (UTC) (envelope-from sjrbulk@verizon.net) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4NhS6m04Q8z4Spq for ; Tue, 27 Dec 2022 21:13:03 +0000 (UTC) (envelope-from sjrbulk@verizon.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=verizon.net header.s=a2048 header.b=iB0fzRsN; spf=pass (mx1.freebsd.org: domain of sjrbulk@verizon.net designates 98.137.69.205 as permitted sender) smtp.mailfrom=sjrbulk@verizon.net; dmarc=pass (policy=reject) header.from=verizon.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verizon.net; s=a2048; t=1672175582; bh=sW7SVjB+3GCP3BGAEWA0I4ktWhLLfKRtJupgtuBPDks=; h=Date:From:Reply-To:To:Cc:Subject:References:From:Subject:Reply-To; b=iB0fzRsN4FDqr7A1h6iYgY1cvuAeSTreqzO28quCPdVDAF4CK6ise7wPkAUZnW93AJ39oB4RUxghwjH/NgS1IitROvqlQKyJZh2h4uid8tx5YzHeNTCYbDK5bygH+gTa7/Lhiv8e4aeGLN0CBPcRjHKyHZ4MW+auadNdrZXX/HXWsXnS2frhS9uxtqHNfDbCSJqpJWAiV4ACFqHclurNTUMFzn9isX5XlHH0yWGeBBCGuZxxrGx+nKDT8wuPkgQjwvK9pB5JVNP1kEg2i+KHsONP8fNpvSUGEENaYLZw9KfsoNXSu11791rYHUIccGHB3ZptzaWMO+S4YNSL2lbqbw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672175582; bh=uqO7FBk5qXXkHIDaMBLciMIpx7Bz96ToewxMp1uSU0u=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=FLb/fLh/YfjoQZReCRTJGchq/U6UlyaTnm7JZBt47hU9moAuNWgAL4UivMlCMiCGeNE5w8ycY/kLtAcKkxZOIPXcZjuoKAxOkvbUt0LP0Wc8r63MjwduL0sipC1YILNprZNeQwnAkeJmkd4lylmRsK8YfXXu7DO2+Vac2+eJl+d++/OTJ0GAebgv0+3hGpjVZozOlGvdwSw3iGkfcpL7ZG1u+OBRMg7N/fVKxn0s7PqOoEMSfWXowhX4bjdVZrsq949rzl17czsqiQHIGZKlUtWHpQA+x0rYmQTRBnWmE3N+u1TNdQiJYebzaazWJR82LwfOqfFlG4bgjCCMopt14g== X-YMail-OSG: GVRCpMsVM1k6sMtXcWlo63VaT7dm9nkWuy6GFBuIX7I5Dpd.pIjh.XxLTctNklu wf5UG_ucRuIFCwOAKydR.X85pgPtA_Zv8jcG4LJOKL4iwKVm6m.QrNgbI1VKr3OkT.BzFT8jYtmJ MQMDBJ5B32nF_fZUGzudkDueCcrJNh0OOr6ZR7BzJ1gaT2oOxwrR7LiFP9i7ZaRfFiqhu8X7pIWo 4jXoyzUzMrdEdLGL7dOxQUhPprq3xpb6eu7BbL81ewkEpVWELQsUOPolRsdADu85wDqnHNm5zJqH nFX5CC4YGWJMlSYyD8LoM9PfZaHVSGsvqe5r5E968wtBo6UshFkET0vlUtAFR4TdeL4sk2c0sUe5 657A_534lQIf4E5O8cRelg2W_2sOHeVdwTNiia_xAK0KCdlyfPaamxZmfhc6F1uZ1kbI9MgVhN0k PmArGdGBh66VGJtNxjvFkF_pP_dIvsT_bRxfWrGRj7W982eTSpA6n_9nJZgZSX9STuatL.QLq3CA dy05nzSv0jeaZLWZcajOgPjc.U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fCr1VY2gOkFd51uOOLtSEhsMcjz_Ii_Fg frfn0hT5ntyhIAwfc9oXJ9e9PhTqEWyP4aLb9pl2.XQV7gbnK9Zk7XbMkFKZPyMrKIEAn7KN1tdQ 3vHSYqUA6awztnVrDWE3B6sncDE.h.ZYJ4.l5Q58Nbej_3sLgI2w7woc2r4P1wzwFQISpZQ6P4vv _fLWPjHr92BD2xDl8ygI_HGfoRSCByb7B_bz8NMCRc.oRIEgX9.Hr_o71itpXEuVVoCG.1_b0bOz XsjKOeVJXjBelNZr3xakxXJ94WfiGjqyO6qyzB0eRhkvwSguIaiPuBMemBya.UiK7CMoyMkT9fCB vMHKLrURzhrnrflHB_U7R0KcZjJqWtgCKUguKWYyri7FGmeQoKcx8dUF7miTObY6yt.IHX5GQrt_ q9wzHtNBOrQL7x11f1zLsNPZjk._HQcCs0WHuAoQ9rTpqdea_zUqo2cneXMdMkxjOgyJhtjgRrkp aK1of9upE8aTNK4x3oxoBGhRRbza9fXS.sxB1Dl1saEXIndqxc5Awa9UCn5JYJGmxLfIbVIiB2m_ q9647OCrJ3zR_fSFcKFlvOs2VVobvtjHH.rcTgDCNsXhIDVTRlCSJjxsRVvl.8CnSREdObx7PJt_ mCMOz16Y0DKll.4ra.kkSNXpDKv1C6UOWgT22TUIwYj9k X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Tue, 27 Dec 2022 21:13:02 +0000 Date: Tue, 27 Dec 2022 21:12:58 +0000 (UTC) From: Stephen Roznowski Reply-To: Stephen Roznowski To: "jaap.akkerhuis@xs4all.nl" Cc: "ports@freebsd.org" Message-ID: <449672358.3501582.1672175578521@mail.yahoo.com> Subject: Re: Staging and /var 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: multipart/alternative; boundary="----=_Part_3501581_362156694.1672175578519" References: <449672358.3501582.1672175578521.ref@mail.yahoo.com> X-Mailer: WebService/1.1.20982 AolMailNorrin X-Spamd-Result: default: False [-5.00 / 15.00]; DWL_DNSWL_LOW(-1.00)[verizon.net:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[verizon.net,reject]; R_DKIM_ALLOW(-0.20)[verizon.net:s=a2048]; R_SPF_ALLOW(-0.20)[+ip4:98.137.64.0/21]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FREEMAIL_REPLYTO(0.00)[verizon.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.205:from]; HAS_REPLYTO(0.00)[sjrbulk@verizon.net]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[verizon.net:+]; FREEMAIL_FROM(0.00)[verizon.net]; MLMMJ_DEST(0.00)[ports@freebsd.org]; FREEMAIL_TO(0.00)[xs4all.nl]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[verizon.net]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4NhS6m04Q8z4Spq X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N ------=_Part_3501581_362156694.1672175578519 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =20 On 12/27/22 14:12, jaap.akkerhuis@xs4all.nl wrote: > > >> On 27 Dec 2022, at 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 missin= g? (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: >> >>=C2=A0=C2=A0=C2=A0=C2=A0 pre-install: >> >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 @${MKDIR} ${STAGEDIR}/va= r/xxx >> >> for the directories that I need.=20 > > You really want to use pkg-plist for this. > > =C2=A0=C2=A0 =C2=A0jaap > > pkg-plist (or PLIST_FILES) doesn't work for staging (without the pre-instal= l line). For additional details, I'm porting a game, so my plist has "var/games/xxx.= score" in it. Thanks,Steve ------=_Part_3501581_362156694.1672175578519 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On 12/27/22 14:12,= jaap.akkerhuis@xs4all.nl wrote:
>
>
>> 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 i= nstallation of some files in /var.
>>
>> I notice that th= e file /usr/ports/Templates/BSD.local.dist doesn't have any of the /var tre= e in it, is there a particular reason why that is missing? (I could see whe= re a small subset of /var would be useful to autocreate in the stage direct= ory.)
>>
>> 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
>
>

pkg-plist (or PLIST_FILES) doesn't work for sta= ging (without the pre-install line).

= For additional details, I'm porting a game, so my plist has "var/game= s/xxx.score" in it.

Thanks,
Steve
------=_Part_3501581_362156694.1672175578519--